MIB Install into AIX SNMP MIB Tree for Performance Toolbox
Stop all suppliers ( xmservd, filtd, … ) and consumers ( topas, xmperf, … ) where perfagent.tools is upgraded.
Run ipcs –m command and check for shared memory segments that begin with 0x78
“ipcs –m | grep 0x78”
Run ipcrm –m command to remove shared memory areas that begin with 0x78
“ipcrm –m <segment id>
Run ‘slibclean’
edit /etc/perf/xmservd.res and delete the “#” sign in front of “domux”.
If /etc/perf/xmservd.res does not exist, then copy if from /usr/samples/perfagent/server/xmservd.res and edit it.
Run ‘xmpeek –l’ ( let it run for 30 seconds.)
Kill -2 the xmservd process started from the xmpeek command.
Step 10 will create a file called xmservd.mib under /etc/perf.
Install MIB definition
Run “cp /etc/mib.defs /etc/mib.defs.orig”
Run “mosy –o /tmp/mib.defs /etc/perf/xmservd.mib”
Run “cp /etc/mib.defs.orig /etc/mib.defs”
Run “cat /tmp/mib.defs >> /etc/mib.defs”
Run “rm /tmp/mib.defs”
Test the xmservd/SMUX interface with the SNMP program snmpinfo.
Run “snmpinfo –md –v xmdLAN”
#
# Check existance of "xmservd" processes currently running
#
ps -ef | egrep -i "xm|filtd|topas"
ipcs -m | grep -i 0x78
# ipcrm -m
#
# Create/Reset user "xmon"
#
NEWXMONID=$( echo "xmon" | sum | sed -e "s/ //g" )
if id xmon
then
OLDXMONID="$( id xmon | awk '{ print $1 }' | sed -e "s/[^0-9]//g" )"
[[ -f /home/xmon/.rhosts ]] && chown xmon:staff /home/xmon/.rhosts
find / -user xmon -exec ls -ld {} \; 2>/dev/null
ps -ef | grep -i xmon
NEWXMONID=$( echo "xmon" | sum | sed -e "s/ //g" )
chuser id=${NEWXMONID} xmon
id xmon
find /home -user xmon -exec ls -ld {} \;
find /home -user ${OLDXMONID} -exec ls -ld {} \;
find /home -user ${OLDXMONID} -exec chown xmon:staff {} \; -print
find /home -user xmon -exec ls -ld {} \;
unset OLDXMONID
else
mkuser id="${NEWXMONID}" pgrp='staff' gecos='xmonitor ' xmon
pwdadm -c xmon
fi
cd /home
[[ -d /home/xmon ]] &&
chown -R xmon:staff xmon
cd /home/xmon &&
[[ ! -f .rhosts ]] &&
echo "eperf cricket" > .rhosts &&
echo "eperf.tu.com cricket" >> .rhosts
chown xmon.staff /home/xmon/.rhosts
chmod 600 /home/xmon/.rhosts
pwd
ls -al