3.11. Basic Command Reference

3.11.1. Command Hierarchies

3.11.1.1. CLI Root-Level and Global Commands

back
clear
echo [text-to-echo] [extra-text-to-echo] [more-text]
exec [-echo] [-syntax] {filename | <<[eof-marker-string]}
exit [all]
help
help edit
help globals
help special-characters
logout
— mrinfo         [See 7705 SAR OAM and Diagnostics Guide for command description] 
— mstat           [See 7705 SAR OAM and Diagnostics Guide for command description]  
— mtrace        [See 7705 SAR OAM and Diagnostics Guide for command description]  
— oam             [See 7705 SAR OAM and Diagnostics Guide for command description]  
ping {ip-address | dns-name} [rapid | detail] [ttl time-to-live] [tos type-of-service] [size bytes] [pattern pattern] [source ip-address] [interval seconds] [{next-hop ip-address} | {interface interface-name} | bypass-routing] [count requests] [do-not-fragment] [router router-instance | service-name service-name] [timeout timeout] [fc fc-name]
pwc [previous]
sleep [seconds]
ssh host [-l username] [-v ssh-version] [router router-instance | service-name service-name] [re-exchange-min minutes] [re-exchange-mbyte megabytes]
telnet [ip-address | dns-name] [port] [router router-instance]
telnet [ip-address | dns-name] [port] [service-name service-name]
traceroute {ip-address | dns-name} [ttl ttl] [wait milliseconds] [no-dns] [source ip-address] [tos type-of-service] [router router-instance | service-name service-name]
tree [detail] [flat]
write {user | broadcast} message-string
<root>
— configure
— <level> (any context under configure)
info [detail] [operational]

3.11.1.2. Environment Commands

<root>
— environment
alias alias-name alias-command-name
— no alias alias-name
[no] create
kernel -password password
— no kernel
[no] more
reduced-prompt [no of nodes in prompt]
shell -password password
— no shell
length lines
width width
time-display {local | utc}
[no] time-stamp

3.11.1.3. Monitor Commands

monitor
filter
ip ip-filter-id entry entry-id [interval seconds] [repeat repeat] [absolute | rate]
ipv6 ip-filter-id entry entry-id [interval seconds] [repeat repeat] [absolute | rate]
ip entry entry-id [interval seconds] [repeat repeat] [absolute | rate]
ipv6 entry entry-id [interval seconds] [repeat repeat] [absolute | rate]
port port-id [port-id...(up to 5 max)] [interval seconds] [repeat repeat] [absolute | rate]
router router-instance
router service-name service-name
— ldp
fec-egress-stats ip-prefix/mask [interval seconds] [repeat repeat] [absolute | rate]
session ldp-id [ldp-id...(up to 5 max)] [interval seconds] [repeat repeat] [absolute | rate]
statistics [interval seconds] [repeat repeat] [absolute | rate]
— mpls
group grp-ip-address [source ip-address] [interval interval] [repeat repeat] [absolute | rate]
lsp-egress-stats lsp lsp-name [interval seconds] [repeat repeat] [absolute | rate]
lsp-ingress-stats lsp lsp-name [interval seconds] [repeat repeat] [absolute | rate] ip-address
— pim
group grp-ip-address [source ip-address] [interval interval] [repeat repeat] [absolute | rate]
— rip
neighbor neighbor [neighbor...(up to 5 max)] [interval seconds] [repeat repeat] [absolute | rate]
— vrrp
instance interface interface-name vr-id virtual-router-id [ipv6] [interval seconds] [repeat repeat] [absolute | rate]
id service-id
sap sap-id [interval seconds] [repeat repeat] [absolute | rate]
sap-aggregation-group group-id [interval seconds] [repeat repeat] [absolute | rate]
sdp {sdp-id | far-end ip-address} [interval seconds] [repeat repeat] [absolute | rate]

3.11.1.4. Rollback Commands

admin
compare [to source2]
compare source1 to source2
delete checkpoint-rescue
revert checkpoint-rescue [now]
save [comment comment] [rescue]
view [checkpoint-rescue]
admin
compare source1 to source2
admin
— redundancy
config
— system
[no] rescue-location file-url | rescue filename
[no] rollback-location file-url | rollback filename
config
— redundancy
[no] rollback-sync

3.11.1.5. Candidate Commands

edit [exclusive]
commit [confirmed timeout] [comment comment]
commit no-checkpoint [confirmed timeout]
confirm
copy [line]
delete [line]
discard [now]
goto line
insert [line]
load file-url [overwrite | insert | append]
quit
redo [count]
replace [line]
save file-url
undo [count]
view [line]

3.11.1.6. Show Commands

show
alias
— system

3.11.2. Command Descriptions

3.11.2.1. CLI Root-Level and Global Commands

back

Syntax 
back
Context 
<global>
Description 

This command moves the context back one level of the command hierarchy. For example, if the current level is the config router mpls context, the back command moves the cursor to the config router context level.

clear

Syntax 
clear
Context 
<global>
Description 

This command clears statistics for a specified entity or clears and resets the entity.

Parameters 
card—
reinitializes an I/O module in a specified slot
cpm-filter—
clears CPM filter
cron—
clears CRON history
eth-cfm—
clears ETH-CFM parameters
external-alarms—
accesses external alarms-related clear commands
filter—
clears IP filter counters
group-encryption—
accesses group encryption-related clear commands
ipsec—
accesses IPSec-related clear commands
lag—
accesses LAG-related clear commands
log—
closes and reinitializes the log specified by log-id
mda—
reinitializes the specified MDA in a particular slot
mw—
reboots managed microwave devices
port—
clears port statistics
radius—
clears the RADIUS server state
router—
accesses clear router commands affecting the router instance in which they are entered
Values—
arp, bfd, bgp, dhcp, dhcp6, forwarding-table, grt-lookup, icmp6, igmp, interface, isis, ldp, mld, mpls, neighbor, ospf, ospf3, pim, rip, router-advertisement, rsvp, vrrp

 

saa—
clears the SAA test results
scada—
clears SCADA statistics
screen—
clears the console or Telnet screen
security—
accesses network security-related clear commands
service—
clears service ID and statistical entities
system—
clears (re-enables) a previously failed reference
tacplus—
clears the TACACS+ server state
test-oam—
accesses OAM-related clear statistics commands
testhead—
accesses test head-related clear commands
trace—
clears the trace log
vrrp—
clears and resets the VRRP interface and statistical entities

echo

Syntax 
echo [text-to-echo] [extra-text-to-echo] [more-text]
Context 
<global>
Description 

This command echoes arguments on the command line. The primary use of this command is to allow messages to be displayed to the screen in files executed with the exec command.

Parameters 
text-to-echo—
specifies a text string to be echoed, up to 256 characters
extra-text-to-echo—
specifies more text to be echoed, up to 256 characters
more-text—
specifies more text to be echoed, up to 256 characters

enable-admin

Syntax 
enable-admin
Context 
<global>
Description 

This command enables the user to become a system administrator.

The enable-admin command is in the default profile. By default, all users are given access to this command.

Note:

If the admin-password is configured in the config>system>security>password context, any user can enter a special administrative mode by entering the enable-admin command. Refer to the 7705 SAR System Management Guide, “Password Commands”, for information on the admin-password command.

Once the enable-admin command is entered, the user is prompted for a password. If the password matches, the user is given unrestricted access to all the commands.

The minimum length of the password is determined by the minimum-length command. The complexity requirements for the password is determined by the complexity command.

The following displays an example of the password command usage.

Example:
config>system>security#password
security>password# admin-password test1234 hash
security>password# aging 365
security>password# minimum-length 8
security>password# attempts 5 time 5 lockout 20
security>password# authentication-order radius tacplus local
security>password# enable-admin
Password: test1234
security>password#

The following example displays the password configuration:

ALU-1>config>system>security# info
----------------------------------------------
...
aging 365
minimum-length 8
attempts 5 time 5 lockout 20
admin-password "rUYUz9XMo6I" hash
...
----------------------------------------------
ALU-1>config>system>security#

There are two ways to verify that a user is in the enable-admin mode:

  1. show users – administrator can learn which users are in this mode
  2. enter the enable-admin command again at the root prompt and an error message will be returned
A:ALU-1# show users
===============================================================================
User              Type    Login time                            Idle time
  From
===============================================================================
admin             Console        --                             0d 19:42:22
  --
admin             Telnet  08APR2008 08:35:23                    0d 00:00:00
  10.120.141.147
-------------------------------------------------------------------------------
Number of users : 2
===============================================================================
A:ALU-1#
A:ALU-1# enable-admin
MINOR: CLI Already in admin mode.

exec

Syntax 
exec [-echo] [-syntax] {filename | <<[eof-marker-string]}
Context 
<global>
Description 

This command executes the contents of a text file as if they were CLI commands entered at the console.

Exec commands do not have no versions.

Related commands are:

  1. Use this command to configure a URL for a CLI script to exec following a successful configuration boot.
  2. Use this command to configure a URL for a CLI script to exec following a failed configuration boot.
Parameters 
-echo—
echoes the contents of the exec file to the session screen as it executes
Default—
echo disabled
-syntax—
performs a syntax check of the file without executing the commands. Syntax checking looks for invalid commands and keywords as well as unprintable characters in configured parameters. An error message is displayed if any are found.
Default—
execute file commands
filename—
the text file with CLI commands to execute
<<—
Stdin can be used as the source of commands for the exec command. When stdin is used as the exec command input, the command list is terminated with <Ctrl-c>, “EOF<Return>” or “eof_string<Return>”.

If an error occurs entering an exec file sourced from stdin, all commands after the command returning the error will be silently ignored. The exec command will indicate the command error line number when the stdin input is terminated with an end-of-file input.

eof-marker-string—
The ASCII printable string used to indicate the end of the exec file when stdin is used as the exec file source. <Ctrl-c> and “EOF” can always be used to terminate an exec file sourced from stdin.
Default—
<Ctrl-c>, EOF

exit

Syntax 
exit [all]
Context 
<global>
Description 

This command returns to the context from which the current level was entered. For example, if you navigated to the current level on a context by context basis, then the exit command only moves the cursor back one level.

ALU-1# configure
ALU-1>config# router
ALU-1>config>router# mpls
ALU-1>config>router>mpls# exit
ALU-1>config>router# exit
ALU-1>config# exit

If you navigated to the current level by entering a command string, then the exit command returns the cursor to the context in which the command was initially entered.

ALU-1# configure router mpls
ALU-1>config>router>mpls# exit
ALU-1#

The exit all command moves the cursor all the way back to the root level.

ALU-1# configure
ALU-1>config# router
ALU-1>config>router# mpls
ALU-1>config>router>mpls# exit all
ALU-1#
Parameters 
all—
exits back to the root CLI context

help

Syntax 
help
help edit
help globals
help special-characters
Context 
<global>
Description 

This command provides a brief description of the help system. The following information is displayed:

Help may be requested at any point by hitting a question mark '?'.
In case of an executable node, the syntax for that node will be displayed with an
explanation of all parameters.
In case of sub-commands, a brief description is provided.
Global Commands:
     Help on global commands can be observed by issuing "help globals" at any time.
Editing Commands:
     Help on editing commands can be observed by issuing "help edit" at any time.
Parameters 
help—
displays a brief description of the help system
help edit—
displays help on editing

Available editing keystrokes:

Delete current character.....................Ctrl-d
Delete text up to cursor.....................Ctrl-u
Delete text after cursor.....................Ctrl-k
Move to beginning of line....................Ctrl-a
Move to end of line..........................Ctrl-e
Get prior command from history...............Ctrl-p
Get next command from history................Ctrl-n
Move cursor left.............................Ctrl-b
Move cursor right............................Ctrl-f
Move back one word...........................Esc-b
Move forward one word........................Esc-f
Convert rest of word to uppercase............Esc-c
Convert rest of word to lowercase............Esc-l
Delete remainder of word.....................Esc-d
Delete word up to cursor.....................Ctrl-w
Transpose current and previous character.....Ctrl-t
Enter command and return to root prompt......Ctrl-z
Refresh input line...........................Ctrl-l
help globals—
displays help on global commands

Available global commands:

back            - Go back a level in the command tree
candidate       + Commands used for editing candidate configurations
echo            - Echo the text that is typed in
enable-admin    - Enable the user to become a system administrator
exec            - Execute a file - use -echo to show the commands and
                  prompts on the screen
exit            - Exit to intermediate mode - use option all to exit to
                  root prompt
help            - Display help
history         - Show command history
logout          - Log off this system
mrinfo          - Request multicast router information
mstat           - Trace multicast path from a source to a receiver and                  display multicast packet rate and loss information
mtrace          - Trace multicast path from a source to a receiver
oam             + OAM Test Suite
ping            - Verify the reachability of a remote host
pwc             - Show the present working context
sleep           - Sleep for specified number of seconds
ssh             - SSH to a host
telnet          - Telnet to a host
traceroute      - Determine the route to a destination address
tree            - Display command tree structure from the context of
                  execution
write           - Write text to another user
help special-characters—
displays help on special characters

Use the following CLI commands to display more information about commands and command syntax:

? —
lists all commands in the current context
string?—
lists all commands available in the current context that start with the string
command ?—
displays command syntax and associated keywords
string<Tab> or string<Space>—
completes a partial command name (auto-completion) or lists available commands that match the string

history

Syntax 
history
Context 
<global>
Description 

This command lists the last 30 commands entered in this session.

Re-execute a command in the history with the !n command, where n is the line number associated with the command in the history output.

For example:

ALU-1# history
     68 info
     69 exit
     70 info
     71 filter
     72 exit all
     73 configure
     74 router
     75 info
     76 interface "test"
     77 exit
     79 info
     80 interface "test"
     81 exit all
     82 configure router
     83 interface
     84 info
     85 interface "test"
     86 info
     87 exit all
     88 configure
     89 card 1
     91 exit
     92 router
     93 exit
     94 history
ALU-1# !88
ALU-1# configure
ALU-1>config#

info

Syntax 
info [detail] [operational]
Context 
configure
Description 

This command displays the running configuration for the configuration context. It can be used at any level under configure but not at the top configure level.

The output of this command is similar to the output of a show config command. This command, however, lists the configuration of the context where it is entered and all branches below that context level.

For example:

