Basic (Useful) TSM Commands
Sometimes I need to analyse *something* in TSM (I’m very noob with TSM) and I never remember any commands
Sometimes I need to analyse *something* in TSM (I’m very noob with TSM) and I never remember any commands
I don’t know if this works in any unix, but for me works in AIX and Linux.
Sorting CPU usage:
# ps -eo pid,user,%cpu,args --sort %cpu
Source: Kairo Araujo
I have a personal diagnostic list to exactly make a QA (Quality Assurance) or to do a detailed diagnostic. Its very useful if you have a lot of machines to see. Here we go (its nice if you can make a script and use it, I have one, of course)
It’s good to check some things after reboot an AIX system, lets see:
1) Verify what disks are on rootvg.
2) Rewrite the bootdisks of rootvg;
3) Verify the boot order;
4) Setting up the verified boot order;
1) Verify what disks are on rootvg:
# lspv | grep rootvg
hdisk0 00012998b87370f6 rootvg active
hdisk1 00012998180a047e rootvg active
2) Rewrite the bootdisks of rootvg:
# bosboot -ad hdisk0
bosboot: Boot image is 20726 512 byte blocks.
# bosboot -ad hdisk1
bosboot: Boot image is 20726 512 byte blocks.
3) Verify the boot order:
# bootlist -m normal -o
hdisk0 blv=hd5
4) Setting up the verified boot order:
Look where the dump partition are located:
# lslv -l lg_dumplv
lg_dumplv:N/A
PV COPIES IN BAND DISTRIBUTION
hdisk1 016:000:000 0% 016:000:000:000:000
In this case, is better the hdisk1 be the first disk on boot order (btw, the two disks will boot at the same time, but only one will be the first identificated):
# bootlist -m normal hdisk1 hdisk0
# bootlist -m normal -o
hdisk1 blv=hd5
hdisk0 blv=hd5
Source: Kairo Araujo