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


Summary of CLI Operational Commands

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

clear

Syntax

clear (arp | bgp | chassis | firewall | igmp | ilmi | interfaces | isis | ldp | log | mpls | msdp | multicast | ospf | pim | rip | route | rsvp | snmp | system | vrrp)

Description

Delete or zero information from various router and protocol databases.

Usage Guidelines

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

Required Privilege Level

clear

configure

Syntax

configure

Description

Enter configuration mode.

Usage Guidelines

See the JUNOS Internet Software Configuration Guide: Getting Started.

Required Privilege Level

configure

file

Syntax

file (copy | delete | list | rename | show)

Description

Copy files to and from the router.

Usage Guidelines

See the JUNOS Internet Software Configuration Guide: Getting Started.

Required Privilege Level

maintenance

help

Syntax

help (reference | topic)

Description

Display help information about available operational commands and configuration statements.

Usage Guidelines

See the JUNOS Internet Software Configuration Guide: Getting Started.

Required Privilege Level

view

monitor

Syntax

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

Description

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

Usage Guidelines

See Monitor and Perform System Management Functions, and "Real-Time Router Interface Monitoring and Troubleshooting" and monitor traffic in the JUNOS Internet Software Operational Mode Command Reference: Interfaces.

Required Privilege Level

Depends on the specific command.

mtrace

Syntax

mtrace (from-source | to-gateway | monitor)

Description

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

Usage Guidelines

See IP Multicast Monitoring and Troubleshooting.

Required privilege level

view

ping

Syntax

ping

Description

Check the reachability of network hosts.

Usage Guidelines

See Monitor and Perform System Management Functions.

Required Privilege Level

network

quit

Syntax

quit

Description

Exit from the CLI to a UNIX shell.

Required Privilege Level

shell and maintenance

See Also

start

| (pipe)

Syntax

| (compare | count | display <detail | inheritance | xml> | except pattern | find pattern | hold | 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.

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.

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 Search for a String in the Output.

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

Usage Guidelines

See Filter Command Output.

request

Syntax

request system (reboot | halt | software | snapshot)

Description

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

Usage Guidelines

See Monitor and Perform System Management Functions.

Required Privilege Level

maintenance

restart

Syntax

restart (fpc | interface-control | mib-process | routing | sampling | sfm | snmp | soft)

Description

Restart router software processes.

Usage Guidelines

See Monitor and Perform System Management Functions.

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 Control the CLI Environment, Set the Current Date and Time, and Set the Current Date and Time from NTP Servers.

Required Privilege Level

view

show

Syntax

show (aps | arp | as-path | bgp | chassis | cli | configuration | connections | dvmrp | firewall | host | igmp | interfaces | isis | ldp | log | mpls | msdp | multicast | ntp | ospf | pfe | pim | policy | rip | route | rsvp | sap | 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 on other chapters. To locate these commands, refer to the table of contents or the index.

Required Privilege Level

Depends on the specific command.

ssh

Syntax

ssh

Description

Open a secure shell to another host.

Usage Guidelines

See Monitor and Perform System Management Functions.

Required Privilege Level

network

start

Syntax

start shell

Description

Start a UNIX shell on the router.

Usage Guidelines

See Monitor and Perform System Management Functions.

Required Privilege Level

shell and maintenance

telnet

Syntax

telnet

Description

Establish a telnet session to another host.

Usage Guidelines

See Monitor and Perform System Management Functions.

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 Monitor and Perform System Management Functions.

Required Privilege Level

network


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