Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SNMP: Keyboard status doesn't change even after disconnecting it!

Status
Not open for further replies.

jignatiu

Programmer
Mar 19, 2010
1
GB
Hi,

I am using SNMP to get the status of the keyboard on a PC (running Windows). I execute the snmpwalk command shown below:

snmpwalk -v 3 -u ji -l authNoPriv -a MD5 -A password localhost hrDeviceStatus

I get back the results below:

.iso.org.dod.internet.mgmt.mib-2.host.hrDevice.hrDeviceTable.hrDeviceEntry.hrDeviceStatus.1 = INTEGER: running(2)
.iso.org.dod.internet.mgmt.mib-2.host.hrDevice.hrDeviceTable.hrDeviceEntry.hrDeviceStatus.2 = INTEGER: running(2)
.iso.org.dod.internet.mgmt.mib-2.host.hrDevice.hrDeviceTable.hrDeviceEntry.hrDeviceStatus.3 = INTEGER: running(2)
.iso.org.dod.internet.mgmt.mib-2.host.hrDevice.hrDeviceTable.hrDeviceEntry.hrDeviceStatus.4 = INTEGER: unknown(1)
.iso.org.dod.internet.mgmt.mib-2.host.hrDevice.hrDeviceTable.hrDeviceEntry.hrDeviceStatus.5 = INTEGER: unknown(1)
.iso.org.dod.internet.mgmt.mib-2.host.hrDevice.hrDeviceTable.hrDeviceEntry.hrDeviceStatus.6 = INTEGER: unknown(1)
.iso.org.dod.internet.mgmt.mib-2.host.hrDevice.hrDeviceTable.hrDeviceEntry.hrDeviceStatus.7 = INTEGER: unknown(1)
.iso.org.dod.internet.mgmt.mib-2.host.hrDevice.hrDeviceTable.hrDeviceEntry.hrDeviceStatus.8 = INTEGER: running(2)
.iso.org.dod.internet.mgmt.mib-2.host.hrDevice.hrDeviceTable.hrDeviceEntry.hrDeviceStatus.9 = INTEGER: running(2)
.iso.org.dod.internet.mgmt.mib-2.host.hrDevice.hrDeviceTable.hrDeviceEntry.hrDeviceStatus.10 = INTEGER: running(2)
.iso.org.dod.internet.mgmt.mib-2.host.hrDevice.hrDeviceTable.hrDeviceEntry.hrDeviceStatus.11 = INTEGER: unknown(1)

hrDeviceStatus.9 is the keyboard. I pulled out the keyboard and ran the same snmpwalk command, but I got the same results. I was expecting the keyboard status to change, but it stayed as running(2). Why is this? Any ideas?

I have tried using SNMP version 2c and 3, but I get the same results. Is it the case that Windows only provides the device driver status? If so, that isn't very useful. Or is there something else I have to do?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top