Verifying SNMP Agent Operation
You can perform limited SNMP operations directly on the SBR Carrier server platform so that you can verify that the SNMP agent is running properly.
Running the testagent.sh Script
Running the testagent.sh Script
To execute a Get command that retrieves the system description and confirms basic SNMP operation, execute:
Using the snmpget Command
Using the snmpget Command
To use the snmpget command-line tool to obtain a scalar value, first set the library variable, then run the command.
To set the LD_LIBRARY_PATH variable for 64-bit Linux, execute these two strings:
To set the LD_LIBRARY_PATH_64 variable for 64-bit Solaris, execute the following strings:
/openldap:/usr/sfw/lib/sparcv9:/usr/lib/mps/sparcv9/:/usr/sbin/lib/sparcv9:/lib/sparcv9:/
usr/lib/sparcv9:/usr/openwin/lib/sparcv9:/usr/dt/lib/sparcv9:/usr/proc/lib:/
usr/local/lib/sparcv9:/opt/sfw/lib/sparcv9:/usr/ccs/lib/sparcv9:/usr/ucblib/sparcv9:
To run snmpget, follow this example syntax that combines the OID prefix with the name of the scalar:
To execute a similar command, replace radiusdir, community, and host in the example with the values appropriate for your network and put the entire command on a single line. You can use the numerical equivalent for the OID prefix and a 0 suffix. For example:
Using the snmpwalk Command
Using the snmpwalk Command
To use the snmpwalk command-line tool to obtain a table, first set the library path variable, then run the command.
To set the LD_LIBRARY_PATH variable for 64-bit Linux, execute these two strings:
To set the LD_LIBRARY_PATH_64 variable for 64-bit Solaris, execute the following strings:
/openldap:/usr/sfw/lib/sparcv9:/usr/lib/mps/sparcv9/:/usr/sbin/lib/sparcv9:/lib/sparcv9:/
usr/lib/sparcv9:/usr/openwin/lib/sparcv9:/usr/dt/lib/sparcv9:/usr/proc/lib:/
usr/local/lib/sparcv9:/opt/sfw/lib/sparcv9:/usr/ccs/lib/sparcv9:/usr/ucblib/sparcv9:
Then follow this example syntax, which uses the OID prefix of the table:
To execute a similar command, replace radiusdir, community, and host in the preceding example with the values appropriate for your network, and put the entire command on a single line.
You can use the numerical equivalent for the OID prefix and a 0 suffix. For example: