Tuesday, January 18, 2011

Which HMC is controlling my LPAR?

To figure out which HMC is controlling a particular LPAR.

Login to a LPAR and use either of commads

$ /usr/sbin/rsct/bin/rmcdomainstatus -s ctrmc
I a 0x3b7a655c73b1d930 0001 XX.XX.XX.XX ( Where XX.XX.XX.XX is the IP address of HMC).

or

$lsrsrc IBM.ManagementServer
Resource Persistent Attributes for IBM.ManagementServer
resource 1:
Name = 'XX.XX.XX.XX"
Hostname = "XX.XX.XX.XX"
ManagerType = "HMC"
LocalHostname = "lparname"
ClusterTM = "9078-160"
ClusterSNum = ""
ActivePeerDomain = ""

Thursday, January 13, 2011

Hey who dumped this core (AIX)

4 ways to find out .
1)
$)file /home/fmc/core
/home/fmc/core: AIX core file fulldump 32-bit, fmcemain

2)lquerypv -h /home/fmc/core 6b0 64
000006B0 7FFFFFFF FFFFFFFF 7FFFFFFF FFFFFFFF |................|
000006C0 00000000 000007D0 7FFFFFFF FFFFFFFF |................|
000006D0 00120000 13DE5FF8 00000000 00000005 |......_.........|
000006E0 666D6365 6D61696E 00000000 00000000 |fmcemain........|
000006F0 00000000 00000000 00000000 00000000 |................|
00000700 00000000 00000000 00000000 00000481 |................|
00000710 00000000 0000001B 00000000 00000481 |................|


