Aix HMC Commands
Aix HMC Commands
/var/log/ntp logfile.
# lshmc -r -Fxntp,xntpserver
enable,"127.127.1.0,[your_NTP_server]"
status=enabled,smtp_server=10.245.192.12,smtp_server_port=25,\
"[email protected]/ESA.All, \
[email protected]/ESA.CallHomeOnly"
> you can change (or enable) these parameters with chsacfg command :
HMC V7:
HMC V8:
Test beginning
Edge_Gateway_1:129.42.56.189:443(esupport.ibm.com)::Failed
Edge_Gateway_2:129.42.56.189:443(esupport.ibm.com)::Failed
Edge_Gateway_3:129.42.54.189:443(esupport.ibm.com)::Failed
Edge_Gateway_4:129.42.54.189:443(esupport.ibm.com)::Failed
Edge_Gateway_5:129.42.60.189:443(esupport.ibm.com)::Failed
Edge_Gateway_6:129.42.60.189:443(esupport.ibm.com)::Failed
Testing Completed
time=02/10/2014 15:22:30,event_type=sample,resource_type=sys,sys_time=02/10/2014 \
15:22:30,primary_state=Started,detailed_state=None,configurable_sys_proc_units=102.0,\
configurable_sys_mem=3481600,curr_avail_sys_proc_units=55.85,\
curr_avail_5250_cpw_percent=0.0,curr_avail_sys_mem=2158848,sys_firmware_mem=101888,\
proc_cycles_per_second=512000000
On/off CoD
Listing informations about billing details , then about resources available
> Please note that if you use 802.1q you may check out that the PVID is displayed as well, and is not to be
included in your actual active VLANS, as for the control channel (4094 in my example)
you can see here that we do not display the PVID (we could have actually, with the port_vlan_id attribute),
and we filtered by trunked adapters only, so we avoid the display of the control channels.
Sharedpools
Check if your pseries is multiple shared_pools capable :
# lssyscfg -r sys -m [managed_system] -Factive_lpar_share_idle_procs_capable
List the sharedpools active on the frame and the lpars associated withem :
# lshwres -r procpool -m [managed_system] -Fname,lpar_names
DefaultPool,"VIO1,VIO2"
shp_oracle,"my_db_lpar1,my_db_lpar2"
shp_app,"my_app_lpar"
Before doing so, check the existing sharedpools and spot a poolid that isnt allocated like 4 in my example
below:
Hardware-related commands
Getting the firmware level of a managed system :
# lslic -m [managed_system] -t sys -Fcurr_ecnumber_primary:activated_level
01AM730:99
frame,9117-MMC: 01AM740:100
frame,9117-MMD: 01AM760:51
frame,9117-MMD: 01AM760:68
frame,8202-E4C: 01AL740:152
frame,9117-MMD: 01AM760:68
frame,9117-MMD: 01AM760:68
frame,9117-MMD: 01AM760:51
frame,8231-E1D: 01AL770:90
frame,8202-E4D: 01AL770:90
frame,8408-E8D: 01AM770:48
frame,8202-E4C: 01AL740:152
frame,8231-E1D: 01AL770:48
frame,8231-E1D: 01AL770:90
frame,9117-MMD: 01AM760:68
frame,8231-E1D: 01AL770:90
frame,8202-E4D: 01AL770:90
frame,8231-E1D: 01AL770:90
frame,9117-MMC: 01AM740:100
Listing all I/O slots from a pseries , sorted by device type and numbered :
/!\ (in order to do this, you need to execute the awk |sort|uniq part from an AIX system, because you cant
use awk with hscroot on a HMC ( I really should ask IBM why, one day ?! it is so useful))
on my beautiful p795, I have 21 empty slots, 24 NPIV-capable Fibre channel adapter, 17 SAS
controllers and 38 FcoE cards
If you wish to have more thorough information (like physical location), you juste have to remove the
awk |sort|uniq part, which will give this kind of output (much more verbose, please note the null
value which gives us the unassigned I/O Cards):
LPAR-related actions
Power on a LPAR :
# chsysstate -m [managed_system] -o on -r lpar -n [lpar_name] -f
[profile_name]
Rename a LPAR :
# chsyscfg -m [managed_system] -r lpar -i "name=my_lpar_name,new_name=my_new_lpar_name"
User-related commands
Listing existing HMC users
# lshmcusr -F
root,hmcsuperadmin,root,99999,ALL:,local,,1,1,0,0,15,0,0,,md5,0
lpar2rrd,hmcviewer,HMC User,99999,ALL:,local,,0,1,0,0,15,0,0,,md5,0
hscpe,hmcpe,HMC User,99999,ALL:,local,,0,1,0,0,15,0,0,,md5,0
hscroot,hmcsuperadmin,HMC Super User,99999,ALL:,local,,1,1,0,0,15,0,0,,md5,0
Other : Getting to know and check HMCs connectivity from the client side
# lsrsrc IBM.MCP
Resource Persistent Attributes for IBM.MCP
resource 1:
MNName = "10.10.10.10"
NodeID = 8729111498266952156
KeyToken = "HMC1"
IPAddresses = {"10.10.10.1"}
ConnectivityNames = {"10.10.10.10"}
HMCName = "7042CR6*9999DAC"
HMCIPAddr = "10.10.10.3"
HMCAddIPs = "10.10.10.5"
HMCAddIPv6s = ""
ActivePeerDomain = ""
NodeNameList = {"lpar1"}
resource 2:
MNName = "10.10.10.10"
NodeID = 1943424031094794948
KeyToken = "HMC2"
IPAddresses = {"10.10.10.2"}
ConnectivityNames = {"10.10.10.10"}
HMCName = "7042CR6*9999DBC"
HMCIPAddr = "10.10.10.4"
HMCAddIPs = "10.10.10.6"
HMCAddIPv6s = ""
ActivePeerDomain = ""
NodeNameList = {"lpar2"}
Links
Hardware Management Console Related technical information