get_vars()
Return the list of variables for a PSL object.
Syntax
get_vars([object],[keyword])
Parameter
Parameter | Definition |
---|---|
object | optional name of object whose variables are to be listed*Default* |
keyword | optional keyword that specifies information that is to be returned for object*Valid Values*
|
Description
The get_vars() function returns a list of the variables of object or for the current object if object is omitted. Theget_vars() function returns the NULL string if object does not exist.
The list of object variables is sorted in ascending ASCII order.
Example
The following get_vars() function call returns a list of variables for a PSL object and all its children:
#print the variables for the MEMORY object and all its children
print(get_vars("MEMORY","all"));
print(get_vars("MEMORY","all"));
Sample output for this example might be:
MEMORY
.
..
__name__
__self__
__type__
active
environment
instances
lastDiscoveryTime
name
numInstances
osUsername
propagateState
status
username
.
..
__name__
__self__
__type__
active
environment
instances
lastDiscoveryTime
name
numInstances
osUsername
propagateState
status
username
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*