Posts

Showing posts from December, 2013

Administering Multipathing Devices Through mpathadm Commands

The Sun Solaris OS multipathing support can be determined and configured by using mpathadm commands. Starting with Solaris 10 Update 3, the mpathadm command enables multipathing administration through the ANSI standard Multipath Management API. The terms used in this chapter to denote a path, initiator port, target port, and logical unit are consistent with the T10 specification. This chapter contains the following sections: To Get a List of Multipathing Support That Can Be Administered by the mpathadm Command The multipathing support is identified with the Multipath Management API plug-in library name. Run the mpathadm list mpath-support command. # mpathadm list mpath-support mpath-support: libmpscsi_vhci.so (Only one result is shown in the preceding example.)   To Get the Multipathing Support Properties The multipathing support properties are associated with Multipath Management API plug-in properties. 1. Run the mpathadm list mpat...

syscheck stability script for AIX

#!/usr/bin/ksh # #-------------------------------------------------- # Script to validate the rootvg and OS information # # Written by : Rameshkumar Pitchairaj #          : IBM Singapore Ptd Ltd #-------------------------------------------------- # Instruction on usage # # 1. Ensure execute permission for the script is there. If not, execute "chmod 755 syscheck_stability.sh" # 2. ./syscheck_stability.sh > `hostname`_syscheck.txt 2>&1 # ------------------------------------------------- # # Get common values # hname=`hostname` osversion=`oslevel -r` dttim=`date '+%Y%m%d-%H:%M'` # # Variables # tmp_dir=/tmp tmpfile=${tmp_dir}/rootcheck.$$ # echo "Checking for rootvg related information....Pls wait...." lsvg rootvg > ${tmpfile}.lsvg lsvg -l rootvg | sed '1,2 d' > ${tmpfile}.lsvgl lsvg -p rootvg | sed '1,2 d' > ${tmpfile}.lsvgp for i in `awk '{print $1}' ${tmpfile}.lsvgp` do  lspv -l $i > ${tmpfile}.lspvl${i} done he...