SNMP GetBulk Team

I would like to know if I can use the getbulk command with SNMPv1. If yes, please let me know adv it ... no, then what are the disadvantages.

Thanks in advance.

Good luck

+4
source share
4 answers

No. This is determined by the protocol stack (GET BULK was introduced on the v2 stack), and not by other factors.

If you want to use GET BULK, you need to use SNMP v2 and v3, not v1.

+5
source

According to others, GetBulkRequest was introduced in SNMPv2. However, it may be useful for you to know that GetRequest version 1 PDUs can be associated with several variable bindings. The GetRequest response will contain a display of these OID objects and their current values ​​(if the request was successful).

If you don't need to β€œwalk” the tree, and you have all the OIDs in advance, then downloading GetRequest with all the necessary variable bindings may work for you.

If you use Java, the SNMP4J API is compatible with SNMP v1, v2c and v3. SNMP4J API

+5
source

It is worth noting that GETBULK is in version v2c, which is a minor upgrade to SNMPv1 and, thus, is supported by almost every device these days, even if the vendor did not go into the trouble of fully implementing SNMPv3.

SNMPv1: uses communities with PDUs V1 SNMPv2c: uses communities with PDUs V2 SNMPv3: uses several security modules with PDUs V2

And then SMI version numbers (1 and 2) can be used with any protocol, unless there are SMIv2 data types that cannot be accessed using the V1 PDUs (for example, counter64).

+3
source

If you execute snmpbulkwalk using v1, you will get the following error

bash# snmpbulkwalk -v 1 -Os -c demopublic test.net-snmp.org No log handling enabled - using stderr logging snmpbulkwalk: Cannot send V2 PDU on V1 session 

as snmpbulkwalk introduced on v 2c, doing this will lead you to neat conclusions, learn the concept

 bash# snmpbulkwalk -v2c -Os -c demopublic test.net-snmp.org sysDescr.0 = STRING: test.net-snmp.org sysObjectID.0 = OID: netSnmpAgentOIDs.10 sysUpTimeInstance = Timeticks: (174391443) 20 days, 4:25:14.43 sysContact.0 = STRING: Net-SNMP Coders < net-snmp-coders@lists.sourceforge.net > sysName.0 = STRING: test.net-snmp.org sysLocation.0 = STRING: Undisclosed sysORLastChange.0 = Timeticks: (7) 0:00:00.07 
+2
source

All Articles