Home About BC DR HA Support Training Download
You are here: Home/ GlobalSysAdmin/ AIX/ Please Login or Register

-
Current Location
-

js
  GlobalSysAdmin
    AIX
-
AIX Admin Methodology
Global Consolidation Project
All AIX admins should join
www.aixexpert.com


Join our LinkedIn Group
AIX Advanced Technical Experts
Contract Opportunities

www.LinkedIn.com

-
digg Digg this page
del.icio.us Post to del.icio.us
Slashdot Slashdot it!


LPAR Leasing
Lease an AIX / i5 LPAR
Reduce your costs

www.mtxia.com

Server Leasing
Lease a Server off-site
Reduce your costs

www.mtxia.com

Data Center Automation
Business Continuity and DR
Virtualization/Consolidation

www.mtxia.com

HMC Service
Hardware Management Console
Manage Remote AIX / i5 LPARs

www.siteox.com

Business Web Site Hosting
$3.99 / month includes Tools,
Shopping Cart, Site Builder

www.siteox.com

Disaster Recovery
Small Business Oriented
Off-Site Facilities

www.mtxia.com

IBM pSeries / iSeries
Reduce your Costs
Off-Site Server Hosting

www.mtxia.com

MIB Install into AIX SNMP MIB Tree for Performance Toolbox

MIB Install into AIX SNMP MIB Tree for Performance Toolbox


  1. Stop all suppliers ( xmservd, filtd, … ) and consumers ( topas, xmperf, … ) where perfagent.tools is upgraded.

  2. Run ipcs –m command and check for shared memory segments that begin with 0x78

    • “ipcs –m | grep 0x78”

  1. Run ipcrm –m command to remove shared memory areas that begin with 0x78

    • “ipcrm –m <segment id>

  1. Run ‘slibclean’

  2. 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.

  1. Run ‘xmpeek –l’ ( let it run for 30 seconds.)

  2. Kill -2 the xmservd process started from the xmpeek command.

    • Step 10 will create a file called xmservd.mib under /etc/perf.

  1. 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”

  1. 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 

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 "mtxdoc cricket" > .rhosts &&
  echo "mtxdoc.mtxia.com cricket" >> .rhosts
chown xmon.staff /home/xmon/.rhosts
chmod 600 /home/xmon/.rhosts
pwd
ls -al


-
MIB install for Cricket and AIX 4.3.3
-
 


LPAR Leasing
Lease an AIX / i5 LPAR
Reduce your costs

www.mtxia.com

Server Leasing
Lease a Server off-site
Reduce your costs

www.mtxia.com

Data Center Automation
Business Continuity and DR
Virtualization/Consolidation

www.mtxia.com

HMC Service
Hardware Management Console
Manage Remote AIX / i5 LPARs

www.siteox.com

Business Web Site Hosting
$3.99 / month includes Tools,
Shopping Cart, Site Builder

www.siteox.com

FREE Domain Registration
included with Web Site Hosting
Tools, Social Networking, Blog

www.siteox.com

Disaster Recovery
Small Business Oriented
Off-Site Facilities

www.mtxia.com

IBM pSeries / iSeries
Reduce your Costs
Off-Site Server Hosting

www.mtxia.com