Hitachi

JP1 Version 12 JP1/Extensible SNMP Agent Description, Operator's Guide and Reference


3.4.1 Changing the SNMP reception port on SNMP Agent

This subsection describes how to change the SNMP reception port on SNMP Agent.

There are two ways of changing the SNMP reception port on SNMP Agent. One is by using SR_SNMP_TEST_PORT and the other is by using the /etc/services file. Changing values in the /etc/services file might have adverse effects on other SNMP Agents. Therefore, Hitachi recommends that you use SR_SNMP_TEST_PORT.

The following procedure shows how to change the SNMP reception port on SNMP Agent using SR_SNMP_TEST_PORT.

Procedure

  1. Add the following two lines to the file that defines environment variables:

    SR_SNMP_TEST_PORT=new-port-number
    export SR_SNMP_TEST_PORT

    The file used to define the SR_SNMP_TEST_PORT environment variable depends on the OS in use, as the following shows:

    In HP-UX (IPF) and Linux: /opt/CM2/ESA/opt/SnmpMaster

    In Solaris: /etc/rc.config.d/SnmpMaster

    In AIX: /usr/CM2/ESA/opt/SnmpMaster

  2. Change the UDP port number (applicable to Solaris, AIX and Linux).

    If you change the native agent's SNMP reception port from 8161/udp or 161/udp to another port number, you must also change the UDP port that the naaagt process uses to connect to the native agent.

    Add the following two lines to the file that defines environment variables:

    SNMP_NAA_OPTIONS="-port native-agent's-SNMP-reception-port-number"
    export SNMP_NAA_OPTIONS

    The file used to define the SNMP_NAA_OPTIONS environment variable depends on the OS in use, as the following shows:

    In Solaris: /etc/rc.config.d/SnmpNaa

    In AIX: /usr/CM2/ESA/opt/SnmpNaa

    In Linux: /opt/CM2/ESA/opt/SnmpNaa

  3. Restart SNMP Agent.

    Execute the following command as a superuser:

    If the OS being used is Solaris or AIX, and you have changed the native agent's SNMP reception port, execute the snmpstart command with no arguments.

    /opt/CM2/ESA/bin/snmpstart