Information about IBM's HMC. Most info was collected from Version 7.3.5.0
Initial list: Jan 2015
Announcement letter number reveals the year, for example: ENUS107-xxx is 2007 etc.
On a CR7 running HMC v7.7, the file /sys/class/dmi/id/product_name includes the xSeries model name. However, this file is absent on older HMC versions.
[1] last deskside HMC
- "Hardware appliance (today); virtual appliance (tomorrow)" - from the presentation Linux on Power Injection DACH, April 2014
- The HMC v6 and v7 are running a modified version SUSE Linux Enterprise i386 (now x86_64), formerly it was based on RedHat Enterprise Linux.
- The original HMC hardware was an IBM Pentium 4/Xeon workstation or an IBM xSeries 1U rackmount server.
- The HMC was formerly known as HSC (Hardware System Console).
- The full role admin user is hscroot.
- The HMC image can be modified to run in a VM (VMWare, KVM) in an unsupported way, of course.
- IBM provides a 24-hour root access via the 'pesh' command (IBM supplies activation code).
- The largest enterprise Power machines require two independent HMCs.
- Most HMC specific commands are under /opt/hsc/bin
- The HMC's core is based on RSCT and CSM technologies.
- The system firmware is called LIC (Licensed Internal Code).
Escape
There are several ways to get out of the restricted shell (rbash).
- man -P (in v6.x)
- man --html (up to 7.3.5.0.2)
- scp
- bash dotfiles as shell script (up to 7.3.5.0.4 and 7.7.?.?)
If you don't know the root password, you can use the chhmcusr command as hscroot to change it.
You can boot the HMC Linux to single user mode, then work as root. It still requires the password.
You can boot the system from live media, but not all live Linux distros support the RAID adapter present in newer models.
Commands available in restricted shell
- Full Linux commands
cat clear cp cut date diff dircolors du expr getopt head host ldapsearch less locale ls mkdir mount netstat ping ping6 rm rmdir scp sleep sort ssh-keygen sum tail umount uname which who whoami
- Modified Linux commands
man
- HMC-only commands
in /usr/hmcrbin :
chkmedia diagrmc gen_backup_db hmcwin logssh lsavailres lspartition pedbg pesh sendfile
via links to /opt:
[to be added later]
IBM HMC rpm packages
Applies to HMC V7R3.5
Excluded are the documentation, localization and fix packages (IBMhmc-InfoCenter_*, IBMhmc-help_*, IBMhmc.MH*, IBMhsc.bundles_* etc)
System and device firmware updates
The downloaded rpm files can be found under /opt/ccfw/data
Daemons specific to the HMC
Inittab daemons
vts:2345:respawn:/opt/hsc/bin/startServer 1>/dev/null 2>&1cons:2345:respawn:/opt/hsc/bin/startConsole 1>/dev/null 2>&1pxy:2345:respawn:/opt/hsc/bin/start5250proxy 1>/dev/null 2>&1mntr:2345:respawn:/opt/hsc/sbin/hscSystemInfo 1>/dev/null 2>&1rslp:2345:respawn:/opt/hsc/bin/openSLP_Reg 1>/dev/null 2>&1udsm:2345:respawn:/opt/hsc/sbin/hscUsdMonitor 1>/dev/null 2>&1invd:2:once:/usr/sbin/invscoutdhsv:2345:once:/opt/hsc/hdwr_svr/startHDWR_SVR 1>/dev/null 2>&1ccfw:2345:once:/opt/ccfw/startccfw initTab 1>/dev/null 2>&1Sysvinit runlevel daemons (from 'chkconfig -l')
SFPmonitorSensor 0:off 1:off 2:on 3:on 4:on 5:on 6:offcanna 0:off 1:off 2:off 3:on 4:off 5:on 6:offcrhws 0:off 1:off 2:on 3:on 4:on 5:on 6:offctrmc 0:off 1:off 2:on 3:on 4:on 5:on 6:offdhcpd 0:off 1:off 2:off 3:on 4:off 5:on 6:offhmcAcmSvc 0:off 1:off 2:off 3:on 4:off 5:on 6:offhmcConfig 0:off 1:off 2:off 3:on 4:off 5:on 6:offhmcCredSvc 0:off 1:off 2:off 3:on 4:off 5:on 6:offhmcpostcfg 0:off 1:off 2:on 3:on 4:off 5:on 6:offhmcpostnet 0:off 1:off 2:on 3:on 4:off 5:on 6:offhmcsshd 0:off 1:off 2:off 3:on 4:off 5:on 6:offhmcxntpd 0:off 1:off 2:off 3:on 4:off 5:on 6:offresmgr 0:off 1:off 2:on 3:on 4:off 5:on 6:offstartLangDialog 0:off 1:off 2:off 3:on 4:off 5:on 6:off(dhcpd is listed because it provides connectivity to the service processors in each machine.)
IBM SRC (System Resource Controller)
# lssrc -aSubsystem Group PID Status ctrmc rsct 5754 active IBM.LparCmdRM rsct_rm 5818 active IBM.AuditRM rsct_rm 5871 active IBM.DMSRM rsct_rm 5899 active IBM.CSMAgentRM rsct_rm 6161 active IBM.ServiceRM rsct_rm 6570 active hdwr_svr 8705 active ctcas rsct inoperative IBM.ERRM rsct_rm inoperative IBM.SensorRM rsct_rm inoperative IBM.LPRM rsct_rm inoperative IBM.HostRM rsct_rm inoperativeRoot crontab
0 3 * * * /opt/hsc/bin/cleanFiles2,12,22,32,42,52 * * * * /opt/hsc/bin/backupLog0 * * * * /opt/hsc/bin/utilcollect 10 0 * * * /opt/hsc/bin/utilcollect 20 0 1 * * /opt/hsc/bin/utilcollect 30 0 * * * /opt/hsc/bin/utilpurge *SNAPSHOT*0 0 1 * * /opt/hsc/bin/utilpurgeDirectories and files
Filesystems
//dev/var/dump/extraPorts
RMC
rmc 657 UDP rmc 657 TCPThe UDP port is used for communication between RMC daemons.
The TCP port is used for remote client connections to a RMC daemon.
TODO add nmap/netstat info here and 'enable ssh'
DHCP server
Leases are kept 'forever'. The DHCP ranges are very wide and can be selected from a variety. Things to look at:
- lssysconn command
- lshmc -n (IP addresses, netmasks, speed, duplex etc)
- lshmc -n -F clients (list of DHCP clients)
- /var/lib/dhcp/dhclient.leases text file
- /var/log/messages for DHCPREQUEST and DHCPACK lines (only root can access the log)
- for "last seen" addresses: grep "10\.255" /var/hsc/log/gui_server.log | sort -u
- to see if dhcpd is up: grep dhc $(ls -1t /dump/HMCMonitor/procs_01221* | tail -1)
Links
HMC recovery images
http://public.dhe.ibm.com/software/server/hmc/recovery_images/
or ftp://public.dhe.ibm.com/software/server/hmc/recovery_images/
or ftp://ftp.boulder.ibm.com/software/server/hmc/recovery_images/
Delivery site
http://delivery04.dhe.ibm.com/sar/CMA/HMA/ for POWER7 and below
http://download4.boulder.ibm.com/sar/CMA/SFA/