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 asadd_map_entryto 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.

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:

  • add_map_entryor add_map_entry_with_comment adds an entry to the current NIS map stored in memory.
  • delete_map_entry removes an entry from the current NIS map.
  • delete_nis_map deletes the selected NIS map from Active Directory and from memory.
  • get_nis_map or get_nis_map_with_comment returns a Tcl list of the map entries in the current NIS map.
  • get_nis_map_field reads a field value from the current NIS map.
  • list_nis_map or list_nis_map_with_comment lists to stdout the map entries in the current NIS map.
  • save_nis_map saves the selected NIS map with its current entries to Active Directory.