Deprecated Commands; Filtering Show Commands - Juniper JUNOSE SOFTWARE 11.2.X - XML MANAGEMENT PROTOCOL GUIDE 6-30-2010 Command Reference Manual

Software for e series broadband services routers command reference a to m
Hide thumbs Also See for JUNOSE SOFTWARE 11.2.X - XML MANAGEMENT PROTOCOL GUIDE 6-30-2010:
Table of Contents

Advertisement

JunosE 11.2.x Command Reference Guide A to M

Deprecated Commands

Filtering show Commands

Example
4
A command that has been deprecated in a release or in a particular configuration mode
returns a notice when you issue the command manually:
NOTICE: This command is obsolete. It may be completely removed from a subsequent
software release.
A preferred alternate command is provided in the notice. If you have a script that uses
the deprecated command, the deprecated command is automatically mapped to the
preferred command when you run the script. If the deprecated command no longer has
a function, then that command has no effect when you run a script containing the
command.
We recommend that you use the preferred command when writing new scripts.
You have access to a variety of show commands that display router and protocol
information. You can filter the output of a show command by specifying | (the UNIX pipe
symbol), one of the following keywords, and either a case-sensitive text string or a regular
expression.
begin—Displays output beginning with the first line that contains the text string or
regular expression
include—Displays output lines that contain the text string or regular expression and
excludes lines that do not contain the text string or regular expression
exclude—Displays output lines that do not contain the text string or regular expression
and excludes lines that do contain the text string or regular expression
You can press Ctrl+c to interrupt the show command output.
NOTE: The router does not recognize beginning spaces of the text string. For example,
if you enter the include option with IP as the text string on which to filter, the router
ignores the space and displays lines that include words such as RIP.
In the following example, the output display consists only of lines that contain the string
ip. The router omits all other lines of the output from the display because none of them
contain the string ip.
host1#show config include-defaults | include ip
! Configuration script generated on FRI NOV 12 1999 16:56:41 UTC
ip address 192.168.1.229 255.255.255.0
ip rip receive version 2 1
ip rip send version 1
ip rip authentication mode md5 17
ip rip authentication key
ip route 10.6.0.0 255.255.0.0 192.168.1.1
ip route 10.10.0.0 255.255.0.0 192.168.1.1
ip route 10.10.0.166 255.255.255.255 192.168.1.1
Copyright © 2010, Juniper Networks, Inc.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Junose 11.2

Table of Contents