Sun N1 System Manager 1.1 Administration Guide

Command Line Tips

This section contains a few tips to help you use the N1 System Manager command line interface.

id Keyword

The id keyword is an optional keyword that can be used on the N1 System Manager command line before some attribute values, typically for the server attribute value. The purpose of this keyword is to provide an attribute value that may be the same name as a reserved keyword (for example, a server named all).

Equal Sign

The equal sign (=) can be optionally used between attributes and values on the N1 System Manager command line. For example, the following commands are equivalent:


N1-ok> set role MyRole description myDescription
N1-ok> set role MyRole description=myDescription

The equal sign variant is not shown in the command line help.

Script Comments

When creating a customized n1sh script, you can specify the comment character (#) at the beginning of the line to indicate that the rest of the line should be ignored. See To Run a Script of N1 System Manager Commands for details.

Multiple Attribute Values

Where allowed, multiple attribute values can be specified as a comma–separated list on the N1 System Manager command line. For example:


N1-ok> set server serverA,serverB,serverC locator on

In the command line help, multiple attribute values are shown using the following syntax notation: set server <server>[,<server>...]

Quotation Marks

Single and double quotation marks are supported on the N1 System Manager command line. If needed, either type of quotation mark can be escaped using the backslash character. For example:


N1-ok> set role myRole description "Some Role that I've made up"
N1-ok> set role myRole description='Some Role that I\'ve made up'

Special Characters

Depending on the shell you are using to run n1sh in UNIX command mode, some special characters may need to be escaped. For example, in the bash shell, quotes need to be escaped with the backslash character, like this:


$ n1sh set role MyRole description=\"Some Role that \\\"Paul\\\" made up\"

See your specific shell's documentation for detailed information on escaping special characters.

In the n1sh shell mode, you do not have to escape special characters, so the same command described above would look like this:


N1-ok> set role MyRole description="Some Role that \"Paul\" made up"