[Contents] [Prev] [Next] [Index] [Report an Error]


Summary of CLI Operational Mode Commands

The following sections explain each of the top-level CLI commands. The commands are organized alphabetically.

clear

Syntax

clear <arp | bfd | bgp | firewall | helper | igmp | ike | ilmi | interfaces | ipv6 | isis | ldp | log 
| mld | mpls | msdp | multicast | ospf | pim | rip | ripng | route | rsvp | services | snmp | 
system | vrrp> 

Description

Delete or set information from various router and protocol databases to zero.

Usage Guidelines

The various clear commands are discussed in other chapters in this manual and in the JUNOS Network and Services Interfaces Command Reference. To locate these commands, refer to the table of contents or the index of each manual.

Required Privilege Level

clear

configure

Syntax

configure <exclusive | private>

Description

Enter configuration mode.

Usage Guidelines

See configure exclusive and the JUNOS System Basics Configuration Guide.

Required Privilege Level

configure

file

Syntax

file <archive source destination | compare | compress source destination | copy | delete 
| list | rename | show> 

Description

Perform file manipulation operations such as compare, copy, delete, list, rename and show.

Usage Guidelines

See System Management Operational Mode Commands and the JUNOS System Basics Configuration Guide.

Required Privilege Level

maintenance

help

Syntax

help <reference | syslog | topic> 

Description

Display help information about available operational commands and configuration statements.

Usage Guidelines

See the JUNOS System Basics Configuration Guide.

Required Privilege Level

view

monitor

Syntax

monitor <interface> <start | stop | list> <traffic>

Description

Monitor a log file or interface statistics or traffic in real time.

Usage Guidelines

See monitor and information about the real-time operational mode commands monitor interface and monitor traffic in the JUNOS Network and Services Interfaces Command Reference.

Required Privilege Level

Depends on the specific command.

mtrace

Syntax

mtrace <source-name> <from-source | monitor | to-gateway>

Description

Display trace information about a multicast path from a source to a receiver.

Usage Guidelines

See IP Multicast Operational Mode Commands.

Required Privilege Level

view

ping

Syntax

ping 

Description

Check the reachability of network hosts.

Usage Guidelines

See System Management Operational Mode Commands.

Required Privilege Level

network

quit

Syntax

quit 

Description

Exit from the CLI to a UNIX shell.

Required Privilege Level

Users with any privilege can issue this command.

See Also

start

| (pipe)

Syntax

<compare <filename | rollback n> | count | display <detail | inheritance | xml> | 
except pattern | find pattern | hold | last | match pattern | no-more | 
resolve <full-names> | save filename | trim columns>

Description

Filter the output of an operational mode or a configuration mode command.

Options

compare <filename | rollback n>—(Configuration mode only, with the show command only) Compare configuration changes with another configuration file that you specify either by filename or by an index number from 0 through 49.

count—Display the number of lines in the output.

display—Display additional information about the contents of the configuration.

except pattern—Ignore text matching a regular expression when searching the output. If the regular expression contains spaces, operators, or wildcard characters, enclose it in quotation marks.

find pattern—Display the output starting at the first occurrence of text matching a regular expression. If the regular expression contains spaces, operators, or wildcard characters, enclose it in quotation marks.

hold—Hold text without exiting the --More-- prompt.

last—Display the end of the output only.

match pattern—Search for text matching a regular expression. If the regular expression contains spaces, operators, or wildcard characters, enclose it in quotation marks.

no-more—Display output all at once rather than one screen at a time.

resolve—Convert IP addresses into DNS names. Truncates to fit original size unless full-names specified. To prevent the names from being truncated, use the full-name option.

save filename—Save the output to a file or URL. For information about specifying the filename, see Searching for a String in the Output.

trim columns—Trim specified number of columns from the start line.

Usage Guidelines

See Filtering Command Output.

request

Syntax

request <chassis | ipsec switch | message | routing-engine | security | services 
flow-collector | support information> 

Description

Stop or reboot router components, switch between primary and backup components, display messages, and display system information.

Usage Guidelines

See Chassis Operational Mode Commands, System Management Operational Mode Commands, and the JUNOS Network and Services Interfaces Command Reference.

Required Privilege Level

maintenance

request system

Syntax

request system <configuration rescue | halt | logout | partition | reboot | software | 
snapshot> 

Description

Stop or reboot the router, load software packages, and back up the router's file systems.

Usage Guidelines

See System Management Operational Mode Commands.

Required Privilege Level

maintenance

restart

Syntax

restart <class-of-service | disk-monitoring | ecc-error-logging | firewall | interface-control 
| kernel-replication | l2tpd | mib-process | network-access-service | pgm | 
pic-services-logging | remote-operations | routing | sampling | snmp> <gracefully | 
immediately | soft> 

Description

Restart router software processes.

Usage Guidelines

See restart.

Required Privilege Level

reset

restart fpc

Syntax

restart fpc slot-number;

Description

Restart the Flexible PIC Concentrator (FPC).

Usage Guidelines

See restart fpc.

Required Privilege Level

reset

restart sfm

Syntax

restart sfm slot-number;

Description

Restart the Switching and Forwarding Modules (SFM)

Usage Guidelines

See restart sfm.

Required Privilege Level

reset

set

Syntax

set <chassis | cli | date | date ntp>

Description

Configure CLI properties and the router's date and time.

Usage Guidelines

See Controlling the CLI Environment, Setting the Current Date and Time, and Setting the Current Date and Time from NTP Servers.

Required Privilege Level

view

show

Syntax

show <accounting | aps | arp | as-path | bgp | chassis | class-of-service | cli | 
configuration | connections | dvmrp | firewall | helper | host | igmp | ike | ilmi | interfaces 
| ipsec | ipv6 | isis | l2circuit | l2vpn | ldp | link-management | log | mpls | msdp | 
multicast | ntp | ospf | ospf3 | passive monitoring | pfe | pim | policer | policy | rip | ripng 
| route | rsvp | sap | services | snmp | system | task | ted | version | vrrp> 

Description

Show information about all aspects of the software, including interfaces and the routing protocols.

Usage Guidelines

The various show commands are discussed in other chapters in this manual and in the JUNOS Network and Services Interfaces Command Reference. To locate these commands, refer to the table of contents or the index of each manual.

Required Privilege Level

Depends on the specific command.

ssh

Syntax

ssh <host-name> <bypass-routing> <interface interface-name> <inet | inet6> <routing 
instance routing-instance-name> <source source-name> <v1 | v2> <vpn-interface 
vpn-interface-name>

Description

Open a secure shell to another host.

Usage Guidelines

See ssh.

Required Privilege Level

network

start

Syntax

start shell 

Description

Start a UNIX shell on the router.

Usage Guidelines

See start.

Required Privilege Level

shell and maintenance

telnet

Syntax

telnet 

Description

Establish a telnet session to another host.

Usage Guidelines

See telnet.

Required Privilege Level

network

test

Syntax

test <configuration | interface | msdp | policy> 

Description

Run various diagnostic debugging commands.

Usage Guidelines

The various test commands are discussed in other chapters. To locate these commands, refer to the table of contents or the index.

Required Privilege Level

Depends on the specific command.

traceroute

Syntax

traceroute 

Description

Trace the route to a remote host.

Usage Guidelines

See traceroute.

Required Privilege Level

network


[Contents] [Prev] [Next] [Index] [Report an Error]