I needed a decently parseable format of smbstatus. Looking at smbstatus code