Thank you for the answer, it's completely explain and solve the problem! Do you know any way for view dynamic configuration (from script or cli) by user without change configuration privileges? Seems I miss something, looking for "show configuration dynamic" or "show dynamic-configuration" command and did not found it.
On Wed, Oct 21, 2009 at 01:48:59PM -0400, Phil Shafer writes: >> I have a problem with output xml from op script. >> If I output configuration from op script as xml, I see it if use >> "| display xml" but see nothing if no pipe. >> Where am I wrong? PS> The JUNOS UI consists of two parts, the CLI and MGD. In general, PS> the CLI handles rendering XML content into text, but rendering PS> configuration is an exception. PS> For configuration, MGD writes the config in text form for the CLI PS> unless the "display xml" pipe is given. Formatting is done as the PS> data is pulled from the database (where is it not stored in XML). PS> So the CLI has no clue how to render config XML into text. PS> You should be able to use the 'format="text"' attribute on PS> the <get-configuration> RPC to get the real text data, if PS> that's what you want. PS> Or you can put lib-util.slax on your box, import it, and PS> then use the "jcs:dump" template to dump XML content PS> (in slax-ish syntax) if that's what you want: PS> http://junoscriptorium.googlecode.com/svn/trunk/library/juniper/import/lib/lib-util/lib-util.slax PS> call jcs:dump($name = "title", $out = $my-xml); -- Pavel _______________________________________________ juniper-nsp mailing list juniper-nsp@puck.nether.net https://puck.nether.net/mailman/listinfo/juniper-nsp