Вы находитесь на странице: 1из 27

WARNING!!: By no means this is an official supported/recommended Juniper command list !!!

Furthermore, care must be taken at the time to use Shell commands!! (only under JTAC supervision) COMMAND Description Example
Chassis Management show chassis alarm show chassis craft-interface set chassis display message "M40e unit for swap" show chassis environment show chassis temperature-thresholds show chassis routing-engine show chassis hardware detail/frus/ext show chassis fpc show chassis fpc detail show chassis fpc pic-satus show chassis pic fpc-slot 0 pic-slot 1 show chassis mac-addresses show chassis [feb | scb | ssb | sfm slot ] System management show host show version show system software show system uptime show system processes show system statistics show system connections show system users show system storage root% df -k show system boot-messages show system virtual-memory request system reboot request system halt request system reboot request system snapshot request support information request system software add <pkgname> restart <process> [ gracefully, immediately, soft] request chassis routing-engine diagnostics all request system storage cleanup ns lookup displays software running on the box displays installed packages uptime of the router extensive/summary Show the process table ip, icmp, Show protocol statistics lists only active IP sockets on RE Show users currently logged into the system displays the amount of amount of free disk space on file system show system storage from Shell displays contents of boot log (boot-up messages) displays current memory state Restarts the system Stops the router and prepares it to be shut down Reboot the system Save config in /altconfig and software in /altroot before upgrade show tech performs bsd pgkadd; always use jbundle (4->5 jinstall) Restart process (hidden) runs a diagnostic script in compact-flash,hard-disk & memory Free storage space on the router by rotating log files and proposing a list of files for deletion. User input is required for file deletion. detail show host www.cisco.com Chassis alarm status Information currently on craft display displays a user defined message on the LCD craft interface Environmental information & temperature Displays temperature thresholds Displays info about the RE, memory & CPU utilization Hardware inventory + serial numbers; frus shows fans; ext shows eeprom, flash/disk capacity displays status of all FPCs installed (mem heap should be <80% !) includes also SRAM/SDRAM available Mem and usage Displays info for all PICs Displays info about one particular PIC MAC address displays satus about PFE system control board (temp, cpu%,DRAM)

Configuration configuration show enters configuration mode displays the current configuration show protocols ospf filters the output of the command show config | match firewall filters starting with the regular expression show config | find firewall save configuration as <file> modifies configuration statements edit protocols ospf sets configuration statements set chassis alarm sonet lo1 red removes configuration statements exists edit mode and also config mode save, validate and activate a complete config just check config do not apply activates config for a x minutes and then ask for confirmation, x=10 default activates config and exists edit mode activates config on active RE and replicates it into backup RE (hidden) signals to all daemons a SIGHUP (kill -1) which forces them to read their config files (restarts all daemons) (hidden) from shell same as commit full but from shell activates config at a given time (schedule a commit) commit at "18:00:00" Clear all pending commit requests deletes the new edited changes and returns to current config returns to the last commited config it will return to previously saved config. Only at the top level! combines the current config and the new one erases the candidate config and replaces it with "luis" copy and paste portions of the config, vanaf root config loads the factory default settings config router# load override /packages/mnt/jbase/sbin/install/default-juniper.conf compares the candidate config with the running config displays a rollback file shows differences between rollbacks 0 and 32 files saves config in /var/home directory save CJNR-reset saves config in remote system using ssh save luis@ | match item | find item | save <file> edit set delete exit commit commit check commit confirmed x commit and-quit commit synchronize commit full root% mgd -l commit at clear system commit rollback 0 rollback rollback + commit load merge </var/home/user/config> load override </var/home/user/config> load merge terminal load factory-default show | compare show system rollback 40 show system rollback compare 0 32 save save username@host:filename Managing files start shell /config /var/db/config /var/tmp /var/log /var/home /altroot /altconfig file list file list /config file show <file> file delete file copy source destination file copy filename ftp://hostname/filename file copy filename scp://user@hostname/filename file copy ftp://hostname/filename filename show system rollback 40 show system rollback compare 0 32

flashdisk harddisk harddisk harddisk harddisk harddisk harddisk

