Lists (or displays) resources or a resource class.
lsrsrc [-s "selection_string"] [-A p | d | b] [-p property] [-l | -t | -d | -D delimiter] [-x] [-a] [-h] [-TV] [resource_class [prop...]]
lsrsrc [-s "selection_string"] -r [-l | -t | -d | -D delimiter] [-x] [-h] [-TV] [resource_class]
lsrsrc -c [-A p | d | b] [-p property] [-l | -t | -d | -D delimiter] [-x] [-h] [-TV] resource_class [attr...]
The lsrsrc command is used to list the persistent and dynamic properties and their values of either a resource class or a resource.
When no prop parameter is specified, only attributes that are defined as public are displayed. Use the -p flag to override this default. When no prop parameter is specified, the -A p | d | b flag controls whether only persistent, or only dynamic, or both persistent and dynamic properties and their values are displayed.
When one or more property names are specified, the property names specified and their values are displayed in the order specified, provided that each of the specified property names is 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 properties and values.
Specify the -r flag to display only the resource handles associated with the resources for the specified resource class.
By default, the resource properties 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 properties as parameters.
Persistent attribute properties:
Dynamic attribute properties:
A decimal or hexadecimal value can be specified for the property. To display attributes and their values for all attributes that have one or more properties, "OR" the properties of interest together and then specify the "ORed" value with the -p flag. For example, to display attributes and their values for all persistent attributes that are either required for define or optional for define, enter:
-p 0x0a
-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 the RSCT Guide and Reference.
The user needs read permission for the resource_class specified in lsrsrc to run lsrsrc. Permissions are specified in the access control list (ACL) file on the contacted system. See the RSCT Guide and Reference for information about the ACL file and how to modify it.
If this environment variable is not set, local scope is used.
When the -h flag is specified, this command's usage statement is written to standard output. All verbose messages are written to standard output.
All trace messages are written to standard error.
lsrsrcOutput 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.HostOutput 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.HostOutput 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 ProcessorTypeThe output will look like this:
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.ConditionOutput is similar to:
Resource Class Persistent and Dynamic Attributes for: IBM.Condition
resource 1:                                                        
        ResourceType = 0                                           
        Variety      = 0