Netstack Action Commands
This section contains payload examples and CLIs to demonstrate many of the netstack action command options and to show how the REST APIs correspond to the CLI commands
Clearing IP traffic
Clearing IP traffic
POST http://<mgmt0_IP>/api/mo/sys/action.json
{
"actionLSubj": {
"attributes": {
"dn": "sys/action/lsubj-[sys]"
}
"children" : [{
"ipv4InstClearTrafficStatLTask": {
"attributes": {
"adminSt": "start",
"dn":
"sys/action/lsubj-[sys]/ipv4InstClearTrafficStatLTask",
"freq": "one-shot"
}}}]}}
{
imdata:[]
}
Clears IP global statistics.
CLI Command
The CLI command below is the equivalent to the payload example displayed in the pane on the right.
clear ip traffic
For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:
http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html
See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:
https://developer.cisco.com/site/nx-os/docs/nexus-model-reference/
For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide
https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html
Clearing interface statistics
Clearing interface statistics
POST http://<mgmt0_IP>/api/mo/sys/action.json
{
"actionLSubj": {
"attributes": {
"dn": "sys/action/lsubj-[sys]"
}
"children" : [{
"ipv4InstClearIntfStatLTask": {
"attributes": {
"adminSt": "start",
"interface": "<type-with-port>"
"dn":
"sys/action/lsubj-[sys]/ipv4InstClearIntfStatLTask",
"freq": "one-shot"
}}}]}}
{
imdata:[]
}
Clears IP interface statistics.
CLI Command
The CLI command below is the equivalent to the payload example displayed in the pane on the right.
clear ip interface statistics
For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:
http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html
See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:
https://developer.cisco.com/site/nx-os/docs/nexus-model-reference/
For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide
https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html
Clearing IPv6 Traffic
Clearing IPv6 Traffic
POST http://<mgmt0_IP>/api/mo/sys/action.json
{
"actionLSubj": {
"attributes": {
"dn": "sys/action/lsubj-[sys]"
}
"children" : [{
"ipv6InstClearTrafficStatLTask": {
"attributes": {
"adminSt": "start",
"dn":
"sys/action/lsubj-[sys]/ipv6InstClearTrafficStatLTask",
"freq": "one-shot"
}}}]}}
{
imdata:[]
}
Clears IPv6 traffic.
CLI Command
The CLI command below is the equivalent to the payload example displayed in the pane on the right. .
clear ipv6 traffic
For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:
http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html
See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:
https://developer.cisco.com/site/nx-os/docs/nexus-model-reference/
For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide
https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html
Clearing IPv6 Statistics
Clearing IPv6 Statistics
POST http://10.77.143.51/api/mo/sys/action.json
{
"actionLSubj": {
"attributes": {
"dn": "sys/action/lsubj-[sys]"
}
"children" : [{
"ipv6InstClearGlobalStatLTask": {
"attributes": {
"adminSt": "start",
"dn":
"sys/action/lsubj-[sys]/ipv6InstClearGlobalStatLTask",
"freq": "one-shot"
}}}]}}
{
imdata:[]
}
Clears IPv6 statistics.
CLI Command
The CLI command below is the equivalent to the payload example displayed in the pane on the right.
clear ipv6 statistics
For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:
http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html
See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:
https://developer.cisco.com/site/nx-os/docs/nexus-model-reference/
For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide
https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html
Clearing IPv6 Interface Statistics
Clearing IPv6 Interface Statistics
POST http://10.77.143.51/api/mo/sys/action.json
{
"actionLSubj": {
"attributes": {
"dn": "sys/action/lsubj-[sys]"
}
"children" : [{
"ipv6InstClearIntfStatLTask": {
"attributes": {
"adminSt": "start",
"interface": "<type-with-port>"
"dn":
"sys/action/lsubj-[sys]/ipv6InstClearIntfStatLTask",
"freq": "one-shot"
}}}]}}
{
imdata:[]
}
Clears IPv6 interface statistics.
CLI Command
The CLI command below is the equivalent to the payload example displayed in the pane on the right.
clear ipv6 interface statistics
For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:
http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html
See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:
https://developer.cisco.com/site/nx-os/docs/nexus-model-reference/
For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide
https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html