Hitachi

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


2.12.3 Settings for using PowerHA (HACMP)

When SNMP Agent is executing in a PowerHA (HACMP) environment, change SNMP Agent's SNMP request reception port from 161/udp to a free UDP port to allow the AIX snmpd process to use 161/udp.

The reason for this change is that, in the PowerHA (HACMP) environment, AIX processes exchange information using SNMP requests.

In the following example, SNMP Agent's SNMP reception port is changed to 8161/udp.

Organization of this subsection

(1) Change the NNMi or NNM SNMP request port.

For details about changing the SNMP request port, see Help for NNMi or Help for NNM, depending on which product you are using.

(2) Change the SNMP reception port in SNMP Agent.

Perform the following operations as a superuser.

Procedure

  1. Stop SNMP Agent.

    Execute /usr/CM2/ESA/bin/snmpstop with no arguments.

  2. Change the SNMP reception port for AIX snmpd.

    • If the native agent is an SNMP v1 agent

      Confirm that the value in the snmp column in the /etc/services file is 161/udp, and if it is not, change it to 161/udp.

    • If the native agent is an SNMP v3 agent

      Change /usr/CM2/ESA/opt/SnmpNative as follows:

      SNMP_NATIVE_OPTIONS="-p 161"

    • If SNMP_PORT= is defined in the /etc/environment file, change it to the following:

      SNMP_PORT=161

  3. Change SNMP Agent's SNMP reception port.

    In the example below, SNMP Agent's SNMP reception port is changed to 8161/udp.

    The port number does not have to be 8161/udp, this is just the value used in this example.

    Perform, the following operation as a superuser:

    Add the following two lines to /usr/CM2/ESA/opt/SnmpMaster.

    SR_SNMP_TEST_PORT=8161
    export SR_SNMP_TEST_PORT
  4. Change the SNMP request transmission port for SNMP Agent's native agent adapter.

    Edit the file /usr/CM2/ESA/opt/SnmpNaa while logged on as a superuser.

    Add the following two lines to the end of the file:

    SNMP_NAA_OPTIONS="-port 161 -aperror -apwarn -apverbose -hexdump -vbdump"
    export SNMP_NAA_OPTIONS

    To enable the above settings, start SNMP Agent by executing the snmpstart command with no arguments.

    /usr/CM2/ESA/bin/snmpstart