LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   AIX (https://www.linuxquestions.org/questions/aix-43/)
-   -   SNMP issue on AIX 7.1 (https://www.linuxquestions.org/questions/aix-43/snmp-issue-on-aix-7-1-a-4175458428/)

LinuxLover 04-17-2013 02:48 AM

SNMP issue on AIX 7.1
 
Hi ,
Below is my /etc/snmpdv3.conf (of course with changed string).

# cat /etc/smpdv3.conf
VACM_GROUP group1 SNMPv1 foobar -
VACM_VIEW defaultView internet - included -
# exclude snmpv3 related MIBs from the default view
VACM_VIEW defaultView snmpModules - excluded -
VACM_VIEW defaultView 1.3.6.1.6.3.1.1.4 - included -
VACM_VIEW defaultView 1.3.6.1.6.3.1.1.5 - included -
# exclude aixmibd managed MIBs from the default view
VACM_VIEW defaultView 1.3.6.1.4.1.2.6.191 - excluded -
VACM_ACCESS group1 - - noAuthNoPriv SNMPv1 defaultView - defaultView -
NOTIFY notify1 traptag trap -
TARGET_ADDRESS Target1 UDP 127.0.0.1 traptag trapparms1 - - -
TARGET_PARAMETERS trapparms1 SNMPv1 SNMPv1 foobar noAuthNoPriv -
COMMUNITY foobar foobar noAuthNoPriv 0.0.0.0 0.0.0.0 -
DEFAULT_SECURITY no-access - -
logging file=/usr/tmp/snmpdv3.log enabled
logging size=100000 level=0
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.3.1.1 muxatmd_password #muxatmd
smux 1.3.6.1.4.1.2.3.1.2.1.5 clsmuxpd_password # HACMP/ES for AIX clsmuxpd
VACM_GROUP director_group SNMPv2c foobar -
VACM_ACCESS director_group - - noAuthNoPriv SNMPv2c defaultView - defaultView -


This file is working fine on AIX 5.3 machines and we are able to get the SNMP response quite nicely like

$ snmpwalk -v 2c -c foobar 10.X.X.26
SNMPv2-MIB::sysDescr.0 = STRING: IBM PowerPC CHRP Computer
Machine Type: 0x0800004c Processor id: 00F636D24C00
Base Operating System Runtime AIX version: 05.03.0012.0001
TCP/IP Client Support version: 05.03.0012.0001
SNMPv2-MIB::sysObjectID.0 = OID: SNMPv2-SMI::enterprises.2.3.1.2.1.1.3
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (285679800) 33 days, 1:33:18.00
SNMPv2-MIB::sysContact.0 = STRING:
......................
.....................
......................

Now problem is that We have done same setting on AIX 7.1 boxes.(On two machine).But SNMP is not responding on snmpwalk query. and message appears SNMPv2-SMI::mib-2 = NULL

]$ snmpwalk -v 2c -c foobar 10.X.X.254
SNMPv2-SMI::mib-2 = NULL


What the reason can be ?
Is there any extra change that need to be tweak for AIX 7.1 SNMP?

Michael AM 04-17-2013 12:49 PM

Have you verified that it is snmp3 that is being started on both systems. If I recall, AIX 5.3 started snmp1 by default (check the symbolic link, also for encryption yes/no).

I have not used snmp on AIX 7.1, so my help stops here for now.

LinuxLover 04-17-2013 11:44 PM

Yes Michael,
It is using SNMPv3 on both systems.

>which snmpd
/usr/sbin/snmpd

>ls -l /usr/sbin/snmpd
lrwxrwxrwx 1 root system 9 May 20 2011 /usr/sbin/snmpd -> snmpdv3ne

Michael AM 04-18-2013 07:14 AM

I do not promise speed on this - but it is on my list of things to learn about. Maybe someone else beats me to it. I hope so for you.

Also check for recent fixes re: AIX 7.1.

LinuxLover 04-22-2013 12:03 AM

Thank Michael to load it on TODO list,
Best of luck and hoping for solution.:)

filosmith 06-17-2013 08:49 AM

Try v1
 
I have found that on two 7.1 boxes with similar oslevels, and using the exact same config files, v2c snmpwalk doesn't work on one but it does on the other. I don't know why yet but it's a start. I am linked to snmpdv3ne.

[root@linuxbox tmp]# snmpwalk -v2c -m ALL -c public aixbox1 hrStorageSize
No log handling enabled - turning on stderr logging
End of MIB

[root@linuxbox tmp]# snmpwalk -v1 -m ALL -c public aixbox1 hrStorageSize
No log handling enabled - turning on stderr logging
HOST-RESOURCES-MIB::hrStorageSize.1 = INTEGER: 393216
HOST-RESOURCES-MIB::hrStorageSize.2 = INTEGER: 1048576
HOST-RESOURCES-MIB::hrStorageSize.3 = INTEGER: 524288
HOST-RESOURCES-MIB::hrStorageSize.4 = INTEGER: 1048576
...


All times are GMT -5. The time now is 04:54 AM.