KS-Soft. Network Management Solutions
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister    ProfileProfile    Log inLog in 

Tape device loaded

 
Post new topic   Reply to topic    KS-Soft Forum Index -> Configuration, Maintenance, Troubleshooting
View previous topic :: View next topic  
Author Message
Prometheus



Joined: 09 Mar 2016
Posts: 60

PostPosted: Thu May 19, 2016 7:26 am    Post subject: Tape device loaded Reply with quote

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
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12795
Location: USA

PostPosted: Thu May 19, 2016 3:00 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Prometheus



Joined: 09 Mar 2016
Posts: 60

PostPosted: Fri May 20, 2016 2:56 am    Post subject: Reply with quote

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
View user's profile Send private message
KS-Soft Europe



Joined: 16 May 2006
Posts: 2832

PostPosted: Fri May 20, 2016 3:35 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    KS-Soft Forum Index -> Configuration, Maintenance, Troubleshooting All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

KS-Soft Forum Index