Operational-Mode Commands
CLI Operational Mode Command Overview
You (the network administrator) can control all network operations using the Junos OS 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.
-
clear
—Clear statistics and protocol database information. -
file
—Perform file operations. -
mtrace
—Trace a multicast path from source to receiver. -
monitor
—Perform real-time debugging of various software components, including the routing protocols and interfaces. -
ping
—Determine the reachability of a remote network host. -
show
—Display the current configuration and information about interfaces, routing protocols, routing tables, routing policy filters, system alarms, and the chassis. -
test
—Test the configuration and application of policy filters and autonomous system (AS) path regular expressions. -
traceroute
—Trace the route to a remote network 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 |
|