2.17.1 Notes about setup (for AIX)
Each of the AIX processes hostmibd, aixmibd, and snmpmibd acquires MIB values by issuing GET and GET-NEXT requests to the process that uses the port number specified in the SNMP_PORT value defined in the OS-provided file /etc/environment (or 161/udp if SNMP_PORT is not set). If SNMP Agent is not installed, the AIX snmpd process typically performs this communication.
The following figure shows the flow of the native agent functions provided by AIX.
|
When SNMP Agent is installed, by default it is configured so that the native agent snmpd process uses port 8161/udp as the port for receiving SNMP requests. In addition, public is automatically set as the community name that is used when the AIX processes hostmibd, aixmibd, and snmpmibd acquire MIB values by issuing GET and GET-NEXT requests to the process that uses the port number specified in the SNMP_PORT value defined in the OS-provided file /etc/environment (or 161/udp if SNMP_PORT is not set).
Therefore, the AIX processes hostmibd, aixmibd, and snmpmibd must be configured to communicate with the AIX snmpd process (8161/udp), and the community name must be set according to the native agent (snmpd).
These changes are shown in the steps listed below, and they must be made while the user is logged on as a superuser.
-
Stop SNMP Agent and the native agent by using the snmpstop command with no arguments.
/usr/CM2/ESA/bin/snmpstop
-
Open /usr/CM2/ESA/opt/SnmpNative with an editor such as vi.
-
Change public in the following lines to the community name for the native agent snmpd process that permits GET and GET-NEXT requests.
SNMP_SNMPMIBD_OPTIONS="-c public" SNMP_HOSTMIBD_OPTIONS="-c public" SNMP_AIXMIBD_OPTIONS="-c public"
-
Add the line below to the OS-provided /etc/environment.
If you have changed the port number used by the native agent snmpd process, use that port number instead of 8161.
SNMP_PORT=8161
-
Restart SNMP Agent by using the snmpstart command with no arguments.
Restarting SNMP Agent also restarts hostmibd, aixmibd, and snmpmibd.
Execute the following command:
/usr/CM2/ESA/bin/snmpstart