You asked... I delivered.. :) [r...@dynasty ~]# /opt/zenoss/libexec/snmp_branch.py -c public -d localhost -p 161 -o 1.3.6.1.2.1.25.2.3.1 --ival="3" --label="diskIndex,diskType,diskDescr,diskAlloc,diskSize,diskused" |diskIndex=3 diskType=(1 3 6 1 2 1 25 2 1 3) diskDescr=Swap Space diskAlloc=1024 diskSize=2096472 diskused=232
Another example [r...@dynasty ~]# snmpwalk -v2c -c public localhost 1.3.6.1.2.1.2.2.1 | grep -P "\.2"IF-MIB::ifIndex.2 = INTEGER: 2 IF-MIB::ifDescr.2 = STRING: eth0 IF-MIB::ifType.2 = INTEGER: ethernetCsmacd(6) IF-MIB::ifMtu.2 = INTEGER: 1500 IF-MIB::ifSpeed.2 = Gauge32: 100000000 IF-MIB::ifPhysAddress.2 = STRING: 0:2:b3:b7:e3:c0 IF-MIB::ifAdminStatus.2 = INTEGER: up(1) IF-MIB::ifOperStatus.2 = INTEGER: up(1) IF-MIB::ifLastChange.2 = Timeticks: (0) 0:00:00.00 IF-MIB::ifInOctets.2 = Counter32: 3100215763 IF-MIB::ifInUcastPkts.2 = Counter32: 104423294 IF-MIB::ifInNUcastPkts.2 = Counter32: 0 IF-MIB::ifInDiscards.2 = Counter32: 0 IF-MIB::ifInErrors.2 = Counter32: 0 IF-MIB::ifInUnknownProtos.2 = Counter32: 0 IF-MIB::ifOutOctets.2 = Counter32: 2258585248 IF-MIB::ifOutUcastPkts.2 = Counter32: 84530414 IF-MIB::ifOutNUcastPkts.2 = Counter32: 0 IF-MIB::ifOutDiscards.2 = Counter32: 0 IF-MIB::ifOutErrors.2 = Counter32: 0 IF-MIB::ifOutQLen.2 = Gauge32: 0 IF-MIB::ifSpecific.2 = OID: SNMPv2-SMI::zeroDotZero [r...@dynasty ~]# /opt/zenoss/libexec/snmp_branch.py -c public -d localhost -p 161 -o 1.3.6.1.2.1.2.2.1 --ival="2" --label="ifIndex,ifDescr,ifType,ifMtu,ifSpeed,ifPhysAddress,ifAdminStatus,ifOperStatus,ifLastChange,ifInOctets,ifInUcastPkts,ifInNUcastPkts,ifInDiscards,ifInErrors,ifInUnknownProtos,ifOutOctets,ifOutUcastPkts,ifOutNUcastPkts,ifOutDiscards,ifOutErrors,ifOutQLen,ifSpecific" |ifIndex=2 ifDescr=eth0 ifType=6 ifMtu=1500 ifSpeed=100000000 ifPhysAddress=\\x00\\x02\\xb3\\xb7\\xe3\\xc0 ifAdminStatus=1 ifOperStatus=1 ifLastChange=0 ifInOctets=3100243441 ifInUcastPkts=104423605 ifInNUcastPkts=0 ifInDiscards=0 ifInErrors=0 ifInUnknownProtos=0 ifOutOctets=2258608324 ifOutUcastPkts=84530576 ifOutNUcastPkts=0 ifOutDiscards=0 ifOutErrors=0 ifOutQLen=0 ifSpecific=(0 0) Or you can pass it a default label like this [r...@dynasty ~]# /opt/zenoss/libexec/snmp_branch.py -c public -d localhost -p 161 -o 1.3.6.1.2.1.2.2.1 --ival="2" --label="eth0"|eth00=2 eth01=eth0 eth02=6 eth03=1500 eth04=100000000 eth05=\\x00\\x02\\xb3\\xb7\\xe3\\xc0 eth06=1 eth07=1 eth08=0 eth09=3100269657 eth010=104423895 eth011=0 eth012=0 eth013=0 eth014=0 eth015=2258642732 eth016=84530733 eth017=0 eth018=0 eth019=0 eth020=0 eth021=(0 0) Thanks for the Idea... This can really be helpful now. I need to change the name of the plugin... Can you give me help on that too? -------------------- m2f -------------------- Read this topic online here: http://forums.zenoss.com/viewtopic.php?p=31853#31853 -------------------- m2f -------------------- _______________________________________________ zenoss-users mailing list [email protected] http://lists.zenoss.org/mailman/listinfo/zenoss-users
