2
Management
19
Tab completion
Remembering
as
well
as
typing
commands
and
their
options
can
be
demanding.
The
SEG
provides
a
feature
called
tab
completion,
which
means
that
pressing
the
Tab
key
will
cause
automatic
completion
of
the
current
part
of
the
command.
If
completion
is
not
possible,
pressing
the
Tab
key
will
display
the
available
command
options.
Tab
completion
displays
the
required
object
properties
first,
and
then
shows
any
optional
properties
when
all
the
mandatory
ones
have
been
completed.
Specifying the default value
The
period
(.)
character
before
a
tab
can
be
used
to
automatically
fill
in
the
default
value
for
an
object
property.
For
example:
add
LogReceiver
LogReceiverSyslog
log_example
Address=example_ip
LogSeverity=.
(tab)
Will
fill
in
the
default
value
for
LogSeverity
:
add
LogReceiver
LogReceiverSyslog
log_example
Address=example_ip
LogSeverity=Emergency,Alert,Critical,Error,Warning,Notice,Info
This
severity
list
can
then
be
edited
with
the
back
arrow
and
backspace
keys.
A
default
value
is
not
always
available.
For
example,
the
Action
of
an
IP
rule
has
no
default.
Another
use
of
the
period
character
before
a
tab
is
to
automatically
fill
in
the
current
value
of
an
object
property
in
a
command
line.
For
example,
you
might
type
the
unfinished
command:
set
Address
IPAddress
InterfaceAddresses/sfp1_ip=
If
you
now
type
“.”
followed
by
a
tab,
the
SEG
will
display
the
current
value
for
the
Address
property.
For
example,
if
the
value
is
10.6.58.10
,
the
unfinished
command
line
will
automatically
become:
set
Address
IPAddress
InterfaceAddresses/sfp1_ip=10.6.58.10
The
SEG
automatically
inserts
the
current
value
of
10.6.58.10
,
which
can
then
be
changed
with
the
backspace
or
back
arrow
keys
before
completing
the
command.
Object categories and tab completion
As
mentioned
above,
objects
are
grouped
by
type
,
for
example,
IPAddress
.
Types
themselves
are
grouped
by
category
.
The
type
IPAddress
belongs
to
the
category
Address
.
Categories
are
used
by
tab
completion
when
searching
for
the
right
object
type
to
use.
If
you
enter
a
command
such
as
add
and
press
the
Tab
key,
the
SEG
displays
all
the
available
categories.
By
choosing
a
category
and
then
pressing
the
Tab
key
again,
all
the
object
types
for
that
category
are
displayed.
Using
categories
means
that
there
is
a
simple
way
to
specify
what
kind
of
object
is
being
specified,
and
that
a
manageable
number
of
options
are
displayed
after
pressing
the
Tab
key.