Juniper Networks Field Guide and Reference

With the show interfaces and clear interfaces commands, you can use wildcard characters when specifying interface names (in the interface- name option) to refer to groups of interface names without having to type each name individually. Table 13.5 lists the available wildcard characters. You must enclose all wildcard characters except the asterisk in quotation marks (" ").

Table 13.5. Wildcard Characters for Specifying Interface Names

Wildcard Character Description
* (asterisk) Match any string of characters in that position in the interface name. For example, so* matches all SONET/SDH interfaces.
" [ character < character... >] " Match one or more individual characters in that position in the interface name. For example, "so-[03]"* matches all SONET/SDH interfaces in slots 0 and 3.
" [! character < character ...>] " Match all characters except the ones included in the brackets. For example, "so-[!03]"* matches all SONET/SDH interfaces except for those in slots 0 and 3.
" [ character1-character2 ] " Match a range of characters. For example, so-"[0-3]"* matches all SONET/SDH interfaces in slots 0, 1, 2, and 3.
" [! character1-character2 ] " Match all characters that are not in the specified range of characters. For example, so-"[!0-3]"* matches all SONET/SDH interfaces in slots 4, 5, 6, and 7.
Table 13.6. Interfaces Monitoring Commands

Information to Monitor Command Example
General interface information show interfaces

user@host> show interfaces fe-5/0/0 Physical interface: fe-5/0/0, Enabled, Physical link is Up Interface index: 37, SNMP ifIndex: 14 Link-level type: Ethernet, MTU: 1514, Source filtering: Disabled Speed: 100mbps Loopback: Disabled, Flow control: Enabled, Ingress Rate Limit: 20mbs Device flags : Present Running Interface flags: SNMP-Traps Link flags : None Current address: 00:90:69:0c:0e:76, Hardware address: 00:90:69:0c:0e:76 Input rate : 0 bps (0 pps), Output rate: 0 bps (0 pps) Active alarms : None Active defects : None Logical interface fe-5/0/0.0 (Index 511) (SNMP ifIndex 15) Flags: SNMP-Traps, Encapsulation: ENET2 Protocol inet, MTU: 1500 Addresses, Flags: Is-Preferred Is-Primary Destination: 29.0.1/24, Local: 29.0.1.1, Broadcast: 29.0.1.255

Summary interface information show interfaces terse

user@host> show interfaces ml-1/0/0 terse Interface Admin Link Proto Local Remote ml-1/0/0 up up ml-1/0/0.1 up up inet 10.20.30.40 --> 10.20.30.50 ml-1/0/0.2 up up inet 10.0.0.2 --> 10.0.0.1 iso mpls ml-1/0/0.10 up up inet 128.1.1.3 --> 128.1.1.2 iso

Configured interface descriptions show interfaces descriptions

user@host> show interfaces descriptions Interface Admin Link Description so-3/2/0 up up interface-1 so-3/2/0.0 up up interface-2 so-3/2/1 up up interface-3 so-3/2/2.0 up up interface-4

Routing information for each interface show interfaces routing

user@host> show interfaces routing brief Interface State Addresses so-5/0/3.0 Down ISO enabled so-5/0/2.0 Up MPLS enabled ISO enabled INET 192.168.2.120 INET enabled ...

Media-specific interface information show interfaces media

user@host> show interfaces media at-5/1/0 Physical interface: at-5/1/0, Enabled, Physical link is Up Interface index: 21, SNMP ifIndex: 9 Link-level type: ATM-PVC, MTU: 4482, Clocking: Internal, SONET mode Speed: OC12, Loopback: None, Payload scrambler: Enabled Device flags : Present Running Link flags : None OAM F5 cell statistics: Output: Loop 797, RDI 0 Input: Loop 797, RDI 0, AIS 0 Input rate : 448 bps (1 pps), Output rate: 432 bps (1 pps) Active alarms : None Active defects : None SONET errors: BIP-B1: 10, BIP-B2: 140, REI-L: 380, BIP-B3: 31, REI-P: 220

Interface statistics show interfaces statistics

user@host> show interfaces e1-1/1/0 statistics Physical interface: e1-1/1/0, Enabled, Physical link is Up Interface index: 30, SNMP ifIndex: 130 Link-level type: PPP, MTU: 4474, Clocking: Internal Speed: E1, Loopback: None, FCS: 16, Framing: G704 Device flags : Present Running Interface flags: Point-To-Point SNMP-Traps Link flags : Keepalives Statistics last cleared: Never Input rate : 0 bps (0 pps), Output rate: 0 bps (0 pps) Input errors : 0, Output errors : 0 Active alarms : None Active defects : None

