[solved]How cacti get AIX5.3 64bitOS interfaces's value

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

Post Reply
tracky2007
Posts: 34
Joined: Thu Dec 27, 2007 3:07 am

[solved]How cacti get AIX5.3 64bitOS interfaces's value

Post by tracky2007 »

I build net-snmp(V5.4.2.1) for AIX5.3 64bit box,everything works nice except the interface! This OID return nothing!
This problem make me annoyingly! So i goolge more and finally i work it out.you may do 6 changes on your aix box as follows:
1.bulid net-snmp by this configure:
./configure --prefix=/usr/local/net-snmp --with-mib-modules=if-mib --enable-mfd-rewrites --without-kmem-usage --enable-ipv6 --enable-embedded-perl --enable-shared --with-mib-modules=ucd-snmp/diskio --without-perl-modules
Then make sure that your net-snmp can work;
2.Change aix's snmpv3.conf file,it always stand in /etc/snmpdv3.conf,add this line as follow:
VACM_VIEW defaultView 1.3.6.1.4.1.2.6.191 - included -
VACM_VIEW defaultView system - included -
VACM_VIEW defaultView interfaces - included -
VACM_VIEW defaultView tcp - included -
VACM_VIEW defaultView icmp - included -
VACM_VIEW defaultView internet - included -
VACM_VIEW defaultView enterprises - included -
VACM_VIEW defaultView 1.3.6.1.2.1 - included -
VACM_VIEW defaultView 1.3.6.1.4.1.2 - included -
VACM_VIEW defaultView 1.3.6.1.4.1.2.2 - included -
VACM_VIEW defaultView 1.3.6.1.4.1.2.3 - included -
VACM_VIEW defaultView 1.3.6.1.4.1.2.5 - included -
VACM_VIEW defaultView 1.3.6.1.4.1.2.6 - included -
VACM_VIEW defaultView internet - included -
VACM_VIEW defaultView directory - included -
VACM_VIEW defaultView mgmt - included -
VACM_VIEW defaultView mib-2 - included -
VACM_VIEW defaultView system - included -
VACM_VIEW defaultView aix - included -
VACM_VIEW defaultView xmd - included -
VACM_VIEW defaultView ibm - included -
VACM_VIEW defaultView ibmAgents - included -

3.Change aix's snmpd to work at udp "1610" port use this command:
chssys -s snmpd -a '-p 1610'

4.stop and restart aix's snmpd:
ps -ef|grep snmpd
stopsrc -s snmpd
stopsrc -s aixmibd
stopsrc -s hostmibd
stopsrc -s snmpmibd
startsrc -s snmpd
startsrc -s aixmibd
startsrc -s hostmibd
startsrc -s snmpmibd

5.Change net-snmp's conf file at /usr/local/net-snmp/share/snmp/snmpd.conf,add these lines as follow:
# Proxy IBM Agent Requests for port number
proxy -v 1 -c public 127.0.0.1:1610 1.3.6.1.4.1.2.2.1.1.0
proxy -v 1 -c public 127.0.0.1:1610 1.3.6.1.4.1.2.2.1.1.1.0
# Proxy iftable(IF-MIB: Interface Names & Stats), iptable and ifalias
proxy -v 1 -c public 127.0.0.1:1610 .1.3.6.1.2.1
proxy -v 1 -c public 127.0.0.1:1610 .1.3.6.1.2.1.4.20.1
# Proxy RFC1213-MIB (Route Info)
proxy -v 1 -c public 127.0.0.1:1610 .1.3.6.1.2.1.4.21.1
# Proxy SysUptime (netsnmp doesn't work)
proxy -v 1 -c public 127.0.0.1:1610 1.3.6.1.2.1.25.1.1.0
# Proxy the SNMP Descr so OS shows up properly in cacti parsing
proxy -v 1 -c public 127.0.0.1:1610 .1.3.6.1.2.1.1.1.0

this step is to use net-snmp's proxy to get the value which get from aix's snmpd.

6.start your net-snmp by this command line:
/usr/local/net-snmp/sbin/snmpd -I -interfaces -f -Le

And NOW,you can get the interfaces's value by ucd 00 Lan (Verbose Query)!

Hope this would help you! Merry Christmas!
Sorry for my english!
wilorc
Posts: 1
Joined: Wed Aug 05, 2009 5:08 am

Thanks

Post by wilorc »

This really helped me. I can now snmp poll iftable. Fantastic!
User avatar
nrakis0
Posts: 13
Joined: Sun Feb 21, 2010 7:49 pm
Location: sydney australia

some clarification

Post by nrakis0 »

I followed the instructions given, i have exactly the same problem as the writer

one detail please. i get no results yet & the command

on step six 6) snmpd -I -interfaces -f -Le is not valid

may i ask what is the valid aix command and what do you mean by interfaces?

nr2
same error as before however: (what am i missing ?)

Running data query [17].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/export/home/cacti/htdocs/cacti/resource/snmp_queries/aix_fs.xml'
+ XML file parsed ok.
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.4.1.2.6.191.6.2.1.1'
+ No SNMP data returned
+ Found data query XML file at '/export/home/cacti/htdocs/cacti/resource/snmp_queries/aix_fs.xml'
+ Found data query XML file at '/export/home/cacti/htdocs/cacti/resource/snmp_queries/aix_fs.xml'
+ Found data query XML file at '/export/home/cacti/htdocs/cacti/resource/snmp_queries/aix_fs.xml'
tracky2007
Posts: 34
Joined: Thu Dec 27, 2007 3:07 am

Post by tracky2007 »

oh~~~so long to meet u again~~~^_^

it's work for aix5307 and above version~~~do not work for 5305.......
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests