Install Commands

show install all version-history [clear]

show install all version-history [clear]
import requests
import json
 
"""
Modify these please
"""
url='http://<IP_Address>/ins'
switchuser='<User_ID>'
switchpassword='<Password>'
 
myheaders={'content-type':'application/json'}
payload={
"ins_api":{
  "version": "1.0",
  "type": "cli_show",
  "chunk": "0",
  "sid": "1",
  "input": "show install all version-history",
  "output_format": "json"
}
 
response = requests.post(url,data=json.dumps(payload), headers=myheaders,auth=(switchuser,switchpassword)).json()
output = json.dumps(response, indent=4, sort_keys=True)
{                                             
  "TABLE_installVerHistory": {                
    "ROW_installVerHistory": [                
      {                                       
        "installVerHistoryStr": "Entry : 00\n\nReset Reason : Cold Boot\nReload Date : Thu Jun 28 20:48:15 2018\nFrom Version : 8.3(1)\nTo Version : 8.3(1)"                                                                                                                              
      },                                                                                                                                     
      {                                                                                                                                      
        "installVerHistoryStr": "Entry : 01\n\nReset Reason : Cold Boot\nReload Date : Thu Jun 28 19:24:30 2018\nFrom Version : 8.3(1)\nTo Version : 8.3(1)"                                                                                                                              
      },                                                                                                                                     
      {                                                                                                                                      
        "installVerHistoryStr": "Entry : 02\n\nReset Reason : Cold Boot\nReload Date : Thu Jun 28 18:46:20 2018\nFrom Version : 8.3(1)\nTo Version : 8.3(1)"                                                                                                                              
      },                                                                                                                                     
      {                                                                                                                                      
        "installVerHistoryStr": "Entry : 03\n\nReset Reason : Cold Boot\nReload Date : Thu Jun 28 17:13:10 2018\nFrom Version : 8.3(1)\nTo Version : 8.3(1)"                                                                                                                              
      },                                                                                                                                     
      {                                                                                                                                      
        "installVerHistoryStr": "Entry : 04\n\nReset Reason : Cold Boot\nReload Date : Thu Jun 28 07:44:10 2018\nFrom Version : 8.3(1)\nTo Version : 8.3(1)"                                                                                                                              
      },                                                                                                                                     
      {                                                                                                                                      
        "installVerHistoryStr": "Entry : 05\n\nReset Reason : Cold Boot\nReload Date : Thu Jun 28 07:32:47 2018\nFrom Version : 8.3(1)\nTo Version : 8.3(1)"                                                                                                                              
      },                                                                                                                                     
      {                                                                                                                                      
        "installVerHistoryStr": "Entry : 06\n\nReset Reason : Minor ISSU\nInstall Date : Thu Jun 28 07:08:16 2018\nFrom Version : 8.3(1)\nTo Version : 8.3(1)"                                                                                                                            
      },                                                                                                                                     
      {                                                                                                                                      
        "installVerHistoryStr": "Entry : 07\n\nReset Reason : Minor ISSU\nInstall Date : Thu Jun 28 06:30:29 2018\nFrom Version : 8.3(1)\nTo Version : 8.3(1)"                                                                                                                            
      },                                                                                                                                     
      {                                                                                                                                      
        "installVerHistoryStr": "Entry : 08\n\nReset Reason : Cold Boot\nReload Date : Thu Jun 28 05:57:02 2018\nFrom Version : 8.3(1)\nTo Version : 8.3(1)"                                                                                                                              
      },                                                                                                                                     
      {                                                                                                                                      
        "installVerHistoryStr": "Entry : 09\n\nReset Reason : Cold Boot\nReload Date : Thu Jun 28 05:33:08 2018\nFrom Version : 8.3(1)\nTo Version : 8.3(1)"                                                                                                                              
      },                                                                                                                                     
      {                                                                                                                                      
        "installVerHistoryStr": "Entry : 10\n\nReset Reason : Minor ISSU\nInstall Date : Thu Jun 28 04:42:36 2018\nFrom Version : 8.3(1)\nTo Version : 8.3(1)"                                                                                                                            
      },                                                                                                                                     
      {                                                                                                                                      
        "installVerHistoryStr": "Entry : 11\n\nReset Reason : Minor ISSU\nInstall Date : Thu Jun 28 04:05:19 2018\nFrom Version : 8.3(1)\nTo Version : 8.3(1)"                                                                                                                            
      },                                                                                                                                     
      {                                                                                                                                      
        "installVerHistoryStr": "Entry : 12\n\nReset Reason : Minor ISSU\nInstall Date : Thu Jun 28 03:26:58 2018\nFrom Version : 8.3(1)\nTo Version : 8.3(1)"                                                                                                                            
      },                                                                                                                                     
      {                                                                                                                                      
        "installVerHistoryStr": "Entry : 13\n\nReset Reason : Minor ISSU\nInstall Date : Thu Jun 28 02:50:37 2018\nFrom Version : 8.3(1)\nTo Version : 8.3(1)"                                                                                                                            
      },                                                                                                                                     
      {                                                                                                                                      
        "installVerHistoryStr": "Entry : 14\n\nReset Reason : Cold Boot\nReload Date : Thu Jun 28 02:25:42 2018\nFrom Version : 8.3(1)\nTo Version : 8.3(1)"                                                                                                                              
      },                                                                                                                                     
      {                                                                                                                                      
        "installVerHistoryStr": "Entry : 15\n\nReset Reason : Cold Boot\nReload Date : Thu Jun 28 02:14:41 2018\nFrom Version : 8.3(1)\nTo Version : 8.3(1)"                                                                                                                              
      },                                                                                                                                     
      {                                                                                                                                      
        "installVerHistoryStr": "Entry : 16\n\nReset Reason : Minor ISSU\nInstall Date : Wed Jun 27 21:52:48 2018\nFrom Version : 8.3(1)\nTo Version : 8.3(1)"                                                                                                                            
      },                                                                                                                                     
      {                                                                                                                                      
        "installVerHistoryStr": "Entry : 17\n\nReset Reason : Minor ISSU\nInstall Date : Wed Jun 27 21:15:09 2018\nFrom Version : 8.3(1)\nTo Version : 8.3(1)"                                                                                                                            
      },                                                                                                                                     
      {                                                                                                                                      
        "installVerHistoryStr": "Entry : 18\n\nReset Reason : Minor ISSU\nInstall Date : Wed Jun 27 19:42:53 2018\nFrom Version : 8.3(1)\nTo Version : 8.3(1)"                                                                                                                            
      },                                                                                                                                     
      {                                                                                                                                      
        "installVerHistoryStr": "Entry : 19\n\nReset Reason : Minor ISSU\nInstall Date : Wed Jun 27 18:53:38 2018\nFrom Version : 8.3(1)\nTo Version : 8.3(1)"                                                                                                                            
      },                                                                                                                                     
      {                                                                                                                                      
        "installVerHistoryStr": "Entry : 20\n\nReset Reason : Cold Boot\nReload Date : Wed Jun 27 18:04:12 2018\nFrom Version : 8.3(1)\nTo Version : 8.3(1)"                                                                                                                              
      },                                                                                                                                     
      {                                                                                                                                      
        "installVerHistoryStr": "Entry : 21\n\nReset Reason : Cold Boot\nReload Date : Thu Jun 21 20:01:26 2018\nFrom Version : 8.3(1)\nTo Version : 8.3(1)"                                                                                                                              
      },                                                                                                                                     
      {                                                                                                                                      
        "installVerHistoryStr": "Entry : 22\n\nReset Reason : Cold Boot\nReload Date : Fri Jun 22 01:27:00 2018\nFrom Version : 8.3(1)\nTo Version : 8.3(1)"                                                                                                                              
      },                                                                                                                                     
      {                                                                                                                                      
        "installVerHistoryStr": "Entry : 23\n\nReset Reason : Cold Boot\nReload Date : Thu Jun 21 17:25:21 2018\nFrom Version : 8.3(1)\nTo Version : 8.3(1)"                                                                                                                              
      },                                                                                                                                     
      {
        "installVerHistoryStr": "Entry : 24\n\nReset Reason : Cold Boot\nReload Date : Thu Jun 21 16:59:34 2018\nFrom Version : 8.3(1)\nTo Version : 8.3(1)"
      },
      {
        "installVerHistoryStr": "Entry : 25\n\nReset Reason : Cold Boot\nReload Date : Thu Jun 21 16:11:57 2018\nFrom Version : 8.3(1)\nTo Version : 8.3(1)"
      },
      {
        "installVerHistoryStr": "Entry : 26\n\nReset Reason : Cold Boot\nReload Date : Thu Jun 21 15:28:49 2018\nFrom Version : 8.3(1)\nTo Version : 8.3(1)"
      },
      {
        "installVerHistoryStr": "Entry : 27\n\nReset Reason : Minor ISSU\nInstall Date : Mon Jun 18 23:41:58 2018\nFrom Version : 8.3(1)\nTo Version : 8.3(1)"
      },
      {
        "installVerHistoryStr": "Entry : 28\n\nReset Reason : Minor ISSU\nInstall Date : Mon Jun 18 23:04:11 2018\nFrom Version : 8.3(1)\nTo Version : 8.3(1)"
      },
      {
        "installVerHistoryStr": "Entry : 29\n\nReset Reason : Minor ISSU\nInstall Date : Mon Jun 18 22:25:33 2018\nFrom Version : 8.3(1)\nTo Version : 8.3(1)"
      }
    ]
  }
}                                                 
switch# show install all version-history | xml
<?xml version="1.0" encoding="ISO-8859-1"?>  
<nf:rpc-reply xmlns="http://www.cisco.com/nxos:8.3.1.:install" xmlns:nf="urn:ietf:params:xml:ns:netconf:base:1.0">
 <nf:data>                                                                                                        
  <show>                                                                                                          
   <install>                                                                                                      
    <all>                                                                                                         
     <version-history>                                                                                            
      <__readonly__>                                                                                              
       <TABLE_installVerHistory>                                                                                  
        <ROW_installVerHistory>                                                                                   
         <installVerHistoryStr>Entry : 00                                                                         

Reset Reason : Cold Boot
Reload Date : Thu Jun 28 20:48:15 2018
From Version : 8.3(1)                 
To Version : 8.3(1)                   

</installVerHistoryStr>
        </ROW_installVerHistory>
        <ROW_installVerHistory> 
         <installVerHistoryStr>Entry : 01

Reset Reason : Cold Boot
Reload Date : Thu Jun 28 19:24:30 2018
From Version : 8.3(1)                 
To Version : 8.3(1)                   

</installVerHistoryStr>
        </ROW_installVerHistory>
        <ROW_installVerHistory> 
         <installVerHistoryStr>Entry : 02

Reset Reason : Cold Boot
Reload Date : Thu Jun 28 18:46:20 2018
From Version : 8.3(1)                 
To Version : 8.3(1)                   

</installVerHistoryStr>
        </ROW_installVerHistory>
        <ROW_installVerHistory> 
         <installVerHistoryStr>Entry : 03

Reset Reason : Cold Boot
Reload Date : Thu Jun 28 17:13:10 2018
From Version : 8.3(1)                 
To Version : 8.3(1)                   

</installVerHistoryStr>
        </ROW_installVerHistory>
        <ROW_installVerHistory> 
         <installVerHistoryStr>Entry : 04

Reset Reason : Cold Boot
Reload Date : Thu Jun 28 07:44:10 2018
From Version : 8.3(1)                 
To Version : 8.3(1)                   

</installVerHistoryStr>
        </ROW_installVerHistory>
        <ROW_installVerHistory> 
         <installVerHistoryStr>Entry : 05

Reset Reason : Cold Boot
Reload Date : Thu Jun 28 07:32:47 2018
From Version : 8.3(1)                 
To Version : 8.3(1)                   

</installVerHistoryStr>
        </ROW_installVerHistory>
        <ROW_installVerHistory> 
         <installVerHistoryStr>Entry : 06

Reset Reason : Minor ISSU
Install Date : Thu Jun 28 07:08:16 2018
From Version : 8.3(1)                  
To Version : 8.3(1)                    

</installVerHistoryStr>
        </ROW_installVerHistory>
        <ROW_installVerHistory> 
         <installVerHistoryStr>Entry : 07

Reset Reason : Minor ISSU
Install Date : Thu Jun 28 06:30:29 2018
From Version : 8.3(1)                  
To Version : 8.3(1)                    

</installVerHistoryStr>
        </ROW_installVerHistory>
        <ROW_installVerHistory> 
         <installVerHistoryStr>Entry : 08

Reset Reason : Cold Boot
Reload Date : Thu Jun 28 05:57:02 2018
From Version : 8.3(1)                 
To Version : 8.3(1)                   

</installVerHistoryStr>
        </ROW_installVerHistory>
        <ROW_installVerHistory> 
         <installVerHistoryStr>Entry : 09

Reset Reason : Cold Boot
Reload Date : Thu Jun 28 05:33:08 2018
From Version : 8.3(1)                 
To Version : 8.3(1)                   

</installVerHistoryStr>
        </ROW_installVerHistory>
        <ROW_installVerHistory> 
         <installVerHistoryStr>Entry : 10

Reset Reason : Minor ISSU
Install Date : Thu Jun 28 04:42:36 2018
From Version : 8.3(1)                  
To Version : 8.3(1)                    

</installVerHistoryStr>
        </ROW_installVerHistory>
        <ROW_installVerHistory> 
         <installVerHistoryStr>Entry : 11

Reset Reason : Minor ISSU
Install Date : Thu Jun 28 04:05:19 2018
From Version : 8.3(1)                  
To Version : 8.3(1)                    

</installVerHistoryStr>
        </ROW_installVerHistory>
        <ROW_installVerHistory> 
         <installVerHistoryStr>Entry : 12

Reset Reason : Minor ISSU
Install Date : Thu Jun 28 03:26:58 2018
From Version : 8.3(1)                  
To Version : 8.3(1)                    

</installVerHistoryStr>
        </ROW_installVerHistory>
        <ROW_installVerHistory> 
         <installVerHistoryStr>Entry : 13

Reset Reason : Minor ISSU
Install Date : Thu Jun 28 02:50:37 2018
From Version : 8.3(1)                  
To Version : 8.3(1)                    

</installVerHistoryStr>
        </ROW_installVerHistory>
        <ROW_installVerHistory> 
         <installVerHistoryStr>Entry : 14

Reset Reason : Cold Boot
Reload Date : Thu Jun 28 02:25:42 2018
From Version : 8.3(1)                 
To Version : 8.3(1)                   

</installVerHistoryStr>
        </ROW_installVerHistory>
        <ROW_installVerHistory> 
         <installVerHistoryStr>Entry : 15

Reset Reason : Cold Boot
Reload Date : Thu Jun 28 02:14:41 2018
From Version : 8.3(1)                 
To Version : 8.3(1)                   

</installVerHistoryStr>
        </ROW_installVerHistory>
        <ROW_installVerHistory> 
         <installVerHistoryStr>Entry : 16

Reset Reason : Minor ISSU
Install Date : Wed Jun 27 21:52:48 2018
From Version : 8.3(1)                  
To Version : 8.3(1)                    

</installVerHistoryStr>
        </ROW_installVerHistory>
        <ROW_installVerHistory> 
         <installVerHistoryStr>Entry : 17

Reset Reason : Minor ISSU
Install Date : Wed Jun 27 21:15:09 2018
From Version : 8.3(1)                  
To Version : 8.3(1)                    

</installVerHistoryStr>
        </ROW_installVerHistory>
        <ROW_installVerHistory> 
         <installVerHistoryStr>Entry : 18

Reset Reason : Minor ISSU
Install Date : Wed Jun 27 19:42:53 2018
From Version : 8.3(1)                  
To Version : 8.3(1)                    

</installVerHistoryStr>
        </ROW_installVerHistory>
        <ROW_installVerHistory> 
         <installVerHistoryStr>Entry : 19

Reset Reason : Minor ISSU
Install Date : Wed Jun 27 18:53:38 2018
From Version : 8.3(1)                  
To Version : 8.3(1)                    

</installVerHistoryStr>
        </ROW_installVerHistory>
        <ROW_installVerHistory> 
         <installVerHistoryStr>Entry : 20

Reset Reason : Cold Boot
Reload Date : Wed Jun 27 18:04:12 2018
From Version : 8.3(1)                 
To Version : 8.3(1)                   

</installVerHistoryStr>
        </ROW_installVerHistory>
        <ROW_installVerHistory> 
         <installVerHistoryStr>Entry : 21

Reset Reason : Cold Boot
Reload Date : Thu Jun 21 20:01:26 2018
From Version : 8.3(1)                 
To Version : 8.3(1)                   

</installVerHistoryStr>
        </ROW_installVerHistory>
        <ROW_installVerHistory> 
         <installVerHistoryStr>Entry : 22

Reset Reason : Cold Boot
Reload Date : Fri Jun 22 01:27:00 2018
From Version : 8.3(1)                 
To Version : 8.3(1)                   

</installVerHistoryStr>
        </ROW_installVerHistory>
        <ROW_installVerHistory> 
         <installVerHistoryStr>Entry : 23

Reset Reason : Cold Boot
Reload Date : Thu Jun 21 17:25:21 2018
From Version : 8.3(1)                 
To Version : 8.3(1)                   

</installVerHistoryStr>
        </ROW_installVerHistory>
        <ROW_installVerHistory> 
         <installVerHistoryStr>Entry : 24

Reset Reason : Cold Boot
Reload Date : Thu Jun 21 16:59:34 2018
From Version : 8.3(1)                 
To Version : 8.3(1)                   

</installVerHistoryStr>
        </ROW_installVerHistory>
        <ROW_installVerHistory> 
         <installVerHistoryStr>Entry : 25

Reset Reason : Cold Boot
Reload Date : Thu Jun 21 16:11:57 2018
From Version : 8.3(1)                 
To Version : 8.3(1)                   

</installVerHistoryStr>
        </ROW_installVerHistory>
        <ROW_installVerHistory> 
         <installVerHistoryStr>Entry : 26

Reset Reason : Cold Boot
Reload Date : Thu Jun 21 15:28:49 2018
From Version : 8.3(1)                 
To Version : 8.3(1)                   

</installVerHistoryStr>
        </ROW_installVerHistory>
        <ROW_installVerHistory> 
         <installVerHistoryStr>Entry : 27

Reset Reason : Minor ISSU
Install Date : Mon Jun 18 23:41:58 2018
From Version : 8.3(1)                  
To Version : 8.3(1)                    

</installVerHistoryStr>
        </ROW_installVerHistory>
        <ROW_installVerHistory>
         <installVerHistoryStr>Entry : 28

Reset Reason : Minor ISSU
Install Date : Mon Jun 18 23:04:11 2018
From Version : 8.3(1)
To Version : 8.3(1)

</installVerHistoryStr>
        </ROW_installVerHistory>
        <ROW_installVerHistory>
         <installVerHistoryStr>Entry : 29

Reset Reason : Minor ISSU
Install Date : Mon Jun 18 22:25:33 2018
From Version : 8.3(1)
To Version : 8.3(1)

</installVerHistoryStr>
        </ROW_installVerHistory>
       </TABLE_installVerHistory>
      </__readonly__>
     </version-history>
    </all>
   </install>
  </show>
 </nf:data>
</nf:rpc-reply>                                                                                                                                                                                                                           

For command descriptions, see the Cisco Nexus 7000 Series Switches Command References.

  Note: This sample output is generated for Cisco Nexus 7000 Series NX-OS Release 8.3(1).

CLI Output

switch# **show install all version-history**

switch# show install all version-history
Entry : 00                              

Reset Reason : Cold Boot Reload Date : Thu Jun 28 20:48:15 2018 From Version : 8.3(1)
To Version : 8.3(1)

Entry : 01

Reset Reason : Cold Boot Reload Date : Thu Jun 28 19:24:30 2018 From Version : 8.3(1)
To Version : 8.3(1)

Entry : 02

Reset Reason : Cold Boot Reload Date : Thu Jun 28 18:46:20 2018 From Version : 8.3(1)
To Version : 8.3(1)

Entry : 03

Reset Reason : Cold Boot Reload Date : Thu Jun 28 17:13:10 2018 From Version : 8.3(1)
To Version : 8.3(1)

Entry : 04

Reset Reason : Cold Boot Reload Date : Thu Jun 28 07:44:10 2018 From Version : 8.3(1)
To Version : 8.3(1)

Entry : 05

Reset Reason : Cold Boot Reload Date : Thu Jun 28 07:32:47 2018 From Version : 8.3(1)
To Version : 8.3(1)

Entry : 06

Reset Reason : Minor ISSU Install Date : Thu Jun 28 07:08:16 2018 From Version : 8.3(1)
To Version : 8.3(1)

Entry : 07

Reset Reason : Minor ISSU Install Date : Thu Jun 28 06:30:29 2018 From Version : 8.3(1)
To Version : 8.3(1)

Entry : 08

Reset Reason : Cold Boot Reload Date : Thu Jun 28 05:57:02 2018 From Version : 8.3(1)
To Version : 8.3(1)

Entry : 09

Reset Reason : Cold Boot Reload Date : Thu Jun 28 05:33:08 2018 From Version : 8.3(1)
To Version : 8.3(1)

Entry : 10

Reset Reason : Minor ISSU Install Date : Thu Jun 28 04:42:36 2018 From Version : 8.3(1)
To Version : 8.3(1)

Entry : 11

Reset Reason : Minor ISSU Install Date : Thu Jun 28 04:05:19 2018 From Version : 8.3(1)
To Version : 8.3(1)

Entry : 12

Reset Reason : Minor ISSU Install Date : Thu Jun 28 03:26:58 2018 From Version : 8.3(1)
To Version : 8.3(1)

Entry : 13

Reset Reason : Minor ISSU Install Date : Thu Jun 28 02:50:37 2018 From Version : 8.3(1)
To Version : 8.3(1)

Entry : 14

Reset Reason : Cold Boot Reload Date : Thu Jun 28 02:25:42 2018 From Version : 8.3(1)
To Version : 8.3(1)

Entry : 15

Reset Reason : Cold Boot Reload Date : Thu Jun 28 02:14:41 2018 From Version : 8.3(1)
To Version : 8.3(1)

Entry : 16

Reset Reason : Minor ISSU Install Date : Wed Jun 27 21:52:48 2018 From Version : 8.3(1)
To Version : 8.3(1)

Entry : 17

Reset Reason : Minor ISSU Install Date : Wed Jun 27 21:15:09 2018 From Version : 8.3(1)
To Version : 8.3(1)

Entry : 18

Reset Reason : Minor ISSU Install Date : Wed Jun 27 19:42:53 2018 From Version : 8.3(1)
To Version : 8.3(1)

Entry : 19

Reset Reason : Minor ISSU Install Date : Wed Jun 27 18:53:38 2018 From Version : 8.3(1)
To Version : 8.3(1)

Entry : 20

Reset Reason : Cold Boot Reload Date : Wed Jun 27 18:04:12 2018 From Version : 8.3(1)
To Version : 8.3(1)

Entry : 21

Reset Reason : Cold Boot Reload Date : Thu Jun 21 20:01:26 2018 From Version : 8.3(1)
To Version : 8.3(1)

Entry : 22

Reset Reason : Cold Boot Reload Date : Fri Jun 22 01:27:00 2018 From Version : 8.3(1)
To Version : 8.3(1)

Entry : 23

Reset Reason : Cold Boot Reload Date : Thu Jun 21 17:25:21 2018 From Version : 8.3(1)
To Version : 8.3(1)

Entry : 24

Reset Reason : Cold Boot Reload Date : Thu Jun 21 16:59:34 2018 From Version : 8.3(1)
To Version : 8.3(1)

Entry : 25

Reset Reason : Cold Boot Reload Date : Thu Jun 21 16:11:57 2018 From Version : 8.3(1)
To Version : 8.3(1)

Entry : 26

Reset Reason : Cold Boot Reload Date : Thu Jun 21 15:28:49 2018 From Version : 8.3(1) To Version : 8.3(1)

Entry : 27

Reset Reason : Minor ISSU Install Date : Mon Jun 18 23:41:58 2018 From Version : 8.3(1) To Version : 8.3(1)

Entry : 28

Reset Reason : Minor ISSU Install Date : Mon Jun 18 23:04:11 2018 From Version : 8.3(1) To Version : 8.3(1)

Entry : 29

Reset Reason : Minor ISSU Install Date : Mon Jun 18 22:25:33 2018 From Version : 8.3(1) To Version : 8.3(1)

show install active

show install active
import requests
import json
 
"""
Modify these please
"""
url='http://<IP_Address>/ins'
switchuser='<User_ID>'
switchpassword='<Password>'
 
myheaders={'content-type':'application/json'}
payload={
"ins_api":{
  "version": "1.0",
  "type": "cli_show",
  "chunk": "0",
  "sid": "1",
  "input": "show install active",
  "output_format": "json"
}
 
response = requests.post(url,data=json.dumps(payload), headers=myheaders,auth=(switchuser,switchpassword)).json()
output = json.dumps(response, indent=4, sort_keys=True)
{
  "curr_kickstart_image": "bootflash:///n7000-s2-kickstart.8.3.1.S46.gbin",
  "curr_system_image": "bootflash:///n7000-s2-dk9.8.3.1.S46.gbin",
  "TABLE_module_list": {
    "ROW_module_list": [
      {
        "install_modno": 3
      },
      {
        "install_modno": 4
      }
    ]
  }
}                                                  
switch# show install active | xml
<?xml version="1.0" encoding="ISO-8859-1"?>
<nf:rpc-reply xmlns="http://www.cisco.com/nxos:8.3.1.:install_patch" xmlns:nf="urn:ietf:params:xml:ns:netconf:base:1.0">
 <nf:data>                                                                                                              
  <show>                                                                                                                
   <install>                                                                                                            
    <active>                                                                                                            
     <__readonly__>                                                                                                     
      <curr_kickstart_image>bootflash:///n7000-s2-kickstart.8.3.1.S46.gbin</curr_kickstart_image>                       
      <curr_system_image>bootflash:///n7000-s2-dk9.8.3.1.S46.gbin</curr_system_image>                                   
      <TABLE_module_list>                                                                                               
       <ROW_module_list>                                                                                                
        <install_modno>3</install_modno>                                                                                
       </ROW_module_list>                                                                                               
       <ROW_module_list>                                                                                                
        <install_modno>4</install_modno>                                                                                
       </ROW_module_list>                                                                                               
      </TABLE_module_list>                                                                                              
     </__readonly__>                                                                                                    
    </active>                                                                                                           
   </install>                                                                                                           
  </show>                                                                                                               
 </nf:data>                                                                                                             
</nf:rpc-reply>                                                                                                         
]]>]]>                                                                                                                                                                                                                            