Zero interface statistics clear interfaces statistics

user@host> clear interfaces statistics all user@host>

Filters or policers installed show interfaces (filters policers)

user@host> show interfaces policers so-2/1/0 Interface Admin Link Proto Input Policer Output Policer so-2/1/0 up down so-2/1/0.0 up down inet so-2/1/0.0-in-policer so-2/1/ 0.0-out-policer iso inet6

Interface statistics monitor interface

user@host> monitor interface so-0/0/0 router1 Seconds: 19 Time: 15:46:29 Interface: so-0/0/0, Enabled, Link is Up Encapsulation: PPP, Keepalives, Speed: OC48 Traffic statistics: ... Encapsulation statistics: ... Error statistics: ... Active alarms : None Active defects: None SONET error counts/seconds: ... SONET statistics: ... Received SONET overhead: ... Transmitted SONET overhead: ... Next='n', Quit='q' or ESC, Freeze='f', Thaw='t', Clear='c', Interface='i'

Perform a tcpdump monitor traffic

user@host> monitor traffic interface fxp0 listening on fxp0.0 18:17:28.800650 In server.home.net.723 > host1 0.lab.home.net.log 18:17:28.800733 Out host2-0.lab.home.net.login > server.home.net.7 18:17:28.817813 In host30.lab.home.net.syslog > host40.home0 18:17:28.817846 In host30.lab.home.net.syslog > host40.home0 18:17:28.819174 In host30.lab.home.net.syslog > host40.home0 ...

Automatic Protection Switching information show aps

user@host> show aps Interface Group Circuit Intf State t3-1/2/0:0 king Working enabled, up t3-1/3/0:0 king Protect disabled, up

Start bit error rate test test interface bert-start

user@host> test interface t3-5/2/0 bert-start user@host> show interfaces t3-5/2/0 extensive ... DSU configuration: Compatibility mode: None, Scrambling: Disabled, Subrate: Disabled FEAC loopback: Inactive, Response: Disabled, Count: 0 BERT time period: 10 seconds, Elapsed: 10 seconds (completed) Algorithm: 2^3 - 1, Pseudorandom (1), Error rate: 10e-0 Bit count : 5656, Overflows: 0 Error bit count: 811, Overflows: 0 LOS status: OK, LOS count: 1, LOS seconds: 9 ...

Stop bit error rate test test interface bert-stop

user@host> test interface t3-5/2/0 bert-stop

Transmit over FDL to initiate or terminate a far-end line loopback test interface feac-loop-initiate

user@host> test interface t3-5/2/0 fdl-line-loop ansi

Transmit over FDL to initiate or terminate a far-end payload loopback test interface fdl-payload-loop

user@host> test interface t3-5/2/0 fdl-payload-loop ansi

Transmit the line loopback activate code word sequence on the interface's FEAC channel test interface feac-loop-initiate

user@host> test interface t3-5/2/0 feac-loop-initiate

Transmit the line loopback deactivate code word sequence on the interface's FEAC channel test interface feac-loop-terminate

user@host> test interface t3-5/2/0 feac-loop-terminate

VRRP groups show vrrp

user@backup-router> show vrrp brief Interface Unit Group Type Address Int state VR state Timer ge-5/2/0 0 10 lcl 192.168.29.10 up backup D 7.133 vip 192.168.29.55 mas 192.168.29.254

Zero VRRP group statistics clear vrrp

user@backup-router> clear vrrp statistics all

ILMI messages show ilmi

user@host> show ilmi all Physical interface: at-6/2/1, VCI: 0.16 Peer IP address: 192.168.4.24, Peer interface name: 1C4 Physical interface: at-6/3/0, VCI: 0.16 Peer IP address: 192.168.7.6, Peer interface name: 2C3 Physical interface: at-6/4/0, VCI: 0.16 Peer IP address: 192.168.9.10, Peer interface name: 1C2

ILMI statistics show ilmi statistics

user@host> show ilmi statistics ILMI statistics: Input: Packets: 0, Bad versions: 0, Bad community names: 0, Bad community uses: 0, ASN parse errors: 0, Too bigs: 0, No such names: 0, Bad values: 0, Read onlys: 0, General errors: 0, Total request varbinds: 0, Total set varbinds: 0, Get requests: 0, Get nexts: 0, Set requests: 0, Get responses: 0, Traps: 0, Silent drops: 0, Proxy drops 0 Output: Packets: 0, Too bigs: 0, No such names: 0, Bad values: 0, General errors: 0, Get requests: 0, Get nexts: 0, Set requests: 0, Get responses: 0, Traps: 0

Zero ILMI statistics clear ilmi statistics

user@host> clear ilmi statistics

Категории