[j-nsp] JunOScript question
Jeje
jeje at jeje.org
Thu Jun 12 20:48:04 EDT 2003
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.
More information about the juniper-nsp
mailing list