Comandos-v2 Juniper.xls

download Comandos-v2 Juniper.xls

of 32

Transcript of Comandos-v2 Juniper.xls

  • 7/26/2019 Comandos-v2 Juniper.xls

    1/32

    COMMAND Description

    Chassis Management

    show chassis alarm Chassis alarm status

    show chassis craft-interface Information currently on craft display

    set chassis display message "M40e unit for swap" displays a user dened message on the LCD craft inte

    show chassis environment nvironmental information ! temperature

    show chassis temperature-thresholds Displays temperature thresholds

    show chassis routing-engine Displays info aout the #$ memory ! C%& utili'ation

    show chassis hardware detail(frus(e)t *ardware inventory + serial numers, frus shows fans

    show chassis fpc displays status of all /%Cs installed mem heap should

    show chassis fpc detail includes also 6#7M(6D#7M availale Mem and usageshow chassis fpc pic-satus Displays info for all %ICs

    show chassis pic fpc-slot 0 pic-slot 8 Displays info aout one particular %IC

    show chassis mac-addresses M7C address

    displays satus aout %/ system control oard temp$

    System management

    show host ns loo.up

    show version displays software running on the o)

    show system software detail displays installed pac.ages

    show system uptime uptime of the router

    show system processes e)tensive(summ 6how the process tale

    show system statistics ip$ icmp$9 6how protocol statistics

    show system connections lists only active I% soc.ets on #

    show system users 6how users currently logged into the systemshow system storage displays the amount of amount of free dis. space on

    show system storage from Shell

    show system oot-messages displays contents of oot log oot-up messages5

    show system virtual-memory displays current memory state

    re:uest system reoot #estarts the system

    re:uest system halt 6tops the router and prepares it to e shut down

    re:uest system reoot #eoot the system

    re:uest system snapshot 6ave cong in (altcong and software in (altroot efor

    re:uest support information show tech

    re:uest system software add 1p.gname; performs sd pg.add, always use

  • 7/26/2019 Comandos-v2 Juniper.xls

    2/32

    show route forwarding-tale destination )))) displays route entries in the master copy of the /O on

    clear route forwarding-tale )))) clears entries from the /O e careful could lead to # 6/M0 vty5Q show route ip pre) )))) 6hell command displays route entries into the %/ /O should e iden

    Firewall

    show rewall show pac.et(yte counts for all policing ltersshow rewall log detail log in memory resident uGer(.ernel cache detail paclear rewall >all@lter-name@counter-name? clears countersshow interfaces lters displays all rewall lters on all interfaces

    show interfaces policers displays all rewall policers on all interfaces

    show policer displays all policers$ where it is used and no pac.ets p

    Management !nterace testing

    ping icmp echo-re:uest(echo-response

    ping atm interface 1intf; vci 1nr; ping remote atm interface using oam cellstraceroute send udp EE4E4(ttlA8- receive icmp time-e)ceeded

    send udp EE4E=(ttlAF - receive icmp time-e)ceededCsend udp EE4E(ttlAR - receive icmp port unreachale

    ;oopac! test

    set tE-options loopac. local and delete sets loopac. on %IC towards router

    set tE-options loopac. remote and delete sets loopac. on %IC towards far-end

    (9 test set tE-options ert-period 8F0 P#O test duration

    set tE-options ert-algorithm all-ones-repeating P#O test pattern set tE-options ert-error-rate 0 P#O test error ratetest interface tE-8(F(0 tE-ert-start 6tarts P#O testtest interface tE-8(F(0 tE-ert-stop 6tops P#O testshow interfaces tE-8(F(0 e)tensive @ nd ert

    "olicy

    test policy 1policy-name; 0(0 %ass all routes 0(05 through the policy as test

  • 7/26/2019 Comandos-v2 Juniper.xls

    3/32

    COMMAND

    #$AC support ino

    re:uest suport information

    #estore factory settins

    load override (pac.ages(mnt(

  • 7/26/2019 Comandos-v2 Juniper.xls

    4/32

    show chassis routing-engine

    show chassis routing-engine ios

    re:uest chassis routing-engine master switch

    re:uest routing-engine login other-routing-engine

    rootQ rsh -O re8

    re:uest chassis routing-engine diagnostics all hidden5

    fsc. (dev(ad8s8f from root shell

    %/

    show pfe terse

    show pfe fpc 0

    show pfe statistics error

    clear pfe statistics *idden

    show pfe route summary

    show pfe ne)t-hop

    show pfe interface *iddenshow lchip ifd *idden

    show ichip ifd *idden

    Logging into %/ Components

    show tnp addresses *idden

    start shell 6hell re:uired

    re:uires su

    same ut straight from CLI5

    start shell pfe networ. fpcF

    6/M0(/P(C/P

    show chassis sfm detailstart shell pfe networ. sfm0

    vty5Q show nvram

    vty5Q show syslog info

    ,-ty./ show syslog messages

    SFM0 ,-ty./ show sched

    SFM0,-ty./ sh throttle

    6/M0vty5Q show cchip notif

    6P#6ydney vty5Q ringup nic 0 reanimate

    6P#6ydney vty5Q test mem all verosity = si'e 80 loops 8

    J&K6 upgrades ntp address?

    /%CFhost vty5Qshow nvram

    /%CFhost vty5Qshow syslog messages

    B/%CFB#OMI7K7F vty5Q sh nvram

    B/%CFB#OMI7K7F vty5Q sh lchip

    B/%CFB#OMI7K7F vty5Qsh lchip 0 errors

  • 7/26/2019 Comandos-v2 Juniper.xls

    5/32

    ftple copy

    root3 dd ifA(dev(radE ofA(dev(null sA8. countA8

    show system storage

    re(uest chassis routing%engine diagnostics all hidden5

    re:uest system snapshot

    re:uest system software add validate (var(tmp(

  • 7/26/2019 Comandos-v2 Juniper.xls

    6/32

    Description

    collects shoversion$ uptime$ hardware$ processes$ pfe stats$ fpc detail$ oot messages$ memory$ uGers$ st

    #estores the router to its default cong

    #estores the router to its default cong

    shows les in the directory

    initiali'es conguration dataase commit related prolems5

    shows oot devices

    puts fpc in slot E in oSine state

    puts fpc in slot E ac. in online state

    puts pic in fpc E slot E in oSine state

    puts pic in fpc E slot E ac. in online state

    restart a particular daemon process .ill -85

    ounces a particular instance of rpd only

    otains process path

    otains the %ID associated with a process

    gives you a list of services-to-port mappings

    lists core les if there are

    lists core les if there aredecode a core le

    forces a core le for one particular process creates copy of process5

    forces a core le y suspending the daemon

    compresses corele to g'

    same thing$ ut .eeps original le

    copies a le to a removale media

    erases removale media %CMCI75

    copies an install media from (var(tmp to ash

    displays soc.ets -a5 ! all %rotocol Control Ploc.s %CP5 info -75

    get the %CP from the netstat -7a command listed port5

    similar to netstat ut restricted only to Internet connections

  • 7/26/2019 Comandos-v2 Juniper.xls

    7/32

    Displays info aout the #$ memory ! C%& utili'ation

    Displays revision level of the # PI6

    changes # mastership from active to ac.up #s

    logs into the other #

    logs into the other # from a root shell promt

    runs a diagnostic script in compact-ash$hard-dis. ! memory

    le system chec.

    6how list of %ac.et /orwarding ngine component

    6how /%C status and statistics

    displays /% 76IC-related errors

    clears %/ statistics

    6how summary version of routing tales si'e and Q of routes5

    6how %/ ne)t-hop information

    shows interfaces and inde)es not snmp5shows which interface elongs to which %/ for O-series

    shows which interface elongs to which %/ for I-chip ased %/

    otains list of tnp endpoints addresses

    connects to vty ntp address /%C$ 66P$ 6/M95

    collects disagnostic info from /%C

    shows syslog messages

    status of the 6/M and mastershiplogin into the 6/M

    collects data from the 6/M

    displays logs aout the 6/M

    displays log messages

    displays scheduler information 6/M C%&35

    Interrupt throttle information

    shows C chip notication registers

    restarts a dead /%C

    runs memory address data tests 80 meg$ loop 85

    var(home

  • 7/26/2019 Comandos-v2 Juniper.xls

    8/32

    Copy /iles from a #emote 6ystem to the local router

    copies les from one place to the other ie etween #s5

    Chec.s there is no removale media inserted

    displays the amount of amount of free dis. space on le system

    shows oot devices

    alters the order of the ooting devices

    runs a diagnostic script in compact-ash$hard-dis. ! memory

    6ave cong in (altcong and software in (altroot efore upgrade

    Installs J&K6 pac.age$ validating against potential cong errors

    #eoot the system

    6how the process tale

    6hows memory tas.s

    displays all -a 5 .ernel parameters

    conrms if .ernel core dumps are enaled

    shows oot devices in order

    writes -w 5 parameters to .ernel components

    to nd the C/

  • 7/26/2019 Comandos-v2 Juniper.xls

    9/32

    Example

    (estores the router to its default cong

    6(9/7S9%1A le list detail varcrash

    6(9/7S9%1Ashow system core$dumps

    6(9/7S9%1A reuest system core$dump routing

    rootB gcore $s usrsinrpd ++DE

    6(9/7S9%1Add ifFinstall$media$D.0(1.E$eGport ofFdevradH sF,I!

    6(97/+A reuest chassis fpc slot + oJine

    6(97/+A reuest chassis fpc slot + online

    6(97/+A reuest chassis pic fpc$slot H pic$slot + oJine

    6(97/+A reuest chassis pic fpc$slot H pic$slot + online

    6(9/7S9%1A restart routing

    root rpd +IE, +0K internet stream tcp cHD80+00

  • 7/26/2019 Comandos-v2 Juniper.xls

    10/32

    root)Sydney$HB fsc! devad1s1f

    show tnp addresses

    lgome?)6(9/7S9%1A start shell pfe networ! sfm0

    S370L6(9/7S9%1 vtyM# show nvram

    6/M0B#O7M6OC8 vty5Q show syslog info

  • 7/26/2019 Comandos-v2 Juniper.xls

    11/32

    !ern.coredump Nag must e set to 1

    B sysctl $w machdep.ootdevsFpcmcia$NashOcompact$NashOdis!Olan

    rootHhost; le copy ftp((lgome'H

  • 7/26/2019 Comandos-v2 Juniper.xls

    12/32

  • 7/26/2019 Comandos-v2 Juniper.xls

    13/32

  • 7/26/2019 Comandos-v2 Juniper.xls

    14/32

    -pac.age-name

    elgome?

  • 7/26/2019 Comandos-v2 Juniper.xls

    15/32

    COMMAND Description Example

    Show commands

    show rip neighbor view status of neighbors, send/receive mode (ripv1/2)

    show route protocol rip view all RIP routes in the routing table

    show route advertising-protocol rip 1!1!1!1 displa"s routes that a rip interface sendsshow route receiving-protocol rip 1!1!1!1 displa"s routes that a rip interface receives

    show rip statistics displa"s various rip statistics

  • 7/26/2019 Comandos-v2 Juniper.xls

    16/32

    COMMAND Description

    Show commands

    show ospf neighbor view status of #$P% neighbors, prio

    show ospf neighbor e'tensive view detailed info about an ospf ne

    fields, R, R!!!)

    clear ospf neighbor *1+2!1!2.!22.0 restarts an adacenc" or all

    show ospf statistics view basic ospf statistics, number

    3$Rs, 3$4s, 3$5c6s! #$P% pac6et t"p

    show ospf interface view status of an interface, 5rea,

    $tate (R, R, Rother, PtoP, own

    show ospf interface e'tensive !!!also cost, &94

    show ospf route abr 9he results of the $P% algorithm, 3

    asbre'tern

    show route protocol ospf viet ospf routes in inet! (routing

    show ospf database view the 3$5 database per area, $e:

    show ospf database summar" view how man" 3$5 t"pes per area (u

    show ospf database brief view the 3$5 database briefl" desc

    clear ospf database purge deletes de database and restarts ad

    show ospf database router view the 3$5 specific t"pe database

    networ6

    netsummar"

    asbrsummar"

    e'tern

    nssa

    show ospf database router advertising-router 1!!=!= detail view 3$5s advertised b" a paricula

    show ospf database router area e'tensive view the 3$5 database in a particul

    3$5 header (opt bits, I, advertis3$5 t"pe content (> ? bits and a

    show ospf database area lsa-id e'tensive view one particular 3$5 in detail

    show ospf log displa"s how often the $P% is being

    show bfd session verif" % operation

  • 7/26/2019 Comandos-v2 Juniper.xls

    17/32

    COMMAND Description E

    Show commands

    show isis adacenc" view status of I$I$ adacencies, 3evel, state, $8P5, old tim

    show isis adacenc" e'tensive restart capabilit", piorit", circuit t"pe, ip address

    clear isis adacenc" clears and restarts an adacenc"

    show isis interface displa"s the interfaces that are operational for isis

    show isis interface details interface, level, circuit I, R 3evel 1/2, &etric

    show isis hostname verifies the d"namic hostname resolution of s"stem I values

    show isis spf log displa"s histor" of $P% calculations, wh" it was performed

    show isis statistics verifies which isis P4s are being transmitted/received

    (II, 3$P, ;$8P, P$8P) and number of $P% runs

    show isis route displa"s the results of the $P% calculations before the

    routes are places into the routing table!

    show route protocol isis view routes in inet!

    show isis database displa"s 3$Ps on the database, including se:uence, chec6sum,

    lifetime and attributes

    show isis database detail displa"s advertised prefi'es, metrics, origin for each route

    show isis database @R9&5P?2 detail

    show isis database e'tensive *level 1 A 20 B plus 3$P headers and all 9>3 details

    monitor traffic interface so-// siCe 1.1 detail &onitor I$-I$ messages

    show bfd session verif" % operation

  • 7/26/2019 Comandos-v2 Juniper.xls

    18/32

    COMMAND Description 12

    Show commands

    show gp summary peers$ 76K$ /laps$ routes active(received(damped + total(active paths

    show gp group view the congured peer groupsshow gp neighor detailed info aout gp peers

    76 numer$ hold time$ router IDs$ pre)es$ KL#I support$ capailities

    and received routes$ no of input(output pac.ets$ state5

    show route ne)t-hop dataase shows the gp ne)t-hop dP

    show route protocol gp #IP shows the Local-#IP dataase as part of inet0$ ne)t-hop$ metric8(F 76-pa

    show route protocol gp terse shows ne)t-hop ut not protocol ne)t-hop

    show route receive-protocol gp #IP shows the 7d

  • 7/26/2019 Comandos-v2 Juniper.xls

    19/32

    COMMAND Description

    Show commands

    !3M"

    show igmp interface shows state$ :uerier D# for that segment5$ version default F5 and IBM% timers

    show igmp group shows the multicast groups

  • 7/26/2019 Comandos-v2 Juniper.xls

    20/32

    COMMAND Description

    Show commands

    show mpls interface shows status of an mpls interface and admin groups colors5

    show mpls lsp verify the estalishment of the L6% at ingress$ egress or transit level 7KD th

    show mpls lsp e)tensive history of L6%$ paths and ## is shown

    show mpls lsp ingress e)tensiv show the originated L6%s at ingress 7lso secondary paths are showed and f

    show mpls lsp transit show transit L6%s

    clear mpls lsp >optimi'e@optim'e-aggressive? #euilds all L6%s$ >non-preemptive@aggressive? now

    show ted dataase e)tensiv )amines the info in the O dataase$ including all IB% e)tensions

    admin groups -colors-$ PW priority reservations5

    RS4"

    show rsvp interface shows status of #6X% interfaces$ 7ctive resv$ 6uscription rate$ Pandwidth a

    show rsvp neighor shows #6X% neighors which has an L6% active$ also *ello-interval

    show rsvp session detail shows ingress(egress(transit sessions and the lael in(out values assignedshow rsvp session ingress detail shows also the lin.s used y detour paths and their status

    show rsvp version shows #6X% version$ soft-state refresh timer$ .eep-multiplier hello ! soft-st

    show route tale mpls0 shows M%L6 switching tale lael values5

    show route tale inetE shows L6% tale #6X% info is installed here

    LD"

    show ldp neighors displays all LD% neighors

    show ldp session displays all estalished sessions$ state and hold-time

    show ldp dataase >session peer? displays all lael-to-/C mappings >from specic peer?

  • 7/26/2019 Comandos-v2 Juniper.xls

    21/32

    COMMAND Description

    L5 4"N COMMANDS

    Show commands

    detail

    If L6% is missing etween %s$ X%K I%v4 routes will e visile ut w

    shows a X#/ forwwarding tale note the doule push operation5

    ping using a particular X#/ tale

    traceroute using a partiuclar X#/ tale

    telnet using a particular X#/ tale

    chec.s if route at destination X#/ e)ists and reachaility to it

    show route tale gplEvpn0 houses all X%K I%v4 routes learned from all %s

    D/7&LO only store routes with a matched #O

    show route advertising-protocol gp )))) view routes sent to other %s

    show route receive-protocol gp )))) view routes received from other %s

    show arp displays 7#% entries in oth inet0 and X#/ tales

    clears 7#% entries oG the X#% tale

    OS"F 4"N commands

    displays all congured 6%/ interfaces on this X#/

    displays all 6%/ neighors on this X#/

    displays the L6DP for this particular X#/

    L6 4"N COMMANDS

    7ompella Show commands

    show lFvpn connections e)tensiv shows states of layer F vpns connections site to site5

    detail

    show route tale gplFvpn0 houses all LF X%K KL#Is with at least one matching #O

    show route advertising-protocol gp )))) view LF X%K KL#Is sent to other %s

    show route receive-protocol gp )))) view LF X%K KL#Is received from other %s

    show route tale mplso detail

    show route forwarding-tale family mpls view /O entries for LF X%K connections

    test the lFvpn connection site to site % to %5

    ping mpls lFvpn interface fe-0(0(0=8F test the lFvpn local interface

    Martini Show commands

    show lFcircuit connections e)tensiv shows states of layer F circuits connections site to site5

    show ldp neighor detail

    show ldp dataase detail chec. the presence of a /C associated with the lFcircuit

    show route tale -pn%a shows this particular X#/ tale$ containingV all routes learned from CV all routes imported from lEvpngp tale coming from other %

    show route tale -pn%ahidden

    show route forwarding-tale vpn -pn%a

    ping )))) routing-instance -pn%a

    traceroute )))) routing-instance -pn%a

    telnet )))) routing-instance -pn%a

    ping mpls lEvpn -pn%apre) 8TFF04(F4

    ".eep all" .no store all MPB% routes even if there is no matche

    clear arp vpn -pn%a

    show ospf interface instance -pn%a

    show ospf neighor instance -pn%a

    show ospf dataase instance -pn%a

    show route tale -pn%a shows contents of a X/O$ includingV local site LF KL#Is advertised to other %s >LFX%K?V remote site LF KL#Is coming from other %s >PB%?

    shows M%L6 switching tale entries for LF X%Ks displays X#/ interfaces to lael -doule push operation- mappin

    which P(3 interface is mapped to which ;S55

    ping mpls lFvpn instance -pn%aremote-site-id F local-site-id

    chec. if neighor relationship is successful etween %suse of e)tended neighor discovery has wor.ed5

  • 7/26/2019 Comandos-v2 Juniper.xls

    22/32

    COMMAND

    Show commands

    show interface ))-)()() detail

    show interface :ueue ))-)()()

    show interfaces so-8(0(0 e)tensive

    show class%o%ser-ice 888

    show class-of-service interfaces so-8(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 e)p

    show class-of-service forwarding-class

    show class-of-service classier >name?

    show class-of-service scheduler-map

    show class-of-service rewrite-rule

    show class-of-service drop-prole

    show class-of-service forwarding-tale all5

    show class-of-service forwarding-tale classier mapping

    show class-of-service forwarding-tale scheduler-map

  • 7/26/2019 Comandos-v2 Juniper.xls

    23/32

    Description

    shows classication results at ingress P$ /$ 7/$ KC5

    6*W6 *W O#7//IC I6 CL766I/ID %rovides info aout /C :ueue5 and #D and priority counters for this

    show :ueue statistics for this interface

    determines how many :ueues an interface supports ! chec. the Co6 :ueues

    shows listing of cos its to simolic name mapings D6C%$ inet-prec$ e)p9

    shows mappings etween simolic names and dscp values unless congured$ default will apply5shows mappings etween simolic names and I% prec values

    shows mappings etween simolic names and Y% values

    shows mappings of forwarding class names to :ueue numers

    6how contents of a specic code point to forwarding class ! %L% classier

    shows mapping of forwarding classes to schedulers details

    6how mapping of forwarding class(loss priority to code point Displays rewrite tale

    6hows availale drop proles and interpolated data points of named drop prole

    displays Co6 parameters in eGect within the forwarding tale

    displays which classiers are mapped to what logical units

    displays the scheduler map in service for each interface

    shows what Co6 parameters are in eGect for a given interface Kumer of :ueuesie which scheduler map$ classier$ rewrite is applied

  • 7/26/2019 Comandos-v2 Juniper.xls

    24/32

    12ample

    erfaceshow interfaces :ueue forwarding-class est-eGort so-0(V @ match"%hysical@ Pytes"

  • 7/26/2019 Comandos-v2 Juniper.xls

    25/32

    COMMAND

    Show commands

    show interfaces lters

    show rewall

    show rewall lter 1lter-name;

    show rewall lter 1name; pre)-action 1psa-name; from 8

    show rewall log detail

    show log 1log-le-name;

    clear rewall 1name;

    show policer

    show interface policer fe-0(8(0

    show log (var(tmp(1sample le;

    show log sampled

  • 7/26/2019 Comandos-v2 Juniper.xls

    26/32

    Description

    displays all rewall lters on all interfaces

    displays counter and policer statistics for all rewall lters

    displays the contents of a particular rewall lter name

    displays the n policers ! counters of a %re)-6pecic Counter ! %olicer %

    displays the contents of the .ernel rewall log

    resets counters associated with a rewall

    displays a list of interface policers

    displays details aout interface policers

    displays a sample le created y the otuput of traNc sampling

    displays logged entries into syslogKeeds an action of syslog on the lter and also create a le with thatnameunder system syslogPasically is all aout redirect all logs into syslog system

    displays a copy of cowd aggregates that are sent to the cowd serverre:uires local-dump command on the cowd cong

  • 7/26/2019 Comandos-v2 Juniper.xls

    27/32

    12ample

    6C%5

    /ilter lo0-inCountersKame Pytes%ac.etsdenied-traNc E420R8%olicersKame %ac.etspolice-icmp-icmp 8EF

    rootHrE; show log lteringre:uires enaling this particular le

    syslog Z le ltering Z rewall info, [

  • 7/26/2019 Comandos-v2 Juniper.xls

    28/32

    COMMAND

    Show commands

    show snmp statistics e)tensive

    show snmp mi wal. 8ER8F8482 show snmp mi wal. ipfragfails

    show interface lo0 e)tensive @ display )ml

  • 7/26/2019 Comandos-v2 Juniper.xls

    29/32

    Description 12ample

    shows 6KM% statistics

    hidden5 shows snmwal. of an ID

    shows output of )ml tags What variales are consulted for the display

  • 7/26/2019 Comandos-v2 Juniper.xls

    30/32

    COMMAND

    Show commands

    show interface terse

    show route tale inetRshow ipvR neighor

    show interface lo0 e)tensive @ display

  • 7/26/2019 Comandos-v2 Juniper.xls

    31/32

    Description

    displays the I%vR address conguration

    displays the I%vR routing taleshows I%vR cache of neighors

    shows output of )ml tags What variales are consulted for the di

  • 7/26/2019 Comandos-v2 Juniper.xls

    32/32

    12ample

    neighors have to e discorever via ping ie5

    play