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

This procedure describes how to setup the AIX Workload Manager (WLM) and Jtopas to store trending information to a central location via NFS.

Assumptions:

  • WLM is configured and running on the AIX system to be monitored.
  • An NFS directory exists for the the purpose of accepting WLM/Jtopas trending information from AIX system.
  • The NFS directory is mountable by the AIX system to be monitored.
  • The NFS directory is exported from one of the NIM servers.

At the time of this writing, the NIM servers in both data centers are being used as the central storage location, via NFS exported directories, for the monitoring information generated from WLM and Jtopas on each AIX system. The commands to mount the NFS directories being exported from each NIM server to an AIX system to be monitored are:

mxfapnim01:

mount mxfapnim01:/prfpmce0 /prfpmce0

mxdapnim01:

mount mxdapnim01:/prfdmce0 /prfdmce0


In the following procedure, EXAMPLE system names are used to illustrate the commands used to perform the configuration. The NIM server "mxfapnim01" is used as the EXAMPLE NFS server name, and "mxfapora01" is used as the EXAMPLE AIX system name to be monitored.

  1. On the NIM server, create a shell variable to contain the system name of the AIX system to be monitored:

    mxfapnim01:

    AIXSYS="mxfapora01"    # AIX system to be Monitored
    

  2. Create directories on the NFS server to store the WLM and Jtopas trending information for the AIX system to be monitored:

    mxfapnim01:

    mkdir -p /prfpmce0/${AIXSYS}/Top
    mkdir -p /prfpmce0/${AIXSYS}/wlm
    find /prfpmce0/${AIXSYS} -exec ls -ld {} \;
    

  3. On the AIX system to be monitored, create shell variables to contain the system name of the AIX system to be monitored and the system name of the NIM server where the monitoring information will be stored:

    mxfapora01:

    /usr/bin/ksh93
    AIXSYS="$( hostname )"    # AIX system to be Monitored
    AIXSYS="${AIXSYS%%.*}"
    NFSSRV="mxfapnim01"    # NIM Server with NFS exported filesystem for data storage
    print ${AIXSYS}
    print ${NFSSRV}
    

  4. On the AIX system to be monitored, create the NFS mount point to be automatically mounted at boot time:

    mxfapora01:

    /usr/sbin/mknfsmnt -f /prfpmce0 -d /prfpmce0 -h ${NFSSRV} -M sys -B -A -t rw -w bg -Y -X -S -j -q -g
    grep -p "/prfpmce0:" /etc/filesystems
    df
    

  5. On the AIX system to be monitored, modify the "/etc/inittab" to contain the startup commands for WLM and for Jtopas:

    mxfapora01:

    rmitab ptxwlm
    rmitab ptxtrend
    mkitab "ptxwlm:2:once:/usr/bin/xmwlm -d /prfpmce0/${AIXSYS}/wlm -n xmwlm > /dev/null 2>&1 # Start xmwlm"
    mkitab "ptxtrend:2:once:/usr/bin/xmtrend -f /etc/perf/jtopas.cf -d /prfpmce0/${AIXSYS}/Top -n jtopas > /dev/null 2>&1 # Start trend"
    egrep "^ptxwlm:|^ptxtrend:" /etc/inittab
    

  6. On the AIX system to be monitored, stop any existing "xmwlm" or "xmtrend" processes, then manually start the WLM and Jtopas trending processes or reboot the system and verify the processes are started. To manually start the WLM and Jtopas trending processes:

    mxfapora01:

    for PID in  $( ps -ef -F pid,args | egrep 'xmwlm|xmtrend' | grep -v grep | awk '{ print $1 }' )
    do  
        print "Killing process ${PID}"
        kill ${PID}
        sleep 2
        kill -9 ${PID}   
    done
    ps -ef -F pid,args | egrep 'xmwlm|xmtrend'
    
    nohup /usr/bin/xmwlm -d /prfpmce0/${AIXSYS}/wlm -n xmwlm > /dev/null 2>&1 &
    sleep 2
    nohup /usr/bin/xmtrend -f /etc/perf/jtopas.cf -d /prfpmce0/${AIXSYS}/Top -n jtopas > /dev/null 2>&1 &
    sleep 2
    find /prfpmce0/${AIXSYS} -exec ls -ld {} \;
    jobs
    

  7. Cleanup any shell variables created during the execution of this procedure:

    mxfapora01:

    umount /prfdmce0
    /usr/sbin/rmnfsmnt -f /prfdmce0 -B
    unset AIXSYS
    unset NFSSRV
    

    mxfapnim01:

    unset AIXSYS
    


