IBM HMC Commands Miscs

IBM HMC Commands Miscs

lssyscfg command


To list partition attributes:

lssyscfg -r lpar [ --filter "FilterData" ] [ -F "AttributeNames" ] [ --header ] [ -m ManagedSystem ]

To list partition profile attributes:

lssyscfg -r prof [ --filter "FilterData" ] [ -F "AttributeNames" ] [ --header ] [ -m ManagedSystem ]

To list system attributes:

lssyscfg -r sys [ -F "AttributeNames" ] [ --header ] [ -m ManagedSystem ]


The lssyscfg command lists attributes of partitions, partition profiles, or the managed system.


-r ResourceType

The type of resources to list:

lpar: Logical partition resources

prof: Logical partition profile resources

sys: Managed system resources

-m ManagedSystem

The name of the managed system. This attribute is optional because there is only one system to manage. The name may either be the user-defined name for the managed system, or be in the form tttt-mmm*ssssssss, where tttt is the machine type, mmm is the model, and ssssssss is the serial number of the managed system.

-F AttributeNames

A delimiter separated list of attribute names for the desired attribute values to be displayed for each resource. If no attribute names are specified, then values for all of the attributes for the resource will be displayed.


# lssyscfg -r sys -F name,state



show Lpar0 state

# lssyscfg -r lpar -F name,state -m Server-9117-MMA-SN10FE8C3


# To list the attributes for the managed system, type:

lssyscfg -r sys

# To list only the user-defined name, machine type and model, and serial number for the managed system, type:

lssyscfg -r sys -F name:type_model:serial_num

lssyscfg -r sys -m Server-9117-MMA-SN10FE8C3

List the partitions lpar1, lpar2, and lpar3:

lssyscfg -r lpar -m Server-9117-MMA-SN10FE8C3 --filter "lpar_names=lpar1,lpar2,lpar3"

chsyscfg command

Changes attributes of logical partitions, logical partition profiles, or the managed system.

To change system attributes:

chsyscfg -r sys { -f ConfigurationFile | -i ConfigurationData } [ -m ManagedSystem ]

To change partition attributes

chsyscfg -r lpar { -f ConfigurationFile | -i ConfigurationData } [ -m ManagedSystem ]

To change partition profile attributes, the Host Ethernet Adapter logical port assignments, or the logical Host Ethernet Adapter capabilities

chsyscfg -r prof { -f ConfigurationFile | -i ConfigurationData } [ -m ManagedSystem ]

-f ConfigurationFile

The name of the file containing the configuration data needed to change the resources. The configuration data consists of attribute name and value pairs, which are in comma separated value (CSV) format. These attribute name and value pairs form a configuration record. A line feed marks the end of a configuration record. The file must contain one configuration record for each resource to be changed, and each configuration record must be for the same resource type. If the resource type is the managed system, then the file must contain only one configuration record.


chsysstate -m Server-9117-MMA-SN10FE8C3 -n SF75LH320ESS01 -o on -r lpar -f SF75LH320ESS01

chsysstate --help

1. To change the user defined name for the managed system, type:

chsyscfg -r sys -i "new_name=sys1"

2. Change partitions using the configuration data in the file /tmp/lparfile:

chsyscfg -r lpar -m sys1 -f /tmp/lparfile

3. To reduce a partition profile's assigned and minimum memory by 256 MB, type:

chsyscfg -r prof -i "lpar_name=partition3,min_mem-=256,desired_mem-=256"

<cec_name>= lssyscfg -r sys -F name
<mt*ms>= model_type*model_serial  (created from cec_name)
<lpar_name>= lssyscfg -r lpar -m <cec_name> -F name,lpar_id
<fsp_ipaddr>= lssyscfg -r sys -F name,ipaddr
<partition_profile_name> = lssyscfg -r lpar -m <cec_name> -F default_profile

Check State of CECs:    lssyscfg -r sys -F name,state
Check State of Lpars:   lssyscfg -r lpar -m <cec_name> -F name,lpar_id,state
Power off lpar
# chsysstate -r lpar -m <cec_name> -n <lpar_name>  -o osshutdown -r lpar
# chsysstate -r lpar -m <cec_name> -n <lpar_name>  -o shutdown -r lpar –immed

Restart lpar:   chsysstate -r lpar -m <cec_name> -n <lpar_name>  -o osshutdown  –-restart
Activate lpar:  chsysstate -r lpar -m <cec_name> -n <lpar_name>  -f <partition_profile_name> -o on
Shutdown CEC:   chsysstate -r sys -m <cec_name> -o off
IPL CEC:              chsysstate -r sys -m <cec_name> -o on
View Partition Profile:  lssyscfg -r prof -m <cec_name> --filter "lpar_ids=<lpar#>" -F –header
View FSP IP Addr:       lssyscfg -r sys -F name,ipaddr,state,mm_server_num