For command descriptions, see the Cisco Nexus 7000 Series Switches Command References.

  Note: This sample output is generated for Cisco Nexus 7000 Series NX-OS Release 8.3(1).

CLI Output

switch# **show install active**

switch# show install active
Boot Images:
        Kickstart Image: bootflash:///n7000-s2-kickstart.8.3.1.S46.gbin
        System Image: bootflash:///n7000-s2-dk9.8.3.1.S46.gbin

Active Packages:

Active Packages on Module #3:

Active Packages on Module #4:

show install active on-reload

show install active on-reload
import requests
import json
 
"""
Modify these please
"""
url='http://<IP_Address>/ins'
switchuser='<User_ID>'
switchpassword='<Password>'
 
myheaders={'content-type':'application/json'}
payload={
"ins_api":{
  "version": "1.0",
  "type": "cli_show",
  "chunk": "0",
  "sid": "1",
  "input": "show install active on-reload",
  "output_format": "json"
}
 
response = requests.post(url,data=json.dumps(payload), headers=myheaders,auth=(switchuser,switchpassword)).json()
output = json.dumps(response, indent=4, sort_keys=True)
{
  "curr_kickstart_image": "bootflash:///n7000-s2-kickstart.8.3.1.S46.gbin",
  "curr_system_image": "bootflash:///n7000-s2-dk9.8.3.1.S46.gbin"
}                                                 
switch# show install active on-reload | xml
<?xml version="1.0" encoding="ISO-8859-1"?>
<nf:rpc-reply xmlns="http://www.cisco.com/nxos:8.3.1.:install_patch" xmlns:nf="urn:ietf:params:xml:ns:netconf:base:1.0">
 <nf:data>                                                                                                              
  <show>                                                                                                                
   <install>                                                                                                            
    <active>                                                                                                            
     <on-reload>                                                                                                        
      <__readonly__>                                                                                                    
       <curr_kickstart_image>bootflash:///n7000-s2-kickstart.8.3.1.S46.gbin</curr_kickstart_image>                      
       <curr_system_image>bootflash:///n7000-s2-dk9.8.3.1.S46.gbin</curr_system_image>                                  
      </__readonly__>                                                                                                   
     </on-reload>                                                                                                       
    </active>                                                                                                           
   </install>                                                                                                           
  </show>
 </nf:data>
</nf:rpc-reply>
]]>]]>                                                                                                                                                                                                                          

