Syscli Commands

show clock

show clock
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 clock",
  "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)
{
  "simple_time": "02:59:24.105 PST Wed Jul 11 2018"
}
switch# show clock | xml
Time source is NTP              
<?xml version="1.0" encoding="ISO-8859-1"?>
<nf:rpc-reply xmlns="http://www.cisco.com/nxos:8.3.1.:syscli" xmlns:nf="urn:ietf:params:xml:ns:netconf:base:1.0">
 <nf:data>
  <show>
   <clock>
    <__readonly__>
     <simple_time>02:57:40.194 PST Wed Jul 11 2018</simple_time>
    </__readonly__>
   </clock>
  </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 clock**

switch# show clock
Time source is NTP
02:50:05.594 PST Wed Jul 11 2018   

show clock detail

show clock detail
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 clock detail",
  "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)
{
  "simple_time": "02:59:33.285 PST Wed Jul 11 2018"
}                                               
switch# show clock detail | xml
Time source is NTP
<?xml version="1.0" encoding="ISO-8859-1"?>
<nf:rpc-reply xmlns="http://www.cisco.com/nxos:8.3.1.:syscli" xmlns:nf="urn:ietf:params:xml:ns:netconf:base:1.0">
 <nf:data>
  <show>
   <clock>
    <detail>
     <__readonly__>
      <simple_time>02:58:28.594 PST Wed Jul 11 2018</simple_time>
     </__readonly__>
    </detail>
   </clock>
  </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 clock detail**

switch# show clock detail
Time source is NTP
02:50:08.883 PST Wed Jul 11 2018

show line

show line
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 line",
  "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)
{
  "speed": 9600,
  "databits": 8,
  "stopbits": 1,
  "parity": "none",
  "modem_in": "Modem In: Disable",
  "modem_init_str": "default : ATE0Q1&D2&C1S0=1\\015",
  "stat": "Statistics:  tx:644367  rx:5806     Register Bits:RTS|DTR|DSR",
  "TABLE_ps_output": {
    "ROW_ps_output": {
      "ps": "root      7802     1  0 Jul10 ttyS0    00:00:00 login -- admin"
    }
  }
}    
switch# show line | xml
<?xml version="1.0" encoding="ISO-8859-1"?>
<nf:rpc-reply xmlns="http://www.cisco.com/nxos:8.3.1.:syscli" xmlns:nf="urn:ietf:params:xml:ns:netconf:base:1.0">
 <nf:data>                                                                                                       
  <show>                                                                                                         
   <line>                                                                                                        
    <__readonly__>                                                                                               
     <speed>9600</speed>                                                                                         
     <databits>8</databits>                                                                                      
     <stopbits>1</stopbits>                                                                                      
     <parity>none</parity>                                                                                       
     <modem_in>    Modem In: Disable</modem_in>                                                                  
     <modem_init_str>        default : ATE0Q1&amp;D2&amp;C1S0=1\015</modem_init_str>                             
     <stat>Statistics:  tx:643455  rx:5790     Register Bits:RTS|DTR|DSR                                         
</stat>                                                                                                          
     <TABLE_ps_output>                                                                                           
      <ROW_ps_output>
       <ps>root      7802     1  0 Jul10 ttyS0    00:00:00 login -- admin
</ps>
      </ROW_ps_output>
     </TABLE_ps_output>
    </__readonly__>
   </line>
  </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 line**

switch# show line
line Console:                                      
    Speed:        9600 baud                        
    Databits:     8 bits per byte                  
    Stopbits:     1 bit(s)                         
    Parity:       none                             
    Modem In: Disable                              
    Modem Init-String -                            
        default : ATE0Q1&D2&C1S0=1\015             
Statistics:  tx:643035  rx:5778     Register Bits:RTS|DTR|DSR
root      7802     1  0 Jul10 ttyS0    00:00:00 login -- admin               

show line console

