Friday, March 20, 2009

HMC Tips I - HMC and Managed System

To enable ssh in a hmc :

# chhmc -c ssh -s enable
You can disable it by replacing the word 'enable' with 'disable'

To enable xntp in a hmc :

# chhmc -c xntp -s enable
You can disable it by replacing the word 'enable' with 'disable'

To add an entry in the syslog config file :

# chhmc -c syslog -s add -a IP_Addr ( or '-h host_name' )
You can remove an entry by replacing the word 'add' with 'remove'

To add an entry in the ntp config file :

# chhmc -c xntp -s add -a IP_Addr ( or 'h host_name' )
You can remove an entry by replacing the word 'add' with 'remove'

To configure the network as a startup device :

# chhmc -c netboot -s enable
You can disable it by replacing the word 'enable' with 'disable'

To permit IP addresses from utilizing HMC services :

# chhmc -s ssh ( or any_service) -s add -a IP_Addr
You can remove an entry by replacing the word 'add' with 'remove'

To add a DNC_server or domain_suffix :

# chhmc -c network -s add [-ns DNS_Server] [-ds domain_suffix ]
You can remove an entry by replacing the word 'add' with 'remove'

To change network settings for a specific network interface :

# chhmc -c network -s modify -i interface_name
[-a IP_Addr] [-nm network_mask] [ --lparcomm on|off]
Note: Network settings for the s10 interface cannot be changed.

To change other network settings :

# chhmc -c network -s modify
[-h hostname] [-d network-domain-name]
[-g gateway]

To change the locale for the HMC :

# chhmc -c locale -s modify -l locale

To change the HMC date and time, time zone :

# chhmc -c date -s modify
[ --datetime ]
[ --clock {local | utc} ]
[ --timezone {time-zone | none} ]

To list the BIOS Level of the HMC :


# lshmc -b
To list the current locale :

# lshmc -l

To list all of the locales supported by HMC :

# lshmc -L

To list network settings :

# lshmc -n

To list remote access settings :

# lshmc -r

To list VPD information :


# lshmc -v

To list version information :


# lshmc -V

To display IP connections to SP's and Bulk Power Controllers :

# lssysconn -r all

To list all machines configured in a hmc

# lssyscfg -r sys

To power on a managed system :

# chsysstate -r sys -m managed_system-o on -f SYS_PROF_NAME

To power on a managed system in standby mode :

# chsysstate -r sys -m managed_system -o onstandby -f sys_profile_name

To power off a managed system :

# chsysstate -r sys -m managed_system -o off --immed

To restart a managed system :

# chsysstate -r sys -m managed_system -o off --immed --restart

To recover partition data for a managed system :


# chsysstate -r sys -m managed_system -o recover

To initiate service processor failover for a managed system :


# chsysstate -r sys -m managed_system -o spfailover

To validate or activate a system profile :


# chsysstate -r sysprof -m managed_system -n sys_profile_name --test

To change the password of a managed system :


# chsyspwd -t {access | admin | general} -m managed_system --passwd current_password --newpassword new_password

4 comments:

Anonymous said...

Hi Raja,

We dont have HMC in our environment, in this case, can we access the server console using ASMI? Please advice.

Raja said...

Hi Anony,
You cannot access the console from ASMI. ASMI is used mostly for tasks like reading service processor error logs, reading vital product data, setting up the service processor ip address and controlling the system power.
- Raja

Siva said...

Hi Raja,

Does we manage standalone servers through HMC, if yes how the connectivity has been established between the servers and HMC

Anonymous said...

Hi Raja,
if have not HMC Server , i can access to ASMI over webbase?