I'll be able to provide as I'm not an AIX admin but this has worked for me (and Rony will hopefully provide us with a much needed template for Disk IO information via SNMP)
[IF THERE ARE ERRORS IN THIS HOW-TO SEND CORRECTIONS TO ME VIA A PRIVATE MESSAGE - this will allow me to keep this how-to as clean as possible. Support questions, naturally, should be dealt with publicly]
This is only known to work on very late versions of AIX, my systems are:
Code: Select all
# oslevel -s
5300-05-04
Verify that snmpd points to snmpdv3ne:
Code: Select all
# which snmpd
/usr/sbin/snmpd
# ls -altr /usr/sbin/snmpd
lrwxrwxrwx 1 root system 9 Apr 12 2005 /usr/sbin/snmpd -> snmpdv3ne
Change:
Code: Select all
xmdaily:2:once:/usr/bin/xmwlm -L 2>&1 >/dev/null # Start xmwlm daily recording
Code: Select all
: xmdaily:2:once:/usr/bin/xmwlm -L 2>&1 >/dev/null # Start xmwlm daily recording
topasrec:2:once:/usr/bin/topas -R 2>&1 >/dev/null # Start topas recording
Code: Select all
init q
Code: Select all
xmquery dgram udp wait root /usr/bin/xmtopas xmtopas -p3
Code: Select all
refresh -s inetd
Code: Select all
"gated" 1.3.6.1.4.1.2.3.1.2.1.2 "gated_password"
"dpid2" 1.3.6.1.4.1.2.3.1.2.2.1.1.2 "dpid_password"
"muxatmd" 1.3.6.1.4.1.2.3.1.2.3.1.1 "muxatmd_password"
"xmservd" 1.3.6.1.4.1.2.3.1.2.1.3 "xmservd_pw"
changing "$private" to a community name of your choosing; views may or may not be valid on yours or any system; spacing
of values has been discussed on various sites, in mine they are deliberate tabs but you may need to use a space)
Code: Select all
VACM_GROUP group1 SNMPv1 public -
VACM_GROUP group1 SNMPv1 $private -
VACM_GROUP group1 SNMPv2c $private -
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 -
# exclude snmpv3 related MIBs from the default view
VACM_VIEW defaultView snmpModules - included -
VACM_VIEW defaultView 1.3.6.1.4 - included -
VACM_VIEW defaultView 1.3.6.1.6 - included -
# exclude aixmibd managed MIBs from the default view
VACM_VIEW defaultView 1.3.6.1.4.1.2.6.191 - included -
VACM_VIEW defaultView 1.3.6.1.6.3.1.1.5 - included -
VACM_VIEW defaultView 1.3.6.1.4.1.2021 - included -
VACM_VIEW defaultView 1.3.6.1.4.1.2.3.1.2.2.2.1.4 - included -
VACM_ACCESS group1 - - noAuthNoPriv SNMPv1 defaultView - defaultView -
VACM_ACCESS group1 - - noAuthNoPriv SNMPv2c defaultView - defaultView -
NOTIFY notify1 traptag trap -
TARGET_ADDRESS Target1 UDP 127.0.0.1 traptag trapparms1 - - -
TARGET_PARAMETERS trapparms1 SNMPv1 SNMPv1 public noAuthNoPriv -
COMMUNITY public public noAuthNoPriv 127.0.0.1 255.255.255.255 -
COMMUNITY public public noAuthNoPriv <local IP address> 255.255.255.255 -
COMMUNITY public public noAuthNoPriv <local IP address #2, if dual-homed> 255.255.255.255 -
COMMUNITY $private $private noAuthNoPriv <IP address of Cacti server or management network - change mask accordingly> 255.255.255.0 -
DEFAULT_SECURITY no-access - -
logging file=/usr/tmp/snmpdv3.log enabled
logging size=0 level=0
smux 1.3.6.1.4.1.2.3.1.2.1.2 gated_password # gated
snmpd smuxtimeout=200 #muxatmd
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.3 xmservd_pw #xmservd
smux 1.3.6.1.4.1.2.3.1.2.2.1.1.2 dpid_password #dpid
Code: Select all
echo "dosmux" > /usr/lpp/perfagent/xmservd.res
Code: Select all
stopsrc -s snmpd;stopsrc -s dpid2;stopsrc -s aixmibd;stopsrc -s hostmibd;stopsrc -s snmpmibd
Code: Select all
startsrc -s snmpd;startsrc -s dpid2;startsrc -s aixmibd;startsrc -s hostmibd;startsrc -s snmpmibd
Code: Select all
nohup topas -C &
Code: Select all
ps -ef | grep top
Code: Select all
kill -2 <xmtopas pid>
Code: Select all
cp /etc/mib.defs /etc/mib.defs.bak
Change:
Code: Select all
xmdNFSV3ClntReaddir+ OBJECT-TYPE
Code: Select all
xmdNFSV3ClntReaddirplus OBJECT-TYPE
Code: Select all
xmdNFSV3SvrReaddir+ OBJECT-TYPE
Code: Select all
xmdNFSV3SvrReaddirplus OBJECT-TYPE
Code: Select all
mosy -o /tmp/mib.defs /etc/perf/xmservd.mib
Code: Select all
cat /tmp/mib.defs >> /etc/mib.defs
Code: Select all
stopsrc -s snmpd;stopsrc -s dpid2;stopsrc -s aixmibd;stopsrc -s hostmibd;stopsrc -s snmpmibd
Code: Select all
startsrc -s snmpd;startsrc -s dpid2;startsrc -s aixmibd;startsrc -s hostmibd;startsrc -s snmpmibd
With topas still running you should now be able to walk those new OIDs (http://www.oidview.com/mibs/2/XMSERVD-PERF-MIB.html)
from your Cacti Server. You do NOT need topas running in order to have this access, but xmtopas is a must (in other
words, now that you have verified you can see those OIDs you may press "q" on your AIX server and exit topas).
[Author is still unsure of how to get xmtopas to load after a reboot - as of right now you must re-run topas -C after bootup]