[j-nsp] junosscript call to get negotiated speed/duplex?
Phil Shafer
phil at juniper.net
Fri Jan 21 16:05:11 EST 2011
Sebastian Wiesinger writes:
>jcs:invoke( "get-interface-information extensive" );
The string argument to jcs:invoke() can only be a method name, with
no arguments. You can pass arguments in two ways: you can give
either a command line in the <command> element or give arguments
inside an RPC element.
var $rpc = <get-interface-information> {
<extensive>;
}
var $out = jcs:invoke($rpc);
Other args can be placed inside the RPC element, such as <interface-name>
or <media>. You can use the new "display xml rpc" pipe to show the
exact arguments supported by the RPC.
Thanks,
Phil
More information about the juniper-nsp
mailing list