
Working in the CLI
When specifying server instances on the command line, the user can specify either a single object or a comma
separated list of objects. For example, to create server instances of two servers (sv01 and sv02) in an existing
server pool (sp01), you could enter:
eqcli> srvpool sp01 si sv01,sv02
eqcli sp-sp01-si-sv01*>
When you enter multiple server instances as in the command above, eqcli enters a special combined context that
applies commands to all of the specified objects. For example, after entering the example command above, eqcli
enters the “sv01,sv02” context and the CLI prompt changes to include the first four letters of the combined
context, “sv01*”. To display the full current context, use the following command:
eqcli sp-sp01-si-sv01*> context
The current context is: 'sv01,sv02'
eqcli sp-sp01-si-sv01*>
Using the no Form of a Command
Most commands that create objects and set parameters have a no form that you can use to delete an object or
reset a parameter to its default value. The general format of the no command is:
no [keywords] {object|parameter}
The no keyword must be followed by a complete object context that specifies the object to delete or the parameter
to reset:
l If the object or parameter is defined in the current context, then you do not need to specify any keywords.
l If the object or parameter is defined in a lower level context, then specify the appropriate contexts before
the object or parameter name.
So, for example, type the following to delete cluster cl00:
eqcli > no cluster cl00
For objects and parameters that have lower object contexts (i.e., match rules, server instances, and subnets), you
can use the no form at either the global context or in the lower object specific context:
eqcli > no cluster cl00 match ma00
eqcli > cluster cl00
eqcli cl-cl00> no match ma00
136
Copyright © 2013 Coyote Point Systems. A subsidiary of Fortinet, Inc.
Comentarios a estos manuales