Support Support Downloads Knowledge Base Case Manager My Juniper Community

Knowledge Base

Search our Knowledge Base sites to find answers to your questions.

Ask All Knowledge Base Sites All Knowledge Base Sites JunosE Defect (KA)Knowledge BaseSecurity AdvisoriesTechnical BulletinsTechnotes Sign in to display secure content and recently viewed articles

[EX] The equivalent command for show version CLI does not work on 12.3/12.3X

0

0

Article ID: KB35623 KB Last Updated: 06 May 2020Version: 1.0
Summary:

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.

Symptoms:

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</re-name>
            <software-information>
                <host-name>Building-102R-172.16.0.25</host-name>
                <product-model>ex2200-24p-4g</product-model>
                <product-name>ex2200-24p-4g</product-name>
                <package-information>
                    <name>junos</name>
                    <comment>JUNOS Base OS boot [12.3R12.4]</comment>
                </package-information>


Missing <get-network-information>.

Solution:

Workaround 

The equivalent command to show version in a EX2200 version 12.3 code including 12.3X is <get-software-information> as shown below:

root@Building-102R-172.16.0.25> show version |display xml rpc
<rpc-reply xmlns:junos="http://xml.juniper.net/junos/12.3R12/junos">
    <rpc>
        <get-software-information>
        </get-software-information>
    </rpc>
    <cli>
        <banner>{master:0}</banner>
    </cli>
</rpc-reply>


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.

Comment on this article > Affected Products Browse the Knowledge Base for more articles related to these product categories. Select a category to begin.

Getting Up and Running with Junos

Getting Up and Running with Junos Security Alerts and Vulnerabilities Product Alerts and Software Release Notices Problem Report (PR) Search Tool EOL Notices and Bulletins JTAC User Guide Customer Care User Guide Pathfinder SRX High Availability Configurator SRX VPN Configurator Training Courses and Videos End User Licence Agreement Global Search