CLI Operational Mode Overview
In operational mode, you can use Junos OS Evolved CLI commands to monitor and
troubleshoot a device. The monitor
, ping
,
show
, test
, and traceroute
commands enable you to display information and test network connectivity for the device.
CLI Operational Mode Command Overview
You (the network administrator) can control all network operations using the Junos OS Evolved CLI operational mode commands described in this topic.
CLI Operational Mode Command Categories
CLI operational mode commands fall into the following broad categories:
-
Operational mode commands for monitoring and troubleshooting—The following commands perform functions related to information and statistics about the software and to test network connectivity.
Table 1: Operational Mode Commands Command
Description
clear
Clear Shared-ids.
configure
Manipulate software configuration information.
file
Perform file operations.
help
Provide help information.
monitor
Show real-time debugging information.
mtrace
Trace multicast path from source to receiver.
op
Invoke an operation script.
ping
Ping a remote target.
probe
Probe interfaces on a remote target.
quit
Exit the management session.
request
Make system-level requests.
restart
Restart a software process.
set
Set CLI properties, date/time. Write an interface message.
show
Show system information.
ssh
Start SSH on another host.
start
Start shell.
telnet
Telnet to another host.
traceroute
Trace route to remote host.
-
Commands for restarting software processes—The commands in the
restart
hierarchy restart the various system processes, including the routing protocol, interface, and SNMP. -
A command—
request
—Perform system-level operations, including stopping and rebooting the router or switch and loading operating system images. -
A command—
start
—Exit the CLI and start a UNIX shell. -
A command—
configure
—Enter configuration mode, which provides a series of commands that configure the system, including the routing protocols, interfaces, network management, and user access.
For more information about the CLI operational mode commands, see the CLI
Explorer. Alternatively, you can enter ?
at the operational mode
command prompt to view a list of available commands.
Commonly Used Operational Mode Commands
The following table lists some operational commands you may find useful for monitoring router or switch operation.
Items to Check |
Description |
Command |
---|---|---|
Software version |
Versions of software running on the router or switch |
|
Log files |
Contents of the log files |
|
Log files and their contents and recent user logins |
|
|
Remote systems |
Host reachability and network connectivity |
|
The route to a network system |
|
|
Configuration |
Current system configuration |
|
File manipulation |
List of files and directories on the router or switch |
|
Contents of a file |
|
|
Interface information |
Detailed information about interfaces |
|
Chassis |
Chassis alarm status |
|
Information currently on craft display |
|
|
Router or switch environment information |
|
|
Hardware inventory |
|
|
Routing table information |
Information about entries in the routing tables |
|
Forwarding table information |
Information about data in the kernel’s forwarding table |
|
Display Options of the show Command—An Overview
—
The show
command can include brief
,
detail
, extensive
, or terse
options. You
can use these and other options to control the amount and type of information to view.
-
At any point in the CLI, you can enter the
?
character to view all the currently available options. For example:user@host>
show interfaces et-1/1/1 ?
Possible completions: <[Enter]> Execute this command brief Display brief output descriptions Display interface description strings detail Display detailed output extensive Display extensive output media Display media information snmp-index SNMP index of interface statistics Display statistics and detailed output terse Display terse output | Pipe through a command -
At any point in the CLI, you can use the
show
command with one of the following options to display the detail you need to view.-
Command output with the brief option.
user@host> show interfaces et-1/0/0:0 brief Physical interface: et-1/0/0:0, Enabled, Physical link is Up Link-level type: Ethernet, MTU: 1514, LAN-PHY mode, Speed: 100Gbps, Loopback: Disabled, Source filtering: Disabled, Flow control: Enabled, Media type: Fiber Device flags : Present Running Interface flags: SNMP-Traps Link Degrade : Link Monitoring : Disable Logical interface et-1/0/0:0.16386 Flags: Up SNMP-Traps Encapsulation: ENET2 multiservice
-
Command output with the terse option.
user@host> show interfaces et-1/0/0:0 terse Interface Admin Link Proto Local Remote et-1/0/0:0 up up et-1/0/0:0.16386 up up multiservice
-
Command output with the extensive option.
user@host> show interfaces et-1/0/0:0 extensive Physical interface: et-1/0/0:0, Enabled, Physical link is Up Interface index: 1009, SNMP ifIndex: 506, Generation: 704374637523 Link-level type: Ethernet, MTU: 1514, LAN-PHY mode, Speed: 100Gbps, BPDU Error: None, Loop Detect PDU Error: None, MAC-REWRITE Error: None, Loopback: Disabled, Source filtering: Disabled, Flow control: Enabled, Media type: Fiber Device flags : Present Running Interface flags: SNMP-Traps CoS queues : 8 supported, 8 maximum usable queues Hold-times : Up 0 ms, Down 0 ms Damping : half-life: 0 sec, max-suppress: 0 sec, reuse: 0, suppress: 0, state: unsuppressed Current address: 6e:1f:b5:48:01:74, Hardware address: 6e:1f:b5:48:01:74 Last flapped : 2021-07-21 11:25:16 PDT (9w 5d 03:50 ago) Statistics last cleared: Never Traffic statistics: Input bytes : 0 0 bps Output bytes : 0 0 bps Input packets: 0 0 pps Output packets: 0 0 pps ---(more)---
-
On Junos OS Evolved, an interface may be configured when it is not physically connected to the chassis.
Interface Naming Conventions Used in Operational Commands
This topic explains the interface naming conventions used in operational commands.
- Physical Part of an Interface Name
- Logical Part of an Interface Name
- Channel Identifier Part of an Interface Name
Physical Part of an Interface Name
The physical interface naming conventions for Juniper Networks device platforms is as follows:
When you display information about an interface, you specify the following values:
interface type, the slot in which the Flexible PIC Concentrator (FPC) is installed, the slot on the FPC in which the PIC is located, and the configured port number.
In the physical part of the interface name, a hyphen (-) separates the media type from the FPC number, and a slash (/) separates the FPC, PIC, and port numbers:
type-fpc/pic/port
Exceptions to the
type-fpc/pic/port
physical description include the aggregated Ethernet interfaces,
which use the syntax ae
number
and
as
number
, respectively.
Logical Part of an Interface Name
The logical unit part of the interface name corresponds to the logical unit number, which can be a number from 0 through 16,384. You use logical unit numbers to uniquely identify physical storage systems or virtual storage systems within a network. In the virtual part of the name, a period (.) separates the port and logical unit numbers:
type-fpc/pic/port.logical
Channel Identifier Part of an Interface Name
The channel identifier part of an interface name is required only on channelized interfaces. For channelized interfaces, channel 0 identifies the first channelized interface. For channelized intelligent queuing (IQ) interfaces, channel 1 identifies the first channelized interface.
Depending on the type of channelized interface, you can specify up to three levels of channelization.
A colon (:) separates the physical and virtual parts of the interface name:
type-fpc/pic/port:channel
type-fpc//pic/port:channel:channel
type-fpc/pic/port:channel:channel:channel
About Group Interface Names Using Wildcard Characters
You can use wildcard characters in operational commands to specify groups of interface names without having to type each name individually. The following table lists the available wildcard characters. You must enclose all wildcard characters except the asterisk (*) in quotation marks (“ ”).
Wildcard Character |
Description |
---|---|
|
Match any string of characters in that position in the interface
name. For example, |
|
Match one or more individual characters in that position in the
interface name. For example, |
|
Match all characters except those included in the brackets. For
example, |
|
Match a range of characters. For example, |
|
Match all characters that are not in the specified range of
characters. For example, |