show line console
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 line console",
  "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)
{
  "speed": 9600,
  "databits": 8,
  "stopbits": 1,
  "parity": "none",
  "modem_in": "Modem In: Disable",
  "modem_init_str": "default : ATE0Q1&D2&C1S0=1\\015",
  "stat": "Statistics:  tx:646632  rx:5862     Register Bits:RTS|DTR|DSR",
  "TABLE_ps_output": {
    "ROW_ps_output": {
      "ps": "root      7802     1  0 Jul10 ttyS0    00:00:00 login -- admin"
    }
  }
}
switch# show line console | xml
<?xml version="1.0" encoding="ISO-8859-1"?>
<nf:rpc-reply xmlns="http://www.cisco.com/nxos:8.3.1.:syscli" xmlns:nf="urn:ietf:params:xml:ns:netconf:base:1.0">
 <nf:data>                                                                                                       
  <show>                                                                                                         
   <line>                                                                                                        
    <console>                                                                                                    
     <__readonly__>                                                                                              
      <speed>9600</speed>                                                                                        
      <databits>8</databits>                                                                                     
      <stopbits>1</stopbits>                                                                                     
      <parity>none</parity>                                                                                      
      <modem_in>    Modem In: Disable</modem_in>                                                                 
      <modem_init_str>        default : ATE0Q1&amp;D2&amp;C1S0=1\015</modem_init_str>                            
      <stat>Statistics:  tx:645659  rx:5839     Register Bits:RTS|DTR|DSR                                        
</stat>                                                                                                          
      <TABLE_ps_output>
       <ROW_ps_output>
        <ps>root      7802     1  0 Jul10 ttyS0    00:00:00 login -- admin
</ps>
       </ROW_ps_output>
      </TABLE_ps_output>
     </__readonly__>
    </console>
   </line>
  </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 line console**

switch# show line console
line Console:             
    Speed:        9600 baud
    Databits:     8 bits per byte
    Stopbits:     1 bit(s)       
    Parity:       none           
    Modem In: Disable            
    Modem Init-String -          
        default : ATE0Q1&D2&C1S0=1\015
Statistics:  tx:645207  rx:5826     Register Bits:RTS|DTR|DSR
root      7802     1  0 Jul10 ttyS0    00:00:00 login -- admin     

show line console connected

show line console connected
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 line console connected",
  "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)
{
  "output": "Line console is connected"
}
switch# show line console connected | xml
<?xml version="1.0" encoding="ISO-8859-1"?>
<nf:rpc-reply xmlns="http://www.cisco.com/nxos:8.3.1.:syscli" xmlns:nf="urn:ietf:params:xml:ns:netconf:base:1.0">
 <nf:data>
  <show>
   <line>
    <console>
     <connected>
      <__readonly__>
       <output>Line console is connected
</output>
      </__readonly__>
     </connected>
    </console>
   </line>
  </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 line console connected**

switch# show line console connected
Line console is connected

show line console user-input-string

show line console user-input-string
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 line console user-input-string",
  "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)
{
  }
switch# show line console user-input-string | xml
No user-input string configured
<?xml version="1.0" encoding="ISO-8859-1"?>
<nf:rpc-reply xmlns="http://www.cisco.com/nxos:8.3.1.:syscli" xmlns:nf="urn:ietf:params:xml:ns:netconf:base:1.0">
 <nf:data>
  <show>
   <line>
    <console>
     <user-input-string/>
    </console>
   </line>
  </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 line console user-input-string**

switch# show line console user-input-string
No user-input string configured

show software integrity index

