show ip nat max
show ip nat max
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 ip nat max",
"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.0",
"sid": "eoc",
"outputs": {
"output": {
"input": "show ip nat max",
"msg": "Success",
"code": "200",
"body": {
"max_dyn_translations": "80",
"max_all_host": "0",
"static_translations": 1,
"dynamic_translations": 0,
"icmp_translations": 0
}
}
}
}
}
The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show ip nat max command, see the CLI command reference:
Note: This example was added in Cisco NX-OS Release 9.2(1).
CLI Output |
---|
|
show ip nat statistics
show ip nat statistics
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 ip nat statistics ",
"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.0",
"sid": "eoc",
"outputs": {
"output": {
"input": "show ip nat statistics",
"msg": "Success",
"code": "200",
"body": {
"last_clear_time": "Tue Jul 10 12:22:33 2018\n",
"total_active_translations": 1,
"static_translations": 1,
"dynamic_translations": 0,
"icmp_translations": 0,
"total_exp_translations": 0,
"syn_exp_translations": 0,
"finrst_exp_translations": 0,
"inactive_exp_translations": 0,
"total_hits": 0,
"total_misses": 0,
"io_hits": 0,
"io_misses": 0,
"oi_hits": 0,
"oi_misses": 0,
"total_sw_translated": 0,
"io_sw_translated": 0,
"oi_sw_translated": 0,
"total_sw_dropped": 0,
"io_sw_dropped": 0,
"oi_sw_dropped": 0,
"addr_alloc_fail_drop": 0,
"port_alloc_fail_drop": 0,
"dyn_trans_maxlimit_drop": 0,
"icmp_maxlimit_drop": 0,
"allhost_maxlimit_drop": 0,
"total_tcp_session_created": 0,
"total_tcp_session_closed": 0
}
}
}
}
}
The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show ip nat statistics command, see the CLI command reference:
Note: This example was added in Cisco NX-OS Release 9.2(1).
CLI Output |
---|
|
show ip nat timeout
show ip nat timeout
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 ip nat timeout ",
"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.0",
"sid": "eoc",
"outputs": {
"output": {
"input": "show ip nat timeout",
"msg": "Success",
"code": "200",
"body": {
"tcp_timeout": "3600",
"udp_timeout": "3600",
"icmp_timeout": "3600",
"dynamic_timeout": "3600",
"syn_timeout": 60,
"finrst_timeout": "60"
}
}
}
}
}
The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show ip nat timeout command, see the CLI command reference:
Note: This example was added in Cisco NX-OS Release 9.2(1).
CLI Output |
---|
|
show ip nat translations
show ip nat translations
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 ip nat translations ",
"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.0",
"sid": "eoc",
"outputs": {
"output": {
"input": "show ip nat translations",
"msg": "Success",
"code": "200",
"body": {
"TABLE_nat_translation": {
"ROW_nat_translation": {
"Protocol": "any",
"Inside_global_IP_V4_Address": "2.2.2.2",
"Inside_local_IP_V4_Address": "1.1.1.1"
}
}
}
}
}
}
}
The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show ip nat translations command, see the CLI command reference:
Note: This example was added in Cisco NX-OS Release 9.2(1).
CLI Output |
---|
|
show ip nat translations verbose
show ip nat translations verbose
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 ip nat translations verbose ",
"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.0",
"sid": "eoc",
"outputs": {
"output": {
"input": "show ip nat translations verbose",
"msg": "Success",
"code": "200",
"body": {
"TABLE_nat_translation": {
"ROW_nat_translation": {
"Protocol": "any",
"Inside_global_IP_V4_Address": "2.2.2.2",
"Inside_local_IP_V4_Address": "1.1.1.1",
"VRF": "default",
"In_stats_count": "0",
"Out_stats_count": "0",
"Group_id": "0",
"Time_left": "0:0:-1"
}
}
}
}
}
}
}
The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show ip nat translations verbose command, see the CLI command reference:
Note: This example was added in Cisco NX-OS Release 9.2(1).
CLI Output |
---|
|
show ip nat translations internal-detail
show ip nat translations internal-detail
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 ip nat translations internal-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)
{
"ins_api": {
"type": "cli_show",
"version": "1.0",
"sid": "eoc",
"outputs": {
"output": {
"input": "show ip nat translations internal-detail ",
"msg": "Success",
"code": "200",
"body": {
"TABLE_nat_translation": {
"ROW_nat_translation": {
"Protocol": "any",
"Inside_global_IP_V4_Address": "2.2.2.2",
"Inside_local_IP_V4_Address": "1.1.1.1",
"VRF": "default",
"In_stats_count": "0",
"Out_stats_count": "0",
"Group_id": "0",
"Time_left": "0:0:-1",
"Flags": "200041",
"Entry_id": "0 ",
"State": "0"
}
}
}
}
}
}
}
The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show ip nat translations internal-detail command, see the CLI command reference:
Note: This example was added in Cisco NX-OS Release 9.2(1).
CLI Output |
---|
|
show ip nat translations vrf default
show ip nat translations vrf default
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 ip nat translations vrf default ",
"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.0",
"sid": "eoc",
"outputs": {
"output": {
"input": " show ip nat translations vrf default ",
"msg": "Success",
"code": "200",
"body": {
"TABLE_nat_translation": {
"ROW_nat_translation": {
"Protocol": "any",
"Inside_global_IP_V4_Address": "2.2.2.2",
"Inside_local_IP_V4_Address": "1.1.1.1"
}
}
}
}
}
}
}
The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show ip nat translations vrf default command, see the CLI command reference:
Note: This example was added in Cisco NX-OS Release 9.2(1).
CLI Output |
---|
|