For command descriptions, see the Cisco Nexus 7000 Series Switches Command References.

  Note: This sample output is generated for Cisco Nexus 7000 Series NX-OS Release 8.3(1).

CLI Output

switch# **show install active on-reload**

switch# show install active on-reload
Boot Images:
        Kickstart Image: bootflash:///n7000-s2-kickstart.8.3.1.S46.gbin
        System Image: bootflash:///n7000-s2-dk9.8.3.1.S46.gbin

Active Packages:

show install committed

show install committed
import requests
import json
 
"""
Modify these please
"""
url='http://<IP_Address>/ins'
switchuser='<User_ID>'
switchpassword='<Password>'
 
myheaders={'content-type':'application/json'}
payload={
"ins_api":{
  "version": "1.0",
  "type": "cli_show",
  "chunk": "0",
  "sid": "1",
  "input": "show install committed",
  "output_format": "json"
}
 
response = requests.post(url,data=json.dumps(payload), headers=myheaders,auth=(switchuser,switchpassword)).json()
output = json.dumps(response, indent=4, sort_keys=True)
{
  "curr_kickstart_image": "bootflash:///n7000-s2-kickstart.8.3.1.S46.gbin",
  "curr_system_image": "bootflash:///n7000-s2-dk9.8.3.1.S46.gbin"
}                                                
switch# show install committed | xml
<?xml version="1.0" encoding="ISO-8859-1"?>
<nf:rpc-reply xmlns="http://www.cisco.com/nxos:8.3.1.:install_patch" xmlns:nf="urn:ietf:params:xml:ns:netconf:base:1.0">
 <nf:data>
  <show>
   <install>
    <committed>
     <__readonly__>
      <curr_kickstart_image>bootflash:///n7000-s2-kickstart.8.3.1.S46.gbin</curr_kickstart_image>
      <curr_system_image>bootflash:///n7000-s2-dk9.8.3.1.S46.gbin</curr_system_image>
     </__readonly__>
    </committed>
   </install>
  </show>
 </nf:data>
</nf:rpc-reply>
]]>]]>                                                                                                                                                                                                                          