ALU-1>config>router>mpls# info
------------------------------------------
mpls
            interface "system"
            exit
            interface "to_1/2/1"
                label-map 131
                    pop
                    no shutdown
                exit
            exit
            static-lsp "to121"
                to 10.8.8.8
                push 121 nexthop 10.1.3.1
                no shutdown
            exit
            no shutdown
        exit
    exit
----------------------------------------------
ALU-1>config>router>mpls#

By default, the command only enters the configuration parameters that vary from the default values. The detail keyword causes all configuration parameters to be displayed.

The operational keyword is used to display the operational configuration of the current configuration context when the user is in candidate edit mode. The operational keyword is mandatory when using the info command while in candidate edit mode.

Parameters 
detail—
displays all configuration parameters, including parameters at their default values
operational—
displays the operational configuration of the current configuration context

logout

Syntax 
logout
Context 
<global>
Description 

This command logs out of the router session.

When the logout command is issued from the console, the login prompt is displayed and any log IDs directed to the console are discarded. When the console session resumes (regardless of the user), the log output to the console resumes.

When a Telnet session is terminated from a logout command, all log IDs directed to the session are removed. When a user logs back in, the log IDs must be recreated.

password

Syntax 
password
Context 
<ROOT>
Description 

This command changes a user CLI login password.

When a user logs in after the administrator forces a new-password-at-login, or the password has expired (aging), then this command is automatically invoked.

When invoked, the user is prompted to enter the old password, the new password, and then the new password again to verify the correct input.

If a user fails to create a new password after the administrator forces a new-password-at-login or after the password has expired, the user is not allowed access to the CLI.

ping

Syntax 
ping {ip-address | dns-name} [rapid | detail] [ttl time-to-live] [tos type-of-service] [size bytes] [pattern pattern] [source ip-address] [interval seconds] [{next-hop ip-address} | {interface interface-name} | bypass-routing] [count requests] [do-not-fragment] [router router-instance | service-name service-name] [timeout timeout] [fc fc-name]
Context 
<global>
Description 

This command is the TCP/IP utility to verify IP reachability.

Parameters 
ip-address—
the IP address of the remote host to ping
Values—

ipv4-address:

a.b.c.d

ipv6-address:

x:x:x:x:x:x:x:x[-interface]

x:x:x:x:x:x:d.d.d.d[-interface]

   x:   [0 to FFFF]H

   d:   [0 to 255]D

   interface — 32 chars max, mandatory for link local addresses

 

source ip-address
the source IP address to use in the ping requests
Values—

ipv4-address:

a.b.c.d

ipv6-address:

x:x:x:x:x:x:x:x (eight 16-bit pieces)

x:x:x:x:x:x:d.d.d.d

   x:   [0 to FFFF]H

   d:   [0 to 255]D

 

Default—
the IP address of the egress IP interface
next-hop ip-address
this option disregards the routing table and will send this packet to the specified next hop address. This address must be on an adjacent router that is attached to a subnet that is common between this and the next-hop router.
Values—
a valid IP next hop IP address

 

Default—
per the routing table
dns-name—
the DNS name (if DNS name resolution is configured) of the remote host to ping
Values—
128 characters maximum

 

rapid | detail—
the rapid parameter specifies to send ping requests rapidly. The results are reported in a single message, not in individual messages for each ping request. By default, five ping requests are sent before the results are reported. To change the number of requests, include the count option.

The detail parameter includes in the output the interface on which the ping reply was received.

ALU-1# ping 192.168.xx.xx4 detail
PING 192.168.xx.xx4: 56 data bytes
64 bytes from 192.168.xx.xx4 via fei0: icmp_seq=0 ttl=64 time=0.000 ms.
64 bytes from 192.168.xx.xx4 via fei0: icmp_seq=1 ttl=64 time=0.000 ms.
64 bytes from 192.168.xx.xx4 via fei0: icmp_seq=2 ttl=64 time=0.000 ms.
64 bytes from 192.168.xx.xx4 via fei0: icmp_seq=3 ttl=64 time=0.000 ms.
64 bytes from 192.168.xx.xx4 via fei0: icmp_seq=4 ttl=64 time=0.000 ms.
---- 192.168.xx.xx4 PING Statistics ----
5 packets transmitted, 5 packets received, 0.00% packet loss
round-trip min/avg/max/stddev = 0.000/0.000/0.000/0.000 ms
ALU-1#
time-to-live
the IP Time To Live (TTL) value to include in the ping request, expressed as a decimal integer
Values—
0 to 128

 

type-of-service
the type-of-service (ToS) bits in the IP header of the ping packets, expressed as a decimal integer
Values—
0 to 255

 

bytes—
the size in bytes of the ping request packets
Values—
0 to 65507

 

Default—
56 bytes (actually 64 bytes because 8 bytes of ICMP header data are added to the packet)
pattern
16-bit pattern string to include in the ping packet, expressed as a decimal integer
Values—
0 to 65535

 

seconds
the interval in seconds between consecutive ping requests, expressed as a decimal integer
Values—
1 to 10000

 

Default—
1
interface-name
specifies the interface name
bypass-routing—
sends the ping request to a host on a directly attached network bypassing the routing table. The host must be on a directly attached network or an error is returned.
requests
the number of ping requests to send to the remote host, expressed as a decimal integer
Values—
1 to 10000

 

Default—
5
do-not-fragment—
specifies that the request frame should not be fragmented. This option is particularly useful in combination with the size parameter for maximum MTU determination.
router-instance
specifies the router name or service ID
Values—
router-name:       Base, management
service-id:          1 to 2147483647

 

Default—
Base
service-name
specifies the service name, 64 characters maximum
timeout
specifies the timeout in seconds
Values—
1 to 10

 

Default—
5
fc-name
specifies the forwarding class
Values—
be | l2 | af | l1 | h2 | ef | h1 | nc

 

Default—
nc

pwc

Syntax 
pwc [previous]
Context 
<global>
Description 

This command displays the present or previous working context of the CLI session.

The pwc command provides a user who is in the process of dynamically configuring a chassis a way to display the current or previous working context of the CLI session. The pwc command displays a list of the CLI nodes that hierarchically define the current context of the CLI instance of the user.

For example:

A:ALU>config>router>mpls# pwc
----------------------------------------------
Present Working Context :
----------------------------------------------
 <root> 
  configure
  router “Base”
  mpls
----------------------------------------------
A:ALU>config>router>mpls#

When the previous keyword is specified, the previous context is displayed. This is the context entered by the CLI parser upon execution of the exit command. The current context of the CLI is not affected by the pwc command.

Parameters 
previous—
displays the previous working context

sleep

Syntax 
sleep [seconds]
Context 
<global>
Description 

This command causes the console session to pause operation (sleep) for 1 second (default) or for the specified number of seconds.

Parameters 
seconds—
specifies the number of seconds for the console session to sleep, expressed as a decimal integer
Values—
1 to 100

 

Default—
1

ssh

Syntax 
ssh host [-l username] [-v ssh-version] [router router-instance | service-name service-name] [re-exchange-min minutes] [re-exchange-mbyte megabytes]
Context 
<global>
Description 

This command opens a Secure Shell (SSH) session with another host.

This command initiates a client SSH session with the remote host and is independent from the administrative or operational state of the SSH server. However, to be the target of an SSH or SFTP session, the SSH server must be operational.

The command also allows the user to initiate an SSH session with a key re-exchange to occur after a specified number of minutes have passed or a specified number of megabytes have been transmitted. If both parameters are configured, the key re-exchange will occur at whatever limit is reached first. If neither parameter is set, key re-exchange will not occur.

Quitting SSH while in the process of authentication is accomplished by either executing a <Ctrl-c> or "~." (tilde and dot), assuming the “~” is the default escape character for the SSH session.

Parameters 
host—
the remote host for an SSH session. The IP address, DNS name (if DNS name resolution is configured), or the user name at the IP address can be specified.

For IPv6 addresses, including the “-interface” for the link local address is mandatory; otherwise, “-interface” is omitted. For example, if the user is alu_admin and the IPv6 hostname consists of 2001:db8:a0b:12f0::1 along with the link local interface “ies1_chicago”, the full command would be (note the “-” between the ipv6-address and the interface):

ssh -l alu_admin 2001:db8:a0b:12f0::1-ies1_chicago

Values—

[user@]hostname:

255 characters maximum

user:

user name, 32 characters maximum

hostname:

[dns-name | ipv4-address | ipv6-address]

   dns-name:

128 characters maximum

   ipv4-address

a.b.c.d

   ipv6-address

x:x:x:x:x:x:x:x[-interface]

x:x:x:x:x:x:d.d.d.d[-interface]

x:   [0 to FFFF]H

d:   [0 to 255]D

interface — 32 chars max, mandatory for link local addresses

 

username
the username to use when opening the SSH session
ssh-version
the version of the SSH session to use
Values—
1, 2, or 1-2 (for SSHv1 only, SSHv2 only, or SSHv1 and SSHv2)

 

router-instance—
the router name or service ID
Values—
router-name:          Base, management
service-id:              1 to 2147483647

 

Default—
Base
service-name
specifies the service name, 64 characters maximum
minutes
specifies the time interval after which the SSH client will initiate the key re-exchange
Values—
1 to 1440

 

Default—
60
megabytes
specifies the number of megabytes transmitted during an SSH session after which the SSH client will initiate the key re-exchange
Values—
1 to 64000

 

Default—
1024

telnet

Syntax 
telnet [ip-address | dns-name] [port] [router router-instance]
telnet [ip-address | dns-name] [port] [service-name service-name]
Context 
<global>
Description 

This command opens a Telnet session to a remote host.

Telnet servers in 7705 SAR networks limit a Telnet client to three retries to log in. The Telnet server disconnects the Telnet client session after three retries. The number of retry attempts for a Telnet client session is not user-configurable.

Parameters 
ip-address —
the IP address of the remote host
Values—

ipv4-address:

a.b.c.d

ipv6-address:

x:x:x:x:x:x:x:x[-interface]

x:x:x:x:x:x:d.d.d.d[-interface]

   x:   [0 to FFFF]H

   d:   [0 to 255]D

   interface — 32 chars max, mandatory for link local addresses

 

dns-name—
the DNS name (if DNS name resolution is configured) of the remote host
Values—
128 characters maximum

 

port—
the TCP port number to use to Telnet to the remote host, expressed as a decimal integer
Values—
1 to 65535

 

Default—
23
router-instance—
the router name or service ID
Values—
router-name:          Base, management
service-id:              1 to 2147483647

 

Default—
Base
service-name
specifies the service name, 64 characters maximum

traceroute

Syntax 
traceroute {ip-address | dns-name} [ttl ttl] [wait milliseconds] [no-dns] [source ip-address] [tos type-of-service] [router router-instance | service-name service-name]
Context 
<global>
Description 

The TCP/IP traceroute utility determines the route to a destination address. Aborting a traceroute with the <Ctrl-c> command could require issuing a second <Ctrl-c> command before the prompt is returned.

ALU-1# traceroute 192.168.xx.xx4
traceroute to 192.168.xx.xx4, 30 hops max, 40 byte packets
 1  192.168.xx.xx4 0.000 ms  0.000 ms  0.000 ms
ALU-1#
Parameters 
ip-address—
the IP address to trace
Values—

ipv4-address:

a.b.c.d

ipv6-address:

x:x:x:x:x:x:x:x[-interface]

x:x:x:x:x:x:d.d.d.d[-interface]

   x:   [0 to FFFF]H

   d:   [0 to 255]D

   interface — 32 chars max, mandatory for link local addresses

 

dns-name —
the DNS name (if DNS name resolution is configured)
Values—
128 characters maximum

 

ttl
the maximum Time-To-Live (TTL) value to include in the traceroute request, expressed as a decimal integer
Values—
1 to 255

 

milliseconds—
the time in milliseconds to wait for a response to a probe, expressed as a decimal integer
Values—
1 to 60000

 

Default—
5000
no-dns—
when the no-dns keyword is specified, a DNS lookup for the specified host name will not be performed
Default—
DNS lookups are performed
source ip-address
the source IP address to use as the source of the probe packets. If the IP address is not one of the device’s interfaces, an error is returned.
Values—

ipv4-address:

a.b.c.d

ipv6-address:

x:x:x:x:x:x:x:x (eight 16-bit pieces)

x:x:x:x:x:x:d.d.d.d

   x:   [0 to FFFF]H

   d:   [0 to 255]D

 

type-of-service
the type-of-service (ToS) bits in the IP header of the probe packets, expressed as a decimal integer
Values—
0 to 255

 

router-instance—
the router name or service ID
Values—
router-name:          Base, management
service-id:              1 to 2147483647

 

Default—
Base
service-name
specifies the service name, 64 characters maximum

tree

Syntax 
tree [detail] [flat]
Context 
<global>
Description 

This command displays the command hierarchy structure from the present working context.

Parameters 
detail—
includes parameter information for each command displayed in the tree output
flat—
displays the command hierarchy on single lines

write

Syntax 
write {user | broadcast} message-string
Context 
<global>
Description 

This command sends a console message to a specific user or to all users with active console sessions.

Parameters 
user—
the name of a user with an active console session to which to send a console message
Values—
any valid CLI username

 

