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.

Monday, 17 February 2014

HMC Commands for Fresher




Hi Folks,

Here is the basic commends which help you to access HMC.

NOTE that execution of HMC commands can be very very slow.


First log in on the hmc via SSH using username hscroot, example command (from an AIX box):
ssh hscroot@hmctest
or
ssh hmctest -l hscroot

Note : while doing the ssh itself you can directly apply the commands
Eg: ssh hscroot@anrh0101 lslpars

To list status of all systems and LPARs connected to an HMC:
lslpars
lslpars --wide

To issue a soft reset to an LPAR:
chsysstate -m -r lpar -n -o reset


To close a console connection:
The session can be ended by typing
~ and . as the first characters on a line.

To view state and operator panel (LED/LCD display) of an LPAR:
lssyscfg -r lpar -m -n

To view state and operator panel (LED/LCD display) of a system running in FullSystemPartition mode (note the -n):
lssyscfg -r sys -n

To Start a terminal
mkvterm -m machine_name -p lpar - start a terminal

To Close a terminal
rmvterm -m machine_name -p lpar - close terminal connection

To reboot an lpar
chsysstate -r lpar -m machine_name -o shutdown --immed --restart -n lpar_name - reboot an lpar

To access LPAR console for diffrent Managed system from HMC

#vtmenu

Note : It will display a menu from that we have to choose our node.

To reboot the HMC:
hmcshutdown -t now -r

No comments:

Post a Comment