PPM Commands
show port-profile
show port-profile
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 port-profile",
"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)
{
"ins_api": {
"type": "cli_show",
"version": "1.2",
"sid": "eoc",
"outputs": {
"output": {
"input": "show port-profile",
"msg": "Success",
"code": "200",
"body": {
"TABLE_port_profile_all": {
"ROW_port_profile_all": {
"profile_name": "test",
"type": "Ethernet",
"desc": "",
"status": 1,
"max_ports": 16384,
"inherit": "data_empty",
"profile_cfg": [
"switchport",
"switchport mode trunk"
],
"eval_cfg": [
"switchport",
"switchport mode trunk"
],
"intf": "Ethernet9/1"
}
}
}
}
}
}
}
switch# show port-profile | xml
<?xml version="1.0" encoding="UTF-8"?>
<ins_api>
<type>cli_show</type>
<version>1.2</version>
<sid>eoc</sid>
<outputs>
<output>
<body>
<TABLE_port_profile_all>
<ROW_port_profile_all>
<profile_name>test</profile_name>
<type>Ethernet</type>
<desc/>
<status>1</status>
<max_ports>16384</max_ports>
<inherit>data_empty</inherit>
<profile_cfg>switchport</profile_cfg>
<profile_cfg>switchport mode trunk</profile_cfg>
<eval_cfg>switchport</eval_cfg>
<eval_cfg>switchport mode trunk</eval_cfg>
<intf>Ethernet9/1</intf>
</ROW_port_profile_all>
</TABLE_port_profile_all>
</body>
<input>show port-profile</input>
<msg>Success</msg>
<code>200</code>
</output>
</outputs>
</ins_api>
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 port-profile name test
show port-profile name test
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 port-profile name test",
"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)
{
"ins_api": {
"type": "cli_show",
"version": "1.2",
"sid": "eoc",
"outputs": {
"output": {
"input": "show port-profile name test",
"msg": "Success",
"code": "200",
"body": {
"TABLE_port_profile_all": {
"ROW_port_profile_all": {
"profile_name": "test",
"type": "Ethernet",
"desc": "",
"status": 1,
"max_ports": 16384,
"inherit": "data_empty",
"profile_cfg": [
"switchport",
"switchport mode trunk"
],
"eval_cfg": [
"switchport",
"switchport mode trunk"
],
"intf": "Ethernet9/1"
}
}
}
}
}
}
}
switch# show port-profile name test | xml
<?xml version="1.0" encoding="UTF-8"?>
<ins_api>
<type>cli_show</type>
<version>1.2</version>
<sid>eoc</sid>
<outputs>
<output>
<body>
<TABLE_port_profile_all>
<ROW_port_profile_all>
<profile_name>test</profile_name>
<type>Ethernet</type>
<desc/>
<status>1</status>
<max_ports>16384</max_ports>
<inherit>data_empty</inherit>
<profile_cfg>switchport</profile_cfg>
<profile_cfg>switchport mode trunk</profile_cfg>
<eval_cfg>switchport</eval_cfg>
<eval_cfg>switchport mode trunk</eval_cfg>
<intf>Ethernet9/1</intf>
</ROW_port_profile_all>
</TABLE_port_profile_all>
</body>
<input>show port-profile name test</input>
<msg>Success</msg>
<code>200</code>
</output>
</outputs>
</ins_api>
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 port-profile brief
show port-profile brief
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 port-profile brief",
"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)
{
"ins_api": {
"type": "cli_show",
"version": "1.2",
"sid": "eoc",
"outputs": {
"output": {
"input": "show port-profile brief",
"msg": "Success",
"code": "200",
"body": {
"TABLE_port_profile": {
"ROW_port_profile": {
"profile_name": "test",
"status": 1,
"profile_cfg_cnt": 2,
"eval_cfg_cnt": 2,
"intf_cnt": 1,
"inherit_cnt": 0
}
}
}
}
}
}
}
switch# show port-profile brief | xml
<?xml version="1.0" encoding="UTF-8"?>
<ins_api>
<type>cli_show</type>
<version>1.2</version>
<sid>eoc</sid>
<outputs>
<output>
<body>
<TABLE_port_profile>
<ROW_port_profile>
<profile_name>test</profile_name>
<status>1</status>
<profile_cfg_cnt>2</profile_cfg_cnt>
<eval_cfg_cnt>2</eval_cfg_cnt>
<intf_cnt>1</intf_cnt>
<inherit_cnt>0</inherit_cnt>
</ROW_port_profile>
</TABLE_port_profile>
</body>
<input>show port-profile brief</input>
<msg>Success</msg>
<code>200</code>
</output>
</outputs>
</ins_api>
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 port-profile expand-interface name test
show port-profile expand-interface name test
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 port-profile expand-interface name test",
"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)
{
"ins_api": {
"type": "cli_show",
"version": "1.2",
"sid": "eoc",
"outputs": {
"output": {
"input": "show port-profile expand-interface name test",
"msg": "Success",
"code": "200",
"body": {
"TABLE_port_profile": {
"ROW_port_profile": {
"profile_name": "test",
"TABLE_interface": {
"ROW_interface": {
"intf": "Ethernet9/1",
"intf_cfg": [
"switchport",
"switchport mode trunk",
"no shutdown"
]
}
}
}
}
}
}
}
}
}
switch# show port-profile expand-interface name test | xml
<?xml version="1.0" encoding="UTF-8"?>
<ins_api>
<type>cli_show</type>
<version>1.2</version>
<sid>eoc</sid>
<outputs>
<output>
<body>
<TABLE_port_profile>
<ROW_port_profile>
<profile_name>test</profile_name>
<TABLE_interface>
<ROW_interface>
<intf>Ethernet9/1</intf>
<intf_cfg>switchport</intf_cfg>
<intf_cfg>switchport mode trunk</intf_cfg>
<intf_cfg>no shutdown</intf_cfg>
</ROW_interface>
</TABLE_interface>
</ROW_port_profile>
</TABLE_port_profile>
</body>
<input>show port-profile expand-interface name test</input>
<msg>Success</msg>
<code>200</code>
</output>
</outputs>
</ins_api>
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 port-profile usage name test
show port-profile usage name test
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 port-profile usage name test",
"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)
{
"ins_api": {
"type": "cli_show",
"version": "1.2",
"sid": "eoc",
"outputs": {
"output": {
"input": "show port-profile usage name test",
"msg": "Success",
"code": "200",
"body": {
"TABLE_port_profile": {
"ROW_port_profile": {
"profile_name": "test",
"TABLE_interface": {
"ROW_interface": {
"interface": "Ethernet9/1"
}
}
}
}
}
}
}
}
}
switch# show port-profile usage name test | xml
<?xml version="1.0" encoding="UTF-8"?>
<ins_api>
<type>cli_show</type>
<version>1.2</version>
<sid>eoc</sid>
<outputs>
<output>
<body>
<TABLE_port_profile>
<ROW_port_profile>
<profile_name>test</profile_name>
<TABLE_interface>
<ROW_interface>
<interface>Ethernet9/1</interface>
</ROW_interface>
</TABLE_interface>
</ROW_port_profile>
</TABLE_port_profile>
</body>
<input>show port-profile usage name test</input>
<msg>Success</msg>
<code>200</code>
</output>
</outputs>
</ins_api>
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 port-profile sync-status
show port-profile sync-status
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 port-profile sync-status",
"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)
{
"ins_api": {
"type": "cli_show",
"version": "1.2",
"sid": "eoc",
"outputs": {
"output": {
"input": "show port-profile sync-status",
"msg": "Success",
"code": "200",
"body": {
"intf": "Ethernet9/1",
"inherit": "test",
"status": 0,
"sync_status": "out of sync",
"cached_cmds": "\n switchport trunk allowed vlan 56",
"errors": " interface commands cached",
"recovery": " bring interface online"
}
}
}
}
}
switch# show port-profile sync-status | xml
<?xml version="1.0" encoding="UTF-8"?>
<ins_api>
<type>cli_show</type>
<version>1.2</version>
<sid>eoc</sid>
<outputs>
<output>
<body>
<intf>Ethernet9/1</intf>
<inherit>test</inherit>
<status>offline</status>
<sync_status>out of sync</sync_status>
<cached_cmds>
switchport trunk allowed vlan 56</cached_cmds>
<errors> interface commands cached</errors>
<recovery> bring interface online</recovery>
</body>
<input>show port-profile sync-status</input>
<msg>Success</msg>
<code>200</code>
</output>
</outputs>
</ins_api>
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 config-profile
show config-profile
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 config-profile",
"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)
{
"ins_api": {
"type": "cli_show",
"version": "1.2",
"sid": "eoc",
"outputs": {
"output": {
"input": "show config-profile",
"msg": "Success",
"code": "200",
"body": {
"TABLE_conf_profile_all": {
"ROW_conf_profile_all": {
"conf_profile_name": "sample",
"conf_profile_cfg": "vrf context text-vrf"
}
}
}
}
}
}
}
switch# show config-profile | xml
<?xml version="1.0" encoding="UTF-8"?>
<ins_api>
<type>cli_show</type>
<version>1.2</version>
<sid>eoc</sid>
<outputs>
<output>
<body>
<TABLE_conf_profile_all>
<ROW_conf_profile_all>
<conf_profile_name>sample</conf_profile_name>
<conf_profile_cfg>vrf context text-vrf</conf_profile_cfg>
</ROW_conf_profile_all>
</TABLE_conf_profile_all>
</body>
<input>show config-profile</input>
<msg>Success</msg>
<code>200</code>
</output>
</outputs>
</ins_api>
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 param-list
show param-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 param-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)
{
"ins_api": {
"type": "cli_show",
"version": "1.2",
"sid": "eoc",
"outputs": {
"output": {
"input": "show param-list",
"msg": "Success",
"code": "200",
"body": {
"TABLE_param_list": {
"ROW_param_list": {
"param_list_name": "sample_param",
"param_list_var": "vrf",
"param_list_type": "string"
}
}
}
}
}
}
}
switch# show param-list | xml
<?xml version="1.0" encoding="UTF-8"?>
<ins_api>
<type>cli_show</type>
<version>1.2</version>
<sid>eoc</sid>
<outputs>
<output>
<body>
<TABLE_param_list>
<ROW_param_list>
<param_list_name>sample_param</param_list_name>
<param_list_var>vrf</param_list_var>
<param_list_type>string</param_list_type>
</ROW_param_list>
</TABLE_param_list>
</body>
<input>show param-list</input>
<msg>Success</msg>
<code>200</code>
</output>
</outputs>
</ins_api>
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 param-list
show param-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 param-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)
{
"ins_api": {
"type": "cli_show",
"version": "1.2",
"sid": "eoc",
"outputs": {
"output": {
"input": "show param-list",
"msg": "Success",
"code": "200",
"body": {
"TABLE_param_list": {
"ROW_param_list": {
"param_list_name": "sample_param",
"param_list_var": "vrf",
"param_list_type": "string"
}
}
}
}
}
}
}
switch# show param-list | xml
<?xml version="1.0" encoding="UTF-8"?>
<ins_api>
<type>cli_show</type>
<version>1.2</version>
<sid>eoc</sid>
<outputs>
<output>
<body>
<TABLE_param_list>
<ROW_param_list>
<param_list_name>sample_param</param_list_name>
<param_list_var>vrf</param_list_var>
<param_list_type>string</param_list_type>
</ROW_param_list>
</TABLE_param_list>
</body>
<input>show param-list</input>
<msg>Success</msg>
<code>200</code>
</output>
</outputs>
</ins_api>
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 |
---|
|