hmcshutdown - shut down the Hardware Management Console
hmcshutdown -t {now | number-of-minutes} [-r] [--help]
-t     The number of minutes to wait before starting the shutdown.  If now is specified, the  shutdown  will
be started immediately.
-r     Reboot the HMC after the shutdown.  If this option is omitted, the HMC will be halted after the shut-
Reboot the HMC after 3 minutes:    hmcshutdown -t 3 -r
Halt the HMC immediately:              hmcshutdown -t now

RMC is a no charge feature of AIX 5L Version 5.1 and above that can be configured to monitor resources and perform an action in response to a defined condition. The flexibility of RMC enables you to configure response actions or scripts that manage general system conditions with little or no involvement from the system administrator. On the HMC, RMC is being used as the main communication channel between AIX and Linux partitions and the HMC.

lspartition -dlpar

If the results for your partition are <Active 1>, then the RMC connection is established.
In order for RMC to work, port 657 upd/tcp most be open in both directions between the HMC public interface and the lpar.

Look for the partition in question. In order for dlpar to function, the partition must be returned, the partition must return with the correct IP of the lpar. Also, the active value must be higher than zero, and the decaps value must be higher 0x0
lssrc -a | grep rsct
lsnodes -a Status
rmcctrl  -z/-A


Post a Comment


Java (160) Lucene-Solr (112) Interview (64) All (58) J2SE (53) Algorithm (45) Soft Skills (39) Eclipse (33) Code Example (31) JavaScript (23) Linux (22) Spring (22) Windows (22) Tools (21) Web Development (20) Nutch2 (18) Bugs (17) Debug (16) Defects (14) Text Mining (14) Troubleshooting (14) J2EE (13) Network (13) PowerShell (11) Problem Solving (10) Chrome (9) Design (9) How to (9) Learning code (9) Performance (9) UIMA (9) html (9) Http Client (8) Maven (8) Security (8) Tips (8) bat (8) blogger (8) Big Data (7) Database (7) Google (7) Guava (7) JSON (7) Shell (7) System Design (7) ANT (6) Coding Skills (6) Lesson Learned (6) Programmer Skills (6) Scala (6) css (6) Algorithm Series (5) Cache (5) Continuous Integration (5) IDE (5) adsense (5) xml (5) AIX (4) Become a Better You (4) Code Quality (4) Concurrency (4) Dynamic Languages (4) GAE (4) Git (4) Good Programming Practices (4) Jackson (4) Memory Usage (4) Miscs (4) OpenNLP (4) Project Managment (4) Review (4) Spark (4) Testing (4) ads (4) regular-expression (4) Android (3) Apache Spark (3) Distributed (3) Eclipse RCP (3) English (3) Happy Hacking (3) IBM (3) J2SE Knowledge Series (3) JAX-RS (3) Jetty (3) Life (3) Python (3) Restful Web Service (3) Script (3) regex (3) seo (3) .Net (2) Android Studio (2) Apache (2) Apache Procrun (2) Architecture (2) Batch (2) Bit Operation (2) Build (2) Building Scalable Web Sites (2) C# (2) C/C++ (2) CSV (2) Career (2) Cassandra (2) Fiddler (2) Google Drive (2) Gson (2) How to Interview (2) Html Parser (2) Http (2) Image Tools (2) JQuery (2) Jersey (2) LDAP (2) Logging (2) Mac (2) Software Issues (2) Storage (2) Text Search (2) xml parser (2) AOP (1) Application Design (1) AspectJ (1) Chrome DevTools (1) Cloud (1) Codility (1) Data Mining (1) Data Structure (1) ExceptionUtils (1) Exif (1) Feature Request (1) FindBugs (1) Firefox (1) Greasemonkey (1) HTML5 (1) Httpd (1) I18N (1) IBM Java Thread Dump Analyzer (1) Invest (1) JDK Source Code (1) JDK8 (1) JMX (1) Lazy Developer (1) Machine Learning (1) Mobile (1) My Plan for 2010 (1) Netbeans (1) Notes (1) Operating System (1) Perl (1) Problems (1) Product Architecture (1) Programming Life (1) Quality (1) Redhat (1) Redis (1) RxJava (1) Solutions logs (1) Team Management (1) Thread Dump Analyzer (1) Visualization (1) boilerpipe (1) htm (1) ongoing (1) procrun (1) rss (1)

Popular Posts