broadcast—
specifies that the message-string is to be sent to all users logged in to the router
message-string—
the message string to send, up to 250 characters long composed of printable, 7-bit ASCII characters. If the string contains special characters (#, $, spaces, etc.), the entire string must be enclosed within double quotes.

3.11.2.2. Environment Commands

alias

Syntax 
alias alias-name alias-command-name
no alias alias-name
Context 
environment
Description 

This command enables the substitution of a command line by an alias.

Use the alias command to create alternative names for an entity or command string that are easier to understand and remember. If the string contains special characters (#, $, spaces, etc.), the entire string must be enclosed within double quotes. The special characters “/” and “\” cannot be used as the first character inside an alias string. Only a single command can be present in the command string.

The alias command can be entered in any context but must be created in the root>environment context.

For example, to create an alias named soi to display MPLS interfaces, enter:

alias soi “show router mpls interface”

An alias can contain embedded quotes if the quote is preceded with the “\” character (for example, alias my-alias "| match \"string\""). This enables aliases to be created as shortcuts for complex commands; for example:

environment alias my-summary "| match expression \"----|Description|Interface|Admin State|Oper State|Transceiver Type|Optical Compliance|Link Length\" | match invert-match expression \"Ethernet Interface|OTU Interface\" | match invert-match expression \"----\" post-lines 1"

When applied to the show port 1/1/1 detail command, show port 1/1/1 detail my-summary will display only the output fields that match the conditions in the match expression as shown in the following examples:

Without alias:

*A:Sar18 Dut-B# show port 1/1/1 detail
==============================================================================
Ethernet Interface
==============================================================================
Description        : 10/100/Gig Ethernet SFP
Interface          : 1/1/1                      Oper Speed       : 1 Gbps
Link-level         : Ethernet                   Config Speed     : 1 Gbps
Admin State        : up                         Oper Duplex      : full
Oper State         : up                         Config Duplex    : full
Physical Link      : Yes                        MTU              : 1572
Single Fiber Mode  : No
IfIndex            : 35684352                   Hold time up     : 0 seconds
Last State Change  : 05/23/2018 18:41:28        Hold time down   : 0 seconds
Last Cleared Time  : N/A                        DDM Events       : Enabled
Phys State Chng Cnt: 1
Configured Mode    : network                    Encap Type       : 802.1q
Dot1Q Ethertype    : 0x8100                     QinQ Ethertype   : 0x8100
Ing. Pool % Rate   : 100                        Egr. Pool % Rate : 100
Net. Egr. Queue Pol: default
Net. Scheduler Mode: 16-priority
Auto-negotiate     : true                       MDI/MDX          : unknown
Config Phy-tx-clock: auto-pref-slave            Oper Phy-tx-clock: N/A
NetEgr.Unshaped-Cir: 0 Kbps
Allow Eth-BN       : False
Egress Rate        : Default                    Ingress Rate     : Default
Egr.Rate Incl.FCS  : Disabled
Ingress CBS(bytes) : 130816                     Src-pause        : Disabled
                                                LACP Tunnel      : Disabled
Down-when-looped   : Disabled                   Keep-alive       : 10
Loop Detected      : False                      Retry            : 120
Use Broadcast Addr : False
Loopback           : none                       Swap Mac Addr    : Disabled
Loopback Time Left : unspecified
Cfm Loopback       : Disabled
PTP Asymmetry      : 0                          Edge Timestamp   : Disable
Timestamp Capable  : True
Sync. Status Msg.  : Disabled                   Rx Quality Level : N/A
Tx DUS/DNU         : Disabled                   Tx Quality Level : N/A
SSM Code Type      : sdh
CRC Mon SD Thresh  : Disabled                   CRC Mon Window   : 10 seconds
CRC Mon SF Thresh  : Disabled
EFM OAM            : Disabled                   EFM OAM Link Mon : Disabled
Configured Address : d6:65:01:01:00:01
Hardware Address   : d6:65:01:01:00:01
Group Encryption
Inbound Keygroup Id : N/A
Inbound Keygroup Id : N/A
Transceiver Data
Transceiver Status : operational
Transceiver Type   : Unknown
Model Number       : none
TX Laser Wavelength: 0 nm                       Diag Capable     : no
Connector Code     : Unknown                    Vendor OUI       : 00:00:00
Manufacture date   : 2000/01/01                 Media            : Ethernet
Serial Number      : none
Part Number        : none
Optical Compliance :
Link Length support: Unknown
SFP Sync-E Capable : yes
...

With alias:

*A:Sar18 Dut-B# show port 1/1/1 detail my-summary
Description        : 10/100/Gig Ethernet SFP
Interface          : 1/1/1                      Oper Speed       : 1 Gbps
Admin State        : up                         Oper Duplex      : full
Oper State         : up                         Config Duplex    : full
Transceiver Type   : Unknown
Optical Compliance :
Link Length support: Unknown
-------------------------------------------------------------------------------
*A:Sar18 Dut-B#
Parameters 
alias-name—
the alias name. Do not use a valid command string for the alias. If the alias specified is an actual command, this causes the command to be replaced by the alias.
alias-command-name—
the command line to be associated

create

Syntax 
[no] create
Context 
environment
Description 

By default, the create command is required to create a new OS entity.

The no form of the command disables requiring the create keyword.

Default 

create

kernel

Syntax 
kernel -password password
no kernel
Context 
environment
Description 

This command enables and disables the kernel.

Parameters 
password—
specifies the password to access the kernel, up to 256 characters

more

Syntax 
[no] more
Context 
environment
Description 

This command enables per-screen CLI output, meaning that the output is displayed on a screen-by-screen basis. The terminal screen length can be modified with the terminal command.

The following prompt appears at the end of each screen of paginated output:

Press any key to continue (Q to quit)

The no form of the command displays the output all at once. If the output length is longer than one screen, the entire output will be displayed, which may scroll the screen.

Default 

more

reduced-prompt

Syntax 
reduced-prompt [no of nodes in prompt]
no reduced-prompt
Context 
environment
Description 

This command configures the maximum number of higher CLI context levels to display in the CLI prompt for the current CLI session. This command is useful when configuring features that are several node levels deep, which can cause the CLI prompt to become too long.

By default, the CLI prompt displays the system name and the complete context in the CLI.

The number of nodes specified indicates the number of higher-level contexts that can be displayed in the prompt.

For example, if reduced-prompt is set to 2, the two highest contexts from the present working context are displayed by name with the hidden (reduced) contexts compressed into a ellipsis (“…”).

ALU-1>environment# reduced-prompt 2
ALU-1>config>router# interface to-103
ALU-1>...router>if#

The setting is not saved in the configuration. It must be reset for each CLI session or stored in an exec script file.

The no form of the command reverts to the default.

Default 

no reduced-prompt

Parameters 
no-of-nodes-in-prompt—
the maximum number of higher-level nodes displayed by name in the prompt, expressed as a decimal integer
Values—
0 to 15

 

Default—
2

saved-ind-prompt

Syntax 
[no] saved-ind-prompt
Context 
environment
Description 

This command enables a saved indicator in the prompt. When changes are made to the configuration file, a “*” appears in the prompt string indicating that the changes have not been saved. When an admin save command is executed, the “*” disappears.

*A:ALU-48# admin save
Writing file to ftp://192.0.2.43/./sim48/sim48-config.cfg
Saving configuration .... Completed.
A:ALU-48
Default 

saved-ind-prompt

shell

Syntax 
shell -password password
no shell
Context 
environment
Description 

This command enables and disables the shell.

Parameters 
password—
specifies the password to enter the shell, up to 256 characters

suggest-internal-objects

Syntax 
[no] suggest-internal-objects
Context 
environment
Description 

This command enables the suggestion of internally created objects while auto-completing in the CLI.

Default 

no suggest-internal-objects

terminal

Syntax 
terminal
Context 
environment
Description 

This command enables the context to configure the terminal screen length and width for the current CLI session. The terminal length and width cannot be configured for Telnet or SSH sessions, as the correct display size is automatically negotiated.

length

Syntax 
length lines
Context 
environment>terminal
Description 

This command sets the terminal screen length (number of lines).

Default 

24 — terminal dimensions are set to 24 lines long by 80 characters wide

Parameters 
lines—
the number of lines for the terminal screen length
Values—
1 to 512

 

width

Syntax 
width width
Context 
environment>terminal
Description 

This command sets the terminal screen width (number of characters).

Default 

80 — terminal dimensions are set to 24 lines long by 80 characters wide

Parameters 
width—
the number of characters for the terminal screen width
Values—
1 to 512

 

time-display

Syntax 
time-display {local | utc}
Context 
environment
Description 

This command displays timestamps in the CLI session based on local time or Coordinated Universal Time (UTC).

The system keeps time internally in UTC and is capable of displaying the time in either UTC or local time based on the time zone configured.

This configuration command is only valid for times displayed in the current CLI session. This includes displays of event logs, traps and all other places where a timestamp is displayed.

In general, all timestamps are shown in the time selected. This includes log entries destined for console/session, memory, or SNMP logs. Log files on compact flash are maintained and displayed in UTC format.

Default 

time-display local

time-stamp

Syntax 
[no] time-stamp
Context 
environment
Description 

This command displays timestamps before the CLI prompt, indicating the last time that the command was completed. The date and time are displayed; the time format is either local or UTC, depending on how it was set with the time-display command.

Default 

no time-stamp

3.11.2.3. Monitor CLI Commands

filter

Syntax 
filter
Context 
monitor
Description 

This command enables the context to configure criteria to monitor IP filter statistics.

ip

Syntax 
ip ip-filter-id entry entry-id [interval seconds] [repeat repeat] [absolute | rate]
Context 
monitor>filter
Description 

This command enables IP filter monitoring. The statistical information for the specified IP filter entry is displayed at the configured interval until the configured count is reached.

The first screen displays the current statistics related to the specified IP filter. The subsequent statistical information listed for each interval is displayed as a delta to the previous screen output.

When the keyword rate is specified, the rate per second for each statistic is displayed instead of the delta.

Monitor commands are similar to show commands, but only statistical information is displayed. Monitor commands display the selected statistics according to the configured number of times at the interval specified.

Parameters 
ip-filter-id—
displays detailed information for the specified filter ID or filter name and its filter entries
Values—
1 to 65535 or filter-name (up to 64 characters)

 

entry-id—
displays information for the specified filter entry ID
Values—
1 to 65535

 

seconds
configures the interval for each display in seconds
Values—
3 to 60

 

Default—
10  
repeat—
configures how many times the command is repeated
Values—
1 to 999

 

Default—
10
absolute—
displays raw statistics, without processing. No calculations are performed on the delta or rate statistics.
rate —
displays the rate per second for each statistic instead of the delta
Output 

The following output is an example of statistical information for the specified IP filter entry.

Output Example
ALU-1>monitor# filter ip 10 entry 1 interval 3 repeat 3 absolute
===============================================================================
Monitor statistics for IP filter 10 entry 1
===============================================================================
-------------------------------------------------------------------------------
At time t = 0 sec (Base Statistics)
-------------------------------------------------------------------------------
Ing. Matches : 0
Egr. Matches : 0                              
-------------------------------------------------------------------------------
At time t = 3 sec (Mode: Absolute)
-------------------------------------------------------------------------------
Ing. Matches : 0                               
Egr. Matches : 0
-------------------------------------------------------------------------------
At time t = 6 sec (Mode: Absolute)
-------------------------------------------------------------------------------
Ing. Matches : 0                                
Egr. Matches : 0
-------------------------------------------------------------------------------
At time t = 9 sec (Mode: Absolute)
-------------------------------------------------------------------------------
Ing. Matches : 0
Egr. Matches : 0
===============================================================================
ALU-1>monitor#
ALU-1>monitor# filter ip 10 entry 1 interval 3 repeat 3 rate
===========================================================================
Monitor statistics for IP filter 10 entry 1
===========================================================================
---------------------------------------------------------------------------
At time t = 0 sec (Base Statistics)
---------------------------------------------------------------------------
Ing. Matches : 0
Egr. Matches : 0
---------------------------------------------------------------------------
At time t = 3 sec (Mode: Rate)
---------------------------------------------------------------------------
Ing. Matches : 0
Egr. Matches : 0
---------------------------------------------------------------------------
At time t = 6 sec (Mode: Rate)
---------------------------------------------------------------------------
Ing. Matches : 0
Egr. Matches : 0
---------------------------------------------------------------------------
At time t = 9 sec (Mode: Rate)
---------------------------------------------------------------------------
Ing. Matches : 0
Egr. Matches : 0

ipv6

Syntax 
ipv6 ipv6-filter-id entry entry-id [interval seconds] [repeat repeat] [absolute | rate]
Context 
monitor>filter
Description 

This command enables IPv6 filter monitoring. The statistical information for the specified IPv6 filter entry is displayed at the configured interval until the configured count is reached.

The first screen displays the current statistics related to the specified IPv6 filter. The subsequent statistical information listed for each interval is displayed as a delta to the previous screen output.

When the keyword rate is specified, the rate per second for each statistic is displayed instead of the delta.

Monitor commands are similar to show commands, but only statistical information is displayed. Monitor commands display the selected statistics according to the configured number of times at the interval specified.

Parameters 
ipv6-filter-id—
displays detailed information for the specified filter ID or filter name and its filter entries
Values—
1 to 65535 or filter-name (up to 64 characters)

 

entry-id—
displays information for the specified filter entry ID
Values—
1 to 65535

 

seconds
configures the interval for each display in seconds
Values—
3 to 60

 

Default—
10
repeat—
configures how many times the command is repeated
Values—
1 to 999

 

Default—
10
absolute—
displays raw statistics, without processing. No calculations are performed on the delta or rate statistics.
rate —
displays the rate per second for each statistic instead of the delta

management-access-filter

Syntax 
management-access-filter
Context 
monitor
Description 

This command enables the context to configure criteria to monitor management access filters. Management access filters control all traffic. They can be used to restrict management of the 7705 SAR by other nodes outside specific (sub)networks or through designated ports.

ip

Syntax 
ip entry entry-id [interval seconds] [repeat repeat] [absolute | rate]
Context 
monitor>management-access-filter
Description 

This command enables IP filter monitoring. The statistical information for the specified IP filter entry is displayed at the configured interval until the configured count is reached.

The first screen displays the current statistics related to the specified IP filter. The subsequent statistical information listed for each interval is displayed as a delta to the previous screen output.

When the keyword rate is specified, the rate per second for each statistic is displayed instead of the delta.

Monitor commands are similar to show commands, but only statistical information is displayed. Monitor commands display the selected statistics according to the configured number of times at the interval specified.

Parameters 
entry-id—
displays information for the specified filter entry ID
Values—
1 to 9999

 

seconds
configures the interval for each display in seconds
Values—
3 to 60

 

Default—
10
repeat—
configures how many times the command is repeated
Values—
1 to 999

 

Default—
10
absolute—
displays raw statistics, without processing. No calculations are performed on the delta or rate statistics.
rate —
displays the rate per second for each statistic instead of the delta

ipv6

Syntax 
ipv6 entry entry-id [interval seconds] [repeat repeat] [absolute | rate]
Context 
monitor>management-access-filter
Description 

This command enables IPv6 filter monitoring. The statistical information for the specified IPv6 filter entry is displayed at the configured interval until the configured count is reached.

The first screen displays the current statistics related to the specified IPv6 filter. The subsequent statistical information listed for each interval is displayed as a delta to the previous screen output.

When the keyword rate is specified, the rate per second for each statistic is displayed instead of the delta.

Monitor commands are similar to show commands, but only statistical information is displayed. Monitor commands display the selected statistics according to the configured number of times at the interval specified.

Parameters 
entry-id—
displays information for the specified filter entry ID
Values—
1 to 9999

 

seconds
configures the interval for each display in seconds
Values—
3 to 60

 

Default—
10  
repeat—
configures how many times the command is repeated
Values—
1 to 999

 

Default—
10
absolute—
displays raw statistics, without processing. No calculations are performed on the delta or rate statistics.
rate —
displays the rate per second for each statistic instead of the delta

port

Syntax 
port port-id [port-id...(up to 5 max)] [interval seconds] [repeat repeat] [absolute | rate]
Context 
monitor
Description 

This command enables port traffic monitoring. The specified ports’ statistical information is displayed at the configured interval until the configured count is reached.

The first screen displays the current statistics related to the specified ports. The subsequent statistical information listed for each interval is displayed as a delta to the previous screen output.

When the keyword rate is specified, the rate per second for each statistic is displayed instead of the delta. The percentage of the port being used is also displayed. For Ethernet ports, the usage includes inter-frame gap and preamble.

Monitor commands are similar to show commands, but only statistical information is displayed. Monitor commands display the selected statistics according to the configured number of times at the interval specified.

Parameters 
port-id—
specifies up to 5 port IDs
Values—
port-id:              slot/mda/port[.channel]

 

seconds—
configures the interval for each display in seconds
Values—
3 to 60

 

Default—
10
repeat—
configures how many times the command is repeated
Values—
1 to 999

 

Default—
10
absolute—
displays raw statistics, without processing. No calculations are performed on the delta or rate statistics.
rate —
displays the rate per second for each statistic instead of the delta
Output 

The following output is an example of statistical information about the port.

Output Example
ALU-12>monitor# port 1/1/4 interval 3 repeat 3 absolute
===============================================================================
Monitor statistics for Port 1/1/4
===============================================================================
                                             Input                      Output
-------------------------------------------------------------------------------
At time t = 0 sec (Base Statistics)
-------------------------------------------------------------------------------
Octets                                           0                           0
Packets                                         39                         175
Errors                                           0                           0
-------------------------------------------------------------------------------
At time t = 3 sec (Mode: Absolute)
-------------------------------------------------------------------------------
Octets                                           0                           0
Packets                                         39                         175
Errors                                           0                           0
-------------------------------------------------------------------------------
At time t = 6 sec (Mode: Absolute)
-------------------------------------------------------------------------------
Octets                                           0                           0
Packets                                         39                         175
Errors                                           0                           0
-------------------------------------------------------------------------------
At time t = 9 sec (Mode: Absolute)
-------------------------------------------------------------------------------
Octets                                           0                           0
Packets                                         39                         175
Errors                                           0                           0
===============================================================================
ALU-12>monitor# 
ALU-12>monitor# port 1/1/4 interval 3 repeat 3 rate
===============================================================================
Monitor statistics for Port 1/1/4
===============================================================================
                                             Input                      Output
-------------------------------------------------------------------------------
At time t = 0 sec (Base Statistics)
-------------------------------------------------------------------------------
Octets                                           0                           0
Packets                                         39                         175
Errors                                           0                           0
-------------------------------------------------------------------------------
At time t = 3 sec (Mode: Rate)
-------------------------------------------------------------------------------
Octets                                           0                           0
Packets                                          0                           0
Errors                                           0                           0
Bits                                             0                           0
Utilisation (% of port capacity)              0.00                        0.00
-------------------------------------------------------------------------------
At time t = 6 sec (Mode: Rate)
-------------------------------------------------------------------------------
Octets                                           0                           0
Packets                                          0                           0
Errors                                           0                           0
Bits                                             0                           0
Utilisation (% of port capacity)              0.00                        0.00
-------------------------------------------------------------------------------
At time t = 9 sec (Mode: Rate)
-------------------------------------------------------------------------------
Octets                                           0                           0
Packets                                          0                           0
Errors                                           0                           0
Bits                                             0                           0
Utilisation (% of port capacity)              0.00                        0.00
===============================================================================
ALU-12>monitor#

router

Syntax 
router router-instance
router service-name service-name
Context 
monitor
Description 

This command enables the context to configure criteria to monitor statistical information for MPLS and routing protocols.

Parameters 
router-instance—
specifies the router name or service ID
Values—
router-name:            Base, management
service-id:                1 to 2147483647

 

Default—
Base
service-name
specifies the service name, 64 characters maximum

fec-egress-stats

Syntax 
fec-egress-stats ip-prefix/mask [interval seconds] [repeat repeat] [absolute | rate]
Context 
monitor>router>ldp
Description 

This command displays egress statistics for LDP FEC prefixes at the configured interval until the configured count is reached.

Monitor commands are similar to show commands, but only statistical information is displayed. Monitor commands display the selected statistics according to the configured number of times at the interval specified.

Parameters 
ip-prefix[/mask] —
the IP prefix and prefix length associated with the prefix FEC
Values—

ipv4-prefix:

a.b.c.d

ipv4-prefix-length:

32

ipv6-prefix:

x:x:x:x:x:x:x:x (eight 16-bit pieces)

x:x:x:x:x:x:d.d.d.d

  x - [0 to FFFF]H

  d - [0 to 255]D

ipv6-prefix-length:

128

 

seconds—
specifies the interval for each display, in seconds
Values—
3 to 60

 

Default—
10
repeat—
specifies how many times the command is repeated
Values—
1 to 999

 

Default—
10
absolute—
displays raw statistics, without processing. No calculations are performed on the delta or rate statistics.
rate—
displays the rate per second for each statistic instead of the delta
Output 

The following output is an example of statistics for an LDP FEC instance.

Output Example
===============================================================================
Monitor egress statistics for LDP FEC prefix 10.10.10.29/32
===============================================================================
-------------------------------------------------------------------------------
At time t = 0 sec (Base Statistics)
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
FEC Prefix/Mask    : 10.10.10.29/32
-------------------------------------------------------------------------------
Collect Stats      : Disabled             Accounting Plcy.     : None
Admin State        : Up                   
FC BE
InProf Pkts        : 0                    OutProf Pkts         : 0
InProf Octets      : 0                    OutProf Octets       : 0
FC L2
InProf Pkts        : 0                    OutProf Pkts         : 0
InProf Octets      : 0                    OutProf Octets       : 0
FC AF
InProf Pkts        : 0                    OutProf Pkts         : 0
InProf Octets      : 0                    OutProf Octets       : 0
FC L1
InProf Pkts        : 0                    OutProf Pkts         : 0
InProf Octets      : 0                    OutProf Octets       : 0
FC H2
InProf Pkts        : 0                    OutProf Pkts         : 0
InProf Octets      : 0                    OutProf Octets       : 0
FC EF
InProf Pkts        : 0                    OutProf Pkts         : 0
InProf Octets      : 0                    OutProf Octets       : 0
FC H1
InProf Pkts        : 0                    OutProf Pkts         : 0
InProf Octets      : 0                    OutProf Octets       : 0
FC NC
InProf Pkts        : 0                    OutProf Pkts         : 0
InProf Octets      : 0                    OutProf Octets       : 0
-------------------------------------------------------------------------------
At time t = 3 sec (Mode: Absolute)
-------------------------------------------------------------------------------
===============================================================================
Monitor egress statistics for LDP FEC prefix 10.10.10.29/32
===============================================================================
-------------------------------------------------------------------------------
At time t = 0 sec (Base Statistics)
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
FEC Prefix/Mask    : 10.10.10.29/32
-------------------------------------------------------------------------------
Collect Stats      : Disabled             Accounting Plcy.     : None
Admin State        : Up                   
FC BE
InProf Pkts        : 0                    OutProf Pkts         : 0
InProf Octets      : 0                    OutProf Octets       : 0
FC L2
InProf Pkts        : 0                    OutProf Pkts         : 0
InProf Octets      : 0                    OutProf Octets       : 0
FC AF
InProf Pkts        : 0                    OutProf Pkts         : 0
InProf Octets      : 0                    OutProf Octets       : 0
FC L1
InProf Pkts        : 0                    OutProf Pkts         : 0
InProf Octets      : 0                    OutProf Octets       : 0
FC H2
InProf Pkts        : 0                    OutProf Pkts         : 0
InProf Octets      : 0                    OutProf Octets       : 0
FC EF
InProf Pkts        : 0                    OutProf Pkts         : 0
InProf Octets      : 0                    OutProf Octets       : 0
FC H1
InProf Pkts        : 0                    OutProf Pkts         : 0
InProf Octets      : 0                    OutProf Octets       : 0
FC NC
InProf Pkts        : 0                    OutProf Pkts         : 0
InProf Octets      : 0                    OutProf Octets       : 0
-------------------------------------------------------------------------------
At time t = 3 sec (Mode: Rate)
-------------------------------------------------------------------------------

session

Syntax 
session ldp-id [ldp-id...(up to 5 max)] [interval seconds] [repeat repeat] [absolute | rate]
Context 
monitor>router>ldp
Description 

This command displays statistical information for LDP sessions at the configured interval until the configured count is reached.

The first screen displays the current statistics related to the specified LDP sessions. The subsequent statistical information listed for each interval is displayed as a delta to the previous screen output.

When the keyword rate is specified, the rate per second for each statistic is displayed instead of the delta.

Monitor commands are similar to show commands, but only statistical information is displayed. Monitor commands display the selected statistics according to the configured number of times at the interval specified.

Parameters 
ldp-id—
specifies the IP address of the LDP session to display
Values—
ip-addr[:label-space]
   ip-addr — a.b.c.d
   label-space — [0 to 65535]

 

seconds
configures the interval for each display in seconds
Values—
3 to 60

 

Default—
10
repeat—
configures how many times the command is repeated
Values—
1 to 999

 

Default—
10
absolute—
displays raw statistics, without processing. No calculations are performed on the delta or rate statistics.
rate—
displays the rate per second for each statistic instead of the delta
Output 

The following output is an example of statistical information for the LDP session.

Output Example
ALU-103>monitor>router>ldp# session 10.10.10.104 interval 3 repeat 3 absolute
===============================================================================
Monitor statistics for LDP Session 10.10.10.104
===============================================================================
                              Sent                     Received
-------------------------------------------------------------------------------
At time t = 0 sec (Base Statistics)
-------------------------------------------------------------------------------
FECs                          1                        2
Hello                         5288                     5289
Keepalive                     8225                     8225
Init                          1                        1
Label Mapping                 1                        4
Label Request                 0                        0
Label Release                 0                        0
Label Withdraw                0                        0
Label Abort                   0                        0
Notification                  0                        0
Address                       1                        1
Address Withdraw              0                        0
-------------------------------------------------------------------------------
At time t = 3 sec (Mode: Absolute)
-------------------------------------------------------------------------------
FECs                          1                        2
Hello                         5288                     5289
Keepalive                     8226                     8226
Init                          1                        1
Label Mapping                 1                        4
Label Request                 0                        0
Label Release                 0                        0
Label Withdraw                0                        0
Label Abort                   0                        0
Notification                  0                        0
Address                       1                        1
Address Withdraw              0                        0
-------------------------------------------------------------------------------
At time t = 6 sec (Mode: Absolute)
-------------------------------------------------------------------------------
FECs                          1                        2
Hello                         5288                     5290
Keepalive                     8226                     8226
Init                          1                        1
Label Mapping                 1                        4
Label Request                 0                        0
Label Release                 0                        0
Label Withdraw                0                        0
Label Abort                   0                        0
Notification                  0                        0
Address                       1                        1
Address Withdraw              0                        0
-------------------------------------------------------------------------------
At time t = 9 sec (Mode: Absolute)
-------------------------------------------------------------------------------
FECs                          1                        2
Hello                         5288                     5290
Keepalive                     8226                     8226
Init                          1                        1
Label Mapping                 1                        4
Label Request                 0                        0
Label Release                 0                        0
Label Withdraw                0                        0
Label Abort                   0                        0
Notification                  0                        0
Address                       1                        1
Address Withdraw              0                        0
========================================================================
ALU-12>monitor>router>ldp#
ALU-12>monitor>router>ldp# session 10.10.10.104 interval 3 repeat 3 rate
===============================================================================
Monitor statistics for LDP Session 10.10.10.104
===============================================================================
                              Sent                     Received
-------------------------------------------------------------------------------
At time t = 0 sec (Base Statistics)
-------------------------------------------------------------------------------
FECs                          1                        2
Hello                         5289                     5290
Keepalive                     8227                     8227
Init                          1                        1
Label Mapping                 1                        4
Label Request                 0                        0
Label Release                 0                        0
Label Withdraw                0                        0
Label Abort                   0                        0
Notification                  0                        0
Address                       1                        1
Address Withdraw              0                        0
-------------------------------------------------------------------------------
At time t = 3 sec (Mode: Rate)
-------------------------------------------------------------------------------
FECs                          0                        0
Hello                         0                        0
Keepalive                     0                        0
Init                          0                        0
Label Mapping                 0                        0
Label Request                 0                        0
Label Release                 0                        0
Label Withdraw                0                        0
Label Abort                   0                        0
Notification                  0                        0
Address                       0                        0
Address Withdraw              0                        0
-------------------------------------------------------------------------------
At time t = 6 sec (Mode: Rate)
-------------------------------------------------------------------------------
FECs                          0                        0
Hello                         0                        0
Keepalive                     0                        0
Init                          0                        0
Label Mapping                 0                        0
Label Request                 0                        0
Label Release                 0                        0
Label Withdraw                0                        0
Label Abort                   0                        0
Notification                  0                        0
Address                       0                        0
Address Withdraw              0                        0
-------------------------------------------------------------------------------
At time t = 9 sec (Mode: Rate)
-------------------------------------------------------------------------------
FECs                          0                        0
Hello                         0                        0
Keepalive                     0                        0
Init                          0                        0
Label Mapping                 0                        0
Label Request                 0                        0
Label Release                 0                        0
Label Withdraw                0                        0
Label Abort                   0                        0
Notification                  0                        0
Address                       0                        0
Address Withdraw              0                        0
===============================================================================
ALU-12>monitor>router>ldp#

statistics

Syntax 
statistics [interval seconds] [repeat repeat] [absolute | rate]
Context 
monitor>router>ldp
Description 

This command displays statistics for an LDP instance at the configured interval until the configured count is reached.

The first screen displays the current statistics related to the LDP statistics. The subsequent statistical information listed for each interval is displayed as a delta to the previous screen output.

When the keyword rate is specified, the rate per second for each statistic is displayed instead of the delta.

Monitor commands are similar to show commands, but only statistical information is displayed. Monitor commands display the selected statistics according to the configured number of times at the interval specified.

Parameters 
seconds
configures the interval for each display in seconds
Values—
3 to 60

 

Default—
10
repeat—
configures how many times the command is repeated
Values—
1 to 999

 

Default—
10
absolute—
displays raw statistics, without processing. No calculations are performed on the delta or rate statistics.
rate—
displays the rate per second for each statistic instead of the delta
Output 

The following output is an example of statistics for an LDP instance.

Output Example
ALU-12>monitor>router>ldp# statistics interval 3 repeat 3 absolute
===============================================================================
Monitor statistics for LDP instance
===============================================================================
At time t = 0 sec (Base Statistics)
-------------------------------------------------------------------------------
Addr FECs Sent    : 0                    Addr FECs Recv     : 0
Serv FECs Sent    : 1                    Serv FECs Recv     : 2
...
-------------------------------------------------------------------------------
At time t = 3 sec (Mode: Absolute)
-------------------------------------------------------------------------------
Addr FECs Sent    : 0                    Addr FECs Recv     : 0
Serv FECs Sent    : 1                    Serv FECs Recv     : 2
...
-------------------------------------------------------------------------------
At time t = 6 sec (Mode: Absolute)
-------------------------------------------------------------------------------
Addr FECs Sent    : 0                    Addr FECs Recv     : 0
Serv FECs Sent    : 1                    Serv FECs Recv     : 2
...
-------------------------------------------------------------------------------
At time t = 9 sec (Mode: Absolute)
-------------------------------------------------------------------------------
Addr FECs Sent    : 0                    Addr FECs Recv     : 0
Serv FECs Sent    : 1                    Serv FECs Recv     : 2
...
===============================================================================
ALU-12>monitor>router>ldp#
ALU-12>monitor>router>ldp# statistics interval 3 repeat 3 rate
===============================================================================
Monitor statistics for LDP instance
===============================================================================
At time t = 0 sec (Base Statistics)
-------------------------------------------------------------------------------
Addr FECs Sent    : 0                    Addr FECs Recv     : 0
Serv FECs Sent    : 1                    Serv FECs Recv     : 2
...
-------------------------------------------------------------------------------
At time t = 3 sec (Mode: Rate)
-------------------------------------------------------------------------------
Addr FECs Sent    : 0                    Addr FECs Recv     : 0
Serv FECs Sent    : 0                    Serv FECs Recv     : 0
...
-------------------------------------------------------------------------------
At time t = 6 sec (Mode: Rate)
-------------------------------------------------------------------------------
Addr FECs Sent    : 0                    Addr FECs Recv     : 0
Serv FECs Sent    : 0                    Serv FECs Recv     : 0
...
-------------------------------------------------------------------------------
At time t = 9 sec (Mode: Rate)
-------------------------------------------------------------------------------
Addr FECs Sent    : 0                    Addr FECs Recv     : 0
Serv FECs Sent    : 0                    Serv FECs Recv     : 0
...
===============================================================================

group

Syntax 
group grp-ip-address [source ip-address] [interval interval] [repeat repeat] [absolute | rate]
Context 
monitor>router>pim
Description 

This command monitors statistics for a PIM source group.

Parameters 
grp-ip-address—
specifies the IP address of a multicast group that identifies a set of recipients that are interested in a particular data stream
Values—
multicast group address (IPv4 or IPv6)

 

ip-address—
specifies the source IP address to use in the ping requests
Values—
source address (IPv4 or IPv6)

 

Default—
0.0.0.0 to 255.255.255.255
interval—
specifies the interval for each display, in seconds
Values—
10 | 20 | 30 | 40 | 50 | 60

 

Default—
10
repeat—
specifies the number of times the command is repeated
Values—
1 to 999

 

Default—
10
absolute—
displays raw statistics, without processing. No calculations are performed on the delta or rate statistics.
rate—
displays the rate per second for each statistic, instead of the delta

lsp-egress-stats

Syntax 
lsp-egress-stats lsp lsp-name [interval seconds] [repeat repeat] [absolute | rate]
Context 
monitor>router>mpls
Description 

This command displays RSVP LSP egress statistics at the configured interval until the configured count is reached.

Default 

no lsp-egress-stats

Parameters 
lsp-name—
the LSP name
seconds—
specifies the interval for each display, in seconds
repeat—
specifies how many times the command is repeated
absolute—
displays raw statistics, without processing. No calculations are performedon the delta or rate statistics.
rate—
displays the rate per second for each statistic instead of the delta
Output 

The following output is an example of LSP egress statistical information.

Output Example
===============================================================================
Monitor ingress statistics for MPLS LSP "toNodeA_1"
===============================================================================
-------------------------------------------------------------------------------
At time t = 0 sec (Base Statistics)
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
LSP Name      : toNodeA_1
Sender        : 10.10.10.29
-------------------------------------------------------------------------------
Collect Stats : Disabled                Accting Plcy. : None
Adm State     : Up                      PSB Match     : True
FC BE
InProf Pkts   : 0                       OutProf Pkts  : 0
InProf Octets : 0                       OutProf Octets: 0
FC L2
InProf Pkts   : 0                       OutProf Pkts  : 0
InProf Octets : 0                       OutProf Octets: 0
FC AF
InProf Pkts   : 0                       OutProf Pkts  : 0
InProf Octets : 0                       OutProf Octets: 0
FC L1
InProf Pkts   : 0                       OutProf Pkts  : 0
InProf Octets : 0                       OutProf Octets: 0
FC H2
InProf Pkts   : 0                       OutProf Pkts  : 0
InProf Octets : 0                       OutProf Octets: 0
FC EF
InProf Pkts   : 0                       OutProf Pkts  : 0
InProf Octets : 0                       OutProf Octets: 0
FC H1
InProf Pkts   : 0                       OutProf Pkts  : 0
InProf Octets : 0                       OutProf Octets: 0
FC NC
InProf Pkts   : 0                       OutProf Pkts  : 0
InProf Octets : 0                       OutProf Octets: 0
-------------------------------------------------------------------------------
At time t = 3 sec (Mode: Absolute)
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
LSP Name      : toNodeA_1
Sender        : 10.10.10.29
-------------------------------------------------------------------------------
Collect Stats : Disabled                Accting Plcy. : None
Adm State     : Up                      PSB Match     : True
FC BE
InProf Pkts   : 0                       OutProf Pkts  : 0
InProf Octets : 0                       OutProf Octets: 0
FC L2
InProf Pkts   : 0                       OutProf Pkts  : 0
InProf Octets : 0                       OutProf Octets: 0
FC AF
InProf Pkts   : 0                       OutProf Pkts  : 0
InProf Octets : 0                       OutProf Octets: 0
FC L1
InProf Pkts   : 0                       OutProf Pkts  : 0
InProf Octets : 0                       OutProf Octets: 0
FC H2
InProf Pkts   : 0                       OutProf Pkts  : 0
InProf Octets : 0                       OutProf Octets: 0
FC EF
InProf Pkts   : 0                       OutProf Pkts  : 0
InProf Octets : 0                       OutProf Octets: 0
FC H1
InProf Pkts   : 0                       OutProf Pkts  : 0
InProf Octets : 0                       OutProf Octets: 0
FC NC
InProf Pkts   : 0                       OutProf Pkts  : 0
InProf Octets : 0                       OutProf Octets: 0
-------------------------------------------------------------------------------
At time t = 6 sec (Mode: Absolute)
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
LSP Name      : toNodeA_1
Sender        : 10.10.10.29
-------------------------------------------------------------------------------
Collect Stats : Disabled                Accting Plcy. : None
Adm State     : Up                      PSB Match     : True
FC BE
InProf Pkts   : 0                       OutProf Pkts  : 0
InProf Octets : 0                       OutProf Octets: 0
FC L2
InProf Pkts   : 0                       OutProf Pkts  : 0
InProf Octets : 0                       OutProf Octets: 0
FC AF
InProf Pkts   : 0                       OutProf Pkts  : 0
InProf Octets : 0                       OutProf Octets: 0
FC L1
InProf Pkts   : 0                       OutProf Pkts  : 0
InProf Octets : 0                       OutProf Octets: 0
FC H2
InProf Pkts   : 0                       OutProf Pkts  : 0
InProf Octets : 0                       OutProf Octets: 0
FC EF
InProf Pkts   : 0                       OutProf Pkts  : 0
InProf Octets : 0                       OutProf Octets: 0
FC H1
InProf Pkts   : 0                       OutProf Pkts  : 0
InProf Octets : 0                       OutProf Octets: 0
FC NC
InProf Pkts   : 0                       OutProf Pkts  : 0
InProf Octets : 0                       OutProf Octets: 0
-------------------------------------------------------------------------------
At time t = 9 sec (Mode: Absolute)
-------------------------------------------------------------------------------

lsp-ingress-stats

Syntax 
lsp-ingress-stats lsp lsp-name [interval seconds] [repeat repeat] [absolute | rate] ip-address
Context 
monitor>router>mpls
Description 

This command displays RSVP LSP ingress statistics at the configured interval until the configured count is reached.

Default 

no lsp-egress-stats

Parameters 
lsp-name—
the LSP name
seconds—
specifies the interval for each display, in seconds
repeat—
specifies how many times the command is repeated
absolute—
displays raw statistics, without processing. No calculations are performedon the delta or rate statistics.
rate—
displays the rate per second for each statistic instead of the delta
ip-address—
the IP address of the remote host
Values—
ipv4-address          a.b.c.d

 

Output 

The following output is an example of LSP ingress statistical information.

Output Example
B:Sys# monitor router mpls lsp-ingress-stats lsp sample 1.1.1.1 repeat 3
interval 10 absolute
===============================================================================
Monitor ingress statistics for MPLS LSP "sample"
-------------------------------------------------------------------------------
At time t = 0 sec (Base Statistics)
-------------------------------------------------------------------------------
LSP Name : sample
Sender : 1.1.1.1
-------------------------------------------------------------------------------
Collect Stats : Enabled Accting Plcy. : None
Adm State : Up PSB Match : True
FC BE
InProf Pkts : 539 OutProf Pkts : 0
InProf Octets : 548702 OutProf Octets: 0
FC L2
InProf Pkts : 0 OutProf Pkts : 539
InProf Octets : 0 OutProf Octets: 548702
FC AF
InProf Pkts : 0 OutProf Pkts : 0
InProf Octets : 0 OutProf Octets: 0
FC L1
InProf Pkts : 1078 OutProf Pkts : 0
InProf Octets : 1097404 OutProf Octets: 0
FC H2
InProf Pkts : 0 OutProf Pkts : 539
InProf Octets : 0 OutProf Octets: 548702
FC EF
InProf Pkts : 539 OutProf Pkts : 0
InProf Octets : 548702 OutProf Octets: 0
FC H1
InProf Pkts : 539 OutProf Pkts : 0
InProf Octets : 548702 OutProf Octets: 0
FC NC
InProf Pkts : 0 OutProf Pkts : 539
InProf Octets : 0 OutProf Octets: 548702
-------------------------------------------------------------------------------
At time t = 10 sec (Mode: Absolute)
-------------------------------------------------------------------------------
LSP Name : sample
Sender : 1.1.1.1
-------------------------------------------------------------------------------
Collect Stats : Enabled Accting Plcy. : None
Adm State : Up PSB Match : True
FC BE
InProf Pkts : 568 OutProf Pkts : 0
InProf Octets : 578224 OutProf Octets: 0
FC L2
InProf Pkts : 0 OutProf Pkts : 568
InProf Octets : 0 OutProf Octets: 578224
FC AF
InProf Pkts : 0 OutProf Pkts : 0
InProf Octets : 0 OutProf Octets: 0
FC L1
InProf Pkts : 1136 OutProf Pkts : 0
InProf Octets : 1156448 OutProf Octets: 0
FC H2
InProf Pkts : 0 OutProf Pkts : 568
InProf Octets : 0 OutProf Octets: 578224
FC EF
InProf Pkts : 568 OutProf Pkts : 0
InProf Octets : 578224 OutProf Octets: 0
FC H1
InProf Pkts : 568 OutProf Pkts : 0
InProf Octets : 578224 OutProf Octets: 0
FC NC
InProf Pkts : 0 OutProf Pkts : 568
InProf Octets : 0 OutProf Octets: 578224
-------------------------------------------------------------------------------
At time t = 20 sec (Mode: Absolute)
-------------------------------------------------------------------------------
LSP Name : sample
Sender : 1.1.1.1
-------------------------------------------------------------------------------
Collect Stats : Enabled Accting Plcy. : None
Adm State : Up PSB Match : True
FC BE
InProf Pkts : 597 OutProf Pkts : 0
InProf Octets : 607746 OutProf Octets: 0
FC L2
InProf Pkts : 0 OutProf Pkts : 597
InProf Octets : 0 OutProf Octets: 607746
FC AF
InProf Pkts : 0 OutProf Pkts : 0
InProf Octets : 0 OutProf Octets: 0
FC L1
InProf Pkts : 1194 OutProf Pkts : 0
InProf Octets : 1215492 OutProf Octets: 0
FC H2
InProf Pkts : 0 OutProf Pkts : 597
InProf Octets : 0 OutProf Octets: 607746
FC EF
InProf Pkts : 597 OutProf Pkts : 0
InProf Octets : 607746 OutProf Octets: 0
FC H1
InProf Pkts : 597 OutProf Pkts : 0
InProf Octets : 607746 OutProf Octets: 0
FC NC
InProf Pkts : 0 OutProf Pkts : 597
InProf Octets : 0 OutProf Octets: 607746
-------------------------------------------------------------------------------
At time t = 30 sec (Mode: Absolute)
-------------------------------------------------------------------------------
LSP Name : sample
Sender : 1.1.1.1
-------------------------------------------------------------------------------
Collect Stats : Enabled Accting Plcy. : None
Adm State : Up PSB Match : True
FC BE
InProf Pkts : 627 OutProf Pkts : 0
InProf Octets : 638286 OutProf Octets: 0
FC L2
InProf Pkts : 0 OutProf Pkts : 627
InProf Octets : 0 OutProf Octets: 638286
FC AF
InProf Pkts : 0 OutProf Pkts : 0
InProf Octets : 0 OutProf Octets: 0
FC L1
InProf Pkts : 1254 OutProf Pkts : 0
InProf Octets : 1276572 OutProf Octets: 0
FC H2
InProf Pkts : 0 OutProf Pkts : 627
InProf Octets : 0 OutProf Octets: 638286
FC EF
InProf Pkts : 627 OutProf Pkts : 0
InProf Octets : 638286 OutProf Octets: 0
FC H1
InProf Pkts : 627 OutProf Pkts : 0
InProf Octets : 638286 OutProf Octets: 0
FC NC
InProf Pkts : 0 OutProf Pkts : 627
InProf Octets : 0 OutProf Octets: 638286
===============================================================================
B:Sys#

neighbor

Syntax 
neighbor neighbor [neighbor...(up to 5 max)] [interval seconds] [repeat repeat] [absolute | rate]
Context 
monitor>router>rip
Description 

This command displays statistical RIP neighbor information at the configured interval until the configured count is reached.

The first screen displays the current statistics related to the specified RIP neighbors. The subsequent statistical information listed for each interval is displayed as a delta to the previous screen output. When the keyword rate is specified, the rate per second for each statistic is displayed instead of the delta.

Monitor commands are similar to show commands but only statistical information is displayed. Monitor commands display the selected statistics according to the configured number of times at the interval specified.

Parameters 
neighbor —
the IP address of the neighbor for which to display statistics. Up to 5 neighbors can be specified.
seconds —
configures the interval for each display in seconds
repeat —
specifies how many times to repeat the command
absolute —
displays the raw statistics without processing. No calculations are performed on the delta or rate statistics.
rate —
displays the rate-per-second value for each statistic instead of the delta

instance

Syntax 
instance interface interface-name vr-id virtual-router-id [ipv6] [interval seconds] [repeat repeat] [absolute | rate]
Context 
monitor>router>vrrp
Description 

This command displays statistics for a VRRP instance.

Parameters 
interface-name—
the name of the existing IP interface on which VRRP is configured
virtual-router-id—
the virtual router ID for the existing IP interface, expressed as a decimal integer
Values—
1 to 255

 

ipv6—
specifies monitoring the IPv6 instance
seconds
configures the interval for each display in seconds
Values—
3 to 60

 

Default—
10 
repeat—
configures how many times the command is repeated
Values—
1 to 999

 

Default—
10
absolute—
displays raw statistics, without processing. No calculations are performed on the delta or rate statistics.
rate—
specifies the rate per second for each statistic instead of the delta
Default—
delta

service

Syntax 
service
Context 
monitor
Description 

This command enables the context to configure criteria to monitor specific service SAP criteria.

id

Syntax 
id service-id
Context 
monitor>service
Description 

This command displays statistics for a specific service, specified by the service-id, at the configured interval until the configured count is reached.

The first screen displays the current statistics related to the service-id. The subsequent statistical information listed for each interval is displayed as a delta to the previous screen output.

When the keyword rate is specified, the rate per second for each statistic is displayed instead of the delta.

Monitor commands are similar to show commands, but only statistical information is displayed. Monitor commands display the selected statistics according to the configured number of times at the interval specified.

Parameters 
service-id—
identifies the service in the service domain
Values—
1 to 2147483690 or service-name

 

sap

Syntax 
sap sap-id [interval seconds] [repeat repeat] [absolute | rate]
Context 
monitor>service>id
Description 

This command displays statistics for a SAP associated with this service.

This command displays statistics for a specific SAP, identified by the port ID and encapsulation value, at the configured interval until the configured count is reached.

The first screen displays the current statistics related to the SAP. The subsequent statistical information listed for each interval is displayed as a delta to the previous screen output.

When the keyword rate is specified, the rate per second for each statistic is displayed instead of the delta.

Monitor commands are similar to show commands, but only statistical information is displayed. Monitor commands display the selected statistics according to the configured number of times at the interval specified.

Parameters 
sap-id—
identifies the SAP for the service

The sap-id can be configured in one of the formats described in Table 12. The range of values for the parameters follow the table.

Table 12:  SAP ID Configurations  

Type

Syntax

Example

port-id

slot/mda/port[.channel]

1/1/5

bridge

slot/mda/<bridge-id.branch-id>

1/5/16.10

null

[port-id | bundle-id | lag-id | aps-id | mw-link-id]

port-id: 1/1/3

bundle-id: bundle-ppp-1/1.1

lag-id: lag-1

aps-id: aps-1

mw-link-id: mw-link-1

dot1q

[port-id | lag-id | aps-id | mw-link-id]:qtag1

port-id:qtag1: 1/1/3:100

lag-id: lag-1:10

aps-id: aps-1

mw-link-id: mw-link-1

qinq

[port-id | lag-id]:qtag1.qtag2

port-id:qtag1.qtag2: 1/1/3:100.30

lag-id: lag-1:10.10

atm

[port-id | aps-id][:vpi/vci | vpi | vpi1.vpi2] 1

port-id: 1/1/1 or 1/1/1.1 (for T1/E1 channelized ports)

aps-id: aps-1

vpi/vci: 16/26

vpi: 16

vpi1.vpi2: 16.22

lag

lag-id

lag-2

frame

[port-id| aps-id]:dlci

1/1/1

aps-id: aps-1

dlci: 16

frame relay

[port-id]:dlci

1/1/1

dlci: 16

cisco-hdlc

slot/mda/port.channel

1/1/1.3

cem

slot/mda/port.channel

1/1/1.3

ima-grp

bundle-id[:vpi/vci | vpi | vpi1.vpi2]

1/1/3.1

ipcp

slot/mda/port.channel

1/2/2.4

hdlc

slot/mda/port.channel

1/1/3.1

lag-id

lag-id

lag-1

mw-link-id

mw-link-id

mw-link-1

aps-id

aps-group-id[.channel]

aps-1

bundle-id

bundle-[ima | ppp]-slot/mda.bundle-num

bundle-ima-1/1.1

tunnel-id

tunnel-<id>.[private | public]:<tag>

tunnel-1.private:1

    Note:

  1. For Apipes in virtual trunking mode, vpi/vci, vpi, and vpi1.vpi2 are omitted.
Values—
sap-id:

null

[port-id | bundle-id | lag-id | aps-id | mw-link-id]

dot1q

[port-id | lag-id | aps-id | mw-link-id]:qtag1

qinq

[port-id | lag-id]:qtag1.qtag2

atm

[port-id | aps-id][:vpi/vci |vpi | vpi1.vpi2]

frame

[port-id | aps-id]:dlci

cisco-hdlc

slot/mda/port.channel

cem

slot/mda/port.channel

ipcp

slot/mda/port.channel

ima-grp

bundle-id[:vpi/vci | vpi | vpi1.vpi2]

hdlc

slot/mda/port.channel

port-id

slot/mda/port[.channel]

bridge

slot/mda/bridge-id.branch-id

   bridge-id     1 to 16

   branch-id    1 to 32

bundle-id

bundle-type-slot/mda.bundle-num

   bundle            keyword

   type                ima, ppp

   bundle-num   1 to 32

aps-id

aps-group-id[.channel]

   aps                 keyword

   group-id        1 to 24

mw-link-id

mw-link-id

   id   1 to 24

lag-id

lag-id

   lag                  keyword

   id                   1 to 32

qtag1

*, 0 to 4094

qtag2

*, 0 to 4094

vpi

NNI    0 to 4095

UNI    0 to 255

vci

1, 2, 5 to 65535

dlci

16 to 1022

tunnel-id

tunnel-id.[private | public]:tag

   tunnel           keyword

   id                 1 to 16 (1 is the only valid value)

   tag               0 to 4094

 

port-id—
specifies the physical port ID in the slot/mda/port format

If the card in the slot has an adapter card installed, the port-id must be in the slot_number/MDA_number/port_number format. For example, 1/2/3 specifies port 3 on MDA 2 in slot 1.

The port-id must reference a valid port type. When the port-id parameter represents TDM channels, the port ID must include the channel ID. A period “.” separates the physical port from the channel-id. The port must be configured as an access port.

bridge-id—
specifies an existing bridge that has been configured on an Integrated Services card in the slot/mda/<bridge-id.branch-id> format

bridge-id value range: 1 to 16

branch-id—
specifies an existing branch that has been configured on an Integrated Services card in the slot/mda/<bridge-id.branch-id> format

branch-id value range: 1 to 32

bundle-id—
specifies the multilink (PPP or IMA) bundle identifier. The bundle keyword must be entered at the beginning of the parameter. The command syntax must be configured as follows:

     bundle-id:                 bundle-type-slot/mda.bundle-num

     type:                          ima, ppp

     bundle-num:             1 to 32

For example:

      *A:ALU-12>config# port bundle-ppp-xz5/1.1
      *A:ALU-12>config>port# multilink-bundle
qtag1, qtag2—
specifies the encapsulation value used to identify the SAP on the port or sub-port. For dot1q encapsulation, only qtag1 is used; for qinq encapsulation, both qtag1 and qtag2 are used. If qtag1 or qtag2 is not specifically defined, the value 0 is used. The “*” value represents all qtag values between 0 and 4094 that are not specifically defined within another SAP context under the same port. In addition, the following qtag1.qtag2 values are invalid options:
  1. *.qtag2
  2. *.0
  3. 0.qtag2
Values—
qtag1: *, 0 to 4094
qtag2: *, 0 to 4094
The values depend on the encapsulation type configured for the interface. Table 13 describes the allowed values for the port and encapsulation types.
Table 13:  Port and Encapsulation Values  

Port Type

Encap-Type

Allowed Values

Comments

Ethernet

Null

The SAP is identified by the port.

Ethernet

Dot1q

*, 0 to 4094

The SAP is identified by the 802.1Q tag on the port. A 0 qtag1 value also accepts untagged packets on the dot1q port, and a * qtag1 value accepts any VLAN ID that is not specifically configured on the port. 1

Ethernet

QinQ

*, 0 to 4094

The SAP is identified by the two 802.1Q tags on the port. A 0 qtag1 or qtag 2 value also accepts untagged packets on the qinq port, and a * qtag1 or qtag2 value accepts any VLAN ID that is not specifically configured on the port. 1

    Note:

  1. Traffic matching the * qtag value uses VLAN 4095 internally.

 

seconds
configures the interval for each display in seconds
Values—
11 to 60

 

Default—
11  
repeat—
configures how many times the command is repeated
Values—
1 to 999

 

Default—
10
absolute—
displays the absolute rate-per-second value for each statistic
rate—
displays the rate per second for each statistic instead of the delta

sap-aggregation-group

Syntax 
sap-aggregation-group group-id [interval seconds] [repeat repeat] [absolute | rate]
Context 
monitor>service>id
Description 

This command displays the statistics for the specified SAP aggregation group that is associated with the service.

Parameters 
group-id—
specifies the identifier for the SAP aggregation group
Values—
1 to 32 characters

 

seconds
configures the interval for each display in seconds
Values—
11 to 60

 

Default—
11  
repeat—
configures how many times the command is repeated
Values—
1 to 999

 

Default—
10
absolute—
displays the absolute rate-per-second value for each statistic
rate—
displays the rate per second for each statistic instead of the delta
Output 

The following output is an example of statistics for a SAP aggregation group.

Output Example
*A:SYS28# monitor service id 1570 sap-aggregation-group SAG repeat 2 
 
===============================================================================
Monitor statistics for Service 1570 SAP Aggregation Group SAG
===============================================================================
-------------------------------------------------------------------------------
At time t = 0 sec (Base Statistics)
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
Sap Aggregation Group Statistics
-------------------------------------------------------------------------------
Last Cleared Time     : N/A                    
 
Dropped Egress Cells (unconfigured vpi/vci): 14
 
                        Packets                 Octets
Forwarding Engine Stats (Ingress)
Dropped               : 0                       n/a                            
Off. HiPrio           : 205557                  n/a                            
Off. LowPrio          : n/a                     n/a                            
 
Queueing Stats(Ingress QoS Policy 1)
Dro. HiPrio           : 0                       n/a                            
Dro. LowPrio          : n/a                     n/a                            
For. InProf           : 0                       0                              
For. OutProf          : 205557                  68605598                       
 
Forwarding Engine Stats (Egress)
Dropped               : 0                       n/a                            
 
Queueing Stats(Egress QoS Policy 1)
Dro. InProf           : 0                       n/a                            
Dro. OutProf          : n/a                     n/a                            
For. InProf           : 202446                  63083956                       
For. OutProf          : n/a                     n/a                            
-------------------------------------------------------------------------------
Sap Aggregation Group per Queue Stats
-------------------------------------------------------------------------------
                        Packets                 Octets
 
Ingress Queue 1 (Priority)
Off. HiPrio           : 205557                  n/a                            
Off. LoPrio           : n/a                     n/a                            
Dro. HiPrio           : 0                       n/a                            
Dro. LoPrio           : n/a                     n/a                            
For. InProf           : 0                       0                              
For. OutProf          : 205557                  68605598                       
 
Egress Queue 1
For. InProf           : 202446                  63083956                       
For. OutProf          : n/a                     n/a                            
Dro. InProf           : 0                       n/a                            
Dro. OutProf          : n/a                     n/a                            
 
-------------------------------------------------------------------------------
At time t = 11 sec (Mode: Delta)
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
Sap Aggregation Group Statistics
-------------------------------------------------------------------------------
Last Cleared Time     : N/A                    
 
Dropped Egress Cells (unconfigured vpi/vci): 14
 
                        Packets                 Octets
Forwarding Engine Stats (Ingress)
Dropped               : 0                       n/a                            
Off. HiPrio           : 233                     n/a                            
Off. LowPrio          : n/a                     n/a                            
 
Queueing Stats(Ingress QoS Policy 1)
Dro. HiPrio           : 0                       n/a                            
Dro. LowPrio          : n/a                     n/a                            
For. InProf           : 0                       0                              
For. OutProf          : 233                     77822                          
 
Forwarding Engine Stats (Egress)
Dropped               : 0                       n/a                            
 
Queueing Stats(Egress QoS Policy 1)
Dro. InProf           : 0                       n/a                            
Dro. OutProf          : n/a                     n/a                            
For. InProf           : 232                     72384                          
For. OutProf          : n/a                     n/a                            
-------------------------------------------------------------------------------
Sap Aggregation Group per Queue Stats
-------------------------------------------------------------------------------
                        Packets                 Octets
 
Ingress Queue 1 (Priority)
Off. HiPrio           : 233                     n/a                            
Off. LoPrio           : n/a                     n/a                            
Dro. HiPrio           : 0                       n/a                            
Dro. LoPrio           : n/a                     n/a                            
For. InProf           : 0                       0                              
For. OutProf          : 233                     77822                          
 
Egress Queue 1
For. InProf           : 232                     72384                          
For. OutProf          : n/a                     n/a                            
Dro. InProf           : 0                       n/a                            
Dro. OutProf          : n/a                     n/a                            
 
-------------------------------------------------------------------------------
At time t = 22 sec (Mode: Delta)
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
Sap Aggregation Group Statistics
-------------------------------------------------------------------------------
 
Last Cleared Time     : N/A                    
 
Dropped Egress Cells (unconfigured vpi/vci): 14
 
                        Packets                 Octets
Forwarding Engine Stats (Ingress)
Dropped               : 0                       n/a                            
Off. HiPrio           : 232                     n/a                            
Off. LowPrio          : n/a                     n/a                            
 
Queueing Stats(Ingress QoS Policy 1)
Dro. HiPrio           : 0                       n/a                            
Dro. LowPrio          : n/a                     n/a                            
For. InProf           : 0                       0                              
For. OutProf          : 232                     77488                          
 
Forwarding Engine Stats (Egress)
Dropped               : 0                       n/a                            
 
Queueing Stats(Egress QoS Policy 1)
Dro. InProf           : 0                       n/a                            
Dro. OutProf          : n/a                     n/a                            
For. InProf           : 233                     72696                          
For. OutProf          : n/a                     n/a                            
-------------------------------------------------------------------------------
Sap Aggregation Group per Queue Stats
-------------------------------------------------------------------------------
                        Packets                 Octets
 
Ingress Queue 1 (Priority)
Off. HiPrio           : 232                     n/a                            
Off. LoPrio           : n/a                     n/a                            
Dro. HiPrio           : 0                       n/a                            
Dro. LoPrio           : n/a                     n/a                            
For. InProf           : 0                       0                              
For. OutProf          : 232                     77488                          
 
Egress Queue 1
For. InProf           : 233                     72696                          
For. OutProf          : n/a                     n/a                            
Dro. InProf           : 0                       n/a                            
Dro. OutProf          : n/a                     n/a                            
 

sdp

Syntax 
sdp {sdp-id | far-end ip-address} [interval seconds] [repeat repeat] [absolute | rate]
Context 
monitor>service>id
Description 

This command displays statistics for an SDP binding associated with this service.

Parameters 
sdp-id—
specifies the SDP identifier
Values—
1 to 17407

 

ip-address—
the system address of the far-end 7705 SAR for the SDP
seconds
configures the interval for each display in seconds
Values—
11 to 60

 

Default—
11  
repeat—
configures how many times the command is repeated
Values—
1 to 999

 

Default—
10
absolute—
displays raw statistics, without processing. No calculations are performed on the delta or rate statistics
rate—
displays the rate per second for each statistic instead of the delta
Output 

The following output is an example of statistics for the SDP binding associated with the service.

Output Example
ALU-12# monitor service id 100 sdp 10 repeat 2
===============================================================================
Monitor statistics for Service 100 SDP binding 10
===============================================================================
-------------------------------------------------------------------------------
At time t = 0 sec (Base Statistics)
-------------------------------------------------------------------------------
I. Fwd. Pkts.   : 0                     I. Dro. Pkts.   : 0
E. Fwd. Pkts.   : 0                     E. Fwd. Octets  : 0
-------------------------------------------------------------------------------
At time t = 11 sec (Mode: Delta)
-------------------------------------------------------------------------------
I. Fwd. Pkts.   : 0                     I. Dro. Pkts.   : 0
E. Fwd. Pkts.   : 0                     E. Fwd. Octets  : 0
-------------------------------------------------------------------------------
At time t = 22 sec (Mode: Delta)
-------------------------------------------------------------------------------
I. Fwd. Pkts.   : 0                     I. Dro. Pkts.   : 0
E. Fwd. Pkts.   : 0                     E. Fwd. Octets  : 0
-------------------------------------------------------------------------------
===============================================================================
ALU-12#

3.11.2.4. Candidate Commands

candidate

Syntax 
candidate
Context 
<root>
Description 

This command enables the context to edit candidate configurations and must preface every command in the candidate CLI branch.

Commands in the candidate CLI branch, except for the edit command, are available only when in candidate edit mode.

Default 

n/a

edit

Syntax 
edit [exclusive]
Context 
candidate
Description 

This command enables the candidate edit mode where changes can be made to the candidate configuration and sets the edit point to the end of the candidate. The edit point is the point after which new commands are inserted into the candidate configuration. In candidate edit mode, the CLI prompt displays edit-cfg near the root of the prompt. All other commands in the candidate CLI branch are blocked until the user enters candidate edit mode.

The exclusive parameter allows the user to modify the candidate configuration and block all other users (and other sessions of the same user) from entering candidate edit mode. This parameter can only be used if the candidate configuration is empty and no user is already in candidate edit mode. Before quitting exclusive candidate edit mode, the user must either commit or discard their changes. If the user commits a candidate configuration with the confirmed option while in exclusive candidate edit mode, the exclusive lock is removed during the countdown time to allow any user to confirm the changes.

If the CLI session times out while the user is in exclusive candidate edit mode, the contents of the candidate configuration are discarded. If the user has the candidate configuration locked, the admin disconnect command can be used to forcibly disconnect them and to clear the contents of the candidate.

Default 

n/a

Parameters 
exclusive —
enables exclusive candidate edit mode

commit

Syntax 
commit [confirmed timeout] [comment comment]
commit no-checkpoint [confirmed timeout]
Context 
candidate
Description 

This command applies the changes in the candidate configuration to the active or operational configuration.

When a candidate configuration is committed, the confirmed keyword can be used to require an additional confirmation, which is useful when changes are being made that could impact management reachability to the router. The contents of the candidate configuration remain visible but cannot be edited until the timeout is completed or the commit is confirmed. If the confirmation is not given with the confirm command within the configured timeout period, the router automatically reverts to a configuration state before the candidate configuration changes were applied.

Standard line-by-line, non-transactional configuration commands (including via SNMP) are not blocked during the countdown period, but any changes made to the configuration during the countdown period will be rolled back if the timeout expires.

A rollback revert is blocked during the countdown period until the commit has been confirmed.

If the commit operation is successful, all the candidate changes take operational effect and the candidate configuration is cleared. If there is an error processing the commit, or if the candidate confirm command is not issued and an auto-revert occurs, the router automatically reverts to a configuration state before the candidate configuration changes were applied. If the automatic reversion occurs, the candidate configuration is not cleared and users can continue to edit it and try the commit later.

By default, the 7705 SAR automatically creates a new rollback checkpoint after a successful commit operation that contains the new configuration changes made by the commit. The rollback checkpoint remains available even if the commit is not confirmed. The no-checkpoint keyword allows users to commit the candidate configuration without creating a rollback checkpoint.

A commit operation is blocked if a rollback revert is currently being processed.

Default 

n/a

Parameters 
confirmed—
requires the confirm command to be issued before the end of the timeout period to avoid an auto-revert of the configuration
timeout—
the auto-revert timeout period, in minutes
Values—
1 to 168

 

no-checkpoint—
blocks the creation of a rollback checkpoint for a successful commit
comment—
a string up to 255 characters in length describing the automatic rollback checkpoint file

confirm

Syntax 
confirm
Context 
candidate
Description 

This command is used to confirm a candidate configuration. If the optional confirmed parameter is used with the commit command, this command must be issued before the timeout period expires; otherwise, the router automatically reverts to a configuration state before the candidate configuration changes were applied. After the automatic reversion, the candidate configuration remains available for editing and a subsequent commit.

During the countdown, the contents of the candidate remain visible with the candidate view command but changes to the candidate are blocked until the timeout is completed or this command is issued.

This command also clears the contents of the candidate configuration and allows users to enter candidate edit mode again.

Default 

n/a

copy

Syntax 
copy [line]
Context 
candidate
Description 

This command copies the selected CLI branch, including all sub-branches, into a temporary buffer that can be used with a subsequent insert command. The contents of the temporary buffer are deleted when the operator exits candidate edit mode. Line numbers can be displayed with the candidate view command.

Default 

edit-point

Parameters 
line—
specifies which line to copy
Values—
line | offset | first | edit-point | last
line — the absolute line number
offset — the line relative to the current edit point, prefixed with either + or - to indicate before or after the current edit point
first — keyword to indicate the first line
edit-point — keyword to indicate the current edit point
last — keyword to indicate the last line that is not “exit”

 

delete

Syntax 
delete [line]
Context 
candidate
Description 

This command deletes the selected CLI branch, including all sub-branches. The deleted lines are also copied into a temporary buffer that can be used with a subsequent insert command. Line numbers can be displayed with the candidate view command.

Default 

edit-point

Parameters 
line—
specifies which line to delete
Values—
line | offset | first | edit-point | last
line — the absolute line number
offset — the line relative to the current edit point, prefixed with either + or - to indicate before or after the current edit point
first — keyword to indicate the first line
edit-point — keyword to indicate the current edit point
last — keyword to indicate the last line that is not “exit”

 

discard

Syntax 
discard [now]
Context 
candidate
Description 

This command deletes the entire contents of the candidate configuration and exits candidate edit mode. The undo command cannot be used to recover a candidate configuration that has been discarded with this command.

Default 

n/a

Parameters 
now —
deletes the candidate configuration with no confirmation prompt for the discard

goto

Syntax 
goto line
Context 
candidate
Description 

This command changes the edit point of the candidate configuration. The edit point is the point after which new commands are inserted into the candidate configuration as an operator navigates the CLI and issues commands in candidate edit mode. Line numbers can be displayed with the candidate view command.

Default 

edit-point

Parameters 
line—
specifies which line is to be the edit point for the insertion of new commands
Values—
line | offset | first | edit-point | last
line — the absolute line number
offset — the line relative to the current edit point, prefixed with either + or - to indicate before or after the current edit point
first — keyword to indicate the first line
edit-point — keyword to indicate the current edit point
last — keyword to indicate the last line that is not “exit”

 

insert

Syntax 
insert [line]
Context 
candidate
Description 

This command inserts the contents of the temporary buffer (populated with a previous copy or delete command) into the candidate configuration. The operator can specify any line in the candidate configuration to be the insertion point, but by default, the contents are inserted after the current edit point. The contents of the temporary buffer are deleted when the operator exits candidate edit mode.

Insertions are context-aware. The temporary buffer always stores the CLI context (such as the current CLI branch) for each line deleted or copied. If the contents to be inserted are supported at the context of the insertion point, they are simply inserted into the configuration. If the contents to be inserted are not supported at the context of the insertion point, the following actions are automatically performed by the system:

  1. The context at the insertion point is closed using multiple exit statements.
  2. The context of the lines to be inserted is built (added) into the candidate configuration at the insertion point.
  3. The contents of the temporary buffer are added.
  4. The context of the inserted lines is closed using exit statements.
  5. The context from the original insertion point is rebuilt, leaving the context at the same point as it was before the insertion.

Line numbers can be displayed with the candidate view command.

Default 

edit-point

Parameters 
line—
specifies where to insert the contents of the temporary buffer
Values—
line | offset | first | edit-point | last
line — the absolute line number
offset — the line relative to the current edit point, prefixed with either + or - to indicate before or after the current edit point
first — keyword to indicate the first line
edit-point — keyword to indicate the current edit point
last — keyword to indicate the last line that is not “exit”

 

load

Syntax 
load file-url [overwrite | insert | append]
Context 
candidate
Description 

This command loads a previously saved candidate configuration into the current candidate. The edit point is set to the end of the loaded configuration lines. The current candidate configuration cannot be modified while a load is in progress.

If the current candidate configuration is empty, this command will load the file into the candidate without requiring any of the optional parameters. If the current candidate is not empty, the user must specify overwrite, insert, or append.

Default 

n/a

Parameters 
file-url—
the directory and filename to load
overwrite—
discards the contents of the current candidate and replaces them with the contents of the file
insert—
inserts the contents of the file at the current edit point
append—
inserts the contents of the file at the end of the current candidate

quit

Syntax 
quit
Context 
candidate
Description 

This command exits candidate edit mode. The contents of the current candidate configuration are not deleted and the user can continue editing them later.

Default 

n/a

redo

Syntax 
redo [count]
Context 
candidate
Description 

This command reapplies the changes to the candidate that were previously removed using the undo command. All undo or redo history is lost when the operator exits candidate edit mode.

The redo command is blocked if another user has made changes in a CLI branch that would be impacted during the redo operation.

Default 

n/a

Parameters 
count—
specifies the number of previous changes to reapply
Values—
1 to 50

 

Default—
1

replace

Syntax 
replace [line]
Context 
candidate
Description 

This command displays the specified line (a single line only) and allows it to be changed.

Line numbers can be displayed with the candidate view command.

Default 

edit-point

Parameters 
line—
specifies the line to replace
Values—
line | offset | first | edit-point | last
line — the absolute line number
offset — the line relative to the current edit point, prefixed with either + or - to indicate before or after the current edit point
first — keyword to indicate the first line
edit-point — keyword to indicate the current edit point
last — keyword to indicate the last line that is not “exit”

 

save

Syntax 
save file-url
Context 
candidate
Description 

This command saves the current candidate configuration to a file.

Default 

n/a

Parameters 
file-url—
specifies the directory and filename

undo

Syntax 
undo [count]
Context 
candidate
Description 

This command removes the most recent changes done to the candidate. The changes can be reapplied using the redo command. The undo and redo history is lost when the operator exits candidate edit mode. This command cannot be used to recover a candidate that has been discarded with a candidate discard command.

This command is blocked if another user has made changes in any of the CLI branches that would be impacted during the undo operation.

Default 

1

Parameters 
count—
specifies the number of previous changes to remove

view

Syntax 
view [line]
Context 
candidate
Description 

This command displays the candidate configuration along with line numbers that can be used for editing the candidate configuration.

Default 

edit-point

Parameters 
line—
displays the candidate configuration starting at the specified point
Values—
line | offset | first | edit-point | last
line — the absolute line number
offset — the line relative to the current edit point, prefixed with either + or - to indicate before or after the current edit point
first — keyword to indicate the first line
edit-point — keyword to indicate the current edit point
last — keyword to indicate the last line that is not “exit”

 

3.11.2.5. Rollback Commands

rollback

Syntax 
rollback
Context 
admin
config>system
Description 

This command enables the context to configure rollback command parameters.

Default 

n/a

compare

Syntax 
compare [to source2]
compare source1 to source2
Context 
admin
admin>rollback
config>xx (where xx is any sub-branch at any level below config, but not at the config context itself)
Description 

This command compares two configuration files. If the compare command is entered with no parameters defined, it compares the active configuration to the most recent rollback file. If the command is entered with the source2 parameter defined, it compares the active configuration to the specified file. If the command is entered with both source parameters defined, it compares the first specified file to the second specified file.

Note:

In the CLI, the source1 and source2 parameters are called checkpoint1 and checkpoint2 in the admin>rollback context for this command. For simplicity, this command description uses source1 and source2 for all contexts.

The compare command with no parameters can only be used in the admin>rollback context. The compare to source2 command can only be used in the admin>rollback or config>xx context. In the admin context, both source parameters must be specified.

Caution:

A compare operation does not check authorization of each line of output. Permission to execute the compare command from the admin branch should only be given to users who are allowed to view the entire system configuration.

The defaults for the source parameters are context-dependent and differ based on the branch in which the command is executed.

Default 

admin context: no defaults (source1 and source2 must be specified)

admin>rollback context: source1 = active-cfg, source2 = latest-rb

config>xx context: source1 = active-cfg, no default for source2

Parameters 
source1, source2—
the configuration files to compare
Values—

active-cfg

the active operational system configuration

rescue

the rollback rescue file from the configured rescue location

latest-rb

the most recent rollback checkpoint file from the configured rollback location, with the suffix *.rb

checkpoint-id

The ID value (x) of a specific rollback checkpoint file from the configured rollback location with the suffix *.rb.x.

The default range is 1 to 9 but the maximum value depends on the local-max-checkpoints and remote-max-checkpoints configurations.

 

delete

Syntax 
delete checkpoint-rescue
Context 
admin>rollback
Description 

This command deletes a rollback checkpoint file and decrements the suffix ID numbers of all older rollback checkpoint files.

If the config>redundancy>rollback-sync command is enabled, deleting a rollback checkpoint file also deletes the backup file and decrements the suffix ID numbers on the standby CSM.

Default 

n/a

Parameters 
checkpoint-rescue —
identifies a rollback checkpoint or rescue file to delete
Values—

rescue

the rollback rescue file from the configured rescue location

latest-rb

the most recent rollback checkpoint file from the configured rollback location, with the suffix *.rb

checkpoint-id

The ID value (x) of a specific rollback checkpoint file from the configured rollback location with the suffix *.rb.x.

The default range is 1 to 9 but the maximum value depends on the local-max-checkpoints and remote-max-checkpoints configurations.

 

revert

Syntax 
revert checkpoint-rescue [now]
Context 
admin>rollback
Description 

This command initiates a CLI configuration rollback revert operation that returns the configuration state of the node to a previously saved checkpoint file or rescue file. The rollback reversion minimizes impacts to running services. Configuration parameters that have changed since the last rollback checkpoint file was created, or items on which changed configurations have dependencies, are first reset to their default values and then restored to their previous values from the rollback checkpoint file.

Performing a configuration reversion can be briefly service-impacting in changed areas. There are no service impacts to configuration areas that did not change since the rollback checkpoint file was created.

Default 

n/a

Parameters 
checkpoint-rescue —
identifies the rollback checkpoint or rescue file to revert to
Values—

rescue

the rollback rescue file from the configured rescue location

latest-rb

the most recent rollback checkpoint file from the configured rollback location, with the suffix *.rb

checkpoint-id

The ID value (x) of a specific rollback checkpoint file from the configured rollback location with the suffix *.rb.x.

The default range is 1 to 9 but the maximum value depends on the local-max-checkpoints and remote-max-checkpoints configurations.

 

now—
forces a rollback reversion without prompting for confirmation

save

Syntax 
save [comment comment] [rescue]
Context 
admin>rollback
Description 

This command saves the current operational configuration as a rollback checkpoint file at the configured rollback location, using the filename specified by the rollback-location command, with the suffix *.rb. The suffixes of all previously saved rollback checkpoint files are automatically incremented by one (*.rb becomes *.rb.1, *.rb.1 becomes *.rb.2, and so on).

By default, there can be a maximum of 10 rollback checkpoint files, the latest with suffix *.rb and nine older files with suffixes *.rb.1 through *.rb.9. If the maximum number of checkpoint files is reached and a new one is saved, the oldest checkpoint file is deleted. The maximum number of rollback checkpoint files that can be saved can be configured with the local-max-checkpoints and remote-max-checkpoints commands.

If the rescue keyword is used, this command saves the current operational configuration as a rescue rollback file at the location and with the filename specified by the rescue-location command. The rescue file uses the suffix *.rc. There can be only one rescue file saved at a time. Saving a new rescue file deletes and replaces any existing rescue file.

A valid rollback checkpoint and rescue location must be configured with the rollback-location and rescue-location commands before saving a checkpoint or rescue file.

Default 

n/a

Parameters 
comment—
a string up to 255 characters in length describing the associated rollback checkpoint file
rescue—
saves the current operational configuration as a rollback rescue file with the suffix *.rc

view

Syntax 
view [checkpoint-rescue]
Context 
admin>rollback
Description 

This command displays the configuration settings saved in a rollback checkpoint or rescue file, or the active operational system configuration.

Default 

latest-rb

Parameters 
checkpoint-rescue —
identifies the configuration file to view
Values—

rescue

the rollback rescue file from the configured rescue location

latest-rb

the most recent rollback checkpoint file from the configured rollback location, with the suffix *.rb

checkpoint-id

The ID value (x) of a specific rollback checkpoint file from the configured rollback location with the suffix *.rb.x.

The default range is 1 to 9 but the maximum value depends on the local-max-checkpoints and remote-max-checkpoints configurations.

 

local-max-checkpoints

Syntax 
local-max-checkpoints [number]
no local-max-checkpoints
Context 
config>system>rollback
Description 

This command configures the maximum number of rollback checkpoint files that can be saved to the local compact flash.

When the maximum number of files are saved, the oldest rollback checkpoint file will actually have an ID value one less than the configured maximum, because one rollback checkpoint file is always the latest file and does not have an ID number. For example, if you configure the maximum number of checkpoints as 50, after performing 50 rollback save commands, there will be a latest rollback checkpoint file with extension *.rb, and 49 older files with extension *.rb.1 to *.rb.49.

The no form of this command resets the maximum value to the default.

Default 

10

Parameters 
number—
the maximum number of rollback checkpoint files
Values—
1 to 50

 

remote-max-checkpoints

Syntax 
remote-max-checkpoints [number]
no remote-max-checkpoints
Context 
config>system>rollback
Description 

This command configures the maximum number of rollback checkpoint files that can be saved on a remote device.

When the maximum number of files are saved, the oldest rollback checkpoint file will actually have an ID value one less than the configured maximum, because one rollback checkpoint file is always the latest file and does not have an ID number. For example, if you configure the maximum number of checkpoints as 50, after performing 50 rollback save commands, there will be a latest rollback checkpoint file with extension *.rb, and 49 older files with extension *.rb.1 to *.rb.49.

The no form of this command resets the maximum value to the default.

Default 

10

Parameters 
number—
the maximum number of rollback checkpoint files
Values—
1 to 200

 

rescue-location

Syntax 
[no] rescue-location file-url | rescue filename
Context 
config>system>rollback
Description 

This command configures the location and generic filename of the rollback rescue configuration file.

A rescue file can be saved locally on the compact flash or on a remote device. The file URL must not include a filename extension. The suffix for the rollback rescue configuration file is *.rc and is automatically appended when the file is saved.

A valid rollback rescue location must be configured before a rollback save command is executed.

Default 

no rescue-location

Parameters 
file-url—
the local or remote file path for the rollback rescue configuration file
Values—

local-url

[cflash-id/][file-path] 200 chars max, including cflash-id directory length 99 chars max each

remote-url

[{ftp://}login:pswd@ remote-locn/][file-path]

255 chars max directory length 99 chars max each

remote-locn

[hostname | ipv4-address | ipv6-address ]

ipv4-address

a.b.c.d

ipv6-address

x:x:x:x:x:x:x:x[-interface]

x:x:x:x:x:x:d.d.d.d[-interface]

x - [0..FFFF]H

d - [0..255]D

interface: the interface name, 32 chars max, mandatory for link local addresses

cflash-id

cf3:|cf3-A:|cf3-B:

 

rescue filename—
the generic filename for rollback rescue configuration files

rollback-location

Syntax 
[no] rollback-location file-url | rollback filename
Context 
config>system>rollback
Description 

This command configures the location and generic filename of rollback checkpoint files. Files can be saved locally on the compact flash or on a remote device.

The file-url or filename must not include a filename extension. The suffixes for rollback checkpoint files are *.rb and *.rb.1 to *.rb.x, and are automatically appended when the file is saved.

A valid rollback checkpoint location must be configured before a rollback save command is executed.

Default 

no rollback-location

Parameters 
file-url—
the local or remote file path for rollback checkpoint files
Values—

local-url

[cflash-id/][file-path] 200 chars max, including cflash-id directory length 99 chars max each

remote-url

[{ftp://}login:pswd@ remote-locn/][file-path]

255 chars max directory length 99 chars max each

remote-locn

[hostname | ipv4-address | ipv6-address ]

ipv4-address

a.b.c.d

ipv6-address

x:x:x:x:x:x:x:x[-interface]

x:x:x:x:x:x:d.d.d.d[-interface]

x - [0..FFFF]H

d - [0..255]D

interface: the interface name, 32 chars max, mandatory for link local addresses

cflash-id

cf3:|cf3-A:|cf3-B:

 

rollback filename—
the generic filename for rollback checkpoint files

rollback-sync

Syntax 
rollback-sync
Context 
admin>redundancy
Description 

This command copies all existing rollback checkpoint files from the active CSM compact flash to the standby CSM compact flash on a 7705 SAR-8 Shelf V2 or 7705 SAR-18. You can also enable the system to save an automatic backup of each new rollback checkpoint file with the rollback-sync command in the config>redundancy context.

Rollback checkpoint files can only be backed up from local sources and only by using the two dedicated rollback-sync commands. The synchronize commands in the config>redundancy and admin>redundancy contexts do not apply to rollback checkpoint files.

Default 

n/a

rollback-sync

Syntax 
[no] rollback-sync
Context 
config>redundancy
Description 

This command enables automatic synchronization of locally saved rollback checkpoint files between the active CSM and standby CSM.

When automatic rollback synchronization is enabled, a rollback save will cause the new checkpoint file to be saved on both the active and standby CSMs if the rollback location is a local location. The suffixes of all older checkpoint files on both active and standby CSMs are incremented by one. Automatic synchronization only causes new rollback checkpoint files to be copied to both CSMs. Any rollback checkpoint files that were created before rollback-sync was enabled are not copied to the standby CSM. You can manually back up all files using the rollback-sync command in the admin>redundancy context.

Rollback checkpoint files can only be backed up from local sources and only by using the two dedicated rollback-sync commands. The synchronize commands in the config>redundancy and admin>redundancy contexts do not apply to rollback checkpoint files.

The no form of this command disables automatic synchronization of new rollback checkpoint files.

Default 

no rollback-sync

3.11.2.6. Show Commands

Note:

The following command outputs are examples only; actual displays may differ depending on supported functionality and user configuration.

alias

Syntax 
alias
Context 
show
Description 

This command displays a list of existing aliases.

Output 

The following output is an example of alias information, and Table 14 describes the fields.

Output Example
ALU-103>config>system# show alias
==============================================================================
Alias-Name                    Alias-command-name
==============================================================================
sri                           show router interface
sse                           show service service-using cpipe
ssvll                         show service service-using vll
------------------------------------------------------------------------------
Number of aliases : 3
==============================================================================
ALU-103>config>system#
Table 14:  Alias Field Descriptions 

Label

Description

Alias-Name

Displays the name of the alias

Alias-command-name

The command and parameter syntax that define the alias

Number of aliases

The total number of aliases configured on the router

candidate

Syntax 
candidate
Context 
show>system
Description 

This command shows candidate configuration information.

Default 

n/a

Output 

The following output is an example of candidate information, and Table 15 describes the output fields.

Output Example
*A:Sar8 Dut-A# show system candidate
===============================================================================
Candidate Config Information
===============================================================================
Candidate configuration state          : modified
Num editors/viewers                    : 1
Candidate cfg exclusive locked         : no
Last commit state                      : success
Last commit time                       : 2021/04/08 21:13:00
Last commit initiated user             : admin
Checkpoint created with last commit    : yes
Scheduled revert time                  : N/A
Last commit revert time                : N/A
===============================================================================
Users in edit-cfg mode
===============================================================================
Username Type (from)
===============================================================================
admin Telnet (192.0.2.239)
===============================================================================
*A:Sar8 Dut-A# 
Table 15:  Candidate Configuration Field Descriptions 

Label

Description

Candidateconfiguration state

empty — there are no uncommitted changes in the candidate configurationmodified — there are uncommitted changes in the candidate configuration

unconfirmed — there are no uncommitted changes in the candidate configuration but the result of the last commit will automatically revert to a previous configuration unless it is confirmed before the timeout expires

Num editors/viewers

The number of CLI sessions currently in candidate edit mode

Candidate cfgexclusive locked

Indicates if a user has exclusively locked the candidate configuration using the candidate edit exclusive command

Last commit state

none — there have been no commits since the last reboot of the node

in-progress — the system is currently committing the candidate configuration

success — the last commit finished successfully

revert-pending — the last commit finished successfully but has not been confirmed yet and an auto-revert will occur if it is not confirmed before the timeout expires

failed — the last commit failed and has been undone

revert-in-progress — the last commit finished successfully but was not confirmed in time and the system is currently reverting to a previous configuration

reverted — the last commit finished successfully but was not confirmed in time and the system has reverted to a previous configuration

revert-failed — the last commit finished successfully but was not confirmed in time and the system attempted a reversion but failed

Last commit time

The time at which the last commit attempt was started

Last commit initiated user

The name of the user who initiated the last candidate commit

Checkpoint created with last commit

Indicates if a rollback checkpoint was created after the previous commit completed

Scheduled reverttime

The currently scheduled auto-revert time if the confirmed option is being used with a candidate commit

Last commit reverttime

The time the system was last reverted to a previous configuration

Users in edit-cfgmode

Lists all the user sessions that are currently in candidate edit mode

Username

The name of the user that is currently in candidate edit mode

Type (from)

The type of session (such as console or Telnet) and the source of the session (such as the source IP address of the remote host)