In the following procedure, EXAMPLE system names are used to illustrate the commands used to perform the configuration. The NIM server "mxdapnim01" is used as the EXAMPLE NFS server name, and "mxdadora01" is used as the EXAMPLE AIX system name to be monitored.

  1. On the NIM server, create a shell variable to contain the system name of the AIX system to be monitored:

    mxdapnim01:

    AIXSYS="mxdadora01"    # AIX system to be Monitored
    

  2. Create directories on the NFS server to store the WLM and Jtopas trending information for the AIX system to be monitored:

    mxdapnim01:

    mkdir -p /prfdmce0/${AIXSYS}/Top
    mkdir -p /prfdmce0/${AIXSYS}/wlm
    find /prfdmce0/${AIXSYS} -exec ls -ld {} \;
    

  3. On the AIX system to be monitored, create shell variables to contain the system name of the AIX system to be monitored and the system name of the NIM server where the monitoring information will be stored:

    mxdadora01:

    AIXSYS="$( hostname )"    # AIX system to be Monitored
    AIXSYS="${AIXSYS%%.*}"
    NFSSRV="mxfapnim01"    # NIM Server with NFS exported filesystem for data storage
    print ${AIXSYS}
    print ${NFSSRV}
    

  4. On the AIX system to be monitored, create the NFS mount point to be automatically mounted at boot time:

    mxdadora01:

    /usr/sbin/mknfsmnt -f /prfdmce0 -d /prfdmce0 -h ${NFSSRV} -M sys -B -A -t rw -w bg -Y -X -S -j -q -g
    grep -p "/prfdmce0:" /etc/filesystems
    df
    

  5. On the AIX system to be monitored, modify the "/etc/inittab" to contain the startup commands for WLM and for Jtopas:

    mxdadora01:

    rmitab ptxwlm
    rmitab ptxtrend
    mkitab "ptxwlm:2:once:/usr/bin/xmwlm -d /prfdmce0/${AIXSYS}/wlm -n xmwlm > /dev/null 2>&1 # Start xmwlm"
    mkitab "ptxtrend:2:once:/usr/bin/xmtrend -f /etc/perf/jtopas.cf -d /prfdmce0/${AIXSYS}/Top -n jtopas > /dev/null 2>&1 # Start trend"
    egrep "^ptxwlm:|^ptxtrend:" /etc/inittab
    

  6. On the AIX system to be monitored, stop any existing "xmwlm" or "xmtrend" processes, then manually start the WLM and Jtopas trending processes or reboot the system and verify the processes are started. To manually start the WLM and Jtopas trending processes:

    mxdapora01:

    for PID in  $( ps -ef -F pid,args | egrep 'xmwlm|xmtrend' | grep -v grep | awk '{ print $1 }' )
    do  
        print "Killing process ${PID}"
        kill ${PID}
        sleep 2
        kill -9 ${PID}   
    done
    ps -ef -F pid,args | egrep 'xmwlm|xmtrend'
    
    nohup /usr/bin/xmwlm -d /prfdmce0/${AIXSYS}/wlm -n xmwlm > /dev/null 2>&1 &
    sleep 2
    nohup /usr/bin/xmtrend -f /etc/perf/jtopas.cf -d /prfdmce0/${AIXSYS}/Top -n jtopas > /dev/null 2>&1 &
    sleep 2
    find /prfdmce0/${AIXSYS} -exec ls -ld {} \;
    jobs
    

  7. Cleanup any shell variables created during the execution of this procedure:

    mxdadora01:

    umount /prfpmce0
    /usr/sbin/rmnfsmnt -f /prfdmce0 -B
    unset AIXSYS
    unset NFSSRV
    

    mxdapnim01:

    unset AIXSYS
    

This file last modified 11/02/10

-
WLM/Jtopas Trending Setup
-
 


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