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:

http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html

Note: This example was added in Cisco NX-OS Release 9.2(1).

CLI Output
Switch# show ip nat max

 IP NAT Max values
====================
Max Dyn Translations:80
Max all-host:0
No.Static:1
No.Dyn:0
No.ICMP:0
====================





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:

http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html

Note: This example was added in Cisco NX-OS Release 9.2(1).

CLI Output
Switch# show ip nat statistics 

IP NAT Statistics
====================================================
Stats Collected since: Tue Jul 10 12:22:33 2018
----------------------------------------------------
Total active translations: 1
No.Static: 1
No.Dyn:    0
No.ICMP:   0 
----------------------------------------------------
Total expired Translations: 0
SYN timer expired:          0 
FIN-RST timer expired:      0 
Inactive timer expired:     0 
----------------------------------------------------
Total Hits:  0                  Total Misses:  0
In-Out Hits: 0                  In-Out Misses: 0 
Out-In Hits: 0                  Out-In Misses: 0 
----------------------------------------------------
Total SW Translated Packets: 0 
In-Out SW Translated: 0
Out-In SW Translated: 0 
----------------------------------------------------
Total SW Dropped Packets: 0 
In-Out SW Dropped: 0
Out-In SW Dropped: 0 

Address alloc. failure drop:      0 
Port alloc.  failure drop:        0 
Dyn. Translation max limit drop:  0
ICMP max limit drop:              0
Allhost max limit drop:           0
----------------------------------------------------
Total TCP session established: 0
Total TCP session closed:      0
----------------------------------------------------
----------------------------------------------------
====================================================


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:

http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html

Note: This example was added in Cisco NX-OS Release 9.2(1).

CLI Output
Switch# show ip nat timeout 

 IP NAT Timeout values (in sec)
========================
TCP:3600
UDP:3600
ICMP:3600
DYN:3600
SYN:60
FINRST:60
========================


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:

http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html

Note: This example was added in Cisco NX-OS Release 9.2(1).

CLI Output
Switch# show ip nat translations 
Pro Inside global      Inside local       Outside local      Outside global
any 2.2.2.2            1.1.1.1            ---                ---








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:

http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html

Note: This example was added in Cisco NX-OS Release 9.2(1).

CLI Output
Switch# show ip nat translations verbose 
Pro Inside global      Inside local       Outside local      Outside global
any 2.2.2.2            1.1.1.1            ---                ---
    Vrf: default    in_stats_count:0    out_stats_count:0 Group_id:0
    Format(H:M:S) Time-left :0:0:-1





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:

http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html

Note: This example was added in Cisco NX-OS Release 9.2(1).

CLI Output
Switch# show ip nat translations internal-detail 
Pro Inside global      Inside local       Outside local      Outside global
any 2.2.2.2            1.1.1.1            ---                ---
    Vrf: default    in_stats_count:0    out_stats_count:0 Group_id:0
    Format(H:M:S) Time-left :0:0:-1
    Flags:0x200041 Entry-id:0    State:0x0





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:

http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html

Note: This example was added in Cisco NX-OS Release 9.2(1).

CLI Output
Switch# show ip nat translations vrf default 
Pro Inside global      Inside local       Outside local      Outside global
any 2.2.2.2            1.1.1.1            ---                ---