The <get-network-information> equivalent command for show version CLI does not return a <junos-version> element in the response XML for EX2200 in version 12.3/12.3X.
<get-network-information>
When issuing the <get-network-information> RPC (remote procedure call) on Junos OS 12.3R12-S11 (12.3 code including 12.3X) there is no <junos-version> element in the response XML. However, other this works fine in other Junos OS versions such as 14.1X53, 15.1X49, 15.1X53, 18.1R3.3, and 19.4R1.10.
root@switch> show version |display xml root@switch> show version |display xml <rpc-reply xmlns:junos="http://xml.juniper.net/junos/12.3R12/junos"> <multi-routing-engine-results> <multi-routing-engine-item> <re-name>fpc0 <software-information> <host-name>Building-102R-172.16.0.25 <product-model>ex2200-24p-4g <product-name>ex2200-24p-4g <package-information> <name>junos <comment>JUNOS Base OS boot [12.3R12.4]
Missing <get-network-information> .
The equivalent command to show version in a EX2200 version 12.3 code including 12.3X is <get-software-information> as shown below:
<get-software-information>
[email protected]> show version |display xml rpc <rpc-reply xmlns:junos="http://xml.juniper.net/junos/12.3R12/junos"> <rpc> <get-software-information> <cli> <banner>{master:0}
The RPC is to see the request. The reply does not include it:
show version | display xml
Upgrade to a version greater than 12.3/12.3X to use <get-network-information> as equivalent for show version.