This article explains how to use the sm_snmp
bulk command option in Smarts IP to execute the SNMP GetBulk command, including command syntax, arguments and usage.
The sm_snmp "bulk" command option executes the SNMP GetBulk command in the Smarts IP environment to retrieve all the rows of a table from a network resource. For example, you could use the sm_snmp "bulk" command option to retrieve all the rows in a routing table from a router.
Command syntax:
./sm_snmp bulk <norep> <maxRep> rootoid -dest=<Destination host or IP address> --port=<port> --snmp=<SNMP version> --community=<community string>
Command usageThe following explains the usage of the available and required command arguments that can be used with the sm_snmp bulk command option:-
<nonrep>: Optional. This is the number of "non-repeaters", which is the number of objects that are only expected to return a single GETNEXT instance, not multiple instances. Managers frequently request the value of sysUpTime and only want that instance plus a list of other objects. This command argument is optional (not required).
-
<maxRep> Optional. This is the "max-repetitions" parameter, which indicates how many rows of the table are to be retrieved in a single GetBulk operation. You can adjust the GetBulk configuration settings to minimize the number of packets exchanged as part of the GetBulk operation. This command argument is optional (not required).
-
rootoid: Required. This is the SNMP Object Identifier (OID) from which you want to start the bulk request.
-
-dest: Required. Host or IP address of the SNMP agent.
-
--port: Required. The port used by SNMP protocol.
-
--snmp: Required. Indicates whether the environment is using SNMP version 1 or 2c.
-
--community: Required. Indicates the community string to use.