How might I discover, via SNMP, which boxes are running libvirt-snmp?

 

Performing a walk from the top seems to skip the Libvirt MIB … (why is this?)

~/walk$ snmpbulkwalk -c public kvmtestbox .iso | more

SNMPv2-MIB::sysDescr.0 = STRING: Linux kvmtestbox.company.com 2.6.32

-358.23.2.el6.x86_64 #1 SMP Wed Oct 16 18:37:12 UTC 2013 x86_64

SNMPv2-MIB::sysObjectID.0 = OID: NET-SNMP-TC::linux

EXPRESSION-MIB::sysUpTimeInstance = Timeticks: (1308205914) 151 days, 9:54:19.14

[…]

SNMP-VIEW-BASED-ACM-MIB::vacmViewTreeFamilyStatus."systemview".9.1.3.6.1.2.1.25.

1.1 = No more variables left in this MIB View (It is past the end of the MIB tre

e)

 

 

I don’t see any particular variable I could query … no equivalent of:

LIBVIRT-MIB::libvirtSupport = 1 (yes)

 

Although I suppose a walk starting at the agent’s enterprise OID works:

~/walk$ snmpbulkwalk -c public kvmtestbox enterprises.12345 | more

LIBVIRT-MIB::libvirtGuestName.'.1..t.X.s>..To..' = STRING: "test1"

LIBVIRT-MIB::libvirtGuestName.'7". )...L....(..' = STRING: "test2"

LIBVIRT-MIB::libvirtGuestName.'D'q2...*R5y..2&.' = STRING: "test3”

[…]

 

But … if the admin of the hosting box has changed the enterprise OID from ‘12345’ to something more unique, then this doesn’t work.

 

How do you discover boxes which support libvirt-snmp?

 

--sk