For command descriptions, see the Cisco Nexus 7000 Series Switches Command References.

  Note: This sample output is generated for Cisco Nexus 7000 Series NX-OS Release 8.3(1).

CLI Output

switch# **show install committed**

switch# show install committed
Boot Images:
        Kickstart Image: bootflash:///n7000-s2-kickstart.8.3.1.S46.gbin
        System Image: bootflash:///n7000-s2-dk9.8.3.1.S46.gbin

Committed Packages:

show install inactive

show install inactive
import requests
import json
 
"""
Modify these please
"""
url='http://<IP_Address>/ins'
switchuser='<User_ID>'
switchpassword='<Password>'
 
myheaders={'content-type':'application/json'}
payload={
"ins_api":{
  "version": "1.0",
  "type": "cli_show",
  "chunk": "0",
  "sid": "1",
  "input": "show install inactive",
  "output_format": "json"
}
 
response = requests.post(url,data=json.dumps(payload), headers=myheaders,auth=(switchuser,switchpassword)).json()
output = json.dumps(response, indent=4, sort_keys=True)
{
  "curr_kickstart_image": "bootflash:///n7000-s2-kickstart.8.3.1.S46.gbin",
  "curr_system_image": "bootflash:///n7000-s2-dk9.8.3.1.S46.gbin"
}                                               
switch# show install inactive | xml
<?xml version="1.0" encoding="ISO-8859-1"?>
<nf:rpc-reply xmlns="http://www.cisco.com/nxos:8.3.1.:install_patch" xmlns:nf="urn:ietf:params:xml:ns:netconf:base:1.0">
 <nf:data>                                                                                                              
  <show>                                                                                                                
   <install>                                                                                                            
    <inactive>                                                                                                          
     <__readonly__>                                                                                                     
      <curr_kickstart_image>bootflash:///n7000-s2-kickstart.8.3.1.S46.gbin</curr_kickstart_image>                       
      <curr_system_image>bootflash:///n7000-s2-dk9.8.3.1.S46.gbin</curr_system_image>
     </__readonly__>
    </inactive>
   </install>
  </show>
 </nf:data>
</nf:rpc-reply>
]]>]]>                                                                                                                                                                                                                        

