Verify SNMP Communication with a Library (optional)

Confirm the SNMP connection between the STA server and each library it monitors.

This procedure verifies that UDP ports 161 and 162 have been enabled on all network nodes between the STA server and the library. It cannot validate that an SNMP v3 trap recipient has been specified correctly.
  1. Perform this procedure for each monitored library. For each SL3000 or SL8500 library with either RE or Dual TCP/IP, perform this procedure twice: once for the primary library IP address and once for the secondary IP address.
  2. On the STA server, open a terminal window. Log in as the Oracle user.
  3. Test the SNMP v3 connection. The values you specify must match the corresponding ones on the library.
    $ snmpget –v3 –u <SNMP v3 username> –a SHA –A <authorization password> –x DES –X <privacy password> –l authPriv <library_IP_addr> 1.3.6.1.4.1.1211.1.15.3.1.0

    Where:

    • <library_IP_addr> is the IP address of the public port on the library.

      • For SL150 libraries, this is Network Port 1.
      • For SL500 libraries, this is port 1B.
      • For SL3000 and SL8500 libraries, there may be multiple ports to test, depending on whether Dual TCP/IP or Redundant Electronics are activated on the library. If there are multiple ports, run this command for each IP address.
    • 1.3.6.1.4.1.1211.1.15.3.1.0 is the SNMP object identifier (OID) for the library, which is the same for all library models.

    If the command output displays the library model, the test is successful. Following are some command examples.

    Successful snmpget command:

    $ snmpget –v3 –u STAsnmp –a SHA –A authpwd1 –x DES –X privpwd1 –l authPriv 192.0.2.20 1.3.6.1.4.1.1211.1.15.3.1.0
    SNMPv2–SMI::enterprises.1211.1.15.3.1.0 =STRING: "SL8500"
    

    Failed snmpget commands:

    $ snmpget –v3 –u STAsnmp –a SHA –A authpwd1 –x DES –X privpwd1 –l authPriv 192.0.2.20 1.3.6.1.4.1.1211.1.15.3.1.0
    Timeout: No Response from 192.0.2.20.
    
    $ snmpget –v3 –u WrongUsr –a SHA –A authpwd1 –x DES ‐X WrongPwd ‐l authPriv 192.0.2.20 1.3.6.1.4.1.1211.1.15.3.1.0
    snmpget: Authentication failure (incorrect password, community or key)
    
  4. Test the SNMP v2c connection.
    $ snmpget –v2c –c stasnmp –l authPriv <IP address of library public port>
    
  5. If both SNMP connection tests are successful, quit this procedure.

    If either test fails, proceed to the next step to troubleshoot suspected network issues, as necessary.

  6. Use these steps only if the SNMP connection test are not successful. These steps require system root permissions.
    1. Log in as the system root user.
      $ su root
      
    2. Confirm packet routing from the STA server to the library.
      # traceroute -I <IP address of library public port>
      

      The output shows the number of hops and the round-trip time to reach each one. The round-trip time (the last line in the command output) should be less than one second. If it is not, confirm the network's performance with your network administrator.

    3. Monitor TCP/IP packets sent between the STA server and the library.
      # tcpdump –v host <IP address of library public port> > /var/tmp/<file name of output> &