Oracle FS CLI commands can have complex option settings. Oracle FS CLI provides a mean to test individual commands before placing them in a script.
Validate the syntax of a command before adding it your script using the global ‑verify option. You can also use the global ‑example option to display a sample ‑list reply (xml or text) of the command.
When included with any command, the ‑verify option inspects the syntax of the command.
The ‑verify option does not perform semantic checks of option operands or execute the command. When a command fails during an Oracle FS CLI session, the Oracle FS System generates an error message and displays that error message in the command line. If there are no errors, the Oracle FS System returns a Valid : True statement.
$ fscli account -list -verify Valid : True Valid : TrueWhen Oracle FS CLI checks the syntax of a command, Oracle FS CLI may make more than one call in the background. If more than one call is made, the Oracle FS CLI returns more than one validity statement. No matter how many validity statements Oracle FS CLI returns, as long as all of them are Valid : True, the syntax is valid.
To display a sample ‑list reply (xml or text) of the command, use the ‑example option. To get the XML example, add the -output option and the xml value to the command. The default example is the textual output. The following code samples demonstrate the syntax for the option as used with a command.
account –list –details –example -outputformat xml
fscli host_group -list -details -example -outputformat text
fscli account -list -details -example