Junos OS

last person joined: 5 days ago 

Ask questions and share experiences about Junos OS.
  • 1.  Efficient op script to pull all routing instance names

    Posted 12-01-2010 17:00

    Hello, I'd like to write an efficient op scipt that returns all the names of the configured routing-instances in an MX480 without recursing through the entire <routing-instances> tree and all its nodes. Can this be done in a similar way as normal JUNOS scripting where you apply the recurse option ie

     

    <configuration>

       <routing-instances recurse='false'/>

    </configuration>

     

    How is this done via an op script (SLAX)?

     

    Thanks,

     

    Richard

     

     



  • 2.  RE: Efficient op script to pull all routing instance names
    Best Answer

    Posted 12-02-2010 12:32

      I could get you a code snippet, but doesn't a command like "show route instance" get you what you need?



  • 3.  RE: Efficient op script to pull all routing instance names

    Posted 12-02-2010 14:00