sfscli

Starts the Administrative command-line interface (CLI), or sfscli session, to run commands in interactive mode. This utility also runs a single command or runs a set of commands from a script without starting a sfscli session.

Read syntax diagramSkip visual syntax diagram
>>-sfscli--+-+----------+--+--------------+-+------------------><
           | +- –?----+  '-command_name-' |
           | +- –h----+                   |
           | '- –help-'                   |
           +- –ver------------------------+
           +- –overview-------------------+
           +- –script--file_name----------+
           '-command_string-----------------'

Parameters

–? | –h | –help command_name
Displays help for the specified command (for example, –h mkpool displays help for the mkpool command). If a command name is not specified, this parameter displays a list of available commands in the Administrative CLI.
Note: Although the sfscli utility is listed as a possible command in the help facility, you will receive an error if you attempt to run the sfscli utility from within sfscli (for example, sfscli> sfscli help). To get help for the sfscli utility, enter sfscli –help sfscli.
–ver
Displays the current version and licensing information for this utility.
–overview
Displays the overview information about the sfscli utility, including command modes, standard command and listing parameters, syntax diagram conventions, and user assistance.
–script file_name
Runs the set of command strings in the specified file outside of a sfscli session. If you specify this parameter, you must specify a file name.

The format options specified using the setoutput command apply to all commands in the script.

Output from successful commands routes to stdout. Output from unsuccessful commands route to stderr. If an error occurs while one of the commands in the script is running, the script will exit at the point of failure and return to the system prompt.

command_string
Runs the specified command string outside of a sfscli session.

Description

If you run this utility with any of the valid parameters, the Administrative CLI is not started in interactive mode. If you run this command with no parameters, this command starts the Administrative CLI. When you are in the Administrative CLI, the sfscli> prompt is displayed.

Example

Display the rules in a policy using single-shot mode The following example displays the rules for the DEFAULT policy and the policy named activePolicy from the sfscli utility using single-shot mode:
shell> sfscli catpolicy DEFAULT activePolicy
DEFAULT:
   VERSION 1
   rule 'stgRule1' set stgpool 'pool1' for fileset ('cnt_A')
   rule 'stgRule2' set stgpool 'pool2' where NAME like '%.doc'
   rule 'stgRule3' set stgpool 'pool3' where DAYOFWEEK(CREATION_DATE) == 1
   rule 'stgRule4' set stgpool 'pool4' where USER_ID <= 100

Related reference
exit
quit

Terms of use | Feedback
(C) Copyright IBM Corporation 2003, 2004. All Rights Reserved.