show software integrity index <idx>
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 software integrity index 1130",
  "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)
{                                                
  "reference": 1531308268,                       
  "TABLE_ima_measurement_info": {                
    "ROW_ima_measurement_info": [                
      {                                          
        "index": 1130,                           
        "pcr": "10",                             
        "template_hash": "e115258c43e1761837d21697b119460aefbc1245", 
        "template_name": "ima-ng",                                   
        "filedata_hash": "sha256:2a790e3ee9a155690999c222169a664c3087fdb466b0ebb84c8f0a59966b792e", 
        "filename_hint": "/isan/bin/dcos_scp"                                                       
      },                                                                                            
      {                                                                                             
        "index": 1131,                                                                              
        "pcr": "10",                                                                                
        "template_hash": "2d91be87b818d3666f340551225c8fcb7576259f",                                
        "template_name": "ima-ng",                                                                  
        "filedata_hash": "sha256:0e4c2bba6c565a4d70c5765dc21b7940d88f1a5daa7f0d62c4024486e0abd039", 
        "filename_hint": "/isan/bin/dcos_ssh"                                                       
      },                                                                                            
      {                                                                                             
        "index": 1132,                                                                              
        "pcr": "10",                                                                                
        "template_hash": "bdf9bfc3cf02c7dfea79d618d2bef74a40484e6d",                                
        "template_name": "ima-ng",                                                                  
        "filedata_hash": "sha256:76d53e16900ef25e286c5aae51cfc900ba0431f2fdd4eb731edf99e627a74951", 
        "filename_hint": "/isan/etc/plugin_find_execs"                                              
      },                                                                                            
      {                                                                                             
        "index": 1133,                                                                              
        "pcr": "10",                                                                                
        "template_hash": "bc1cb62b3ece2f0f1a786b961b83aae1960e42fc",                                
        "template_name": "ima-ng",                                                                  
        "filedata_hash": "sha256:d0d0ce9002d35f3fc21f59beb9daeeb2d6a031ce9cac67b06c330d4b916c42c9", 
        "filename_hint": "/isan/plugin/0/isan/lib/libsnapshotcli.so.0.0.0"
      },
      {
        "index": 1134,
        "pcr": "10",
        "template_hash": "04a4ae1fd45aad303a1b4ba6a886913d44893224",
        "template_name": "ima-ng",
        "filedata_hash": "sha256:911bf407ffad9c9c1b13e6810089746c8a23bd3efa2f45abf356cefb44783fe6",
        "filename_hint": "/isan/plugin/0/isan/lib/libppmcli.so.0.0.0"
      },
      {
        "index": 1135,
        "pcr": "10",
        "template_hash": "c56468fef35f2566f2d8a531ec11308398ea4505",
        "template_name": "ima-ng",
        "filedata_hash": "sha256:a89450063660476f56e8375958072968fb2dfa92f19df627f6a843bcc27972bc",
        "filename_hint": "/usr/bin/sudo"
      },
      {
        "index": 1136,
        "pcr": "10",
        "template_hash": "e824c3344c08fbab3d67b552af8cf7811a4c2d76",
        "template_name": "ima-ng",
        "filedata_hash": "sha256:9b3dbae704390c830f6e5e0a8cf333ce351d1f55282bba697a30b3813316d391",
        "filename_hint": "/usr/lib/sudo/sudoers.so"
      }
    ]
  }
}
switch# show software integrity index 1130 | xml
index      pcr        template-hash                             template-name algorithm:filedata-hash                   
                                  filename-hint                                                                         
