[j-nsp] JunOScript question

Harshit Kumar harshit at juniper.net
Thu Jun 12 21:05:09 EDT 2003


Try this ...

 <get-configuration> <configuration> <policy-options/> </configuration>
</get-configuration>

To get "show config interfaces" do this 

 <get-configuration> <configuration> <interfaces/> </configuration>
</get-configuration>

 ---
Harshit 

-----Original Message-----
From: Jeje [mailto:jeje at jeje.org] 
Sent: Thursday, June 12, 2003 10:48 AM
To: Neil Stirling; 'Jerome Fleury'; juniper-nsp at puck.nether.net
Subject: RE: [j-nsp] JunOScript question


I missed one point. How do I get a portion of the configuration in XML
"WITH PERL" ?


--On Thursday, June 12, 2003 06:06:39 PM +0100 Neil Stirling
<neil.stirling at nortelnetworks.com>
wrote:

> I would think something like this;
> 
> 
> neil at lab> show configuration policy-options | display xml <rpc-reply 
> xmlns:junos="http://xml.juniper.net/junos/5.4R3/junos">
>     <configuration>
>             <policy-options>
>                 <policy-statement>
>                     <name junos:key="key">accept-inet6</name>
>                     <from>
>                         <route-filter>
>                             <address
junos:key="key">9001::1/128</address>
>                             <exact junos:key="key"/>
>                         </route-filter>
>                     </from>
>                     <then>
>                         <accept/>
>                     </then>
>                 </policy-statement>
>             </policy-options>
>     </configuration>
> </rpc-reply>
> 
> neil at lab>
> 
> Neil.
> 
> -----Original Message-----
> From: Jerome Fleury [mailto:jeje at jeje.org]
> Sent: 12 June 2003 10:50
> To: juniper-nsp at puck.nether.net
> Subject: [j-nsp] JunOScript question
> 
> 
> Quite a simple question. How do I request the equivalent of 'show 
> configuration policy-options' in JUNOScript ?
> 
> I know how to get the full config, thanks to the examples, but I don't

> understand how to request only a part of the config.
> 
> Thanks!
> --
> Jerome Fleury
> _______________________________________________
> juniper-nsp mailing list juniper-nsp at puck.nether.net 
> http://puck.nether.net/mailman/listinfo/juniper-nsp



jeje.
_______________________________________________
juniper-nsp mailing list juniper-nsp at puck.nether.net
http://puck.nether.net/mailman/listinfo/juniper-nsp



More information about the juniper-nsp mailing list