list_nis_maps

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

Zone type

Not applicable

Syntax

list_nis_maps

Abbreviation

lsnms

Options

This command takes no options.

Arguments

This command takes no arguments.

Return value

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

Examples

list_nis_maps

This example returns the list of NS maps for the zone:

Aliases
Printers
Services

Related commands

Before you use this command, you must have a currently selected NIS map stored in memory. The following commands enable you to view and select a NIS map:

  • get_nis_maps returns a Tcl list of NIS maps in the currently selected zone.
  • list_nis_maps lists to stdout the NIS maps in the currently selected zone.
  • new_nis_map creates a new NIS map and stores it in memory.
  • 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 following commands to work with that map: