select_nis_map

Use the select_nis_map command to retrieve a NIS map in the currently selected zone from Active Directory. This command stores the NIS map in memory, and makes it the currently selected NIS map for subsequent ADEdit commands. The NIS map remains selected until you select another NIS map or zone, delete the NIS map, or end the ADEdit session.

If you use ADEdit commands such as add_map_entry to change settings for the selected NIS map, you must save the selected NIS map using the save_nis_map command for your changes to take effect in Active Directory. If you select another NIS map or end the ADEdit session before saving the currently selected NIS map, your changes will be lost.

Zone type

Not applicable

Syntax

select_nis_map map

Abbreviation

slnm

Options

This command takes no options.

Arguments

This command takes the following arguments:

Argument Type Description

map

string

Required. Specifies the name of the NIS map to retrieve from Active Directory.

Return value

This command returns nothing if it runs successfully.

Examples

select_nis_map Printers

This example looks for the NIS map named “Printers” in the current zone and, if found, selects it as the current NIS map.

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 NIS maps:

  • get_nis_maps returns a Tcl list of NIS maps in the current zone.
  • list_nis_maps returns a list to stdout of all NIS maps in the current zone.
  • new_nis_map creates a new NIS map and stores it in memory.

After you have a NIS map stored in memory, you can use the following commands to work with that map: