|
| cool Statistics |
| | coolcommands: | 1338 | | Categories: | 83 | | Total queries: | 620228 | | Members: | 22813 | |
|
|
|
 |
|
|
Search coolcommands.com
 |
Submitted by:
lvo   |
coolcommand
lshwres command will list hardware resources configuration |
Description
The lshwres command will list hardware resources configuration:
lshwres -m "managed-system" [-p "partition-name" | all ] -r [ resource-type ] [ -y "led-type" ] [ -F < format > ] [help ] where:
-m the name of the managed system, where the hardware resource is configured. If there are multiple managed systems with the same user-defined name, specify the managed system name enclosed in double quotes and in the form mmmm-ttt*sssssss, where mmmm is the machine type, ttt is the model type, and ssssss the serial number of the managed system.
-p the user-defined name of the partition where the hardware resource will be queried.
-all retrieve information from all partitions on the given managed system.
-r the hardware resource type to view. Possible values are ALL, cpu (processor), mem (memory), slot (PCI slot), or led.
-y type of led to list. To list system attention led, use the keyword sys. To list identify led, use the keyword identify.
-F if specified, produces a delimiter-separated list of names representing the desired properties to be queried.
Valid values are system, name, key, state, status, id, parent, location, classcode, assigned_to, index, location_code, max, min, allocated,free, lmb_size, drawer_id, slot_id, slot_type, phys_loc. partition, and partition_name.
-help prints a help message.
Some examples of usage of this command are shown below.
List of all processors on a managed system:
[hmcusr@hmcproj hmcusr]$ lshwres -m proj -r cpu id Status partition assigned_to 25 Configured by System ุุ1*7ุ38-6M2*C25699A proja 24 Configured by System ุุ2*7ุ38-6M2*C25699A projb 17 Configured by User ุุ1*7ุ38-6M2*C25699A proja 16 Configured by System ุุ2*7ุ38-6M2*C25699A projb 9 Configured by System ุุ2*7ุ38-6M2*C25699A projb 8 Configured by System ุุ2*7ุ38-6M2*C25699A projb 1 Configured by System ุุ2*7ุ38-6M2*C25699A projb ุ Configured by System ุุ2*7ุ38-6M2*C25699A projb
List the memory resources of partition proja:
[hmcusr@hmcproj hmcusr]$ lshwres -m proj -r mem -p proja allocated free lmb_size max min partition system partition_name 16 ุ 256 32 8 ุุ1*7ุ38-6M2*C25699A proj proja
Check system attention LED status:
[hmcusr@hmcproj hmcusr]$ lshwres -m proj -r led -y sys index State location_code 884738 off Uุ.1 |
Example
lshwres -m "managed-system" [-p "partition-name" | all ] -r [ resource-type ] [ -y "led-type" ] [ -F < format > ] [help ] |
Return to search results
 |  |  |  |
Random coolcommands
coolcommand: how to enable full core dumps in IBM AIX
Example: chdev -l sys0 -a fullcore='true'
[show me the details] |
coolcommand: intrstat - how to report interrupt statistics in Solaris 10
Example: intrstat
[show me the details] |
coolcommand: lslpp - to see the date and time of installation of an LPP in IBM AIX
Example: lslpp -a -h
[show me the details] |
coolcommand: mknfs - how to configure an IBM AIX server to run NFS
Example: mknfs -B
[show me the details] |
|
|
coolcommands.com - the search engine for UNIX sysadmins :: unix commands and scripts
|  |  |  |  |
|
|
|
|
 |
|
|
|
Top 5 Submitters
|
|---|
| lvo | 1160 |
| audet | 37 |
| kah00na | 32 |
| Mariom | 24 |
| lebjf000 | 14 |
Top 5 Searches
|
| Category Solaris | 51943 |
| Category AIX | 49010 |
| Category General UNIX | 47574 |
| solaris | 23554 |
| aix | 22739 |
|
|
|
|