------------------------------------------------------------------------------------------------------------------------
-------------------------------------                                                                                   
reference: <?xml version="1.0" encoding="ISO-8859-1"?>                                                                  
<nf:rpc-reply xmlns="http://www.cisco.com/nxos:8.3.1.:syscli" xmlns:nf="urn:ietf:params:xml:ns:netconf:base:1.0">       
 <nf:data>                                                                                                              
  <show>                                                                                                                
   <software>                                                                                                           
    <integrity>                                                                                                         
     <index>                                                                                                            
      <__XML__PARAM__idx>                                                                                               
       <__XML__value>1130</__XML__value>                                                                                
       <__readonly__>                                                                                                   
        <reference>1531308268</reference>                                                                               
        <TABLE_ima_measurement_info>                                                                                    
         <ROW_ima_measurement_info>                                                                                     
          <index>1130</index>                                                                                           
          <pcr>10</pcr>                                                                                                 
          <template_hash>e115258c43e1761837d21697b119460aefbc1245</template_hash>                                       
          <template_name>ima-ng</template_name>                                                                         
          <filedata_hash>sha256:2a790e3ee9a155690999c222169a664c3087fdb466b0ebb84c8f0a59966b792e</filedata_hash>        
          <filename_hint>/isan/bin/dcos_scp</filename_hint>                                                             
         </ROW_ima_measurement_info>                                                                                    
         <ROW_ima_measurement_info>                                                                                     
          <index>1131</index>                                                                                           
          <pcr>10</pcr>                                                                                                 
          <template_hash>2d91be87b818d3666f340551225c8fcb7576259f</template_hash>                                       
          <template_name>ima-ng</template_name>                                                                         
          <filedata_hash>sha256:0e4c2bba6c565a4d70c5765dc21b7940d88f1a5daa7f0d62c4024486e0abd039</filedata_hash>        
          <filename_hint>/isan/bin/dcos_ssh</filename_hint>                                                             
         </ROW_ima_measurement_info>                                                                                    
         <ROW_ima_measurement_info>                                                                                     
          <index>1132</index>                                                                                           
          <pcr>10</pcr>                                                                                                 
          <template_hash>bdf9bfc3cf02c7dfea79d618d2bef74a40484e6d</template_hash>                                       
          <template_name>ima-ng</template_name>                                                                         
          <filedata_hash>sha256:76d53e16900ef25e286c5aae51cfc900ba0431f2fdd4eb731edf99e627a74951</filedata_hash>        
          <filename_hint>/isan/etc/plugin_find_execs</filename_hint>                                                    
         </ROW_ima_measurement_info>                                                                                    
         <ROW_ima_measurement_info>                                                                                     
          <index>1133</index>                                                                                           
          <pcr>10</pcr>                                                                                                 
          <template_hash>bc1cb62b3ece2f0f1a786b961b83aae1960e42fc</template_hash>                                       
          <template_name>ima-ng</template_name>                                                                         
          <filedata_hash>sha256:d0d0ce9002d35f3fc21f59beb9daeeb2d6a031ce9cac67b06c330d4b916c42c9</filedata_hash>        
          <filename_hint>/isan/plugin/0/isan/lib/libsnapshotcli.so.0.0.0</filename_hint>                                
         </ROW_ima_measurement_info>                                                                                    
         <ROW_ima_measurement_info>                                                                                     
          <index>1134</index>                                                                                           
          <pcr>10</pcr>                                                                                                 
          <template_hash>04a4ae1fd45aad303a1b4ba6a886913d44893224</template_hash>                                       
          <template_name>ima-ng</template_name>                                                                         
          <filedata_hash>sha256:911bf407ffad9c9c1b13e6810089746c8a23bd3efa2f45abf356cefb44783fe6</filedata_hash>        
          <filename_hint>/isan/plugin/0/isan/lib/libppmcli.so.0.0.0</filename_hint>                                     
         </ROW_ima_measurement_info>                                                                                    
         <ROW_ima_measurement_info>                                                                                     
          <index>1135</index>                                                                                           
          <pcr>10</pcr>                                                                                                 
          <template_hash>c56468fef35f2566f2d8a531ec11308398ea4505</template_hash>                                       
          <template_name>ima-ng</template_name>                                                                         
          <filedata_hash>sha256:a89450063660476f56e8375958072968fb2dfa92f19df627f6a843bcc27972bc</filedata_hash>        
          <filename_hint>/usr/bin/sudo</filename_hint>                                                                  
         </ROW_ima_measurement_info>                                                                                    
         <ROW_ima_measurement_info>                                                                                     
          <index>1136</index>                                                                                           
          <pcr>10</pcr>                                                                                                 
          <template_hash>e824c3344c08fbab3d67b552af8cf7811a4c2d76</template_hash>                                       
          <template_name>ima-ng</template_name>                                                                         
          <filedata_hash>sha256:9b3dbae704390c830f6e5e0a8cf333ce351d1f55282bba697a30b3813316d391</filedata_hash>        
          <filename_hint>/usr/lib/sudo/sudoers.so</filename_hint>                                                       
         </ROW_ima_measurement_info>                                                                                    
        </TABLE_ima_measurement_info>                                                                                   
       </__readonly__>                                                                                                  
      </__XML__PARAM__idx>                                                                                              
     </index>                                                                                                           
    </integrity>                                                                                                        
   </software>                                                                                                          
  </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 software integrity index 1130

switch# show software integrity index 1130
index      pcr        template-hash                             template-name algorithm:filedata-hash
filename-hint