contains active config and rollbacks 1,2 & 3 contains rollback files 4 through 49 contains core files generated by the daemons when they crash files generated by the logging and traceoptions contains subdirectory per user contains a copy of the root file structure form the flash drive contains a copy of the /config file structure on the flash drive displays all files on this user home directory displays all files on the /config directory displays content of <file> deletes a file from hard disk copies files from one RE to the other Copy Files from the Local Router to a Remote System

request system snapshot request system snapshot

ftp scp ftp

Copy Files from a Remote System to the local router displays a rollback file shows differences between rollbacks 0 and 32 files

file delete /var/tmp/smpd.core GRTAMSTC1> file copy /var/home/jinstall-6.2-domestic-signed.tgz re0:/var/home/lgomez root@host> file copy /config/juniper.conf ftp://jvserver.uu.net/tmp/juniper.conf root@host> file copy /config/juniper.conf ftp://lgomez@jvserver.uu.net/tmp/juniper.conf root@host> file copy /config/juniper.conf scp://user@ssh-host/tmp/juniper.conf root@host> root@host> file copy ftp://jvserver.uu.net/jbundle-package-name /var/tmp/jbundle-package-name root@host> file copy ftp://lgomez@jvserver.uu.net/jbundle-package-name /var/tmp/jbundle-package-name

Logs show log messages show log file-name show log cli show log chassisd show log install show log debug show log messages? show log inventory monitor start file-name

located in /var/log shows all the logs, location is /var/log shows logs about an specific log file show logs about cli commands issued show logs about chassis probs show logs releveant to an install JUNOS version show daemon logs displays all the files with their dates of the collected logs shows logs about inventory monitors logs in real time

show log bgp-events.0

monitor stop help syslog Show interfaces show interfaces detail extensive terse description media statistics routing

stops monitoring explanation of log meaning


monitor interface x-x/x/x monitor traffic interface x-x/x/x monitor traffic interface x-x/x/x write-file [file] % tcpdump -r monitor start <var/log/file> show arp clear interfaces statistics so-2/0/1 show interfaces diagnostics optics so-1/0/0 Routing show route show route protocol [static, isis] show route x.x.x.x extensive show route advertising-protocol show route receiving-protocol Forwarding show route forwarding-table destination x.x.x.x clear route forwarding-table x.x.x.x SFM0 (vty)# show route ip prefix x.x.x.x Firewall show firewall show firewall log clear firewall [all|filter-name|counter-name] show interfaces filters show interfaces policers show policer Management & Interface testing ping ping atm interface <intf> vci <nr> traceroute

(hidden) Shell command

shows detailed info about an interface shows all possible info about an interface (very detailed) shows ip interface brief shows interfaces description Display media information Display statistics and detailed info Display routing status monitors interface real-time statistics prints packet headers to your terminal screen for info sent/received by the RE. No filtering allowed !! writes output to this command to a file, with L2 headers present all info is stored in a file so you can use tcpdump to read it monitor traffic interface fe-0/0/0 write-file dump XR1.AMS6> start shell read the contents of a tcpdump file % tcpdump -r dump icmp prints logfile to your terminal screen shows ARP entries reset counters & statistics for this particular interface displays SONET signaling power values and laser Tx Rx

show ip route show ip route for an specific protocol extensive view of a route

show route protocol static

Shell command

displays route entries in the master copy of the FT (on RE) XR1.AMS6> show route forwarding-table destination clears entries from the FT (be careful! could lead to RIB/FIB inconsistencies!!) displays route entries into the PFE FT (should be identical to RE FT)


show packet/byte counts for all policing filters log in memory resident buffer/kernel cache (detail: packet length) clears counters displays all firewall filters on all interfaces displays all firewall policers on all interfaces displays all policers, where it is used and no. packets processed

icmp echo-request/echo-response ping remote atm interface using oam cells send udp 33434/ttl=1- receive icmp time-exceeded send udp 33435/ttl=2 - receive icmp time-exceeded send udp 33439/ttl=6 - receive icmp port unreachable and delete and delete sets loopback on PIC towards router sets loopback on PIC towards far-end

Loopback test set t3-options loopback local set t3-options loopback remote BERT test set t3-options bert-period 120 set t3-options bert-algorithm all-ones-repeating set t3-options bert-error-rate 0 test interface t3-1/2/0 t3-bert-start test interface t3-1/2/0 t3-bert-stop show interfaces t3-1/2/0 extensive | find bert Policy test policy <policy-name> 0/0

