Junos OS

Expand all | Collapse all

How to show specific interface config?

Jump to Best Answer
  • 1.  How to show specific interface config?

    Posted 03-12-2018 12:46

    I have many irb interfaces configured.  I am trying to show the unit numbers of each interface that has "Data" in the description.

     

    For example, I have a number of  irbs configured as follows, where Data is used in the description.  I also have many irbs that have other descriptions:

    unit 10
      descirption Data_10
     family inet {
    address 1.1.10.1/24;
    }
    }

     

    If i try to use match Data such as "show interfaces irb | match Data"  all that is returned is the desciption line ie. "description Data_10, description Data_20, etc"  the unit and address is not shown.  I  have tried other combinations without success.

     

    Is it possible to display the complete config for each irb that has Data in the description?  Really what i want to see is the unit number that is associated with each interface that has Data in the description.



  • 2.  RE: How to show specific interface config?
    Best Answer

    Posted 03-12-2018 12:53

    Hello,

    Does this line work for You?

    show configuration interfaces irb | display set | match Data

    It will show unit numbers but nothing else (no IP, no filter if assigned etc).

    If You want a complete config for each unit that has "Data" in its description, then an Op script is the way to go.

    HTH

    Thx
    Alex