show system internal aclqos platform mtc info tcam 0 region nat

show system internal aclqos platform mtc info tcam 0 region nat

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 system internal aclqos platform mtc info tcam 0 region nat",
  "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_module": {
                        "ROW_module": {
                            "TABLE_tcam_region": {
                                "ROW_tcam_region": [
                                    {
                                        "range_high": "47", 
                                        "range_low": "0", 
                                        "tcam_name": "sup tcam"
                                    }, 
                                    {
                                        "range_high": "1151", 
                                        "range_low": "512", 
                                        "tcam_name": "vacl tcam"
                                    }, 
                                    {
                                        "range_high": "511", 
                                        "range_low": "112", 
                                        "tcam_name": "ifacl tcam"
                                    }, 
                                    {
                                        "range_high": "4031", 
                                        "range_low": "3840", 
                                        "tcam_name": "qos tcam"
                                    }, 
                                    {
                                        "range_high": "0", 
                                        "range_low": "0", 
                                        "tcam_name": "pacl tcam"
                                    }, 
                                    {
                                        "range_high": "0", 
                                        "range_low": "0", 
                                        "tcam_name": "rbacl tcam"
                                    }, 
                                    {
                                        "range_high": "0", 
                                        "range_low": "0", 
                                        "tcam_name": "span tcam"
                                    }, 
                                    {
                                        "range_high": "3583", 
                                        "range_low": "2048", 
                                        "tcam_name": "racl tcam"
                                    }, 
                                    {
                                        "range_high": "3839", 
                                        "range_low": "3584", 
                                        "tcam_name": "e-racl tcam"
                                    }, 
                                    {
                                        "range_high": "1791", 
                                        "range_low": "1152", 
                                        "tcam_name": "e-vacl tcam"
                                    }, 
                                    {
                                        "range_high": "0", 
                                        "range_low": "0", 
                                        "tcam_name": "qoslbl tcam"
                                    }, 
                                    {
                                        "range_high": "0", 
                                        "range_low": "0", 
                                        "tcam_name": "ipsg tcam"
                                    }, 
                                    {
                                        "range_high": "0", 
                                        "range_low": "0", 
                                        "tcam_name": "arpacl tcam"
                                    }, 
                                    {
                                        "range_high": "0", 
                                        "range_low": "0", 
                                        "tcam_name": "ipv6-racl tcam"
                                    }, 
                                    {
                                        "range_high": "0", 
                                        "range_low": "0", 
                                        "tcam_name": "ipv6-e-racl tcam"
                                    }, 
                                    {
                                        "range_high": "0", 
                                        "range_low": "0", 
                                        "tcam_name": "ipv6-sup tcam"
                                    }, 
                                    {
                                        "range_high": "0", 
                                        "range_low": "0", 
                                        "tcam_name": "ipv6-qos tcam"
                                    }, 
                                    {
                                        "range_high": "2047", 
                                        "range_low": "1792", 
                                        "tcam_name": "nat tcam"
                                    }, 
                                    {
                                        "range_high": "4095", 
                                        "range_low": "4032", 
                                        "tcam_name": "e-qos tcam"
                                    }, 
                                    {
                                        "range_high": "0", 
                                        "range_low": "0", 
                                        "tcam_name": "pbr tcam"
                                    }, 
                                    {
                                        "range_high": "0", 
                                        "range_low": "0", 
                                        "tcam_name": "ipv6-pbr tcam"
                                    }, 
                                    {
                                        "range_high": "111", 
                                        "range_low": "48", 
                                        "tcam_name": "Copp tcam"
                                    }
                                ]
                            }, 
                            "TABLE_tcam_type": {
                                "ROW_tcam_type": {
                                    "end": "2047", 
                                    "size": "256", 
                                    "start": "1792", 
                                    "tcam_type": "nat tcam", 
                                    "valid": "1"
                                }
                            }, 
                            "asic_id": "0", 
                            "in_use_entry": "0", 
                            "module_number": "1", 
                            "range_bmp": "0-0"
                        }
                    }
                }, 
                "code": "200", 
                "input": "show system internal aclqos platform mtc info tcam 0 region nat", 
                "msg": "Success"
            }
        }, 
        "sid": "eoc", 
        "type": "cli_show", 
        "version": "1.0"
    }
}

The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show system internal aclqos platform mtc info tcam 0 region nat command, see the CLI command reference:

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

CLI Output
Switch# show system internal aclqos platform mtc info tcam 0 region nat

slot  1
=======

------------------------------------------------------------------------------
 TCAM configuration for asic id 0:
------------------------------------------------------------------------------
[        sup tcam]: range     0 -   47
[ vacl tcam]: range 512 - 1151
[ ifacl tcam]: range 112 - 511
[ qos tcam]: range 3840 - 4031
[ pacl tcam]: range 0 - 0
[ rbacl tcam]: range 0 - 0
[ span tcam]: range 0 - 0
[ racl tcam]: range 2048 - 3583
[ e-racl tcam]: range 3584 - 3839
[ e-vacl tcam]: range 1152 - 1791
[ qoslbl tcam]: range 0 - 0
[ ipsg tcam]: range 0 - 0
[ arpacl tcam]: range 0 - 0
[ ipv6-racl tcam]: range 0 - 0
[ipv6-e-racl tcam]: range 0 - 0
[ ipv6-sup tcam]: range 0 - 0
[ ipv6-qos tcam]: range 0 - 0
[ nat tcam]: range 1792 - 2047 * [ e-qos tcam]: range 4032 - 4095
[ pbr tcam]: range 0 - 0
[ ipv6-pbr tcam]: range 0 - 0
[ Copp tcam]: range 48 - 111
TCAM [nat tcam]: [v:1, size:256, start:1792 end:2047] In use tcam entries: 0 0-0 Link Local Entries: ------------------------------------------------------------------------------