BERT test duration BERT test pattern BERT test error rate Starts BERT test Stops BERT test

Pass all routes (0/0) through the policy as test

JTAC support info request suport information Restore factory settins load override /packages/mnt/jbase/sbin/install/default-juniper.conf load factory-default Shell Commands (file related) start shell root% df -k root% mgd -l % sysctl -a | grep bootdev Resetting cards request chassis fpc slot 3 offline request chassis fpc slot 3 online request chassis pic fpc-slot 3 pic-slot 3 offline request chassis pic fpc-slot 3 pic-slot 3 online Processes & Connections restart . #deactivate protocols ospf % which rpd % ps ax | grep rpd % netstat -Aa from shell

% fstat | grep [PCB]

from shell

show system connections file show /etc/services Core Files file list detail /var/crash/ show system core-dumps request system core-dump [process] % gcore -s path/binary-name pid % gzip vmcore.0.gz % cat vmcore.0 | gzip vmcore.0.gz PCMCIA dd if=filename of=/dev/rdevice address bs=64k dd if=/deb/zero of=/dev/rad3 count=20

High mem tax! disruptive!!

from root shell

dd if=install-media-7.0R1.5-export of=/dev/rad3 bs=64k RE & Redundancy show chassis routing-engine show chassis routing-engine bios request chassis routing-engine master switch request routing-engine login other-routing-engine root# rsh -T re1 request chassis routing-engine diagnostics all fsck /dev/ad1s1f PFE show pfe terse show pfe fpc 0 show pfe statistics error clear pfe statistics show pfe route summary show pfe next-hop show pfe interface

(hidden) from root shell

!! Hidden! !! Hidden!

Logging into PFE Components show tnp addresses start shell %su %vty [ntp address] FPC2(host vty)# show nvram FPC2(host vty)# show syslog messages (same but straight from CLI) start shell pfe network fpc2 EGFPC2(GRTMIANA2 vty)# sh nvram EGFPC2(GRTMIANA2 vty)# sh lchip EGFPC2(GRTMIANA2 vty)# sh lchip 0 errors SFM0/FEB/CFEB show chassis sfm detail start shell pfe network sfm0 (vty)# show nvram (vty)# show syslog info (vty)# show syslog messages SFM0 (vty)# show sched SFM0(vty)# sh throttle SFM0(vty)# show cchip notif SBR(Sydney vty)# bringup nic 0 reanimate SBR(Sydney vty)# test mem all verbosity 5 size 10 loops 1 Hidden! Shell required requires su

!!! !!!

JUNOS upgrades

junos files are in /var/home

file copy ftp://hostname/filename filename


file copy root% dd if=/dev/rad3 of=/dev/null bs=1k count=1 show system storage % sysctl -a | grep bootdev % sysctl -w machdep.bootdevs=pcmcia-flash,compact-flash,disk,lan request chassis routing-engine diagnostics all (hidden) request system snapshot request system software add validate /var/tmp/jinstall-6.4R3-domestic.tgz request system reboot

Memory & processes issues show system processes show task memory detail extensive/summary

Shell Commands i) Kernel related % sysctl -a % sysctl -a | grep dump % sysctl -a | grep bootdev % sysctl -w

ii) FreBSD related

boot: /boot/loader


collects shoversion, uptime, hardware, processes, pfe stats, fpc detail, boot messages, memory, buffers, stats, etc

Restores the router to its default config Restores the router to its default config

shows files in the directory initializes configuration database (commit related problems) shows boot devices

puts fpc in slot 3 in offline state puts fpc in slot 3 back in online state puts pic in fpc 3 slot 3 in offline state puts pic in fpc 3 slot 3 back in online state

restart a particular daemon process (kill -1) bounces a particular instance of rpd only obtains process path obtains the PID associated with a process Displays all connections (ports) on which the RE listens displays sockets (-a) & all Protocol Control Blocks (PCB) info (-A) Displays info about a file. If you specify a particular PCB you will determine what PROCESS is actually using one particular port (get the PCB from the netstat -Aa command listed port) lists only active IP sockets on RE similar to netstat but restricted only to Internet connections gives you a list of services-to-port mappings

