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.
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_mapsreturns a Tcl list of NIS maps in the current zone.list_nis_mapsreturns a list tostdoutof all NIS maps in the current zone.new_nis_mapcreates 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_entryoradd_map_entry_with_commentadds an entry to the current NIS map stored in memory.delete_map_entryremoves an entry from the current NIS map.delete_nis_mapdeletes the selected NIS map from Active Directory and from memory.get_nis_maporget_nis_map_with_commentreturns a Tcl list of the map entries in the current NIS map.get_nis_map_fieldreads a field value from the current NIS map.list_nis_maporlist_nis_map_with_commentlists tostdoutthe map entries in the current NIS map.save_nis_mapsaves the selected NIS map with its current entries to Active Directory.