2
Management
46
Starting and stopping regular polling
To
begin
polling
all
values
in
the
list
at
a
regular
interval,
an
additional
command
is
required:
Device:/>
statistics
‐
poll
‐
interval=10
This
turns
on
regular
polling
with
the
same
output
as
before
and
it
will
appear
every
10
seconds
on
the
console.
In
the
example
output
below,
another
user
has
appeared:
Device:/>
statistics
Name
Value
Unit
‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐ ‐‐‐‐‐ ‐‐‐‐‐
/authentication/system/active_users_system
2
users
To
stop
regular
polling
use
the
command:
Device:/>
statistics
‐
stop
If
an
interval
time
period
is
not
specified,
the
interval
defaults
to
zero
and
the
polling
is
continuous.
Using wildcards
When
you
add
statistics
to
the
polling
list,
the
asterisk
“*”
character
can
be
used
to
specify
all
statistics
within
a
particular
category.
For
example,
the
statistic
bytes_in
for
the
Ethernet
interface
sfp1
can
be
polled
with
the
command:
Device:/>
statistics
‐
add
/ifaces/sfp1/bytes_in
To
poll
all
interfaces,
the
command
would
be:
Device:/>
statistics
‐
add
/ifaces/*/bytes_in
Also
notice
that
the
interface
name
is
specified
as
part
of
the
path
and
this
can
vary
from
platform
to
platform.
Removing polled statistics
The
‐
remove
option
can
remove
individual
statistics
from
the
polled
list:
Device:/>
statistics
‐
add
/authentication/system/active_users_system
If
everything
on
the
polled
list
is
to
be
removed,
this
can
be
done
with
the
wildcard
character:
Device:/>
statistics
‐
remove
*
To
remove
specific
groups
of
statistics,
the
wildcard
character
can
be
used
with
the
‐
remove
option
in
the
same
way
as
it
is
used
with
the
‐
add
option.
For
example:
Device:/>
statistics
‐
remove
/ifaces/*/bytes_in
Logging statistics output to a file
The
potential
demands
on
memory
make
it
impractical
to
log
statistics
polling
output
to
a
file
on
the
security
gateway.
However,
it
is
possible
to
save
the
console
output
to
a
file
in
many
SSH
clients
and
this
is
the
recommended
way
to
do
it.