Bootvar Commands
show boot
show boot
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 boot",
"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_bootvar_show": {
"ROW_bootvar_show": [
{
"Str1": "Current Boot Variables:"
},
{
"Str1": "sup-1"
},
{
"Str1": "kickstart variable = bootflash:/n7000-s2-kickstart.8.3.1.S46.gbin"
},
{
"Str1": "system variable = bootflash:/n7000-s2-dk9.8.3.1.S46.gbin"
},
{
"Str1": "Boot POAP Disabled"
},
{
"Str1": "sup-2"
},
{
"Str1": "kickstart variable = bootflash:/n7000-s2-kickstart.8.3.1.S46.gbin"
},
{
"Str1": "system variable = bootflash:/n7000-s2-dk9.8.3.1.S46.gbin"
},
{
"Str1": "Boot POAP Disabled"
},
{
"Str1": "Boot Variables on next reload:"
},
{
"Str1": "sup-1"
},
{
"Str1": "kickstart variable = bootflash:/n7000-s2-kickstart.8.3.1.S46.gbin"
},
{
"Str1": "system variable = bootflash:/n7000-s2-dk9.8.3.1.S46.gbin"
},
{
"Str1": "Boot POAP Disabled"
},
{
"Str1": "sup-2"
},
{
"Str1": "kickstart variable = bootflash:/n7000-s2-kickstart.8.3.1.S46.gbin"
},
{
"Str1": "system variable = bootflash:/n7000-s2-dk9.8.3.1.S46.gbin"
},
{
"Str1": "Boot POAP Disabled"
}
]
}
}
switch# show boot | xml
<?xml version=""1.0"" encoding=""ISO-8859-1""?>
<nf:rpc-reply xmlns=""http://www.cisco.com/nxos:8.3.1.:bootvar"" xmlns:nf=""urn:iet
f:params:xml:ns:netconf:base:1.0"">
<nf:data>
<show>
<boot>
<__readonly__>
<TABLE_bootvar_show>
<ROW_bootvar_show>
<Str1>Current Boot Variables:
</Str1>
</ROW_bootvar_show>
<ROW_bootvar_show>
<Str1>sup-1</Str1>
</ROW_bootvar_show>
<ROW_bootvar_show>
<Str1>kickstart variable = bootflash:/n7000-s2-kickstart.8.3.1.S46.gbin</
Str1>
</ROW_bootvar_show>
<ROW_bootvar_show>
<Str1>system variable = bootflash:/n7000-s2-dk9.8.3.1.S46.gbin</Str1>
</ROW_bootvar_show>
<ROW_bootvar_show>
<Str1>Boot POAP Disabled</Str1>
</ROW_bootvar_show>
<ROW_bootvar_show>
<Str1>sup-2</Str1>
</ROW_bootvar_show>
<ROW_bootvar_show>
<Str1>kickstart variable = bootflash:/n7000-s2-kickstart.8.3.1.S46.gbin</
Str1>
</ROW_bootvar_show>
<ROW_bootvar_show>
<Str1>system variable = bootflash:/n7000-s2-dk9.8.3.1.S46.gbin</Str1>
</ROW_bootvar_show>
<ROW_bootvar_show>
<Str1>Boot POAP Disabled</Str1>
</ROW_bootvar_show>
<ROW_bootvar_show>
<Str1>
Boot Variables on next reload:
</Str1>
</ROW_bootvar_show>
<ROW_bootvar_show>
<Str1>sup-1</Str1>
</ROW_bootvar_show>
<ROW_bootvar_show>
<Str1>kickstart variable = bootflash:/n7000-s2-kickstart.8.3.1.S46.gbin</
Str1>
</ROW_bootvar_show>
<ROW_bootvar_show>
<Str1>system variable = bootflash:/n7000-s2-dk9.8.3.1.S46.gbin</Str1>
</ROW_bootvar_show>
<ROW_bootvar_show>
<Str1>Boot POAP Disabled</Str1>
</ROW_bootvar_show>
<ROW_bootvar_show>
<Str1>sup-2</Str1>
</ROW_bootvar_show>
<ROW_bootvar_show>
<Str1>kickstart variable = bootflash:/n7000-s2-kickstart.8.3.1.S46.gbin</
Str1>
</ROW_bootvar_show>
<ROW_bootvar_show>
<Str1>system variable = bootflash:/n7000-s2-dk9.8.3.1.S46.gbin</Str1>
</ROW_bootvar_show>
<ROW_bootvar_show>
<Str1>Boot POAP Disabled</Str1>
</ROW_bootvar_show>
</TABLE_bootvar_show>
</__readonly__>
</boot>
</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 |
---|
|
show boot auto-copy
show boot auto-copy
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 boot auto-copy",
"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_auto_copy"": {
""ROW_auto_copy"": {
""Str1"": ""Auto-copy feature is enabled""
}
}
}
switch# show boot auto-copy | xml
<?xml version=""1.0"" encoding=""ISO-8859-1""?>
<nf:rpc-reply xmlns=""http://www.cisco.com/nxos:8.3.1.:bootvar"" xmlns:nf=""urn:ietf:params:xml:ns:netconf:base:1.0"">
<nf:data>
<show>
<boot>
<auto-copy>
<__readonly__>
<TABLE_auto_copy>
<ROW_auto_copy>
<Str1>Auto-copy feature is enabled</Str1>
</ROW_auto_copy>
</TABLE_auto_copy>
</__readonly__>
</auto-copy>
</boot>
</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 |
---|
|
show boot auto-copy list
show boot auto-copy list
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 boot auto-copy list",
"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_auto_copy_list": {
"ROW_auto_copy_list": {
"Str1": "No file currently being auto-copied"
}
}
}
switch# show boot auto-copy list | xml
<?xml version="1.0" encoding="ISO-8859-1"?>
<nf:rpc-reply xmlns="http://www.cisco.com/nxos:8.3.1.:bootvar" xmlns:nf="urn:ietf:params:xml:ns:netconf:base:1.0">
<nf:data>
<show>
<boot>
<auto-copy>
<list>
<__readonly__>
<TABLE_auto_copy_list>
<ROW_auto_copy_list>
<Str1>No file currently being auto-copied</Str1>
</ROW_auto_copy_list>
</TABLE_auto_copy_list>
</__readonly__>
</list>
</auto-copy>
</boot>
</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 |
---|
|
show boot current
show boot current
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 boot current",
"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_bootvar_current": {
"ROW_bootvar_current": [
{
"Str1": "sup-1"
},
{
"Str1": "kickstart variable = bootflash:/n7000-s2-kickstart.8.3.1.S46.gbin"
},
{
"Str1": "system variable = bootflash:/n7000-s2-dk9.8.3.1.S46.gbin"
},
{
"Str1": "Boot POAP Disabled"
},
{
"Str1": "sup-2"
},
{
"Str1": "kickstart variable = bootflash:/n7000-s2-kickstart.8.3.1.S46.gbin"
},
{
"Str1": "system variable = bootflash:/n7000-s2-dk9.8.3.1.S46.gbin"
},
{
"Str1": "Boot POAP Disabled"
}
]
}
}
switch# show boot current | xml
<?xml version="1.0" encoding="ISO-8859-1"?>
<nf:rpc-reply xmlns="http://www.cisco.com/nxos:8.3.1.:bootvar" xmlns:nf="urn:ietf:params:xml:ns:netconf:base:1.0">
<nf:data>
<show>
<boot>
<current>
<__readonly__>
<TABLE_bootvar_current>
<ROW_bootvar_current>
<Str1>sup-1</Str1>
</ROW_bootvar_current>
<ROW_bootvar_current>
<Str1>kickstart variable = bootflash:/n7000-s2-kickstart.8.3.1.S46.gbin</Str1>
</ROW_bootvar_current>
<ROW_bootvar_current>
<Str1>system variable = bootflash:/n7000-s2-dk9.8.3.1.S46.gbin</Str1>
</ROW_bootvar_current>
<ROW_bootvar_current>
<Str1>Boot POAP Disabled</Str1>
</ROW_bootvar_current>
<ROW_bootvar_current>
<Str1>sup-2</Str1>
</ROW_bootvar_current>
<ROW_bootvar_current>
<Str1>kickstart variable = bootflash:/n7000-s2-kickstart.8.3.1.S46.gbin</Str1>
</ROW_bootvar_current>
<ROW_bootvar_current>
<Str1>system variable = bootflash:/n7000-s2-dk9.8.3.1.S46.gbin</Str1>
</ROW_bootvar_current>
<ROW_bootvar_current>
<Str1>Boot POAP Disabled</Str1>
</ROW_bootvar_current>
</TABLE_bootvar_current>
</__readonly__>
</current>
</boot>
</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 |
---|
|
show boot sup-1
show boot sup-1
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 boot sup-1",
"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_show_sup1": {
"ROW_show_sup1": [
{
"Str1": "Current Boot Variables:"
},
{
"Str1": "sup-1"
},
{
"Str1": "kickstart variable = bootflash:/n7000-s2-kickstart.8.3.1.S46.gbin"
},
{
"Str1": "system variable = bootflash:/n7000-s2-dk9.8.3.1.S46.gbin"
},
{
"Str1": "Boot POAP Disabled"
},
{
"Str1": "Boot Variables on next reload:"
},
{
"Str1": "sup-1"
},
{
"Str1": "kickstart variable = bootflash:/n7000-s2-kickstart.8.3.1.S46.gbin"
},
{
"Str1": "system variable = bootflash:/n7000-s2-dk9.8.3.1.S46.gbin"
},
{
"Str1": "Boot POAP Disabled"
}
]
}
}
switch# show boot sup-1 | xml
<?xml version="1.0" encoding="ISO-8859-1"?>
<nf:rpc-reply xmlns="http://www.cisco.com/nxos:8.3.1.:bootvar" xmlns:nf="urn:ietf:params:xml:ns:netconf:base:1.0">
<nf:data>
<show>
<boot>
<sup-1>
<__readonly__>
<TABLE_show_sup1>
<ROW_show_sup1>
<Str1>Current Boot Variables:
</Str1>
</ROW_show_sup1>
<ROW_show_sup1>
<Str1>sup-1</Str1>
</ROW_show_sup1>
<ROW_show_sup1>
<Str1>kickstart variable = bootflash:/n7000-s2-kickstart.8.3.1.S46.gbin</Str1>
</ROW_show_sup1>
<ROW_show_sup1>
<Str1>system variable = bootflash:/n7000-s2-dk9.8.3.1.S46.gbin</Str1>
</ROW_show_sup1>
<ROW_show_sup1>
<Str1>Boot POAP Disabled</Str1>
</ROW_show_sup1>
<ROW_show_sup1>
<Str1>
Boot Variables on next reload:
</Str1>
</ROW_show_sup1>
<ROW_show_sup1>
<Str1>sup-1</Str1>
</ROW_show_sup1>
<ROW_show_sup1>
<Str1>kickstart variable = bootflash:/n7000-s2-kickstart.8.3.1.S46.gbin</Str1>
</ROW_show_sup1>
<ROW_show_sup1>
<Str1>system variable = bootflash:/n7000-s2-dk9.8.3.1.S46.gbin</Str1>
</ROW_show_sup1>
<ROW_show_sup1>
<Str1>Boot POAP Disabled</Str1>
</ROW_show_sup1>
</TABLE_show_sup1>
</__readonly__>
</sup-1>
</boot>
</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 |
---|
|
show boot sup-2
show boot sup-2
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 boot sup-2",
"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_show_sup2": {
"ROW_show_sup2": [
{
"Str1": "Current Boot Variables:"
},
{
"Str1": "sup-2"
},
{
"Str1": "kickstart variable = bootflash:/n7000-s2-kickstart.8.3.1.S46.gbin"
},
{
"Str1": "system variable = bootflash:/n7000-s2-dk9.8.3.1.S46.gbin"
},
{
"Str1": "Boot POAP Disabled"
},
{
"Str1": "Boot Variables on next reload:"
},
{
"Str1": "sup-2"
},
{
"Str1": "kickstart variable = bootflash:/n7000-s2-kickstart.8.3.1.S46.gbin"
},
{
"Str1": "system variable = bootflash:/n7000-s2-dk9.8.3.1.S46.gbin"
},
{
"Str1": "Boot POAP Disabled"
}
]
}
}
switch# show boot sup-2 | xml
<?xml version="1.0" encoding="ISO-8859-1"?>
<nf:rpc-reply xmlns="http://www.cisco.com/nxos:8.3.1.:bootvar" xmlns:nf="urn:ietf:params:xml:ns:netconf:base:1.0">
<nf:data>
<show>
<boot>
<sup-2>
<__readonly__>
<TABLE_show_sup2>
<ROW_show_sup2>
<Str1>Current Boot Variables:
</Str1>
</ROW_show_sup2>
<ROW_show_sup2>
<Str1>sup-2</Str1>
</ROW_show_sup2>
<ROW_show_sup2>
<Str1>kickstart variable = bootflash:/n7000-s2-kickstart.8.3.1.S46.gbin</Str1>
</ROW_show_sup2>
<ROW_show_sup2>
<Str1>system variable = bootflash:/n7000-s2-dk9.8.3.1.S46.gbin</Str1>
</ROW_show_sup2>
<ROW_show_sup2>
<Str1>Boot POAP Disabled</Str1>
</ROW_show_sup2>
<ROW_show_sup2>
<Str1>
Boot Variables on next reload:
</Str1>
</ROW_show_sup2>
<ROW_show_sup2>
<Str1>sup-2</Str1>
</ROW_show_sup2>
<ROW_show_sup2>
<Str1>kickstart variable = bootflash:/n7000-s2-kickstart.8.3.1.S46.gbin</Str1>
</ROW_show_sup2>
<ROW_show_sup2>
<Str1>system variable = bootflash:/n7000-s2-dk9.8.3.1.S46.gbin</Str1>
</ROW_show_sup2>
<ROW_show_sup2>
<Str1>Boot POAP Disabled</Str1>
</ROW_show_sup2>
</TABLE_show_sup2>
</__readonly__>
</sup-2>
</boot>
</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 |
---|
|
show boot variables
show boot variables
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 boot variables",
"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_boot_vars": {
"ROW_boot_vars": [
{
"Str1": "List of boot variables are:"
},
{
"Str1": "system"
},
{
"Str1": "kickstart"
}
]
}
}
switch# show boot variables | xml
<?xml version="1.0" encoding="ISO-8859-1"?>
<nf:rpc-reply xmlns="http://www.cisco.com/nxos:8.3.1.:bootvar" xmlns:nf="urn:ietf:params:xml:ns:netconf:base:1.0">
<nf:data>
<show>
<boot>
<variables>
<__readonly__>
<TABLE_boot_vars>
<ROW_boot_vars>
<Str1>List of boot variables are:</Str1>
</ROW_boot_vars>
<ROW_boot_vars>
<Str1> system</Str1>
</ROW_boot_vars>
<ROW_boot_vars>
<Str1> kickstart</Str1>
</ROW_boot_vars>
</TABLE_boot_vars>
</__readonly__>
</variables>
</boot>
</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 |
---|
|