Lists (displays) resources or a resource class.
lsrsrc [-h] [-s "Selection_string"] [-a p | d | b] [-p 0] [-l | -t | -d | -D Delimiter] [-x] [-T] [-V] [Resource_class [Attr...]]
lsrsrc [-h] [-s "Selection_string"] -r [-l | -t | -d | -D Delimiter] [-x] [-T] [-V] [Resource_handle]
lsrsrc [-h] -c [-a p | d | b] [-p 0] [-l | -t | -d | -D Delimiter] [-x] [-T] [-V] Resource_class [Attr...]
The lsrsrc command is used to list the persistent and dynamic attributes and their values of either a resource class or a resource.
When no Attr parameter is specified, only attributes that are defined as public are displayed. Use the -p flag to override this default. When no Attr parameter is specified, the -a p | d | b flag controls whether only persistent, or only dynamic, or both persistent and dynamic attributes and their values are displayed.
When one or more attribute names are specified, exactly the attribute names specified and their values are displayed in the order specified, provided that each of the specified attribute names are valid.
To get a list of all of the resource classes, enter the lsrsrc command with no parameters.
Specify the -c flag to display a list of the resource class attributes and values.
Specify the -r flag to display only the resource handles linked with the resources in the displayed class.
By default, the resource attributes and values are displayed in long format. Use the -t, -d, or -D flag for the resources to be displayed in tabular or delimiter formatted output.
For best performance, specify either the -a p flag or only persistent attributes as parameters.
For best performance, specify the -a p flag.
-s 'Name == "testing"'
-s 'Name ?= "test*"'
Only persistent attributes may be listed in a selection string. For information on how to specify selection strings, see "Using Expressions" in the chapter "Using the Monitoring Application" of the RSCT 2.2 Resource Monitoring and Control Guide and Reference.
lsrsrc
Output is similar to:
class_name "IBM.Association" "IBM.Condition" 'IBM.EventResponse" "IBM.Host" "IBM.Ethernet" "IBM.TokenRing" ...
lsrsrc -s "NumProcessors == 4" -a p -p 0 IBM.Host
Output is similar to:
Resource Persistent Attributes for: IBM.Host
resource 1:
Name = "c175n05.ppd.pok.ibm.com"
ResourceHandle = "0x4008 0x0001 0x00000000 0x0069684c 0x0d7f55d5 0x0c32fde3"
Variety = 1
NodeList = {1}
NumProcessors = 4
RealMemSize = 1073696768
lsrsrc -s 'Name == "c175n05.ppd.pok.ibm.com"' -a d IBM.Host
Output is similar to:
Resource Dynamic Attributes for: IBM.Host
resource 1:
ProcRunQueue = 1.03347987093142
ProcSwapQueue = 1.00548852941929
TotalPgSpSize = 65536
TotalPgSpFree = 65131
PctTotalPgSpUsed = 0.61798095703125
PctTotalPgSpFree = 99.3820190429688
PctTotalTimeIdle = 0
PctTotalTimeWait = 51.5244382399734
PctTotalTimeUser = 12.8246006482343
PctTotalTimeKernel = 35.6509611117922
PctRealMemFree = 66
PctRealMemPinned = 4
RealMemFramesFree = 173361
VMPgInRate = 0
VMPgOutRate = 0
VMPgFaultRate = 0
...
lsrsrc IBM.Processor Name Variety ProcessorType
Output is similar to:
Resource Persistent Attributes for: IBM.Processor
resource 1:
Name = "proc3"
Variety = 1
ProcessorType = "PowerPC_604"
resource 2:
Name = "proc2"
Variety = 1
ProcessorType = "PowerPC_604"
resource 3:
Name = "proc1"
Variety = 1
ProcessorType = "PowerPC_604"
resource 4:
Name = "proc0"
Variety = 1
ProcessorType = "PowerPC_604"
lsrsrc -c -a b -p 0 IBM.Condition
Output is similar to:
Resource Class Persistent and Dynamic Attributes for: IBM.Condition
resource 1:
ResourceType = 0
Variety = 0
| /usr/sbin/rsct/bin/lsrsrc | Location of the lsrsrc command. |
The lsrsrcdef command.
The rmccli General Information file.
The RSCT 2.2 Resource Monitoring and Control Guide and Reference contains more information regarding RMC operations.