View previous topic :: View next topic |
Author |
Message |
Prometheus
Joined: 09 Mar 2016 Posts: 60
|
Posted: Thu May 19, 2016 7:26 am Post subject: Tape device loaded |
|
|
I would like to set a monitor to see if my tape drive is loaded or not. But i have no idea how to do this. Does anybody has tips? |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12795 Location: USA
|
Posted: Thu May 19, 2016 3:00 pm Post subject: |
|
|
May be WMI test can help
Namespace: root\cimv2
Query: select Availability from Win32_TapeDrive
Alert if any Availability <> 3
Regards
Alex |
|
Back to top |
|
|
Prometheus
Joined: 09 Mar 2016 Posts: 60
|
Posted: Fri May 20, 2016 2:56 am Post subject: |
|
|
Hi Alex,
It works, but im no sure what the test is showing. Is it showing the status of the TapeDrive or something else? |
|
Back to top |
|
|
KS-Soft Europe
Joined: 16 May 2006 Posts: 2832
|
Posted: Fri May 20, 2016 3:35 am Post subject: |
|
|
This test gets all devices, visible by Windows as TapeDrive and checks Availability property.
Availability property may have the following values:
Other (1)
Unknown (2)
Running/Full Power (3)
Warning (4)
In Test (5)
Not Applicable (6)
Power Off (7)
Off Line ( 8 )
Off Duty (9)
Degraded (10)
Not Installed (11)
Install Error (12)
Power Save - Unknown (13)
Power Save - Low Power Mode (14)
Power Save - Standby (15)
Power Cycle (16)
Power Save - Warning (17)
Paused ( 18 )
Not Ready (19)
Not Configured (20)
Quiesced (21)
You may check if your device is listed as TapeDrive and it's current status using WMI Explorer (wmiexplorer.exe) and WQL query select Availability from Win32_TapeDrive
Please check for details at:
Win32_TapeDrive WMI class: https://msdn.microsoft.com/en-us/library/aa394491(v=vs.85).aspx
WMI Explorer: http://www.ks-soft.net/hostmon.eng/wmi/index.htm |
|
Back to top |
|
|
|