Tanti Technology

My photo
Bangalore, karnataka, India
Multi-platform UNIX systems consultant and administrator in mutualized and virtualized environments I have 4.5+ years experience in AIX system Administration field. This site will be helpful for system administrator in their day to day activities.Your comments on posts are welcome.This blog is all about IBM AIX Unix flavour. This blog will be used by System admins who will be using AIX in their work life. It can also be used for those newbies who want to get certifications in AIX Administration. This blog will be updated frequently to help the system admins and other new learners. DISCLAIMER: Please note that blog owner takes no responsibility of any kind for any type of data loss or damage by trying any of the command/method mentioned in this blog. You may use the commands/method/scripts on your own responsibility. If you find something useful, a comment would be appreciated to let other viewers also know that the solution/method work(ed) for you.

Thursday, 12 September 2013

HMC basic commands

Show managed frames attached to a hmc
lssyscfg -r sys -F name:type_model:serial_num

Show managed lpars attached to a frame
lssyscfg -m -r lpar -F name

Show profiles from a specific lpar
lssyscfg -r prof -m --filter "lpar_names="

Shutdown lpar from HMC
chsysstate -m -r lpar -n -o shutdown –immed

To perform a partition shutdown using the shutdown command on the client operating system
chsysstate -r lpar -o osshutdown –n -m

To perform a delayed partition shut down (white button shut down):
chsysstate -r lpar -o shutdown –n -m

To perform an immediate partition shutdown (operator panel function :
chsysstate -r lpar -o shutdown --immed –n -m

To perform an immediate restart of a partition (operator panel function 3):
chsysstate -r lpar -o shutdown --immed --restart –n -m

To perform a restart of a partition after initiating a dump (operator panel function 22):
chsysstate -r lpar -o dumprestart –n -m

Boot lpar
chsysstate -r lpar -m -o on -n -f

To perform a partition boot into system management services:
chsysstate -r lpar -m -o on -n -b sms

To perform a partition boot into diagnostic with default bootlist
chsysstate -r lpar -m -o on -n -b dd

To perform a partition boot into diagnostic with stored bootlist
chsysstate -r lpar -m -o on -n -b ds

To perform a partition boot into diagnostic with stored bootlist
chsysstate -r lpar -m -o on -n -b ds

To perform a partition boot into open firmware OK prompt
chsysstate -r lpar -m -o on -n -b of

To perform a partition boot into normal mode
chsysstate -r lpar -m -o on -n -b norm

Show free processor/memory/adapters on specific frame/lpar

Proc
lshwres -r proc -m --level sys
lshwres -r proc -m --level lpar

Mem
lshwres -r mem -m --level sys
lshwres -r mem -m --level lpar

Adapters
lshwres -r hca -m --level sys
lshwres -r hca -m --level lpar

Show io resources in a frame
lshwres -r io --rsubtype unit -m
lshwres -r io --rsubtype bus -m
lshwres -r io --rsubtype slot -m


No comments:

Post a Comment