
Working in the CLI
Working in the CLI
The Equalizer command line interface, or CLI, was developed to be an easy to use, intuitive, and flexible
command line interface. It was patterned after CLIs used in other common networking equipment, so if you’ve
used a CLI on another network device (such as a router), you should quickly feel comfortable using eqcli.
The CLI provides a number of features that are designed to make working at the command line easier and more
effective, as described in this section.
CLI Contexts and Objects
The Equalizer CLI is a context oriented command interface. This means that the commands available at any time
(and the objects they affect) depend on the current context. The current command context is always indicated in
the CLI prompt. When you start the CLI, the command prompt looks like this:
eqcli >
This indicates that you are in the global context -- all commands available in the CLI for all objects can be executed
from this context, and you can also set parameters for global services (such as NTP, DNS, etc.). You can also
change to other contexts, whose scope is limited to a specific object. For example, you can enter the cluster
specific context for a cluster named cl01 by typing:
eqcli > cluster cl01
eqcli cl-cl01>
The prompt above indicates that the cluster specific context for cl01 is the current context. In this context, the only
commands available are those that affect cluster cl01.
Note that only the first 4 characters of an object name appear in the eqcli prompt. For example, if you have a
cluster named mycluster, then you would enter the cluster specific context for this cluster by typing:
eqcli > cluster mycluster
eqcli cl-myc*>
The asterisk (*) in the prompt indicates that there are more than 4 characters in the cluster name. To display the
complete object name in any context, use the context command:
eqcli cl-myc*> context
The current context is: ‘mycluster’
eqcli cl-myc*>
130
Copyright © 2013 Coyote Point Systems. A subsidiary of Fortinet, Inc.
Comentarios a estos manuales