EV Observe - Configure SNMP v1 on IBM AIX Server Monitoring Prerequisites

Last modified on 2023/05/22 15:38

AIX (Advanced Interactive eXecutive) is a proprietary Unix operating system developed and sold by IBM. To monitor IBM AIX servers based on the SNMP protocol, specific prerequisites must first be met.

Notes

  • SNMP for AIX is available in three versions, i.e. v1, v2 and v3. The procedure below describes how to configure SNMP v1 on an IBM AIX server.

Procedure: How to configure SNMP v1 on an IBM AIX server

Step 1: Configure SNMP v1 on the AIX server

1. Run the commands below to stop services on the monitored server.

stopsrc -s aixmibd
stopsrc -s hostmibd
stopsrc -s snmpmibd
stopsrc -s snmpd

2. Define the symbolic link to point to SNMP v1.

  • Run the commands below to check that the symbolic link exists.

cd /usr/sbin
ls -l snm*

  • Run the command below to correct the link, if required, and point it to SNMP v1.

snmpv3_ssw -1

3. Run the commands below to configure the /etc/snmpd.conf file.

logging file=/usr/tmp/snmpd.log enabled
logging size=100000  level=0
community MyCommunity
view 1.17.2  system enterprises view
trap public  127.0.0.1 1.2.3   fe   # loopback
#snmpd  maxpacket=1024 querytimeout=120 smuxtimeout=60
smux 1.3.6.1.4.1.2.3.1.2.1.2 gated_password  # gated
smux 1.3.6.1.4.1.2.3.1.2.2.1.1.2  dpid_password   #dpid
snmpd smuxtimeout=200 #muxatmd
smux 1.3.6.1.4.1.2.3.1.2.3.1.1 muxatmd_password #muxatmd

4. Run the commands below to restart services.

startsrc -s snmpd
startsrc -s aixmibd -a "-c MyCommunity"
startsrc -s hostmibd -a "-c MyCommunity"
startsrc -s snmpmibd -a "-c MyCommunity"

Step 2: Check that SNMP works correctly on the AIX server

1. Run the command below.

nmpinfo -v -m dump -c public hrProcessorLoad

2. Check that the following result is returned.

#hrProcessorLoad.1 = 0
#hrProcessorLoad.2 = 0
#hrProcessorLoad.3 = 0
#hrProcessorLoad.4 = 0

Step 3: Update the OS boot file

Note: This file is a shell script that runs automatically each time the system is restarted.

1. Open the file called /etc/rc.tcpip.

2. Add the commands below.

# Start up the hostmibd daemon
start /usr/sbin/hostmibd "$src_running" "-c MyCommunity"
# Start up the snmpmibd daemon
start /usr/sbin/snmpmibd "$src_running" "-c MyCommunity"
# Start up the aixmibd daemon
start /usr/sbin/aixmibd "$src_running" "-c MyCommunity"

Tags:
Powered by XWiki © EasyVista 2024