Download authorized_keys2 file from HMC
scp hscroot@HMC:/home/hscroot/.ssh/authorized_keys2 authorized_keys2_HMC
Add public key of your user on host:
cat ~/.ssh/id_rsa.pub >> authorized_keys2_HMC
Upload authorized_keys2_HMC file back to HMC
scp authorized_keys2_HMC hscroot@HMC:/home/hscroot/.ssh/authorized_keys2
SSH to HMC to add HMC to known hosts
ssh hscroot@HMC
Showing posts with label HMC. Show all posts
Showing posts with label HMC. Show all posts
Friday, November 11, 2011
Tuesday, August 16, 2011
HMC command to list LPAR profile attributes
Log in HMC shell
List all profiles on one machine and it's CPU attributes.
List all profiles on one machine and it's CPU attributes.
for LPAR in `lssyscfg -r lpar -m MACHINE_NAME -F lpar_id | sort -n`
do
lssyscfg -r prof -m MACHINE_NAME --filter "lpar_ids=${LPAR}" -F "name:lpar_name:lpar_id:proc_mode:min_proc_units:desired_proc_units:max_proc_units:min_procs:desired_procs:max_procs:sharing_mode:uncap_weight" --header
done
do
lssyscfg -r prof -m MACHINE_NAME --filter "lpar_ids=${LPAR}" -F "name:lpar_name:lpar_id:proc_mode:min_proc_units:desired_proc_units:max_proc_units:min_procs:desired_procs:max_procs:sharing_mode:uncap_weight" --header
done
Thursday, February 10, 2011
Useful HMC key combintaions: Switch to shell, restart xserver
CTRL-ALT-F1: Switch to Linux command line; no login possible. If you then click on CTRL-ALT-DEL the system will reboot.
CTRL-ALT-F2: Takes you back to the Xserver window.
CTRL-ALT-BACKSPACE: Kills of the Xserver and will start a new -fresh- one, so you can login again.
CTRL-ALT-F2: Takes you back to the Xserver window.
CTRL-ALT-BACKSPACE: Kills of the Xserver and will start a new -fresh- one, so you can login again.
vtmenu - Open virtual console from SSH on HMC
Here is short how to "open vitual console from SSH on HMC"
Login to HMC ant type vtmenu:
Login to HMC ant type vtmenu:
hscroot@hostname:~> vtmenu
Retrieving name of managed system(s) . . . Server-xxxx-xxx-xxxxxxxxx
----------------------------------------------------------
Partitions On Managed System: Server-xxxx-xxx-xxxxxxxxx
OS/400 Partitions not listed
----------------------------------------------------------
1) Partition name Running
2) Partition name Running
Subscribe to:
Posts (Atom)