Bootstrap Mechanism

Bootstrap Mechanism

 <boot_nxos xmlns="http://cisco.com/ns/yang/cisco-nx-os-device">     
   <image>nxos.9.2.0.126.bin</image>   
</boot_nxos>

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


CLI Commands

The CLI commands are equivalent to the payload examples displayed in the pane on the right.

boot nxos bootflash:nxos.9.2.0.126.bin

ISSU

Install All

Install All
<!-- install all nxos --> 
<install_all_nxos xmlns="http://cisco.com/ns/yang/cisco-nx-os-device">
  <nxos>bootflash:nxos.9.2.0.126.bin.upg</nxos>
  <non-interruptive/>
</install_all_nxos>

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


CLI Commands

The CLI commands are equivalent to the payload examples displayed in the pane on the right.

install all bootflash:nxos.9.2.0.126.bin

Install Add Command

Install Add Command

<install_add xmlns="http://cisco.com/ns/yang/cisco-nx-os-device">    
 <add>mtx-openconfig-all-1.0.0.126-9.2.1.I9.1.lib32_n9000.rpm</add>   
</install_add> 

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


CLI Commands

The CLI commands are equivalent to the payload examples displayed in the pane on the right.

install add mtx-openconfig-all-1.0.0.126-9.2.1.I9.1.lib32_n9000

Install Activate

Install Activate

 <install_activate xmlns="http://cisco.com/ns/yang/cisco-nx-os-device">    
  <activate>mtx-openconfig-all-1.0.0.126-9.2.1.I9.1.lib32_n9000.rpm</activate>     
  <forced/>  
</install_activate>

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


CLI Commands

The CLI commands are equivalent to the payload examples displayed in the pane on the right.

install activate mtx-openconfig-all-1.0.0.126-9.2.1.I9.1.lib32_n9000

Install Deactivate

Install Deactivate
   <install_deactivate xmlns="http://cisco.com/ns/yang/cisco-nx-os-device">    
    <deactivate>mtx-openconfig-all-1.0.0.126-9.2.1.I9.1.lib32_n9000.rpm</deactivate> 
        <forced/>   
 </install_deactivate>

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


CLI Commands

The CLI commands are equivalent to the payload examples displayed in the pane on the right.

install deactivate mtx-openconfig-all-1.0.0.126-9.2.1.I9.1.lib32_n9000

Install Commit

Install Commit
<install_commit xmlns="http://cisco.com/ns/yang/cisco-nx-os-device">     
    <commit>*pkgname*</commit> 
</install_commit> 

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


CLI Commands

The CLI commands are equivalent to the payload examples displayed in the pane on the right.

install commit mtx-openconfig-all-1.0.0.0-9.2.1.I9.1.lib32_n9000

Install Remove

Install Remove
<install_remove xmlns="http://cisco.com/ns/yang/cisco-nx-os-device">     
<remove>mtx-openconfig-all-1.0.0.126-9.2.1.I9.1.lib32_n9000.rpm
</remove>    
 <forced/>   
</install_remove> 

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


CLI Commands

The CLI commands are equivalent to the payload examples displayed in the pane on the right.

install remove mtx-openconfig-all-1.0.0.126-9.2.1.I9.1.lib32_n9000

Check Filename (in Bootflash)

Check Filename (in Bootflash)

<dir xmlns="http://cisco.com/ns/yang/cisco-nx-os-device"> 
  <filemask>bootflash:sample_copy_file.txt</filemask>
</dir> 

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


CLI Commands

The CLI commands are equivalent to the payload examples displayed in the pane on the right.

dir bootflash:<filename>

Check Filename (in Directory)

Check Filename (in Directory)
<dir xmlns="http://cisco.com/ns/yang/cisco-nx-os-device"> 
  <filemask>sample_copy_file.txt</filemask>
</dir> 

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


CLI Commands

The CLI commands are equivalent to the payload examples displayed in the pane on the right.

dir <filename>

Copy File to Bootflash:

Copy File to Bootflash:
<copy xmlns="http://cisco.com/ns/yang/cisco-nx-os-device">
    <source>tftp://<<tftp_ip>/ws/sample_copy_file.txt</source>
      <destination>bootflash:</destination>
        <vrf>management</vrf>
 </copy>

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


CLI Commands

The CLI commands are equivalent to the payload examples displayed in the pane on the right.

copy tftp://sample_copy_file.txt bootflash:

Reload

Reload 
<reload xmlns="http://cisco.com/ns/yang/cisco-nx-os-device"/> 

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


CLI Commands

The CLI commands are equivalent to the payload examples displayed in the pane on the right.

reload

Copy Running-Config Startup-Config

Copy Running-Config Startup-Config 
<copy_running_config_src xmlns="http://cisco.com/ns/yang/cisco-nx-os-device">      
     <startup-config/>   
</copy_running_config_src>

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


CLI Commands

The CLI commands are equivalent to the payload examples displayed in the pane on the right.

copy running-config startup-config

Delete File on the Disk

Delete File on the Disk 

<delete xmlns="http://cisco.com/ns/yang/cisco-nx-os-device">
     <target>sample_copy_file.txt</target> 
</delete>

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


CLI Commands

The CLI commands are equivalent to the payload examples displayed in the pane on the right.

delete sample_copy_file.txt

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).