The default SNMP port number is 10161. If you want to monitor multiple individual server instances that exist on the same machine, the default port values may not work. You may need to change the SNMP port for these instances to avoid a port conflict.
You can override the default port value in several different ways, which are listed in order of precedence from highest to lowest:
For each server instance, you can specify a port value by setting the snmp-adapter-port property for that server instance:
asadmin set server-instance-name.property.snmp-adapter-port=port-number |
where server-instance-name is the name of the server instance, and port-number is the new port value.
For each cluster, you can specify a port value by setting the snmp-adapter-port property for that cluster:
asadmin set cluster-name.property.snmp-adapter-port=port-number |
where cluster-name is the name of the cluster, and port-number is the new port value. When you set snmp-adapter-port as a cluster property, all the server instances in the cluster try to use the same port for SNMP monitoring. Therefore, using the cluster property may not help if two or more clustered instances exist on the same machine.
You can provide the port value through the init-param element of the servlet element in the web.xml deployment descriptor file for the __assnmp.war file. For example:
... <servlet> <servlet-name>Mediator</servlet-name> <servlet-class>MediatorServlet</servlet-class> ... <init-param> <param-name>snmp-adapter-port</param-name> <param-value>10161</param-value> </servlet> ....
Replace 10161 with the new port value.
See Configuring the Ports for some examples.