Junos OS

last person joined: 6 days ago 

Ask questions and share experiences about Junos OS.
  • 1.  Displaying output that matches several conditions

    Posted 07-27-2010 04:58

    Hi guys,

     

    is it possible in Junos to display an output using several conditions in one time:

     

    ks@r1> show interfaces xe-1/1/0 | match phys  

    Physical interface: xe-1/1/0, Enabled, Physical link is Up

    {master}
    ks@r1> show interfaces xe-1/1/0 | match flow    
      Flow control: Enabled

     

     

    in IOS:

     

    r2#sh int Fa0/0 | i Full|MTU|queue
      MTU 1500 bytes, BW 100000 Kbit, DLY 100 usec,
      Full-duplex, 100Mb/s, 100BaseTX/FX
      Input queue: 0/75/6/26 (size/max/drops/flushes); Total output drops: 0
      Output queue: 0/40 (size/max)

     

    Thanks.

     

     



  • 2.  RE: Displaying output that matches several conditions
    Best Answer

    Posted 07-27-2010 05:47

    Hello,

     

    Sure you can - you just need to put the matching string (acutally a regular expression) in between quotes.

     

     

    davidj@vegas-re0> show interfaces | match "^phys|flow"   
    Physical interface: ge-1/0/0, Enabled, Physical link is Down
      Link-level type: Ethernet, MTU: 1514, Speed: 1000mbps, MAC-REWRITE Error: None, Loopback: Disabled, Source filtering: Disabled, Flow control: Enabled, Auto-negotiation: Enabled, Remote fault: Online

     

     

    HTH,

    /david



  • 3.  RE: Displaying output that matches several conditions

    Posted 07-27-2010 05:55

    Thank you.