Вы находитесь на странице: 1из 4

http://www.ibm.

com/developerworks/wikis/display/LinuxP/HMC+command+line 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 <frame> -r lpar -F name To check firmware from command line lslic -t sys -m $frame -F mtms ecnumber activated_level installed_level accepted _level --header show profiles from a specific lpar lssyscfg -r prof -m <frame> --filter "lpar_names=<lpar>" shutdown lpar chsysstate -m <frame> -r lpar -n <lpar> -o shutdown immed

To perform a partition shutdown using the shutdown command on the client operati ng system chsysstate -r lpar -o osshutdown n <lpar> -m <frame> To perform a delayed partition shut down (white button shut down): chsysstate -r lpar -o shutdown n <lpar> -m <frame> To perform an immediate partition shutdown (operator panel function : chsysstate -r lpar -o shutdown --immed n <lpar> -m <frame> To perform an immediate restart of a partition (operator panel function 3): chsysstate -r lpar -o shutdown --immed --restart n <lpar> -m <frame> To perform a restart of a partition after initiating a dump (operator panel func tion 22): chsysstate -r lpar -o dumprestart n <lpar> -m <frame> boot lpar chsysstate -r lpar -m <frame> -o on -n <lpar> -f <profile> To perform a partition boot into system management services: chsysstate -r lpar -m <frame> -o on -n <lpar> -b sms To perform a partition boot into diagnostic with default bootlist chsysstate -r lpar -m <frame> -o on -n <lpar> -b dd To perform a partition boot into diagnostic with stored bootlist chsysstate -r lpar -m <frame> -o on -n <lpar> -b ds To perform a partition boot into diagnostic with stored bootlist chsysstate -r lpar -m <frame> -o on -n <lpar> -b ds To perform a partition boot into open firmware OK prompt chsysstate -r lpar -m <frame> -o on -n <lpar> -b of To perform a partition boot into normal mode chsysstate -r lpar -m <frame> -o on -n <lpar> -b norm show free processor/memory/adapters on specific frame/lpar lshwres -r proc -m <framename> --level sys lshwres -r proc -m <framename> --level lpar

lshwres -r mem -m <framename> --level sys lshwres -r mem -m <framename> --level lpar lshwres -r hca -m <framename> --level sys lshwres -r hca -m <framename> --level lpar show io lshwres lshwres lshwres resources in a frame -r io --rsubtype unit -m <frame> -r io --rsubtype bus -m <frame> -r io --rsubtype slot -m <frame>

LED display of an lpar lsrefcode -m pserver -r lpar --filter "lpar_names=mylpar" -F lpar_name:refcode To find which managed frame a lpar belongs for m in $(lssyscfg -r sys -F name); do echo $m ; lssyscfg -r lpar -m $m -F name :state ; done

mksyscfg -r prof -m <managed system> -o save -p <partition name> -n <profile nam e> --force

Backing up critical HMC data - Using the Command Line Interface =============================================================== Use the command : bkconsdata -r dvd

Backing up partition profile data - Using the Command Line Interface Use the command:bkprofdata -m <MTMS> -f dvd where <MTMS> is the machine type and serial number of the managed system.

Backing up critical HMC data - Using the GUI (WebSM) Interface Describes how to back up important console information to DVD, a remote system m ounted to the HMC file system (such as NFS), or a remote site through FTP. Using the HMC, you can back up all important data, such as the following: User-preference files User information HMC platform-configuration files

HMC log files HMC updates via Install Corrective Service Note: The archived data should be used only in conjunction with a reinstallation of the HMC from the product CDs. For information about how to reinstall the HMC , see Reinstalling the HMC machine code. The Backup function saves the HMC data stored on the HMC hard disk to DVD, a rem ote system mounted to the HMC file system (such as NFS), or a remote site throug h FTP. Back up the HMC after you have made changes to the HMC or to the informat ion associated with logical partitions. Note: The DVD must be formatted in the DVD-RAM format before data can be saved t o the DVD. To back up the HMC, you must be a member of one of the following roles: super administrator operator service representative To back up the HMC, do the following: 1) In the Navigation area, click the Licensed Internal Code Maintenance icon. 2) In the Contents area, click the HMC Code Update icon. 3) Select Back up Critical Console Data. 4) Select an archive option. You can back up to DVD on the HMC, back up to a rem ote system mounted to the HMC file system (such as NFS), or a remote site throug h FTP. 5) Follow the instructions on the panel to back up the data.

Backing up partition profile data - Using the GUI (WebSM) Interface Describes how to back up profile data on the HMC. To back up partition profile data, you must be a member of one of the following roles: super administrator service representative To back up partition profile data, do the following: 1) 2) 3) 4) In the Contents area, select the managed system. From the menu, click Selected > Profile Data > Backup. Type the name you want to use for this backup file. Click OK.

Checking the date & time that the last critical console data backup was performe d To display the date and time of the critical console data backup, use the lssvce vents command with the -t console option as shown below. Display the date and ti me when critical console data backup was performed :$ lssvcevents -t console -d 9999|grep 'backup of critical' 05/23/03 05:25:39 PM HSCE2062 A backup of critical console data was performed.

05/21/03 09:44:17 AM HSCE2062 A backup of critical console data was performed. ed.

Checking the date & time that the last profile data backup was perfrormed To display the date and time that the profile data backup was performed, use the lssvcevents command withthe -t console option as shown below. Display the date and time when profile data backup was performed :$ lssvcevents -t console -d 9999|grep 'Profile data' 05/20/03 02:44:32 PM HSCE2004 UserName hscroot Profile data of managed system IT SO_p690 has been backup to file /var/hsc/profiles/7040-681*021768A/Theeraphong; 05/20/03 01:44:55 PM HSCE2004 UserName hscroot Profile data of managed system IT SO_p690 has been backup to file /var/hsc/profiles/7040-681*021768A/Theeraphong;