For command descriptions, see the Cisco Nexus 7000 Series Switches Command References.

  Note: This sample output is generated for Cisco Nexus 7000 Series NX-OS Release 8.3(1).

CLI Output

switch# **show install inactive**

switch# show install inactive
Boot Images:
        Kickstart Image: bootflash:///n7000-s2-kickstart.8.3.1.S46.gbin
        System Image: bootflash:///n7000-s2-dk9.8.3.1.S46.gbin

Inactive Packages:

show install inactive on-reload

show install inactive on-reload
import requests
import json
 
"""
Modify these please
"""
url='http://<IP_Address>/ins'
switchuser='<User_ID>'
switchpassword='<Password>'
 
myheaders={'content-type':'application/json'}
payload={
"ins_api":{
  "version": "1.0",
  "type": "cli_show",
  "chunk": "0",
  "sid": "1",
  "input": "show install inactive on-reload",
  "output_format": "json"
}
 
response = requests.post(url,data=json.dumps(payload), headers=myheaders,auth=(switchuser,switchpassword)).json()
output = json.dumps(response, indent=4, sort_keys=True)
{
  "curr_kickstart_image": "bootflash:///n7000-s2-kickstart.8.3.1.S46.gbin",
  "curr_system_image": "bootflash:///n7000-s2-dk9.8.3.1.S46.gbin"
}                                              
switch# show install inactive on-reload | xml
<?xml version="1.0" encoding="ISO-8859-1"?>
<nf:rpc-reply xmlns="http://www.cisco.com/nxos:8.3.1.:install_patch" xmlns:nf="urn:ietf:params:xml:ns:netconf:base:1.0">
 <nf:data>
  <show>
   <install>
    <inactive>
     <on-reload>
      <__readonly__>
       <curr_kickstart_image>bootflash:///n7000-s2-kickstart.8.3.1.S46.gbin</curr_kickstart_image>
       <curr_system_image>bootflash:///n7000-s2-dk9.8.3.1.S46.gbin</curr_system_image>
      </__readonly__>
     </on-reload>
    </inactive>
   </install>
  </show>
 </nf:data>
</nf:rpc-reply>
]]>]]>                                                                                                                                                                                                                     

For command descriptions, see the Cisco Nexus 7000 Series Switches Command References.

  Note: This sample output is generated for Cisco Nexus 7000 Series NX-OS Release 8.3(1).

CLI Output

switch# **show install inactive on-reload**

switch# show install inactive on-reload
Boot Images:
        Kickstart Image: bootflash:///n7000-s2-kickstart.8.3.1.S46.gbin
        System Image: bootflash:///n7000-s2-dk9.8.3.1.S46.gbin

Inactive Packages:

show install log

show install log <id>
import requests
import json
 
"""
Modify these please
"""
url='http://<IP_Address>/ins'
switchuser='<User_ID>'
switchpassword='<Password>'
 
