Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation  Back up to About Overview 
  
[+] Expand All
[-] Collapse All

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

To execute a Get command that retrieves the system description and confirms basic SNMP operation, execute:

radiusdir /snmp/bin/testagent.sh

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 32-bit Solaris, 32-bit Linux, or 64-bit Linux, execute these two strings:

LD_LIBRARY_PATH=$LD_LIBRARY_PATH:radiusdir/snmp/binexport LD_LIBRARY_PATH

To set the LD_LIBRARY_PATH_64 variable for 64-bit Solaris, execute the following strings:

LD_LIBRARY_PATH_64=radiusdir:radiusdir/system/lib/:radiusdir
/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:

radiusdir /snmp/bin/snmpget -M radiusdir /snmp/mibs -m all -c community host iso.org.dod.internet.mgmt.mib-2.radiusMIB.radiusAuthentication.radiusAuthServMIB. radiusAuthServMIBObjects.radiusAuthServ.radiusAuthServIdent

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:

radiusdir /snmp/bin/snmpget -M radiusdir /snmp/mibs -m all -c community host 1.3.6.1.2.1.67.1.1.1.1.1.0

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 32-bit Solaris, 32-bit Linux, or 64-bit Linux, execute these two strings:

LD_LIBRARY_PATH=$LD_LIBRARY_PATH:radiusdir/snmp/binexport LD_LIBRARY_PATH

To set the LD_LIBRARY_PATH_64 variable for 64-bit Solaris, execute the following strings:

LD_LIBRARY_PATH_64=radiusdir:radiusdir/system/lib/:radiusdir
/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:

radiusdir /snmp/bin/snmpwalk -M radiusdir /snmp/mibs -m all -c community host iso.org.dod.internet.mgmt.mib-2.radiusMIB.radiusAuthentication.radiusAuthServMIB. radiusAuthServMIBObjects.radiusAuthServ.radiusAuthClientTable. radiusAuthClientEntry

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:

radiusdir /snmp/bin/snmpwalk -M radiusdir /snmp/mibs -m all -c community host 1.3.6.1.2.1.67.1.1.1.1.15.1

Modified: 2017-09-27