Documentation

How to configure snmp v1 on IBM AIX

On the page

Do you need help?

SNMP for AIX is available in three versions: v1 , v2 and v3 .

To configure snmp V1 on an IBM Aix server from version 5.x onwards, follow the procedure below:

Stop services :

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

Configure the version of snmp that will be used on your server:

To do this you need to change the symbolic link if it is not good. See the link in /usr/sbin

To check the existing link, type :

cd /usr/sbin
ls -l snm*
Example :lrwxrwxrwx 1 root system 17 28 Apr 16:31 /usr/sbin/snmpd -> /usr/sbin/snmpdv1

To change the link, if it does not point to the correct snmpV1 version, type the following command:

snmpv3_ssw -1

Check that the configuration file contains the right elements: /etc/snmpd.conf

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
Restart services

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

To test directly on the AIX server:

 snmpinfo -v -m dump -c public hrProcessorLoad

 

if the result is the following then it works.

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

Make the change to the OS startup file

vi /etc/rc.tcpip
# 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"

 

You may also be interested in

Configure IBM AS/400 monitoring requirements

en_GB

Our next events

Our upcoming webinars

Our Previous Webinars

Welcome to ServiceNav!

Do you need some help? More information about our products? Write to us!
We will never sell or share your personal data with third parties. You have taken note of our privacy policy.
We use cookies to ensure the best experience on our site. If you continue to use this site, we will assume that you are satisfied with it.

Reserve your place

We will never sell or share your personal data with third parties. You have taken note of our privacy policy.