Querying Data

Getting the Available Disk Space

Getting the Available Disk Space
<dir xmlns="http://cisco.com/ns/yang/cisco-nx-os-device"/>

Note: This example was added in Release 9.2(1).

Getting Show Command Output Using the RPC Mechanism

Getting Show Command Output Using the RPC Mechanism
<cli xmlns="http://cisco.com/ns/yang/cisco-nx-os-device">      
  <mode>EXEC</mode>     
    <cmdline> show version</cmdline>  
 </cli> 

Note: This example was added in Release 9.2(1).

Getting Configuration Command Output Using the RPC Mechanism

Getting Configuration Command Output Using the RPC Mechanism
 <cli xmlns="http://cisco.com/ns/yang/cisco-nx-os-device">     
  <mode>CONFIG</mode>    
    <cmdline>no router bgp 100</cmdline> 
 </cli>
 

Note: This example was added in Release 9.2(1).