monhmc -r mem -n 0 monhmc -r disk -n 0 monhmc -r proc -n 0 monhmc -r swap -n 0 |
shows total, used and free memory of HMC shows filesystems and usage info shows cpu usage of each processor shows paging space usage |
lshmc -V lshmc -v lshmc -n |
HMC version HMC model lists the network settings of the HMC |
lssvcevents -t console -d 60 lssvcevents -t hardware -d 30 lssvcevents -t console -d 7 | grep DLPAR lssvcevents -t console -d 7 | grep Migration |
lists console events in the past 60 days list serviceable events which occured in the past 30 days list DLPAR operations of last 7 days (you can grep more to mem or proc) list last 7 days LPMs |
hmcshutdown -t 3 -r hmcshutdown -t now |
Reboot the HMC after 3 minutes Halt the HMC immediately |
lshmcusr lshmcusr --filter "names=flecke" lshmcusr --filter "names=flecke" --header -F name,taskrole,description,remote_webui_access |
list users list filtered user flecke list parameter name,taskrole,description + remote_webui_access with header by filtered user flecke |
mkhmcusr -u flecke -a hmcsuperadmin -d "System Administrator" | create new user with taskrole hmcsuperadmin and description "System Administrator" |
chhmcusr -i "name=[USER],remote_webui_access=1" chhmcusr -i "name=[USER],taskrole=hmcoperator" chhmcusr -u [USER] -t passwd |
change access to WEB GUI change taskrole change user password |
mkhmcusr -u hscpe -a hmcpe pedbg -c -q 4 |
create user hscpe collect debugging information for error analyzing |
lssysconn -r all -F --header lssysconn -r all -F "type_model_serial_num" |
all values with header defined field type_model_serial_num |
lssyscfg –r sys lssyscfg -r sys -F name:type_model:serial_num lssyscfg -r sys -m [Managed System] -F --header |
all values defined fields name, type_model + serial_num all values with header for specified managed System |
lssyscfg -m [ManagedSystem] -r lpar lssyscfg -m [ManagedSystem] -r lpar -F --header lssyscfg -m [ManagedSystem] -r lpar --filter "lpar_names=[LparName]" lssyscfg -m [ManagedSystem] -r lpar -F "name:lpar_id:lpar_type:state:default_profile" |
all values all values with header for specified managed System all values with header for specified managed System and filtered LPAR name defined fields name, lpar_id, lpar_type, state, default_profile |
chsyscfg -r sys -m [ManagedSystem] -i "new_name=pserver1" chsyscfg -r lpar -m [ManagedSystem] -i "name=OldName,new_name=NewName" chsyscfg -r prof -m [ManagedSystem] -i "name=default,lpar_name=Germany_Prod_1,boot_mode=norm" chsyscfg -r prof -m [ManagedSystem] -i "name=[ProfileName],lpar_name=[LparName],uncap_weight=32" |
rename managed system to name pserver1 rename LPAR from name OldName to NewName change boot_mode from a defined LPAR Germany_Prod_1 changes weight in given profile |
rmsyscfg -r lpar -m [ManagedSystem] -n [LparName] | Remove LPAR |
lshwres -r io --rsubtype unit -m [ManagedSystem] lshwres -r io --rsubtype bus -m [ManagedSystem] lshwres -r io --rsubtype slot -m [ManagedSystem] lshwres -r io --rsubtype slot -m [ManagedSystem] -Flpar_name,unit_phys_loc,bus_id,phys_loc,description, --header |
by unit by bus by slot by defined fields and slot |
lshwres -r proc -m [ManagedSystem] --level sys lshwres -r proc -m [ManagedSystem] --level lpar |
by System by LPAR |
lshwres -r mem -m [ManagedSystem] --level sys lshwres -r mem -m [ManagedSystem] --level lpar |
by System by LPAR |
lshwres -r hca -m [ManagedSystem] --level sys lshwres -r hca -m [ManagedSystem] --level lpar |
by System by LPAR |
lshwres -r virtualio --rsubtype eth --level lpar -m [Model] -F lpar_name,mac_addr |
chhwres -r virtualio --rsubtype eth -m [ManagedSystem] -o s -p [LparName] -s [AdapterId] -a "addl_vlan_ids+=[VlanTag]" chhwres -r virtualio --rsubtype eth -m [ManagedSystem] -o s -p [LparName] -s [AdapterId] -a "addl_vlan_ids-=[VlanTag]" chhwres -r proc -m [ManagedSystem] -o a -p [LparName] --procunits 8 chhwres -r proc -m [ManagedSystem] -p [LparName] -o s -a "uncap_weight=32" |
adding VLAN TAG dynamically removing VLAN TAG dynamically additionally assign 8 processors changes weight of actual running config |
chsysstate -r lpar -m [ManagedSystem] -o on -n [LparName] -f chsysstate -r lpar -m [ManagedSystem] -o on -n [LparName] -b sms chsysstate -m [ManagedSystem] -r lpar -n [LparName] -o osshutdown chsysstate -m [ManagedSystem] -r lpar -n [LparName] -o shutdown --immed |
boot LPAR boot LPAR into sms status Shutdown an LPAR using the operating system Shutdown an LPAR immediate |
lspartition -dlpar |
shows dlpar capable partitions (it will show if RMC connection is OK between the HMC and LPAR) |
lsrsrc IBM.MCP or lsrsrc IBM.ManagementServer #OLD command resource 1: MNName = "192.6.5.77" NodeID = 5089136303073145144 KeyToken = "hmc2" IPAddresses = {"192.6.5.55"} ConnectivityNames = {"192.6.5.77"} HMCName = "7042CR4*06CDB1B" HMCIPAddr = "192.6.5.55" HMCAddIPs = "10.0.0.1" HMCAddIPv6s = "" ActivePeerDomain = "" NodeNameList = {"aixccf13"} |
display connected HMC from LPAR |
lslpp -l csm.client
lslpp -l rsct.core.rmc
/usr/sbin/rsct/bin/ctsvhbac
lsrsrc IBM.ManagementServer
lsrsrc IBM.MCP
lspartition -dlpar
/usr/sbin/rsct/install/bin/recfgct /usr/sbin/rsct/bin/rmcctrl -p
lspartition -dlparreset
mkvterm -m [ManagedSystem] -p [LparName] mkvterm -m [ManagedSystem] --id [Number] rmvterm -m [ManagedSystem] -p [LparName] rmvterm -m [ManagedSystem] --id [Number] ~~. |
open a vterm by LPAR Name open a vterm by LPAR ID close a vterm connection by LPAR Name close a vterm connection by LPAR ID logout from vterm session |
for MODEL in `lssysconn -r all -F "type_model_serial_num"` do lssyscfg -r lpar -m $MODEL -F"name,lpar_id,state" | while read LPARS do echo "$LPARS,$MODEL" done done
for MODEL in `lssysconn -r all -F "type_model_serial_num"` do echo "Type-Model*SerialNumber=$MODEL" lshwres -r proc -m $MODEL --level sys -F"configurable_sys_proc_units,curr_avail_sys_proc_units" --header lshwres -r proc -m $MODEL --level lpar -F "lpar_name,lpar_id,curr_min_procs,curr_procs,curr_max_procs" --header echo done
for MODEL in `lssysconn -r all -F "type_model_serial_num"` do echo "Type-Model*SerialNumber=$MODEL" lshwres -r mem -m $MODEL --level sys -F"installed_sys_mem,configurable_sys_mem,curr_avail_sys_mem" --header lshwres -r mem -m $MODEL --level lpar -F "lpar_name,lpar_id,curr_min_mem,curr_mem,curr_max_mem" --header echo done
for MODEL in `lssysconn -r all -F "type_model_serial_num"` do echo "Type-Model*SerialNumber=$MODEL" lshwres -r io --rsubtype slot -m $MODEL -F "lpar_name,unit_phys_loc,bus_id,phys_loc,description" --header echo done
for MODEL in `lssysconn -r all -F "type_model_serial_num"` do echo "Type-Model*SerialNumber=$MODEL" lshwres -r proc -m $MODEL --level sys -F"configurable_sys_proc_units,curr_avail_sys_proc_units" --header lshwres -r proc -m $MODEL --level lpar -F"lpar_name,lpar_id,curr_min_procs,curr_procs,curr_max_procs" --header lshwres -r mem -m $MODEL --level sys -F"configurable_sys_mem,curr_avail_sys_mem" --header lshwres -r mem -m $MODEL --level lpar -F"lpar_name,lpar_id,curr_min_mem,curr_mem,curr_max_mem" --header lshwres -r io --rsubtype slot -m $MODEL -F "lpar_name,unit_phys_loc,bus_id,phys_loc,description" --header echo done
for MODEL in `lssysconn -r all -F "type_model_serial_num"` do echo "Type-Model*SerialNumber=$MODEL" lshwres -r proc -m $MODEL --level sys -F"configurable_sys_proc_units" --header lshwres -r proc -m $MODEL --level lpar -F"lpar_name,curr_procs" --header lshwres -r mem -m $MODEL --level sys -F"configurable_sys_mem" --header lshwres -r mem -m $MODEL --level lpar -F"lpar_name,curr_mem" --header echo done
updhmc -t s -h public.dhe.ibm.com -u anonymous -p abc123 -f /software/server/hmc/fixes/ MH01403 .iso -c -r
scp -scp MH01403.iso hscroot@:/tmp
updhmc -t l -f /tmp/MH01403.iso -c -r
updhmc -t m -r
lsmediadev
device=/dev/cdrom,mount_point=/media/cdrom,type=1,description=CD/DVD device=/dev/sdb1,mount_point=/media/sdb1,type=3,description=USB flash memory device
mount
updhmc -t l -f / MH01403.iso -r
Das Originaldokument ist zu finden unter http://ccf-consulting.de/tiki-5.0/tiki-index.php?page=CCF_AIX_HMC