3.4.2 Changing the SNMP reception port on the native agent snmpd (for AIX)
This subsection describes how to change the SNMP reception port on the AIX-provided native agent snmpd.
If you have installed SNMP Agent, the SNMP reception port for the native agent snmpd is set to 8161/udp. To change it to another port number, follow the procedure described below. To perform this procedure, first terminate SNMP Agent and then execute the procedure as a superuser.
Procedure
-
Change the SNMP_NATIVE_OPTIONS environment variable.
Open the SnmpNative environment variable definition file using an editor such as vi, and then change 8161 on the following line to another port number:
SNMP_NATIVE_OPTIONS="-p 8161"
-
Execute the snmpstart command with no arguments.
SNMP Agent restarts. As a result, the native agent snmpd also restarts.
Note that if the native agent snmpd is an SNMP v1 agent, it uses 161/udp as the SNMP reception port, and SNMP Agent's SNMP reception port must be set to a port other than 161/udp.
The environment variable SNMP_NATIVE_OPTIONS is used when the native agent snmpd is an SNMP v3 agent.