get_rse_cmds

Use the get_rse_cmds command to return a Tcl list of restricted shell commands associated with the currently selected restricted shell environment.

The get_rse_cmds command does not query Active Directory for the restricted shell environment. If you change the restricted shell commands associated with the current restricted shell environment using ADEdit without saving the restricted shell environment to Active Directory, the commands you retrieve using get_rse_cmds won’t match those stored in Active Directory.

You can only use the get_rse_cmds command if the currently selected zone is a classic4 zone. The command does not work in other types of zones.

Zone type

Classic only

Syntax

get_rse_cmds

Abbreviation

grsec

Options

This command takes no options.

Arguments

This command takes no arguments.

Return value

This command returns a Tcl list of restricted shell commands associated with the currently selected restricted shell environment. Each restricted shell command in the list shows the command name followed by a slash (/) and the zone in which the command is defined.

Examples

get_rse_cmds

The command returns the list restricted commands:

rse1-id2/c123 rse1-id1/c123

Related commands

Before you use this command, you must have a currently selected restricted shell environment stored in memory. The following commands enable you to view and select the restricted shell environments:

  • list_rs_envs lists to stdout the restricted shell environments.
  • new_rs_env creates a new restricted shell environment and stores it in memory.
  • save_rs_env saves the restricted shell environment to Active Directory.
  • select_rs_env retrieves 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 command to work with its fields:

  • set_rse_field sets a field value in the current restricted shell environment.