get_nis_maps

Use the get_nis_maps command to check Active Directory and return a Tcl list of NIS maps defined within the currently selected zone. If executed in a script, this command does not output its list to stdout, and no output appears in the shell where the script is executed. Use list_nis_maps to output the list of NIS maps to stdout.

Zone type

Not applicable

Syntax

get_nis_maps

Abbreviation

gnms

Options

This command takes no options.

Arguments

This command takes no arguments.

Return value

This command returns a Tcl list of NIS maps defined in the currently selected zone.

Examples

get_nis_maps

This example returns the list of NIS maps: Aliases Printers Services

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

  • delete_nis_map deletes the selected NIS map from Active Directory and from memory.
  • list_nis_maps lists to stdout all NIS maps in the currently selected zone.
  • new_nis_map creates a new NIS map and stores it in memory.
  • save_nis_map saves the selected NIS map with its current entries to Active Directory.
  • select_nis_map retrieves a NIS map from Active Directory and stores it in memory.

After you have a NIS map stored in memory, you can use the other commands to work with that map’s entries.