cancel
Showing results for 
Search instead for 
Did you mean: 

how to get Netconf RPC request equivalent to "Show version" output

how to get Netconf RPC request equivalent to "Show version" output

UmeshPal
New Contributor

Extreme SLX9540 Switch/Router

I am not able to get below response over netconf. Not able to find the xpath or rpc request which can get me below information over netconf.

SLX_LAB_CB04# show version

SLX-OS Operating System Version: 20.4.2
Copyright (c) 1995-2023 Extreme Networks, Inc.
Firmware name: 20.4.2b
Build Time: 04:30:49 Dec 27, 2022
Install Time: 13:01:42 Jan 26, 2023
Kernel: 4.14.67
Control Processor: Intel(R) Xeon(R) CPU D-1527 @ 2.20GHz, 4 cores
Microcode Version: 0x7000017
Memory Size: System Total: 31643 MB
System Uptime: 4days 23hrs 8mins 22secs

Name Primary/Secondary Versions
------------------------------------------
SLX-OS 20.4.2b
20.4.2b

2 REPLIES 2

UmeshPal
New Contributor

Thanks a lot ! This command works well with SLX9540 node 20.4.2 version.  though the mentioned RPC is no in SLX-OS NETCONF Operations Guide, 20.4.2. 

Can i also get to know the RPC for fetching type of Device ? ie.  ExtremeRouting SLX 9740 or  SLX 9640 or ExtremeSwitching SLX 9540. 

 

Michael_Morey
Extreme Employee

UmeshPal,

Thanks for your question, can you try the following:

<nc:rpc xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0" nc:message-id="9">
<show-firmware-version xmlns="urn:brocade.com:mgmt:brocade-firmware-ext"></show-firmware-version>
</nc:rpc>
]]>]]>

I get the following reply in my SLX:

<?xml version="1.0" encoding="UTF-8"?>
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" nc:message-id="9" xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0"><show-firmware-version xmlns='urn:brocade.com:mgmt:brocade-firmware-ext'>
  <os-name>SLX-OS Operating System Software</os-name>
  <os-version>20.5.1</os-version>
  <copy-right-info>Copyright (c) 1995-2023 Extreme Networks, Inc.
</copy-right-info>
  <build-time>Wed Apr 26 15:44:41 2023
</build-time>
  <install-time>Thu Aug  3 15:06:09 2023
</install-time>
  <kernel-version>4.14.67</kernel-version>
  <firmware-full-version>20.5.1</firmware-full-version>
  <system-uptime>69days 22hrs 10mins 39secs
</system-uptime>
  <control-processor-vendor> GenuineIntel</control-processor-vendor>
  <control-processor-chipset> Intel(R) Atom(TM) CPU C3758 @ 2.20GHz</control-processor-chipset>
  <control-processor-cpucores> 8 cores</control-processor-cpucores>
  <control-processor-microcode> 0x2e</control-processor-microcode>
  <control-processor-memory>15631 MB</control-processor-memory>
  <node-info>
    <slot-no>0</slot-no>
    <node-instance-no>1</node-instance-no>
    <node-type>type-mm</node-type>
    <firmware-version-info>
      <application-name>SLX-OS</application-name>
      <primary-version>20.5.1</primary-version>
      <secondary-version>20.5.1</secondary-version>
    </firmware-version-info>
  </node-info>
</show-firmware-version>
</rpc-reply>]]>]]>
Michael Morey
Principal Technical Support Engineer
Extreme Networks
GTM-P2G8KFN