- Cisco Nexus 9000 Series NX-API CLI Reference, Release 7.x
- About NX-API CLI
- Access-List Commands
- BFD Commands
- BGP Commands
- CDP Commands
- DHCP Commands
- Diagnostic Commands
- Environment Commands
- Flow Commands
- Hardware Commands
- Interface Commands
- Inventory Commands
- LLDP Commands
- Module Commands
- NVE Commands
- RADIUS Commands
- SNMP Commands
- System Commands
- TACACS Commands
- Version Commands
Copy
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 flow cache ipv6 ",
"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": {
"outputs": {
"output": {
"body": {
"TABLE_flow_cache": {
"ROW_flow_cache": [
{
"bridge-domain-id": "4138",
"byte-count": "268",
"destination-ip": "79::2",
"destination-port": "3784",
"flow-cache-index": "1",
"flow-end": "985743",
"flow-start": "984066",
"flow-type": "IPv6",
"if-id": "436227072",
"packet-count": "2",
"protocol": "17",
"source-ip": "79::1",
"source-port": "49157",
"tcp-flags": "537538560"
},
{
"bridge-domain-id": "4138",
"byte-count": "9112",
"destination-ip": "79::1",
"destination-port": "3785",
"flow-cache-index": "2",
"flow-end": "985736",
"flow-start": "983822",
"flow-type": "IPv6",
"if-id": "436227072",
"packet-count": "68",
"protocol": "17",
"source-ip": "79::1",
"source-port": "49157",
"tcp-flags": "0"
},
{
"bridge-domain-id": "4138",
"byte-count": "8844",
"destination-ip": "79::2",
"destination-port": "3785",
"flow-cache-index": "3",
"flow-end": "985509",
"flow-start": "983067",
"flow-type": "IPv6",
"if-id": "436227072",
"packet-count": "66",
"protocol": "17",
"source-ip": "79::2",
"source-port": "49154",
"tcp-flags": "0"
}
]
}
},
"code": "200",
"input": "show flow cache ipv6 ",
"msg": "Success"
}
},
"sid": "eoc",
"type": "cli_show",
"version": "1.0"
}
}
show flow cache ipv6
The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show flow cache ipv6 command, see the CLI command reference:
Note: This example was added in Cisco NX-OS Release 7.0(3)I7(4).
CLI Output |
---|
|
show flow exporter ee1
The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show flow exporter ee1 command, see the CLI command reference:
Note: This example was added in Cisco NX-OS Release 7.0(3)I7(4).
CLI Output |
---|
|
show flow interface eth1/1
The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show flow interface eth1/1 command, see the CLI command reference:
Note: This example was added in Cisco NX-OS Release 7.0(3)I7(4).
CLI Output |
---|
|
show flow internal ddb db
The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show flow internal ddb db command, see the CLI command reference:
Note: This example was added in Cisco NX-OS Release 7.0(3)I7(4).
CLI Output |
---|
|
show flow internal lif status
The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show flow internal lif status command, see the CLI command reference:
Note: This example was added in Cisco NX-OS Release 7.0(3)I7(4).
CLI Output |
---|
|
show flow monitor
The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show flow monitor command, see the CLI command reference:
Note: This example was added in Cisco NX-OS Release 7.0(3)I7(4).
CLI Output |
---|
|
show flow record
The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show flow record command, see the CLI command reference:
Note: This example was added in Cisco NX-OS Release 7.0(3)I7(4).
CLI Output |
---|
|
show flow timeout
The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show flow timeout command, see the CLI command reference:
Note: This example was added in Cisco NX-OS Release 7.0(3)I7(4).
CLI Output |
---|
|