[j-nsp] junosscript call to get negotiated speed/duplex?
Sebastian Wiesinger
juniper-nsp at ml.karotte.org
Fri Jan 21 12:20:56 EST 2011
Hello,
I'm trying to find a junosscript RPC call to get the negotiated
speed/duplex on a link.
I tried
jcs:invoke( "get-interface-information extensive" );
which doesn't include the information. Oddly enough the CLI command
"show interface extensive | display xml" does:
<ethernet-autonegotiation>
<autonegotiation-status>complete</autonegotiation-status>
<link-partner-status>OK</link-partner-status>
<link-partner-duplexity>full-duplex</link-partner-duplexity>
<link-partner-speed>100 Mbps</link-partner-speed>
<flow-control>None</flow-control>
<local-info>
<local-flow-control>Symmetric</local-flow-control>
<local-remote-fault>Link OK</local-remote-fault>
</local-info>
</ethernet-autonegotiation>
Any help in getting this information with the script API would be appreciated.
Kind Regards,
Sebastian
--
New GPG Key: 0x93A0B9CE (F4F6 B1A3 866B 26E9 450A 9D82 58A2 D94A 93A0 B9CE)
Old GPG Key-ID: 0x76B79F20 (0x1B6034F476B79F20)
'Are you Death?' ... IT'S THE SCYTHE, ISN'T IT? PEOPLE ALWAYS NOTICE THE SCYTHE.
-- Terry Pratchett, The Fifth Elephant
More information about the juniper-nsp
mailing list