Retrieves and displays information about a specified SNMP agent running at a specified IP address.
snmpGet address nmssnmpoid options
where:
Parameter |
Description |
|---|---|
address |
Address or DNS name of a local or remote host running the SNMP agent about which to return information. |
nmssnmpoid |
OID of an object in one of the MIBs available on the host for which you want to see information. The default is sysDescr. |
Valid options include:
Option |
Description |
|---|---|
-v1 |
Use SNMPv1 (default). |
-v2 |
Use SNMPv2. |
-ccommunity_name |
Specify a community name. The default is public. |
-rn |
Number of retries. The default is 1 retry. |
-tn |
Timeout in hundredths of a second. The default is 100 (1 second). |
Complete the following steps to run snmpGet:
Step |
Action |
1 |
From the command line, navigate to the \nms\ctaccess\demos\snmp\snmpGet directory (or the /opt/nms/ctaccess/demos/snmp/snmpGet directory under UNIX). |
2 |
Enter the following command: snmpGet localhost |
The following example shows how to run snmpGet:
< snmpGet localhost
> SNMP++ Get to localhost SNMPV1 Retries=1 Timeout=100ms Community=public
> oid = 1.3.6.1.2.1.1.1.0
> Value = Hardware: x86 Family 6 Model 3 Stepping 4 AT/AT COMPATIBLE -
> Software: Windows 2000