|
czezz (MIS) |
23 May 12 10:58 |
Hello Bill, let me please disagree.
Lets have a look again at standard snmpget where I specified "specific OID" (means I want to get value just for one specific interface): # snmpget -c public -v 2c 217.169.128.14 1.3.6.1.2.1.2.2.1.2.1 IF-MIB::ifDescr.1 = STRING: FastEthernet0/0
Please mind that this query returned single value which is "FastEthernet0/0". Now, if I request for for this same specific OID - let me repeat "Specific OID" - with SNMPGETBULK, then I will receive bunch of information and none of them contain value I am looking for (and which is returned with regular snmpget correctly).
# snmpbulkget -c public -v 2c 217.169.128.14 1.3.6.1.2.1.2.2.1.2.1 !!! ifDescr.1 is missing !!! My comment IF-MIB::ifDescr.2 = STRING: FastEthernet0/1 IF-MIB::ifDescr.4 = STRING: Null0 IF-MIB::ifType.1 = INTEGER: ethernetCsmacd(6) IF-MIB::ifType.2 = INTEGER: ethernetCsmacd(6) IF-MIB::ifType.4 = INTEGER: other(1) IF-MIB::ifMtu.1 = INTEGER: 1500 IF-MIB::ifMtu.2 = INTEGER: 1500 IF-MIB::ifMtu.4 = INTEGER: 1500 IF-MIB::ifSpeed.1 = Gauge32: 10000000 IF-MIB::ifSpeed.2 = Gauge32: 100000000
If I use OID that you typed, then it is not a specific OID but OID to whole Object Type. This will work like snmpwalk but receive even more informations/Object Types like: ifDescr, ifType, ifMtu and ifSpeed (incomplete - just for one int). And I need just ifDescr.1 snmpbulkget -c public -v 2c 217.169.128.14 1.3.6.1.2.1.2.2.1.2 IF-MIB::ifDescr.1 = STRING: FastEthernet0/0 IF-MIB::ifDescr.2 = STRING: FastEthernet0/1 IF-MIB::ifDescr.4 = STRING: Null0 IF-MIB::ifType.1 = INTEGER: ethernetCsmacd(6) IF-MIB::ifType.2 = INTEGER: ethernetCsmacd(6) IF-MIB::ifType.4 = INTEGER: other(1) IF-MIB::ifMtu.1 = INTEGER: 1500 IF-MIB::ifMtu.2 = INTEGER: 1500 IF-MIB::ifMtu.4 = INTEGER: 1500 IF-MIB::ifSpeed.1 = Gauge32: 10000000
That is a bit confusing for me. |
|