myheaders={'content-type':'application/json'}
payload={
"ins_api":{
  "version": "1.0",
  "type": "cli_show",
  "chunk": "0",
  "sid": "1",
  "input": "show install log 287",
  "output_format": "json"
}
 
response = requests.post(url,data=json.dumps(payload), headers=myheaders,auth=(switchuser,switchpassword)).json()
output = json.dumps(response, indent=4, sort_keys=True)
{                                 
  "current_time": {               
    "curr_time": "Wed Jul 11 17:29:54 2018", 
    "TABLE_show_log_output": {               
      "ROW_show_log_output": {               
        "install_id": 287,                   
        "install_user": "admin",             
        "install_time": "Mon Jul  2 03:28:35 2018", 
        "install_activate_filename": "activate n7000-s2-dk9.CSC0000001.bin", 
        "install_activate_log_entry": "Install operation 287 completed successfully at Mon Jul  2 03:28:52 2018"
      }                                                                                                         
    }                                                                                                           
  }                                                                                                             
}                                                                                                                                                            
switch# show install log 287 | xml
<?xml version="1.0" encoding="ISO-8859-1"?>                             
<nf:rpc-reply xmlns="http://www.cisco.com/nxos:8.3.1.:install_patch" xmlns:nf="urn:ietf:params:xml:ns:netconf:base:1.0">
 <nf:data>                                                                                                              
  <show>                                                                                                                
   <install>                                                                                                            
    <log>                                                                                                               
     <__XML__PARAM__id>                                                                                                 
      <__XML__value>287</__XML__value>                                                                                  
      <__readonly__>                                                                                                    
       <current_time>                                                                                                   
        <curr_time>Wed Jul 11 17:28:47 2018</curr_time>                                                                 
        <TABLE_show_log_output>                                                                                         
         <ROW_show_log_output>                                                                                          
          <install_id>287</install_id>                                                                                  
          <install_user>admin</install_user>                                                                            
          <install_time>Mon Jul  2 03:28:35 2018</install_time>                                                         
          <install_activate_filename>activate n7000-s2-dk9.CSC0000001.bin</install_activate_filename>                   
          <install_activate_log_entry>Install operation 287 completed successfully at Mon Jul  2 03:28:52 2018</install_activate_log_entry>
         </ROW_show_log_output>                                                                                                            
        </TABLE_show_log_output>                                                                                                           
       </current_time>                                                                                                                     
      </__readonly__>                                                                                                                      
     </__XML__PARAM__id>                                                                                                                   
    </log>                                                                                                                                 
   </install>                                                                                                                              
  </show>                                                                                                                                  
 </nf:data>                                                                                                                                
</nf:rpc-reply>                                                                                                                                                                                                                                                                                                                                               

For command descriptions, see the Cisco Nexus 7000 Series Switches Command References.

  Note: This sample output is generated for Cisco Nexus 7000 Series NX-OS Release 8.3(1).

CLI Output

switch# **show install log 287**

switch# show install log 287
Wed Jul 11 17:27:46 2018                                                              
Install operation 287 by user 'admin' at Mon Jul  2 03:28:35 2018                     
Install activate n7000-s2-dk9.CSC0000001.bin                                          
Install operation 287 completed successfully at Mon Jul  2 03:28:52 2018      

show install log from

show install log from <id1>
import requests
import json
 
"""
Modify these please
"""
url='http://<IP_Address>/ins'
switchuser='<User_ID>'
switchpassword='<Password>'
 
myheaders={'content-type':'application/json'}
payload={
"ins_api":{
  "version": "1.0",
  "type": "cli_show",
  "chunk": "0",
  "sid": "1",
  "input": "show install log from 287",
  "output_format": "json"
}
 
response = requests.post(url,data=json.dumps(payload), headers=myheaders,auth=(switchuser,switchpassword)).json()
output = json.dumps(response, indent=4, sort_keys=True)
{                                      
  "current_time": {                    
    "curr_time": "Wed Jul 11 17:30:08 2018", 
    "TABLE_show_log_output": {               
      "ROW_show_log_output": [               
        {                                    
          "install_id": 287,                 
          "install_user": "admin",           
          "install_time": "Mon Jul  2 03:28:35 2018", 
          "install_activate_filename": "activate n7000-s2-dk9.CSC0000001.bin", 
          "install_activate_log_entry": "Install operation 287 completed successfully at Mon Jul  2 03:28:52 2018"
        },                                                                                                        
        {                                                                                                         
          "install_id": 288,                                                                                      
          "install_user": "admin",                                                                                
          "install_time": "Mon Jul  2 03:29:05 2018",                                                             
          "install_activate_filename": "activate n7000-s2-dk9.CSC0000001.bin",                                    
          "install_activate_log_entry": "Install operation 288 failed because patch is not inactive at Mon Jul  2 03:29:06 2018"
        },                                                                                                                      
        {                                                                                                                       
          "install_id": 289,                                                                                                    
          "install_user": "admin",                                                                                              
          "install_time": "Mon Jul  2 03:31:36 2018",                                                                           
          "install_deactivate_filename": "deactivate n7000-s2-dk9.CSC0000001.bin",                                              
          "install_deactivate_log_entry": "Install operation 289 completed successfully at Mon Jul  2 03:31:52 2018"            
        },                                                                                                                      
        {                                                                                                                       
          "install_id": 290,                                                                                                    
          "install_user": "admin",                                                                                              
          "install_time": "Mon Jul  2 03:32:01 2018",                                                                           
          "install_remove_filename": "remove all inactive patches",                                                             
          "install_remove_log_entry": "Install operation 290 completed successfully at Mon Jul  2 03:32:02 2018"                
        }                                                                                                                       
      ]                                                                                                                         
    }                                                                                                                           
  }                                                                                                                             
}                                                                                                                                                                   
switch# show install log from 287 | xml
<?xml version="1.0" encoding="ISO-8859-1"?>                                                                                                
<nf:rpc-reply xmlns="http://www.cisco.com/nxos:8.3.1.:install_patch" xmlns:nf="urn:ietf:params:xml:ns:netconf:base:1.0">                   
 <nf:data>                                                                                                                                 
  <show>                                                                                                                                   
   <install>                                                                                                                               
    <log>                                                                                                                                  
     <from>                                                                                                                                
      <__XML__PARAM__id1>                                                                                                                  
       <__XML__value>287</__XML__value>                                                                                                    
       <__readonly__>                                                                                                                      
        <current_time>                                                                                                                     
         <curr_time>Wed Jul 11 17:28:56 2018</curr_time>                                                                                   
         <TABLE_show_log_output>                                                                                                           
          <ROW_show_log_output>                                                                                                            
           <install_id>287</install_id>                                                                                                    
           <install_user>admin</install_user>                                                                                              
           <install_time>Mon Jul  2 03:28:35 2018</install_time>                                                                           
           <install_activate_filename>activate n7000-s2-dk9.CSC0000001.bin</install_activate_filename>                                     
           <install_activate_log_entry>Install operation 287 completed successfully at Mon Jul  2 03:28:52 2018</install_activate_log_entry>
          </ROW_show_log_output>                                                                                                            
          <ROW_show_log_output>                                                                                                             
           <install_id>288</install_id>                                                                                                     
           <install_user>admin</install_user>                                                                                               
           <install_time>Mon Jul  2 03:29:05 2018</install_time>                                                                            
           <install_activate_filename>activate n7000-s2-dk9.CSC0000001.bin</install_activate_filename>                                      
           <install_activate_log_entry>Install operation 288 failed because patch is not inactive at Mon Jul  2 03:29:06 2018</install_activate_log_entry>                                                                                                                                
          </ROW_show_log_output>                                                                                                             
          <ROW_show_log_output>                                                                                                              
           <install_id>289</install_id>                                                                                                      
           <install_user>admin</install_user>                                                                                                
           <install_time>Mon Jul  2 03:31:36 2018</install_time>                                                                             
           <install_deactivate_filename>deactivate n7000-s2-dk9.CSC0000001.bin</install_deactivate_filename>                                 
           <install_deactivate_log_entry>Install operation 289 completed successfully at Mon Jul  2 03:31:52 2018</install_deactivate_log_entry>                                                                                                                                          
          </ROW_show_log_output>                                                                                                             
          <ROW_show_log_output>                                                                                                              
           <install_id>290</install_id>                                                                                                      
           <install_user>admin</install_user>                                                                                                
           <install_time>Mon Jul  2 03:32:01 2018</install_time>                                                                             
           <install_remove_filename>remove all inactive patches </install_remove_filename>                                                   
           <install_remove_log_entry>Install operation 290 completed successfully at Mon Jul  2 03:32:02 2018</install_remove_log_entry>     
          </ROW_show_log_output>                                                                                                             
         </TABLE_show_log_output>                                                                                                            
        </current_time>                                                                                                                      
       </__readonly__>                                                                                                                       
      </__XML__PARAM__id1>                                                                                                                   
     </from>                                                                                                                                 
    </log>                                                                                                                                   
   </install>                                                                                                                                
  </show>                                                                                                                                    
 </nf:data>                                                                                                                                  
</nf:rpc-reply>                                                                                                                                                                                                                                                                                                                                                

For command descriptions, see the Cisco Nexus 7000 Series Switches Command References.

  Note: This sample output is generated for Cisco Nexus 7000 Series NX-OS Release 8.3(1).
CLI Output

switch# show install log from 287

switch# show install log from 287
Wed Jul 11 17:27:50 2018
Install operation 287 by user 'admin' at Mon Jul 2 03:28:35 2018
Install activate n7000-s2-dk9.CSC0000001.bin
Install operation 287 completed successfully at Mon Jul 2 03:28:52 2018

Install operation 288 by user 'admin' at Mon Jul 2 03:29:05 2018 Install activate n7000-s2-dk9.CSC0000001.bin Install operation 288 failed because patch is not inactive at Mon Jul 2 03:29:06 2018

Install operation 289 by user 'admin' at Mon Jul 2 03:31:36 2018 Install deactivate n7000-s2-dk9.CSC0000001.bin Install operation 289 completed successfully at Mon Jul 2 03:31:52 2018

Install operation 290 by user 'admin' at Mon Jul 2 03:32:01 2018 Install remove all inactive patches Install operation 290 completed successfully at Mon Jul 2 03:32:02 2018

show install log detail reverse

show install log <id> detail reverse
import requests
import json
 
"""
Modify these please
"""
url='http://<IP_Address>/ins'
switchuser='<User_ID>'
switchpassword='<Password>'
 
myheaders={'content-type':'application/json'}
payload={
"ins_api":{
  "version": "1.0",
  "type": "cli_show",
  "chunk": "0",
  "sid": "1",
  "input": "show install log 287 detail reverse7",
  "output_format": "json"
}
 
response = requests.post(url,data=json.dumps(payload), headers=myheaders,auth=(switchuser,switchpassword)).json()
output = json.dumps(response, indent=4, sort_keys=True)
{                                                
  "current_time": {                              
    "curr_time": "Wed Jul 11 17:30:35 2018",     
    "TABLE_show_log_output": {                   
      "ROW_show_log_output": {                   
        "install_id": 287,                       
        "install_user": "admin",                 
        "install_time": "Mon Jul  2 03:28:35 2018", 
        "install_activate_filename": "activate n7000-s2-dk9.CSC0000001.bin",
        "install_activate_log_entry": [
          "Install activate action started",
          "The software will be activated with process restart",
          "1 processes affected",
          "snmpd              (modified)",
          "Install operation 287 completed successfully at Mon Jul  2 03:28:52 2018"
        ]
      }
    }
  }
}                                                                                                                                                                 
switch# show install log 287 detail reverse | xml
<?xml version="1.0" encoding="ISO-8859-1"?>                                                                                                  
<nf:rpc-reply xmlns="http://www.cisco.com/nxos:8.3.1.:install_patch" xmlns:nf="urn:ietf:params:xml:ns:netconf:base:1.0">                     
 <nf:data>                                                                                                                                   
  <show>                                                                                                                                     
   <install>                                                                                                                                 
    <log>                                                                                                                                    
     <__XML__PARAM__id>                                                                                                                      
      <__XML__value>287</__XML__value>                                                                                                       
      <detail>                                                                                                                               
       <reverse>                                                                                                                             
        <__readonly__>                                                                                                                       
         <current_time>                                                                                                                      
          <curr_time>Wed Jul 11 17:29:14 2018</curr_time>                                                                                    
          <TABLE_show_log_output>                                                                                                            
           <ROW_show_log_output>                                                                                                             
            <install_id>287</install_id>                                                                                                     
            <install_user>admin</install_user>                                                                                               
            <install_time>Mon Jul  2 03:28:35 2018</install_time>                                                                            
            <install_activate_filename>activate n7000-s2-dk9.CSC0000001.bin</install_activate_filename>                                      
            <install_activate_log_entry>Install activate action started</install_activate_log_entry>                                         
            <install_activate_log_entry>The software will be activated with process restart</install_activate_log_entry>                     
            <install_activate_log_entry>1 processes affected</install_activate_log_entry>                                                    
            <install_activate_log_entry>  snmpd              (modified)</install_activate_log_entry>                                         
            <install_activate_log_entry>Install operation 287 completed successfully at Mon Jul  2 03:28:52 2018</install_activate_log_entry>
           </ROW_show_log_output>                                                                                                            
          </TABLE_show_log_output>                                                                                                           
         </current_time>                                                                                                                     
        </__readonly__>                                                                                                                      
       </reverse>                                                                                                                            
      </detail>                                                                                                                              
     </__XML__PARAM__id>                                                                                                                     
    </log>                                                                                                                                   
   </install>                                                                                                                                
  </show>                                                                                                                                    
 </nf:data>                                                                                                                                  
</nf:rpc-reply>                                                                                                                                                                                                                                                                                                                                                  

For command descriptions, see the Cisco Nexus 7000 Series Switches Command References.

  Note: This sample output is generated for Cisco Nexus 7000 Series NX-OS Release 8.3(1).

CLI Output

switch# **show install log 287 detail reverse**

switch# show install log 287 detail reverse
Wed Jul 11 17:27:58 2018
Install operation 287 by user 'admin' at Mon Jul  2 03:28:35 2018
Install activate n7000-s2-dk9.CSC0000001.bin
Install activate action started
The software will be activated with process restart
1 processes affected
  snmpd              (modified)
Install operation 287 completed successfully at Mon Jul  2 03:28:52 2018 

show install log last

show install log last
import requests
import json
 
"""
Modify these please
"""
url='http://<IP_Address>/ins'
switchuser='<User_ID>'
switchpassword='<Password>'
 
myheaders={'content-type':'application/json'}
payload={
"ins_api":{
  "version": "1.0",
  "type": "cli_show",
  "chunk": "0",
  "sid": "1",
  "input": "show install log last",
  "output_format": "json"
}
 
response = requests.post(url,data=json.dumps(payload), headers=myheaders,auth=(switchuser,switchpassword)).json()
output = json.dumps(response, indent=4, sort_keys=True)
{
  "current_time": {
    "curr_time": "Wed Jul 11 17:31:01 2018",
    "TABLE_show_log_output": {
      "ROW_show_log_output": {
        "install_id": 290,
        "install_user": "admin",
        "install_time": "Mon Jul  2 03:32:01 2018",
        "install_remove_filename": "remove all inactive patches",
        "install_remove_log_entry": "Install operation 290 completed successfully at Mon Jul  2 03:32:02 2018"
      }
    }
  }
}                                                                                                                                                                 
switch# show install log last | xml
<?xml version="1.0" encoding="ISO-8859-1"?>
<nf:rpc-reply xmlns="http://www.cisco.com/nxos:8.3.1.:install_patch" xmlns:nf="urn:ietf:params:xml:ns:netconf:base:1.0">
 <nf:data>
  <show>
   <install>
    <log>
     <last>
      <__readonly__>
       <current_time>
        <curr_time>Wed Jul 11 17:29:25 2018</curr_time>
        <TABLE_show_log_output>
         <ROW_show_log_output>
          <install_id>290</install_id>
          <install_user>admin</install_user>
          <install_time>Mon Jul  2 03:32:01 2018</install_time>
          <install_remove_filename>remove all inactive patches </install_remove_filename>
          <install_remove_log_entry>Install operation 290 completed successfully at Mon Jul  2 03:32:02 2018</install_remove_log_entry>
         </ROW_show_log_output>
        </TABLE_show_log_output>
       </current_time>
      </__readonly__>
     </last>
    </log>
   </install>
  </show>
 </nf:data>
</nf:rpc-reply>                                                                                                                                                                                                                                                                                                                                                 

For command descriptions, see the Cisco Nexus 7000 Series Switches Command References.

  Note: This sample output is generated for Cisco Nexus 7000 Series NX-OS Release 8.3(1).

CLI Output

switch# **show install log last**

switch# show install log last
Wed Jul 11 17:28:21 2018
Install operation 290 by user 'admin' at Mon Jul  2 03:32:01 2018
Install remove all inactive patches
Install operation 290 completed successfully at Mon Jul  2 03:32:02 2018

show install packages

show install packages
import requests
import json
 
"""
Modify these please
"""
url='http://<IP_Address>/ins'
switchuser='<User_ID>'
switchpassword='<Password>'
 
myheaders={'content-type':'application/json'}
payload={
"ins_api":{
  "version": "1.0",
  "type": "cli_show",
  "chunk": "0",
  "sid": "1",
  "input": "show install packages",
  "output_format": "json"
}
 
response = requests.post(url,data=json.dumps(payload), headers=myheaders,auth=(switchuser,switchpassword)).json()
output = json.dumps(response, indent=4, sort_keys=True)
{
  "curr_kickstart_image": "bootflash:///n7000-s2-kickstart.8.3.1.gbin.S28",
  "curr_system_image": "bootflash:///n7000-s2-dk9.8.3.1.gbin.S28"
}                                                                                                                                                                 
switch# show install packages | xml
<?xml version="1.0" encoding="ISO-8859-1"?>
<nf:rpc-reply xmlns="http://www.cisco.com/nxos:8.3.1.:install_patch" xmlns:nf="urn:ietf:params:xml:ns:netconf:base:1.0">
 <nf:data>
  <show>
   <install>
    <packages>
     <__readonly__>
      <curr_kickstart_image>bootflash:///n7000-s2-kickstart.8.3.1.gbin.S28</curr_kickstart_image>
      <curr_system_image>bootflash:///n7000-s2-dk9.8.3.1.gbin.S28</curr_system_image>
     </__readonly__>
    </packages>
   </install>
  </show>
 </nf:data>
</nf:rpc-reply>                                                                                                                                                                                                                                                                                                                                               

For command descriptions, see the Cisco Nexus 7000 Series Switches Command References.

  Note: This sample output is generated for Cisco Nexus 7000 Series NX-OS Release 8.3(1).
CLI Output

switch# show install packages

switch# show install packages
Boot Images:
        Kickstart Image: bootflash:///n7000-s2-kickstart.8.3.1.gbin.S28
        System Image: bootflash:///n7000-s2-dk9.8.3.1.gbin.S28


show install patches

show install patches
import requests
import json
 
"""
Modify these please
"""
url='http://<IP_Address>/ins'
switchuser='<User_ID>'
switchpassword='<Password>'
 
myheaders={'content-type':'application/json'}
payload={
"ins_api":{
  "version": "1.0",
  "type": "cli_show",
  "chunk": "0",
  "sid": "1",
  "input": "show install patches",
  "output_format": "json"
}
 
response = requests.post(url,data=json.dumps(payload), headers=myheaders,auth=(switchuser,switchpassword)).json()
output = json.dumps(response, indent=4, sort_keys=True)
{
  "curr_kickstart_image": "bootflash:///n7000-s2-kickstart.8.3.1.gbin.S28",
  "curr_system_image": "bootflash:///n7000-s2-dk9.8.3.1.gbin.S28"
}                                                                                                                                                               
switch# show install patches | xml
<?xml version="1.0" encoding="ISO-8859-1"?>
<nf:rpc-reply xmlns="http://www.cisco.com/nxos:8.3.1.:install_patch" xmlns:nf="urn:ietf:params:xml:ns:netconf:base:1.0">
 <nf:data>
  <show>
   <install>
    <patches>
     <__readonly__>
      <curr_kickstart_image>bootflash:///n7000-s2-kickstart.8.3.1.gbin.S28</curr_kickstart_image>
      <curr_system_image>bootflash:///n7000-s2-dk9.8.3.1.gbin.S28</curr_system_image>
     </__readonly__>
    </patches>
   </install>
  </show>
 </nf:data>
</nf:rpc-reply>                                                                                                                                                                                                                                                                                                                                              

For command descriptions, see the Cisco Nexus 7000 Series Switches Command References.

  Note: This sample output is generated for Cisco Nexus 7000 Series NX-OS Release 8.3(1).
CLI Output

switch# show install patches

switch# show install patches
Boot Images:
Kickstart Image: bootflash:///n7000-s2-kickstart.8.3.1.gbin.S28 System Image: bootflash:///n7000-s2-dk9.8.3.1.gbin.S28


show install pkg-info

show install pkg-info <pname>
import requests
import json
 
"""
Modify these please
"""
url='http://<IP_Address>/ins'
switchuser='<User_ID>'
switchpassword='<Password>'
 
myheaders={'content-type':'application/json'}
payload={
"ins_api":{
  "version": "1.0",
  "type": "cli_show",
  "chunk": "0",
  "sid": "1",
  "input": "show install pkg-info n7000-s2-dk9.CSC0000001.bin",
  "output_format": "json"
}
 
response = requests.post(url,data=json.dumps(payload), headers=myheaders,auth=(switchuser,switchpassword)).json()
output = json.dumps(response, indent=4, sort_keys=True)
{
  "image_full_name": "n7000-s2-dk9.CSC0000001.bin",
  "expiry_date": "Fri Jul 10 01:37:52 2020",
  "uncompressed_size": 339369,
  "vendor": "Cisco Systems",
  "restart_type": "restart",
  "description": "CSC0000001",
  "build_time": "Wed May 16 14:45:32 2018",
  "build_source": "Unknown",
  "platform": "Nexus7000",
  "supersedes": "None",
  "superseded_by": "None",
  "prerequisite": "None",
  "restart_information": "snmpd",
  "pre_activate_scripts": "None",
  "post_activate_scripts": "None",
  "pre_deactivate_scripts": "None",
  "post_deactivate_scripts": "None",
  "sup_module_number": [
    "1",
    "2"
  ]
}                                                                                                                                                              
switch# show install pkg-info n7000-s2-dk9.CSC0000001.bin | xml
<?xml version="1.0" encoding="ISO-8859-1"?>                    
<nf:rpc-reply xmlns="http://www.cisco.com/nxos:8.3.1.:install_patch" xmlns:nf="urn:ietf:params:xml:ns:netconf:base:1.0">
 <nf:data>                                                                                                              
  <show>                                                                                                                
   <install>                                                                                                            
    <pkg-info>                                                                                                          
     <__XML__PARAM__pname>                                                                                              
      <__XML__value>n7000-s2-dk9.CSC0000001.bin</__XML__value>                                                          
      <__readonly__>                                                                                                    
       <image_full_name>n7000-s2-dk9.CSC0000001.bin</image_full_name>                                                   
       <expiry_date>Fri Jul 10 01:37:45 2020</expiry_date>                                                              
       <uncompressed_size>339369</uncompressed_size>                                                                    
       <vendor>Cisco Systems</vendor>                                                                                   
       <restart_type>restart</restart_type>                                                                             
       <description>CSC0000001</description>                                                                            
       <build_time>Wed May 16 14:45:32 2018</build_time>                                                                
       <build_source>Unknown</build_source>                                                                             
       <platform>Nexus7000</platform>                                                                                   
       <supersedes>None</supersedes>                                                                                    
       <superseded_by>None</superseded_by>                                                                              
       <prerequisite>None</prerequisite>                                                                                
       <restart_information>snmpd</restart_information>                                                                 
       <pre_activate_scripts>None</pre_activate_scripts>                                                                
       <post_activate_scripts>None</post_activate_scripts>                                                              
       <pre_deactivate_scripts>None</pre_deactivate_scripts>                                                            
       <post_deactivate_scripts>None</post_deactivate_scripts>                                                          
       <sup_module_number>1</sup_module_number>                                                                         
       <sup_module_number>2</sup_module_number>                                                                         
      </__readonly__>                                                                                                   
     </__XML__PARAM__pname>                                                                                             
    </pkg-info>                                                                                                         
   </install>                                                                                                           
  </show>
 </nf:data>
</nf:rpc-reply>
]]>]]>                                                                                                                                                                                                                                                                                                                                            

For command descriptions, see the Cisco Nexus 7000 Series Switches Command References.

  Note: This sample output is generated for Cisco Nexus 7000 Series NX-OS Release 8.3(1).

CLI Output

switch# **show install pkg-info n7000-s2-dk9.CSC0000001.bin**

switch# show install pkg-info n7000-s2-dk9.CSC0000001.bin
Contents of Package file 'n7000-s2-dk9.CSC0000001.bin'   
Expiry date: Fri Jul 10 01:37:39 2020                    
Uncompressed size: 339369                                
Vendor: Cisco Systems                                    
Restart type: restart                                    
Desc: Bug Fix for CDET: CSC0000001                       
Build: Built on Wed May 16 14:45:32 2018                 
Source: By Unknown                                       
Platform: Nexus7000                                      
Supersedes: None                                         
Superseded By: None                                      
Pre-requisite: None                                      
Restart information: snmpd                               
Pre-install activate scripts: None                       
Post-install activate scripts: None                      
Pre-install deactivate scripts: None                     
Post-install deactivate scripts: None                    
Applicable for SUP Modules :                             
Module 1                                                 
Module 2                       

show install request

show install request
import requests
import json
 
"""
Modify these please
"""
url='http://<IP_Address>/ins'
switchuser='<User_ID>'
switchpassword='<Password>'
 
myheaders={'content-type':'application/json'}
payload={
"ins_api":{
  "version": "1.0",
  "type": "cli_show",
  "chunk": "0",
  "sid": "1",
  "input": "show install request",
  "output_format": "json"
}
 
response = requests.post(url,data=json.dumps(payload), headers=myheaders,auth=(switchuser,switchpassword)).json()
output = json.dumps(response, indent=4, sort_keys=True)
{
  "curr_time": "Wed Jul 11 01:40:42 2018",
  "none": "There are no install requests in operation."
}                                                                                                                                                             
switch# show install request | xml
<?xml version="1.0" encoding="ISO-8859-1"?>
<nf:rpc-reply xmlns="http://www.cisco.com/nxos:8.3.1.:install_patch" xmlns:nf="urn:ietf:params:xml:ns:netconf:base:1.0">
 <nf:data>
  <show>
   <install>
    <request>
     <__readonly__>
      <curr_time>Wed Jul 11 01:39:56 2018</curr_time>
      <none>There are no install requests in operation.</none>
     </__readonly__>
    </request>
   </install>
  </show>
 </nf:data>
</nf:rpc-reply>
]]>]]>                                                                                                                                                                                                                                                                                                                                           

For command descriptions, see the Cisco Nexus 7000 Series Switches Command References.

  Note: This sample output is generated for Cisco Nexus 7000 Series NX-OS Release 8.3(1).

CLI Output

switch# **show install request**

switch# show install request
Wed Jul 11 01:38:47 2018
There are no install requests in operation.