Issues Simple Network Management Protocol (SNMP) requests to agents and processes SNMP responses returned by agents.
cl_snmp [-com][-debug Level] [-host TargetHost] [-timeout TimeoutValue] [-retry RetryNumber] [-max MaxRepetitions] [-file ConfigurationFile] [-port PortNumber] [-verbose ] [-non NonRepeaters] Function [MIBvariable][VariableType][Value][...]]
Use the cl_snmp command to issue SNMP requests to agents and to process SNMP responses returned by agents. The Virtual I/O Server cl_snmp command can be used for SNMPv1, SNMPv2c, and SNMPv3 requests.
| findname | Sends a request that a search be done to obtain the textual name, for a given MIBVariable input, whose internal ASN.1 value best matches the input ASN.1 value. The search first checks the /etc/mib.defs file, and if a matching textual name is not found, it continues with the compiled management information base (MIB). Only one MIBVariable is allowed per cl_snmp findname invocation. |
| get | Sends a request to an SNMP agent for a specific MIB variable. The cl_snmp command then waits for a response or times out. |
| getbulk | Obtains the value of the variables in the MIB tree specified by the object identifier (OID) or MIB variable name. A single getbulk performs the same function as a series of getnext commands, with fewer data exchanges between the cl_snmp command and the SNMP agent. |
| getnext | Sends a request to an SNMP agent for the next MIB variable that lexicographically follows the MIBVariable specified. The cl_snmp command then waits for a response or times out. |
| set | Sends a request to an SNMP agent to set a specific MIBVariable. The cl_snmp command then waits for a response or times out. |
| trap | Listens for SNMP traps and displays trap information when they occur. Uses the default, well-known port 162 or the port number specified on the -port option. The cl_snmp trap function continues to listen for traps until the process is killed or canceled. |
| walk | Issues a getnext request for a specified prefix, then continues to issue getnext requests for as long as there are variables that match the specified prefix. A prefix can be any leading portion of the complete object identifier. |
cl_snmp -host hostname get sysName.0