WMI_Plus Checkdrivesize List all drives EXCEPT C and D
Posted: Fri Jun 13, 2014 10:15 am
Hello,
I have been playing around with this command for an hour or two:
check_wmi_plus.pl -H SERVER -u USER -p PASS -m checkdrivesize -a "." -w _Free%=10: -c _Free%=5:
This works fine and will list all drives. However, I would like to list all drives except for C and D. Is there a way to do this with a regex? I've done my fair share of searching, but the only results I find are for check_nrpe, not for check_wmi_plus.
I've tried several combinations including:
".[!CD]"
".\\!C\\!D"
".$!C$D"
".\\$!C\\$!D"
".[^CD]"
"[^CD]."
But nothing I've tried seems to work. Do you guys know how to do this?
Thank you
I have been playing around with this command for an hour or two:
check_wmi_plus.pl -H SERVER -u USER -p PASS -m checkdrivesize -a "." -w _Free%=10: -c _Free%=5:
This works fine and will list all drives. However, I would like to list all drives except for C and D. Is there a way to do this with a regex? I've done my fair share of searching, but the only results I find are for check_nrpe, not for check_wmi_plus.
I've tried several combinations including:
".[!CD]"
".\\!C\\!D"
".$!C$D"
".\\$!C\\$!D"
".[^CD]"
"[^CD]."
But nothing I've tried seems to work. Do you guys know how to do this?
Thank you