How to configure snmpv3 in aix

This is going to be pretty short and can be expanded upon on an as-needed basis, not sure how much support
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:[/ b]

Verify that snmpd points to snmpdv3ne:

Code: Select all

Edit / etc / inittab
Change:

Code: Select all

to

Code: Select all

Reload the inittab: Edit /etc/inetd.conf

Code: Select all

Refresh the inetd subsystem: Edit /etc/snmpd.peers

Code: Select all

Edit /etc/snmpdv3.conf (these changes should also provide a more secure snmpd environment and allow for snmp v2c access by
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

Create the xmservd.res file for xmtopas to talk via smux:

Code: Select all

Stop your snmp agents:

Code: Select all

Start the snmp agents. Order is important:

Code: Select all

Start the topas monitor ("-C" will make sure that xmtopas is ran as a background process; "nohup" will disconnect it from your terminal; "&" runs topas in the background). List all processes containing "top" and find the pid for "xmtopas -p3". Send an interrupt signal to the process, which will create "/etc/perf/xmservd.mib". Might be a good idea to backup this file, trust me.

Code: Select all

Edit /etc/perf/xmservd.mib
Change: to

Code: Select all

and to

Code: Select all

Compile the new MIB file in an AIX suitable form.

Code: Select all

Append the new OIDs to the original mib.defs file.

Code: Select all

Stop your snmp agents:

Code: Select all

Start the snmp agents. Order is important:

Code: Select all

Kill all processes related to topas and xmtopas, then start topas again with the "-C" option.
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]