|
|
|
|
|
MIB Install into AIX SNMP MIB Tree for Performance Toolbox
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
Run
ipcrm –m command to remove shared memory areas that begin with
0x78
Run
‘slibclean’
edit
/etc/perf/xmservd.res and delete the “#” sign in front
of “domux”.
Run
‘xmpeek –l’ ( let it run for 30 seconds.)
Kill
-2 the xmservd process started from the xmpeek command.
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.
#
# Check existance of "xmservd" processes currently running
#
ps -ef | egrep -i "xm|filtd|topas"
ipcs -m | grep -i 0x78
# ipcrm -m
slibclean
if [[ ! -f /etc/perf/xmservd.res ]]; then
cat /usr/samples/perfagent/server/xmservd.res |
sed -e "s/^# *dosmux/dosmux/g" > /etc/perf/xmservd.res
fi
ls -l /etc/perf/xmservd.res
xmpeek -l; sleep 30
kill -2 `ps -ef -F pid,args |
grep xmservd |
grep -v grep |
awk '{ print $1 }'`
ps -ef | grep xmservd ; ls -l /etc/perf/xmservd.mib
ls -l /etc/mib*
cp /etc/mib.defs /etc/mib.defs.org
mosy -o /tmp/mib.defs /etc/perf/xmservd.mib
vi /etc/perf/xmservd.mib
mosy -o /tmp/mib.defs /etc/perf/xmservd.mib
cp /etc/mib.defs.org /etc/mib.defs
cat /tmp/mib.defs >> /etc/mib.defs
rm /tmp/mib.defs
grep "public" /etc/snmpd.conf
refresh -s snmpd
snmpinfo -md -v xmdLAN
if ! grep -i "xmservd" /etc/inetd.conf
then
echo "xmquery \
dgram \
udp \
wait \
root \
/usr/bin/xmservd \
xmservd -p3" >> /etc/inetd.conf
tail /etc/inetd.conf
fi
refresh -s inetd
#
# 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
|
|
|
|
|
|
|