reference: 1531308268
1130 10 e115258c43e1761837d21697b119460aefbc1245 ima-ng sha256:2a790e3ee9a155690999c222169a664c308 7fdb466b0ebb84c8f0a59966b792e /isan/bin/dcos_scp
1131 10 2d91be87b818d3666f340551225c8fcb7576259f ima-ng sha256:0e4c2bba6c565a4d70c5765dc21b7940d88 f1a5daa7f0d62c4024486e0abd039 /isan/bin/dcos_ssh
1132 10 bdf9bfc3cf02c7dfea79d618d2bef74a40484e6d ima-ng sha256:76d53e16900ef25e286c5aae51cfc900ba0 431f2fdd4eb731edf99e627a74951 /isan/etc/plugin_find_execs
1133 10 bc1cb62b3ece2f0f1a786b961b83aae1960e42fc ima-ng sha256:d0d0ce9002d35f3fc21f59beb9daeeb2d6a 031ce9cac67b06c330d4b916c42c9 /isan/plugin/0/isan/lib/libsnapshotcli.so.0.0.0
1134 10 04a4ae1fd45aad303a1b4ba6a886913d44893224 ima-ng sha256:911bf407ffad9c9c1b13e6810089746c8a2 3bd3efa2f45abf356cefb44783fe6 /isan/plugin/0/isan/lib/libppmcli.so.0.0.0
1135 10 c56468fef35f2566f2d8a531ec11308398ea4505 ima-ng sha256:a89450063660476f56e8375958072968fb2 dfa92f19df627f6a843bcc27972bc /usr/bin/sudo
1136 10 e824c3344c08fbab3d67b552af8cf7811a4c2d76 ima-ng sha256:9b3dbae704390c830f6e5e0a8cf333ce351 d1f55282bba697a30b3813316d391 /usr/lib/sudo/sudoers.so

show software integrity total

show software integrity total
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 software integrity total",
  "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_ima_total_measurement_info": {
    "ROW_ima_total_measurement_info": {
      "count": 1136
    }
  }
}                                                   
switch# show software integrity total | xml
<?xml version="1.0" encoding="ISO-8859-1"?>
<nf:rpc-reply xmlns="http://www.cisco.com/nxos:8.3.1.:syscli" xmlns:nf="urn:ietf:params:xml:ns:netconf:base:1.0">
 <nf:data>
  <show>
   <software>
    <integrity>
     <total>
      <__readonly__>
       <TABLE_ima_total_measurement_info>
        <ROW_ima_total_measurement_info>
         <count>1136</count>
        </ROW_ima_total_measurement_info>
       </TABLE_ima_total_measurement_info>
      </__readonly__>
     </total>
    </integrity>
   </software>
  </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 software integrity total**

switch# show software integrity total
1136    
show copyright
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 copyright",
  "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)
{
  "content": "Cisco Nexus Operating System (NX-OS) Software\nTAC support: http://www.cisco.com/tac\nCopyright (c) 2002-2
018, Cisco Systems, Inc. All rights reserved.\nThe copyrights to certain works contained in this software are\nowned by
other third parties and used and distributed under\nlicense. Certain components of this software are licensed under\nthe
 GNU General Public License (GPL) version 2.0 or the GNU\nLesser General Public License (LGPL) Version 2.1. A copy of ea
ch\nsuch license is available at\nhttp://www.opensource.org/licenses/gpl-2.0.php and\nhttp://www.opensource.org/licenses
/lgpl-2.1.php"
}                                                 
switch# show copyright | xml
<?xml version="1.0" encoding="ISO-8859-1"?>
<nf:rpc-reply xmlns="http://www.cisco.com/nxos:8.3.1.:sysmgr" xmlns:nf="urn:ietf:params:xml:ns:netconf:base:1.0">
 <nf:data>                                                                                                       
  <show>                                                                                                         
   <copyright>                                                                                                   
    <__readonly__>                                                                                               
     <content>Cisco Nexus Operating System (NX-OS) Software                                                      
TAC support: http://www.cisco.com/tac
Copyright (c) 2002-2018, Cisco Systems, Inc. All rights reserved.
The copyrights to certain works contained in this software are
owned by other third parties and used and distributed under
license. Certain components of this software are licensed under
the GNU General Public License (GPL) version 2.0 or the GNU
Lesser General Public License (LGPL) Version 2.1. A copy of each
such license is available at
http://www.opensource.org/licenses/gpl-2.0.php and
http://www.opensource.org/licenses/lgpl-2.1.php
</content>
    </__readonly__>
   </copyright>
  </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 copyright**

switch# show copyright
Cisco Nexus Operating System (NX-OS) Software
TAC support: http://www.cisco.com/tac        
Copyright (c) 2002-2018, Cisco Systems, Inc. All rights reserved.
The copyrights to certain works contained in this software are   
owned by other third parties and used and distributed under      
license. Certain components of this software are licensed under  
the GNU General Public License (GPL) version 2.0 or the GNU      
Lesser General Public License (LGPL) Version 2.1. A copy of each 
such license is available at                                     
http://www.opensource.org/licenses/gpl-2.0.php and               
http://www.opensource.org/licenses/lgpl-2.1.php