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, follow these steps:
Stop services:
stopsrc -s aixmibd
stopsrc -s hostmibd
stopsrc -s snmpd
Configure the version of snmp that will be used on your server:
To do this, it is necessary to change the symbolic link if it is not good. Look for the linkfile in /usr/sbin
To verify 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 correct elements: /etc/snmpd.conf
logging file=/usr/tmp/snmpd.log enabled
logging size=100000 level=0
community public
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
logging size=100000 level=0
community public
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 the services
startsrc -s snmpd
startsrc -s aixmibd -a “-c public”
startsrc -s hostmibd -a “-c public”
startsrc -s snmpmibd -a “-c public”
Test directly on the AIX server
snmpinfo -v -m dump -c public hrProcessorLoad
the following results indicate successful configuration:.
#hrProcessorLoad.1 = 0
#hrProcessorLoad.2 = 0
#hrProcessorLoad.3 = 0
#hrProcessorLoad.4 = 0
#hrProcessorLoad.2 = 0
#hrProcessorLoad.3 = 0
#hrProcessorLoad.4 = 0
No comments:
Post a Comment