lists core files if there are lists core files if there are forces a core file for one particular process (creates copy of process) forces a core file by suspending the daemon compresses corefile to gz same thing, but keeps original file

copies a file to a removable media erases removable media (PCMCIA)

copies an install media from /var/tmp to flash

Displays info about the RE, memory & CPU utilization Displays revision level of the RE BIOS changes RE mastership from active to backup REs logs into the other RE logs into the other RE from a root shell promt runs a diagnostic script in compact-flash,hard-disk & memory file system check

Show list of Packet Forwarding Engine component Show FPC status and statistics displays FPE ASIC-related errors clears PFE statistics Show summary version of routing tables (size and # of routes) Show PFE next-hop information shows interfaces and indexes (not snmp!)

obtains list of tnp endpoints addresses

connects to vty ntp address (FPC, SSB, SFM) collects disagnostic info from FPC shows syslog messages

status of the SFM and mastership login into the SFM collects data from the SFM displays logs about the SFM displays log messages displays scheduler information (SFM CPU%) Interrupt throttle information shows C chip notification registers restarts a dead FPC runs memory address data tests (10 meg, loop 1)

junos files are in /var/home

Copy Files from a Remote System to the local router copies files from one place to the other (i.e. between REs) Checks there is no removable media inserted. displays the amount of amount of free disk space on file system shows boot devices alters the order of the booting devices runs a diagnostic script in compact-flash,hard-disk & memory Save config in /altconfig and software in /altroot before upgrade Installs JUNOS package, validating against potential config errors Reboot the system

Show the process table Shows memory tasks

displays all ( -a ) kernel parameters confirms if kernel core dumps are enabled shows boot devices in order writes ( -w ) parameters to kernel components

If your router gets stuck after a reload and you get a FreeBSD Prompt you might have to help your system to find the CF


pfe stats, fpc detail, boot messages, memory, buffers, stats, etc

Restores the router to its default config

GRTMADPE2> request chassis fpc slot 2 offline GRTMADPE2> request chassis fpc slot 2 online GRTMADPE2> request chassis pic fpc-slot 3 pic-slot 2 offline GRTMADPE2> request chassis pic fpc-slot 3 pic-slot 2 online

GRTAMSTC1> restart routing

% netstat -Aa | grep 179 c3780200 tcp4 0

0 179


% fstat | grep c3780200 root rpd 2456 20* internet stream tcp c3780200

GRTAMSTC1> file list detail /var/crash/ GRTAMSTC1>show system core-dumps GRTAMSTC1> request system core-dump routing root% gcore -s /usr/sbin/rpd 2275

GRTAMSTC1>dd if=install-media-7.0R1.5-export of=/dev/rad3 bs=64k

root@Sydney-3% fsck /dev/ad1s1f

show tnp addresses

lgomez@GRTAMSTC1> start shell pfe network sfm0 SFM0(GRTAMSTC1 vty)# show nvram SFM0(GRTAMSTC1 vty)# show syslog info

root@host> file copy ftp://jvserver.uu.net/jbundle-package-name /var/tmp/jbundle-package-name root@host> file copy ftp://lgomez@jvserver.uu.net/jbundle-package-name /var/tmp/jbundle-package-name GRTAMSTC1> file copy /var/home/jinstall-6.2-20040424.0-domestic-signed.tgz re0:/var/home/lgomez

kern.coredump flag must be set to 1 % sysctl -w machdep.bootdevs=pcmcia-flash,compact-flash,disk,lan

>> FreeBSD/i386 BOOT Default: 0:ad(0,a)mfs boot:

Show commands show rip neighbor show route protocol rip show route advertising-protocol rip show route receiving-protocol rip show rip statistics



view status of neighbors, send/receive mode (ripv1/2) view all RIP routes in the routing table displays routes that a rip interface sends displays routes that a rip interface receives displays various rip statistics

Show commands show ospf neighbor show ospf neighbor extensive clear ospf neighbor [] show ospf statistics show ospf interface show ospf interface extensive show ospf route



abr asbr extern

view status of OSPF neighbors, priority, dead intervals, FSM state view detailed info about an ospf neighbor (area, option fields, DR, BDR...) restarts an adjacency or all view basic ospf statistics, number of Hellos, DD LSRs, LSUs, LSAcks. OSPF packet types + LSA rexmit view status of an interface, Area, DR, BDR, Neighbors, State (DR, BDR, DRother, PtoP, Down) ...also cost, MTU The results of the SPF algorithm, LSA type, metric...

show route protocol ospf show ospf database show ospf database summary show ospf database brief clear ospf database purge show ospf database

router network netsummary asbrsummary extern nssa

viet ospf routes in inet.0 (routing table) show route protocol ospf 192.168/16 terse view the LSA database per area, Seq no./Age/Checksum, Options view how many LSA types per area (usefull!!) view the LSA database briefly described deletes de database and restarts adjacencies, purge floods LSA with maxage view the LSA specific type database

show ospf database router advertising-router detail show ospf database router area 0 extensive

show ospf database area 0 lsa-id extensive show ospf log show bfd session

view LSAs advertised by a paricular router ID view the LSA database in a particular area LSA header (opt bits, ID, advertis rtr) LSA type content (V E B bits and all packet) view one particular LSA in detail displays how often the SPF is being initiated verify BFD operation

show ospf database router advertising-router detail

show ospf database area 0 lsa-id extensive

Show commands show isis adjacency show isis adjacency extensive clear isis adjacency show isis interface show isis interface details show isis hostname show isis spf log show isis statistics show isis route show route protocol isis show isis database show isis database detail show isis database GRTMADPE2 detail show isis database extensive [level 1 | 2] monitor traffic interface so-0/0/0 size 1514 detail show bfd session



view status of ISIS adjacencies, Level, state, SNPA, Hold time restart capability, piority, circuit type, ip address clears and restarts an adjacency displays the interfaces that are operational for isis interface, level, circuit ID, DR Level 1/2, Metric verifies the dynamic hostname resolution of system ID values displays history of SPF calculations, why it was performed verifies which isis PDUs are being transmitted/received (IIH, LSP, CSNP, PSNP) and number of SPF runs displays the results of the SPF calculations before the routes are places into the routing table. view routes in inet.0 displays LSPs on the database, including sequence, checksum, lifetime and attributes displays advertised prefixes, metrics, origin for each route plus LSP headers and all TVL details Monitor IS-IS messages verify BFD operation

Show commands show bgp summary show bgp group show bgp neighbor



show route next-hop database show route protocol bgp show route protocol bgp terse show route receive-protocol bgp show route advertising-protocol bgp


peers, ASN, Flaps, routes active/received/damped + total/active paths view the configured peer groups detailed info about bgp peers (AS number, hold time, router IDs, prefixes, NLRI support, capabilities and received routes, no of input/output packets, state...) shows the bgp next-hop dB shows the Local-RIB database as part of inet.0, next-hop, metric1/2 AS-path shows next-hop but not protocol next-hop shows the Adjacency-RIB-In table. (routes received by a peer before a routing policy is applied) shows the Adjacency-RIB-Out table (routes being advertised to a peer after routing policy is applied) all of the BGP attributes of this route, metric=MED, metric2=IGP cost shows routes with unreachable next-hops

show route detail 10.10.1/24 show route hidden show route community <reg-ex> show route terse community-name <name> show route aspath-regex "regex" show route damping [history|decayed|surpressed] clear bgp damping clear bgp neighbor soft inbound monitor traffic interface fe-0/0/0 size 4096 detail

detail/terse show routes matching community detail/terse shows all routes with this community name configured detail/terse detail show routes being damped clear damping and reuse damped routes immediately to regain routes not in Adj-Rib-In (keep none or loops) Monitors BGP messages

Show commands IGMP show igmp interface show igmp group show igmp statistics PIM show pim interface show pim neighbors show pim statistics show pim join extensive clear pim join show pim source detail show pim rps show pim bootstrap RPF show multicast usage show multicast rpf show multicast route extensive show route table inet.1 show multicast next-hops show nhdb id extensive MSDP show msdp show msdp source-active show route table inet.4 show multicast rpf inet summary detail extensive



shows state, querier (DR for that segment), version (default 2) and IGMP timers shows the multicast groups joined shows igmp message statistics


lists configured PIM interfaces -- mode (default sparse), state (DR, ptp), neighbors shows info about pim neighboring routers shows pim messages being sent or received shows current state of pim joins, multicast group address & interface used to forward streams. Also rpt or stp tree in use displays (*,G) and (S,G) states and also RPF interface info flushes join states! shows active multicast sources and their RPF intf. also multicast groups serviced by these source shows the RP addresses, how it was learned and which groups are served shows the BSR election process and state


to view packets/bytes seen for every multicast group address to view the RPF table used during multicast forwarding, similar to inet.0 displays source prefix, from which protocol was learned & the uptsream interface to verify multicast group addresses and their sources (S,G) also displais NHID which are a numerical reference to the OIL as above with protocol and preference (S,G) displays the multicast outgoing interface list (OIL), mapping of NHid to interfaces next-hop database with IFL-list

shows MSDP sessions and their status shows MSDP sources active (SA) and whether the SA is accepted, rejected or filtered MSPD table. Almost the same as the above but with (S,G) notation displays what table multicast uses (inet.0 by default)

Show commands show mpls interface show mpls lsp show mpls lsp extensive show mpls lsp ingress show mpls lsp transit clear mpls lsp [optimize|optimze-aggressive] show ted database RSVP show rsvp interface show rsvp neighbor show rsvp session show rsvp session ingress show rsvp version show route table mpls.0 show route table inet.3 LDP show ldp neighbors show ldp session show ldp database [session peer] extensive




shows status of an mpls interface and admin groups (colors) verify the establishment of the LSP at ingress, egress or transit level AND the label in/out/Pushed values history of LSP, paths and RRO is shown show the originated LSPs at ingress. Also secondary paths are showed and fast reroute show transit LSPs Rebuilds all LSPs, [non-preemptive|aggressive] now Examines the info in the TE database, including all IGP extensions (admin groups -colors-, BW priority reservations)

detail detail

shows status of RSVP interfaces, Active resv, Subscription rate, Bandwidth allocations shows RSVP neighbors which has an LSP active, also Hello-interval shows ingress/egress/transit sessions and the label in/out values assigned!!! RRO, Style, ERO and also bypass LSPs shows also the links used by detour paths and their status shows RSVP version, soft-state refresh timer, keep-multiplier (hello & soft-state use same) shows MPLS switching table (label values) shows LSP table. RSVP info is installed here

displays all LDP neighbors displays all established sessions, state and hold-time displays all label-to-FEC mappings [from specific peer]

L3 VPN COMMANDS Show commands show route table vpn-a detail



show route table vpn-a hidden show route forwarding-table vpn vpn-a ping x.x.x.x routing-instance vpn-a traceroute x.x.x.x routing-instance vpn-a telnet x.x.x.x routing-instance vpn-a ping mpls l3vpn vpn-a prefix 172.20.4/24 show route table bgp.l3vpn.0

shows this particular VRF table, containing watch for the inner (VPN) & outer (LSP) labels * all routes learned from CE * all routes imported from l3vpn.bgp table coming from other PEs If LSP is missing between PEs, VPN IPv4 routes will be visible but with and invalid NH shows a VRF forwwarding table (note the double push operation) ping using a particular VRF table traceroute using a partiuclar VRF table telnet using a particular VRF table checks if route at destination VRF exists and reachability to it houses all VPN IPv4 routes learned from all PEs DEFAULT: only store routes with a matched RT "keep all" knob: store all MBGP routes even if there is no matched RT view routes sent to other PEs view routes received from other PEs displays ARP entries in both inet.0 and VRF tables clears ARP entries off the VRP table

no need for in lo0

show route advertising-protocol bgp x.x.x.x show route receive-protocol bgp x.x.x.x show arp clear arp vpn vpn-a OSPF VPN commands show ospf interface instance vpn-a show ospf neighbor instance vpn-a show ospf database instance vpn-a

displays all configured OSPF interfaces on this VRF displays all OSPF neighbors on this VRF displays the LSDB for this particular VRF

L2 VPN COMMANDS Kompella Show commands show l2vpn connections show route table vpn-a extensive detail shows states of layer 2 vpns connections (site to site) shows contents of a VFT, including * local site L2 NLRIs advertised to other PEs [L2VPN] * remote site L2 NLRIs coming from other PEs [BGP] houses all L2 VPN NLRIs with at least one matching RT view L2 VPN NLRIs sent to other PEs view L2 VPN NLRIs received from other PEs shows MPLS switching table entries for L2 VPNs (displays VRF interfaces to label -double push operation- mappings) ((which VRF interface is mapped to which LSP )) view FT entries for L2 VPN connections test the l2vpn connection site to site (PE to PE) test the l2vpn local interface

L2 NLRI = RD + Site ID + label offset

show route table bgp.l2vpn.0 show route advertising-protocol bgp x.x.x.x show route receive-protocol bgp x.x.x.x show route table mpls.o detail

show route forwarding-table family mpls ping mpls l2vpn instance vpn-a remote-site-id 2 local-site-id 1 ping mpls l2vpn interface fe-0/0/0.512

Martini Show commands show l2circuit connections show ldp neighbor detail show ldp database extensive shows states of layer 2 circuits connections (site to site) check if neighbor relationship is successful between PEs (use of extended neighbor discovery has worked) check the presence of a FEC associated with the l2circuit


Show commands show interface xx-x/x/x detail show interface queue xx-x/x/x show interfaces so-1/0/0 extensive show class-of-service ... show class-of-service interfaces so-1/0/0

show class-of-service code-point-aliases show class-of-service code-point-aliases dscp show class-of-service code-point-aliases inet-prec show class-of-service code-point-aliases exp show class-of-service forwarding-class show class-of-service classifier [name] show class-of-service scheduler-map show class-of-service rewrite-rule show class-of-service drop-profile show class-of-service forwarding-table show class-of-service forwarding-table classifier mapping show class-of-service forwarding-table scheduler-map (all)


shows classification results at ingress (BE, EF, AF, NC) SHOWS HOW TRAFFIC IS CLASSIFIED. Provides info about FC (queue) and RED and priority counters for this interface show queue statistics for this interface determines how many queues an interface supports & check the CoS queues

shows what CoS parameters are in effect for a given interface. Number of queues i.e. which scheduler map, classifier, rewrite is applied shows listing of cos bits to simbolic name mapings: DSCP, inet-prec, exp shows mappings between simbolic names and dscp values (unless configured, default will apply) shows mappings between simbolic names and IP prec values shows mappings between simbolic names and EXP values shows mappings of forwarding class names to queue numbers Show contents of a specific code point to forwarding class & PLP classifier shows mapping of forwarding classes to schedulers details Show mapping of forwarding class/loss priority to code point. Displays rewrite table Shows available drop profiles and interpolated data points of named drop profile displays CoS parameters in effect within the forwarding table displays which classifiers are mapped to what logical units displays the scheduler map in service for each interface


out FC (queue) and RED and priority counters for this interface show interfaces queue forwarding-class best-effort so-0/* | match "Physical| Bytes"

nless configured, default will apply)

Show commands show interfaces filters show firewall

show firewall filter <filter-name> show firewall filter <name> prefix-action <psa-name> from 1 to 8 show firewall log show log <log-file-name>


clear firewall <name> show policer show interface policer fe-0/1/0 show log /var/tmp/<sample file> show log sampled


displays all firewall filters on all interfaces displays counter and policer statistics for all firewall filters

displays the contents of a particular firewall filter name displays the n policers & counters of a Prefix-Specific Counter & Policer (PSCP) displays the contents of the kernel firewall log displays logged entries into syslog. Needs an action of syslog on the filter and also create a file with that name under system syslog. Basically is all about redirect all logs into syslog system

resets counters associated with a firewall displays a list of interface policers displays details about interface policers displays a sample file created by the otuput of traffic sampling displays a copy of cflowd aggregates that are sent to the cflowd server requires local-dump command on the cflowd config


root@r3> show firewall Filter: lo0-in Counters: Name denied-traffic Policers: Name police-icmp-icmp

Bytes 3480 Packets 132

Packets 61

root@r3> show log filtering requires enabling this particular file syslog { file filtering { firewall info; }

Show commands show snmp statistics extensive show snmp mib walk . show snmp mib walk ipfragfails show interface lo0 extensive | display xml


shows SNMP statistics (hidden!) shows snmwalk of an OID shows output of xml tags. What variables are consulted for the display