3)
/usr/lib/ras/check_core /home/fmc/core
/usr/lib/libc_r.a
/usr/lpp/fmc/lib/libfmckernl.a
/usr/lpp/fmc/lib/libfmccdfms.a
/usr/lpp/fmc/lib/libfmceserv.a
/usr/lpp/fmc/lib/libfmcsbprf.a
/usr/lpp/fmc/lib/libfmcsfrm.a
/usr/lpp/fmc/lib/libfmcsntsv.a
/usr/lpp/fmc/lib/libfmcscbrg.a
/usr/lpp/fmc/lib/libfmcsfrxl.a
/usr/lpp/fmc/lib/libfmcstrc.a
/usr/lpp/fmc/lib/libfmccdvbs.a
/usr/lpp/fmc/lib/libfmcsfrec.a
/usr/lpp/fmc/lib/libfmccddrf.a
/usr/lib/libcrypt.a
/usr/lib/libC.a
/home/db2inst1/sqllib/lib/libicuuc24.a
/usr/lib/libdl.a
/usr/lib/libimqb23ia_r.a
/usr/lib/libimqs23ia_r.a
/usr/lpp/fmc/lib/libfmccmqqm.a
/usr/lpp/fmc/lib/libfmccfmsp.a
/usr/lpp/fmc/lib/libfmccmqfr.a
/usr/lpp/fmc/lib/libfmccdxmm.a
/usr/lpp/fmc/lib/libfmccdvmq.a
/usr/lpp/fmc/lib/libfmcemrec.a
/usr/lpp/fmc/lib/libfmcmcore.a
/usr/lpp/fmc/lib/libfmcssrva.a
/usr/lpp/fmc/lib/libfmcssrvb.a
/usr/lpp/fmc/lib/libfmcecoif.a
/usr/lpp/fmc/lib/libfmcdtom.a
/usr/lpp/fmc/lib/libfmcsgnrl.a
/usr/lpp/fmc/lib/libfmcecimp.a
/usr/lpp/fmc/lib/libfmcdetom.a
/usr/lpp/fmc/lib/libfmcsrpl.a
/usr/lpp/fmc/lib/libfmcsdctx.a
/usr/lpp/fmc/lib/libfmcmsvr.a
/usr/lpp/fmc/lib/libfmccdmgr.a
/usr/lpp/fmc/lib/libfmcsfrmc.a
/usr/lpp/fmc/lib/libfmcsmsgp.a
/usr/lpp/fmc/lib/libfmcstxct.a
/usr/lpp/fmc/lib/libfmccdtrc.a
/home/db2inst1/sqllib/lib/libicudata24.a
/usr/lib/libmqmcs_r.a
/usr/lib/libmqm_r.a
/usr/lpp/fmc/lib/libfmccdfsp.a
/usr/lpp/fmc/lib/libfmcstdv.a
/usr/lpp/fmc/lib/libfmcmfola.a
/usr/lpp/fmc/lib/libfmcdkrnl.a
/usr/lpp/fmc/lib/libfmcmstru.a
/usr/lpp/fmc/lib/libfmcmpeu.a
/usr/lpp/fmc/lib/libfmcdbac1.a
/usr/lpp/fmc/lib/libfmcdbac2.a
/usr/lpp/fmc/lib/libfmcdstom.a
/usr/lpp/fmc/lib/libfmcyctnr.a
/usr/lpp/fmc/lib/libfmcpreso.a
/usr/lpp/fmc/lib/libfmcixres.a
/usr/lpp/fmc/lib/libfmcdstmt.a
/usr/lpp/fmc/lib/libfmcmfobe.a
/usr/lpp/fmc/lib/libfmcdctom.a
/usr/lpp/fmc/lib/libfmcdptom.a
/usr/lpp/fmc/lib/libfmciqry.a
/usr/lpp/fmc/lib/libfmcikrnl.a
/usr/lpp/fmc/lib/libfmcdbatc.a
/usr/lib/libiconv.a
/usr/lib/libmqz_r.a
/usr/lpp/fmc/lib/libfmckext.a
/home/db2inst1/sqllib/lib/libxml4c53.a
/home/db2inst1/sqllib/lib/libdb2.a
/usr/lpp/fmc/lib/libfmcky21e.a
/usr/lpp/fmc/lib/libfmcpqery.a
/usr/lib/libmqmzse.a
/home/db2inst1/sqllib/lib/libXercesMessages53.a
/usr/lib/libpthreads_compat.a
/home/db2inst1/sqllib/lib/libdb2osse.a
/home/db2inst1/sqllib/lib/libdb2trcapi.a
/home/db2inst1/sqllib/lib/libdb2install.a
/home/db2inst1/sqllib/lib/libdb2g11n.a
/home/db2inst1/sqllib/lib/libdb2genreg.a
/home/db2inst1/sqllib/lib/libdb2locale.a
/home/db2inst1/sqllib/lib/libdb2dascmn.a
/usr/lib/libpthreads.a
/home/db2inst1/sqllib/lib/libdb2osse_db2.a
/usr/lib/nls/loc/en_US
/usr/lib/libi18n.a
/usr/mqm/lib/amqzaax_r
/usr/lib/libmqmax_r.a
/home/db2inst1/sqllib/lib32/icc/icclib/libicclib.so
/home/db2inst1/sqllib/lib32/icc/osslib/libcrypto.so.0.9.7
/home/db2inst1/sqllib/security32/plugin/IBM/client/IBMOSauthclient.a
fmcemain

4)dbx -C /home/fmc/core

Wednesday, January 12, 2011

Trace on VIO commands.

VIO command shell is a restricted shell(like HMC shell). If anybody wondering what AIX commands will be executed beneath VIO commands?
Here is the answer
example:
$ export CLI_DEBUG=33

$ lsmap -all

AIX: "lsdev -c adapter -t IBM,v-scsi-host -s vdevice -F "name" | wc -l -c"
AIX: "lsdev -c adapter -t IBM,v-scsi-host -s vdevice -F "name""
AIX: "lsdev -C -l vhost0 -F "physloc""
AIX: "lsdev -p vhost0 -F "name" | wc -l -c"
AIX: "lsdev -p vhost0 -F "name""
AIX: "lsattr -E -l vtscsi0 -F "value" -a aix_tdev,LogicalUnitAddr"
SVSA Physloc Client


-
$ export CLI_DEBUG=33
$ mirrorios -f hdisk1
AIX: "lsvg -p rootvg"
AIX: "lsvg -p rootvg | awk '{print $1}' | wc -l -c"
AIX: "lsvg -p rootvg | awk '{print $1}'"
AIX: "lsvg -l rootvg "
AIX: "lsvg -l rootvg | grep boot | awk '{print $1}'"
AIX: "lsvg -M rootvg "
AIX: "lsvg -M rootvg | grep hd5 | awk '{print $2}' | awk '{FS=":"}{print $3}'"
AIX: "mirrorvg -c 2 rootvg hdisk1 "