Interactive Mode Syntax
You can use any of the following syntax options to initiate an interactive CLI command:
•command — If you type the command name, the CLI prompts you to set values for all attribs associated with that command.
•command object — If you specify the object of a particular command, the CLI prompts you to set values for all attribs associated with that object.
•command object.attrib — If you specify an object and attribute of a particular command, the CLI prompts you to set the value of the attribute you specified.
Example
Following is an example of the set command in interactive mode. Items in bold are typed by the user. Items in brackets ([ ]) indicate the current value of the attribute specified.
Set All System Information Using Interactive Mode
1.Type the following command:
set sys
The system returns prompts for information. Default values are listed in brackets. To use the default value, press Enter.
2.The system prompts you to set the value for the contact attribute:
System contact (sys.contact=[Customer Contact]) = Brit
3.Type a value for the location attribute and press Enter:
System location (sys.location=[First floor lab]) =
4.Type a value for name attribute and press Enter:
System name (sys.name=[sms25]) =
5.The system returns the following confirmation message:
Result: Success
System contact | (sys.contact | ) | = Brit |
System location | (sys.location | ) | = First floor lab |
System name | (sys.name | ) | = sms25 |
System serial number | (sys.serialNum) | = |
Remote Paths
Several commands accept remote paths as input. The remote paths specify a resource on an external server that can be accessed by the SMS server. Remote files that can be specified as input to an operation may be accessed using the HTTP, HTTPS, FTP, NFS, or SMB (Samba) protocols.
Remote directories that are used for saving
Remote paths are specified as a single string value. The details for each protocol are listed in the following sections. In each example, items in italics are variables. When using the path syntax, you must replace them with the appropriate values for your paths. Items in brackets ([ ]) are optional.
FTP
You can use the following formats for the FTP protocol:
•Complete specification: ftp://[username:password@]server[:port]/directory/filename
•Anonymous FTP: ftp://server/directory/filename
•Specifying a user name and password: ftp://username:password@server/directory/filename
•FTP Examples:
2 Using the Command Line Interface