I recently configures Disk alarms in SAM and noticed that the disk info includes the label info. I just need the drive letter to be displayed in the console and in alert action. Is there a way to get rid of these labels ?
Edit the alert and insert Volume ${N=SwisEntity;M=DeviceId}
Below is the standard built-in alert, modified to add this at the bottom. You get the volume letter.
Volume PRFS01A-C:\ Label: 7CE23300:
Total size 19.5 G
Free space 4.5 G
Percent used 77 %
Volume C:
However, if you have Mount Points, the results are less helpful;
Volume PRFS01A-C:\ClusterStorage\Volume1 Label:PRFS01_X A2757594:
Total size 49.8 G
Free space 48.9 G
Percent used 2 %
Volume \\?\Volumeafb538fc-e2d6-457f-ba64-88b999b668ad\
Somebody else will be able to give a solution which takes the full volume name and strips it just before the 'Label' part.
I couldn't find a list of commands you can use in Alerts, there are SQL commands, which include substring and charindex, which can archive this.