list_rs_envs
Use the list_rs_envs command to check Active Directory and print a list of restricted shell environments defined within the currently selected zone to stdout. Use the get_rs_envs command to return a Tcl list.
Zone Type
Classic only
Syntax
list_rs_envs
Abbreviation
lsrse
Options
This command takes no options.
Arguments
This command takes no arguments.
Return Value
This command prints the list of restricted shell environments to stdout. It has no return value.
Examples
list_rs_envs
This example displays the list of restricted shell environments.
restrict_env1
restrict_env2
Related Commands
Before you use this command, you must have a currently selected role stored in memory. The following commands enable you to view and select the role to work with restricted shell environments:
get_rs_envsreturns a Tcl list of restricted shell environments.new_rs_envcreates a new restricted shell environment and stores it in memory.select_rs_envretrieves a restricted shell environment from Active Directory and stores it in memory.
After you have a restricted shell environment stored in memory, you can use the following commands to work with its fields:
delete_rs_envdeletes the current restricted shell environment from Active Directory and from memory.get_rse_fieldreads a field value from the current restricted shell environment.save_rs_envsaves the restricted shell environment to Active Directory.set_rse_fieldsets a field value in the current restricted shell environment.
list_zone_computers
Use the list_zone_computers command to check Active Directory and return a list of zone computers defined within the currently selected zone. If executed in a script, this command outputs its list to stdout so that the output appears in the shell where the script is executed. The command does not return a Tcl list back to the executing script. Use get_zone_computers to return a Tcl list.
Zone Type
Classic and hierarchical
Syntax
list_zone_computers
Abbreviation
lszc
Options
This command takes no options.
Arguments
This command takes no arguments.
Return Value
This command returns a list to stdout of zone computers defined in the currently selected zone. Each zone computer entry includes the following fields, separated by colons (:) :
- User principal name (UPN) of the computer.
- Number of CPUs in the computer and the version of Delinea software installed on the computer.
- Name of the computer in DNS.
Examples
list_zone_computers
This example returns the list of computers similar to this:
printserv$@acme.com:cpus (1) agentVersion (CentrifyDC 5.0.0): printserv.acme.com
Related Commands
Before you use this command, you must have a currently selected zone stored in memory. The following commands enable you to view and select a zone computer:
get_zone_computersreturns a Tcl list of the Active Directory names of all zone computers in the current zone.new_zone_computercreates a new zone computer and stores it in memory.select_zone_computerretrieves a zone computer from Active Directory and stores it in memory.
After you have a zone computer stored in memory, you can use the following commands to work with that zone computer:
delete_zone_computerdeletes the zone computer from Active Directory and from memory.get_zone_computer_fieldreads a field value from the currently selected zone computer.save_zone_computersaves the zone computer with its current settings to Active Directory.set_zone_computer_fieldsets a field value in the currently selected zone computer.