get_rsc_field command to return the value of a specified field value from the currently selected restricted shell command that is stored in memory. Centrify-specific fields are similar to Active Directory attributes but are stored within the Active Directory schema.
get_rsc_field command does not query Active Directory for the restricted shell command. If you change field values using ADEdit without saving the restricted shell command to Active Directory, the field value you retrieve using
get_rsc_field won’t match the value stored in Active Directory.
You can only use the
get_rsc_field command if the currently selected zone is a classic4 zone. The command does not work in other types of zones.
This command takes no options.
This command takes the following argument:
Required. Specifies the name of the field whose value you want to retrieve. The possible values are:
This command returns a field value. The data type depends on the field specified. For more information about the field values returned by different fields, see get_dzc_field.
This example returns the contents of the
This is the RSC description
Before you use this command, you must have a currently selected zone stored in memory. The following commands enable you to view and select the restricted shell command to work with:
- get_rs_commands returns a Tcl list of restricted shell commands in the current zone.
- list_rs_commands lists to
stdoutthe restricted shell commands in the current zone.
- new_rs_command creates a new restricted shell command and stores it in memory.
- select_rs_command retrieves a restricted shell command from Active Directory and stores it in memory.
After you have a restricted shell command stored in memory, you can use the following commands to work with that restricted shell: