show environment

show environment

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 environment ",
  "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_tempinfo": {
                        "ROW_tempinfo": [
                            {
                                "alarmstatus": "Ok", 
                                "curtemp": "47", 
                                "majthres": "92", 
                                "minthres": "85", 
                                "sensor": "ASIC", 
                                "tempmod": "1", 
                                "temptype": "Control"
                            }, 
                            {
                                "alarmstatus": "Ok", 
                                "curtemp": "23", 
                                "majthres": "45", 
                                "minthres": "31", 
                                "sensor": "INTAKE", 
                                "tempmod": "1", 
                                "temptype": "Control"
                            }, 
                            {
                                "alarmstatus": "Ok", 
                                "curtemp": "47", 
                                "majthres": "110", 
                                "minthres": "90", 
                                "sensor": "ASIC", 
                                "tempmod": "1", 
                                "temptype": "Monitor"
                            }, 
                            {
                                "alarmstatus": "Ok", 
                                "curtemp": "23", 
                                "majthres": "70", 
                                "minthres": "40", 
                                "sensor": "INTAKE", 
                                "tempmod": "1", 
                                "temptype": "Monitor"
                            }
                        ]
                    }, 
                    "fandetails_3k": {
                        "TABLE_fan_zone_speed": {
                            "ROW_fan_zone_speed": {
                                "speed": 0, 
                                "zone": "1"
                            }
                        }, 
                        "TABLE_faninfo": {
                            "ROW_faninfo": [
                                {
                                    "fandir": "front-to-back", 
                                    "fanhwver": "0.0", 
                                    "fanmodel": "NXA-FAN-30CFM-F", 
                                    "fanname": "Fan1(sys_fan1)", 
                                    "fanstatus": "Ok"
                                }, 
                                {
                                    "fandir": "front-to-back", 
                                    "fanhwver": "0.0", 
                                    "fanmodel": "NXA-FAN-30CFM-F", 
                                    "fanname": "Fan2(sys_fan2)", 
                                    "fanstatus": "Ok"
                                }, 
                                {
                                    "fandir": "front-to-back", 
                                    "fanhwver": "0.0", 
                                    "fanmodel": "NXA-FAN-30CFM-F", 
                                    "fanname": "Fan3(sys_fan3)", 
                                    "fanstatus": "Ok"
                                }, 
                                {
                                    "fandir": "front-to-back", 
                                    "fanhwver": "0.0", 
                                    "fanmodel": "NXA-FAN-30CFM-F", 
                                    "fanname": "Fan4(sys_fan4)", 
                                    "fanstatus": "Ok"
                                }, 
                                {
                                    "fandir": "front-to-back", 
                                    "fanhwver": "--", 
                                    "fanmodel": "N2200-PAC-400W", 
                                    "fanname": "Fan_in_PS1", 
                                    "fanstatus": "Shutdown"
                                }, 
                                {
                                    "fandir": "front-to-back", 
                                    "fanhwver": "--", 
                                    "fanmodel": "N2200-PAC-400W", 
                                    "fanname": "Fan_in_PS2", 
                                    "fanstatus": "Ok"
                                }
                            ]
                        }, 
                        "fan_filter_status": "NotSupported"
                    }, 
                    "powersup": {
                        "TABLE_mod_pow_info": {
                            "ROW_mod_pow_info": {
                                "amps_alloced": "29.00", 
                                "amps_requested": "29.00", 
                                "mod_model": "N3K-C3548P-10GX", 
                                "modnum": "1", 
                                "modstatus_3k": "powered-up", 
                                "watts_alloced": "348.00", 
                                "watts_requested": "348.00"
                            }
                        }, 
                        "TABLE_psinfo": {
                            "ROW_psinfo": [
                                {
                                    "amps": "33.00", 
                                    "input_type": "AC", 
                                    "ps_status_3k": "shutdown", 
                                    "psmodel": "N2200-PAC-400W", 
                                    "psnum": 1, 
                                    "watts": "396.00"
                                }, 
                                {
                                    "amps": "33.00", 
                                    "input_type": "AC", 
                                    "ps_status_3k": "ok", 
                                    "psmodel": "N2200-PAC-400W", 
                                    "psnum": 2, 
                                    "watts": "396.00"
                                }
                            ]
                        }, 
                        "power_summary": {
                            "available_pow": "444.00 W", 
                            "pow_used_by_mods": "0.00 W", 
                            "ps_redun_mode_3k": "Redundant", 
                            "ps_redun_op_mode": "Non-redundant", 
                            "reserve_sup": "348.00 W", 
                            "tot_pow_capacity": "792.00 W"
                        }, 
                        "voltage_level": 12
                    }
                }, 
                "code": "200", 
                "input": "show environment ", 
                "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 environment command, see the CLI command reference:

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

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

CLI Output
Switch# show environment 




Power Supply:
Voltage: 12 Volts
-----------------------------------------------------------
PS  Model                Input Power       Current   Status
                         Type  (Watts)     (Amps)
-----------------------------------------------------------
1   N2200-PAC-400W       AC  396.00       33.00   shutdown
2 N2200-PAC-400W AC 396.00 33.00 ok
Mod Model Power Current Power Current Status Requested Requested Allocated Allocated
(Watts) (Amps) (Watts) (Amps)
--- ---------------------- ------- ---------- --------- ---------- ---------- 1 N3K-C3548P-10GX 348.00 29.00 348.00 29.00 powered-up
Power Usage Summary: -------------------- Power Supply redundancy mode: Redundant Power Supply redundancy operational mode: Non-redundant Total Power Capacity 792.00 W Power reserved for Supervisor(s) 348.00 W Power currently used by Modules 0.00 W ------------- Total Power Available 444.00 W ------------- Fan: --------------------------------------------------------------------------- Fan Model Hw Direction Status --------------------------------------------------------------------------- Fan1(sys_fan1) NXA-FAN-30CFM-F 0.0 front-to-back Ok Fan2(sys_fan2) NXA-FAN-30CFM-F 0.0 front-to-back Ok Fan3(sys_fan3) NXA-FAN-30CFM-F 0.0 front-to-back Ok Fan4(sys_fan4) NXA-FAN-30CFM-F 0.0 front-to-back Ok Fan_in_PS1 N2200-PAC-400W -- front-to-back Shutdown Fan_in_PS2 N2200-PAC-400W -- front-to-back Ok Fan Zone Speed: Zone 1: 0x28 Fan Air Filter : NotSupported Control Temperature ------------------------------------------------------------------------- Module Sensor MajorThresh MinorThres CurTemp Status (Celsius) (Celsius) (Celsius)
------------------------------------------------------------------------- 1 ASIC 92 85 47 Ok
1 INTAKE 45 31 23 Ok
Monitor Temperature ------------------------------------------------------------------------- Module Sensor MajorThresh MinorThres CurTemp Status (Celsius) (Celsius) (Celsius)
------------------------------------------------------------------------- 1 ASIC 110 90 47 Ok
1 INTAKE 70 40 23 Ok

show environment fan

show environment fan

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 environment fan ",
  "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": {
                    "fandetails_3k": {
                        "TABLE_fan_zone_speed": {
                            "ROW_fan_zone_speed": {
                                "speed": 0, 
                                "zone": "1"
                            }
                        }, 
                        "TABLE_faninfo": {
                            "ROW_faninfo": [
                                {
                                    "fandir": "front-to-back", 
                                    "fanhwver": "0.0", 
                                    "fanmodel": "NXA-FAN-30CFM-F", 
                                    "fanname": "Fan1(sys_fan1)", 
                                    "fanstatus": "Ok"
                                }, 
                                {
                                    "fandir": "front-to-back", 
                                    "fanhwver": "0.0", 
                                    "fanmodel": "NXA-FAN-30CFM-F", 
                                    "fanname": "Fan2(sys_fan2)", 
                                    "fanstatus": "Ok"
                                }, 
                                {
                                    "fandir": "front-to-back", 
                                    "fanhwver": "0.0", 
                                    "fanmodel": "NXA-FAN-30CFM-F", 
                                    "fanname": "Fan3(sys_fan3)", 
                                    "fanstatus": "Ok"
                                }, 
                                {
                                    "fandir": "front-to-back", 
                                    "fanhwver": "0.0", 
                                    "fanmodel": "NXA-FAN-30CFM-F", 
                                    "fanname": "Fan4(sys_fan4)", 
                                    "fanstatus": "Ok"
                                }, 
                                {
                                    "fandir": "front-to-back", 
                                    "fanhwver": "--", 
                                    "fanmodel": "N2200-PAC-400W", 
                                    "fanname": "Fan_in_PS1", 
                                    "fanstatus": "Shutdown"
                                }, 
                                {
                                    "fandir": "front-to-back", 
                                    "fanhwver": "--", 
                                    "fanmodel": "N2200-PAC-400W", 
                                    "fanname": "Fan_in_PS2", 
                                    "fanstatus": "Ok"
                                }
                            ]
                        }, 
                        "fan_filter_status": "NotSupported"
                    }
                }, 
                "code": "200", 
                "input": "show environment fan ", 
                "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 environment fan command, see the CLI command reference:

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

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

CLI Output
Switch# show environment fan 




Fan:
---------------------------------------------------------------------------
Fan             Model                Hw     Direction       Status
---------------------------------------------------------------------------
Fan1(sys_fan1)  NXA-FAN-30CFM-F      0.0    front-to-back   Ok 
Fan2(sys_fan2)  NXA-FAN-30CFM-F      0.0    front-to-back   Ok 
Fan3(sys_fan3)  NXA-FAN-30CFM-F      0.0    front-to-back   Ok 
Fan4(sys_fan4)  NXA-FAN-30CFM-F      0.0    front-to-back   Ok 
Fan_in_PS1      N2200-PAC-400W       --     front-to-back   Shutdown
Fan_in_PS2      N2200-PAC-400W       --     front-to-back   Ok
Fan Zone Speed: Zone 1: 0x28
Fan Air Filter : NotSupported

show environment fan detail

show environment fan 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 environment fan 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": {
        "outputs": {
            "output": {
                "body": {
                    "fandetails_3k": {
                        "TABLE_fan_zone_speed": {
                            "ROW_fan_zone_speed": {
                                "speed": 0, 
                                "zone": "1"
                            }
                        }, 
                        "TABLE_faninfo": {
                            "ROW_faninfo": [
                                {
                                    "fandir": "front-to-back", 
                                    "fanhwver": "0.0", 
                                    "fanmodel": "NXA-FAN-30CFM-F", 
                                    "fanname": "Fan1(sys_fan1)", 
                                    "fanstatus": "Ok"
                                }, 
                                {
                                    "fandir": "front-to-back", 
                                    "fanhwver": "0.0", 
                                    "fanmodel": "NXA-FAN-30CFM-F", 
                                    "fanname": "Fan2(sys_fan2)", 
                                    "fanstatus": "Ok"
                                }, 
                                {
                                    "fandir": "front-to-back", 
                                    "fanhwver": "0.0", 
                                    "fanmodel": "NXA-FAN-30CFM-F", 
                                    "fanname": "Fan3(sys_fan3)", 
                                    "fanstatus": "Ok"
                                }, 
                                {
                                    "fandir": "front-to-back", 
                                    "fanhwver": "0.0", 
                                    "fanmodel": "NXA-FAN-30CFM-F", 
                                    "fanname": "Fan4(sys_fan4)", 
                                    "fanstatus": "Ok"
                                }, 
                                {
                                    "fandir": "front-to-back", 
                                    "fanhwver": "--", 
                                    "fanmodel": "N2200-PAC-400W", 
                                    "fanname": "Fan_in_PS1", 
                                    "fanstatus": "Shutdown"
                                }, 
                                {
                                    "fandir": "front-to-back", 
                                    "fanhwver": "--", 
                                    "fanmodel": "N2200-PAC-400W", 
                                    "fanname": "Fan_in_PS2", 
                                    "fanstatus": "Ok"
                                }
                            ]
                        }, 
                        "TABLE_fantray": {
                            "ROW_fantray": [
                                {
                                    "fandir": "front-to-back", 
                                    "fanname": "Fan1(sys_fan1)", 
                                    "fannum": 0, 
                                    "fanperc": "40", 
                                    "fanrpm": "6666"
                                }, 
                                {
                                    "fandir": "front-to-back", 
                                    "fanname": "Fan1(sys_fan1)", 
                                    "fannum": 0, 
                                    "fanperc": "40", 
                                    "fanrpm": "4639"
                                }, 
                                {
                                    "fandir": "front-to-back", 
                                    "fanname": "Fan2(sys_fan2)", 
                                    "fannum": 0, 
                                    "fanperc": "40", 
                                    "fanrpm": "6617"
                                }, 
                                {
                                    "fandir": "front-to-back", 
                                    "fanname": "Fan2(sys_fan2)", 
                                    "fannum": 0, 
                                    "fanperc": "40", 
                                    "fanrpm": "4687"
                                }, 
                                {
                                    "fandir": "front-to-back", 
                                    "fanname": "Fan3(sys_fan3)", 
                                    "fannum": 0, 
                                    "fanperc": "40", 
                                    "fanrpm": "6633"
                                }, 
                                {
                                    "fandir": "front-to-back", 
                                    "fanname": "Fan3(sys_fan3)", 
                                    "fannum": 0, 
                                    "fanperc": "40", 
                                    "fanrpm": "4745"
                                }, 
                                {
                                    "fandir": "front-to-back", 
                                    "fanname": "Fan4(sys_fan4)", 
                                    "fannum": 0, 
                                    "fanperc": "40", 
                                    "fanrpm": "6521"
                                }, 
                                {
                                    "fandir": "front-to-back", 
                                    "fanname": "Fan4(sys_fan4)", 
                                    "fannum": 0, 
                                    "fanperc": "40", 
                                    "fanrpm": "4745"
                                }
                            ]
                        }, 
                        "fan_filter_status": "NotSupported"
                    }
                }, 
                "code": "200", 
                "input": "show environment fan detail ", 
                "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 environment fan detail command, see the CLI command reference:

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

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

CLI Output
Switch# show environment fan detail 




Fan:
---------------------------------------------------------------------------
Fan             Model                Hw     Direction       Status
---------------------------------------------------------------------------
Fan1(sys_fan1)  NXA-FAN-30CFM-F      0.0    front-to-back   Ok 
Fan2(sys_fan2)  NXA-FAN-30CFM-F      0.0    front-to-back   Ok 
Fan3(sys_fan3)  NXA-FAN-30CFM-F      0.0    front-to-back   Ok 
Fan4(sys_fan4)  NXA-FAN-30CFM-F      0.0    front-to-back   Ok 
Fan_in_PS1      N2200-PAC-400W       --     front-to-back   Shutdown
Fan_in_PS2      N2200-PAC-400W       --     front-to-back   Ok
Fan Zone Speed: Zone 1: 0x28
Fan Air Filter : NotSupported
Fan:
------------------------------------------------------------------
 Fan Tray            Fan   Fan Direction   Speed(%)  Speed(RPM)
------------------------------------------------------------------
Fan1(sys_fan1)      fan1    front-to-back    40        6683
Fan1(sys_fan1) fan2 front-to-back 40 4736
Fan2(sys_fan2) fan1 front-to-back 40 6617
Fan2(sys_fan2) fan2 front-to-back 40 4687
Fan3(sys_fan3) fan1 front-to-back 40 6633
Fan3(sys_fan3) fan2 front-to-back 40 4745
Fan4(sys_fan4) fan1 front-to-back 40 6569
Fan4(sys_fan4) fan2 front-to-back 40 4812

show environment power

show environment power

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 environment power ",
  "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": {
                    "powersup": {
                        "TABLE_mod_pow_info": {
                            "ROW_mod_pow_info": {
                                "amps_alloced": "29.00", 
                                "amps_requested": "29.00", 
                                "mod_model": "N3K-C3548P-10GX", 
                                "modnum": "1", 
                                "modstatus_3k": "powered-up", 
                                "watts_alloced": "348.00", 
                                "watts_requested": "348.00"
                            }
                        }, 
                        "TABLE_psinfo": {
                            "ROW_psinfo": [
                                {
                                    "amps": "33.00", 
                                    "input_type": "AC", 
                                    "ps_status_3k": "shutdown", 
                                    "psmodel": "N2200-PAC-400W", 
                                    "psnum": 1, 
                                    "watts": "396.00"
                                }, 
                                {
                                    "amps": "33.00", 
                                    "input_type": "AC", 
                                    "ps_status_3k": "ok", 
                                    "psmodel": "N2200-PAC-400W", 
                                    "psnum": 2, 
                                    "watts": "396.00"
                                }
                            ]
                        }, 
                        "power_summary": {
                            "available_pow": "444.00 W", 
                            "pow_used_by_mods": "0.00 W", 
                            "ps_redun_mode_3k": "Redundant", 
                            "ps_redun_op_mode": "Non-redundant", 
                            "reserve_sup": "348.00 W", 
                            "tot_pow_capacity": "792.00 W"
                        }, 
                        "voltage_level": 12
                    }
                }, 
                "code": "200", 
                "input": "show environment power ", 
                "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 environment power command, see the CLI command reference:

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

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

CLI Output
Switch# show environment power 
Power Supply:
Voltage: 12 Volts
-----------------------------------------------------------
PS  Model                Input Power       Current   Status
                         Type  (Watts)     (Amps)
-----------------------------------------------------------
1   N2200-PAC-400W       AC  396.00       33.00   shutdown
2 N2200-PAC-400W AC 396.00 33.00 ok
Mod Model Power Current Power Current Status Requested Requested Allocated Allocated
(Watts) (Amps) (Watts) (Amps)
--- ---------------------- ------- ---------- --------- ---------- ---------- 1 N3K-C3548P-10GX 348.00 29.00 348.00 29.00 powered-up
Power Usage Summary: -------------------- Power Supply redundancy mode: Redundant Power Supply redundancy operational mode: Non-redundant Total Power Capacity 792.00 W Power reserved for Supervisor(s) 348.00 W Power currently used by Modules 0.00 W ------------- Total Power Available 444.00 W -------------

show environment power input

show environment power input

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 environment power input ",
  "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": {
                    "powersup": {
                        "TABLE_psinputinfo_n3k": {
                            "ROW_psinputinfo_n3k": {
                                "ps_input_current": [
                                    "--", 
                                    "0.41"
                                ], 
                                "ps_input_voltage": [
                                    "--", 
                                    "231.50"
                                ], 
                                "ps_output_current": [
                                    "--", 
                                    "65.00"
                                ], 
                                "ps_output_voltage": [
                                    "--", 
                                    "150.54"
                                ], 
                                "ps_slot": [
                                    "1", 
                                    "2"
                                ], 
                                "ps_state": [
                                    "absent", 
                                    "ok"
                                ]
                            }
                        }
                    }
                }, 
                "code": "200", 
                "input": "show environment power input ", 
                "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 environment power input command, see the CLI command reference:

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

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

CLI Output
Switch# show environment power input 
Power Supply Input:
----------------------------------------------------------
PS  Voltage    Current    Power      Status
    (Volt)     (Amp)      (Watt)
----------------------------------------------------------
1          --         --           --  absent
2 231.50 0.40 92.24 ok
----------------------------------------------------------

show environment temperature

show environment temperature

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 environment temperature ",
  "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_tempinfo": {
                        "ROW_tempinfo": [
                            {
                                "alarmstatus": "Ok", 
                                "curtemp": "47", 
                                "majthres": "92", 
                                "minthres": "85", 
                                "sensor": "ASIC", 
                                "tempmod": "1", 
                                "temptype": "Control"
                            }, 
                            {
                                "alarmstatus": "Ok", 
                                "curtemp": "23", 
                                "majthres": "45", 
                                "minthres": "31", 
                                "sensor": "INTAKE", 
                                "tempmod": "1", 
                                "temptype": "Control"
                            }, 
                            {
                                "alarmstatus": "Ok", 
                                "curtemp": "47", 
                                "majthres": "110", 
                                "minthres": "90", 
                                "sensor": "ASIC", 
                                "tempmod": "1", 
                                "temptype": "Monitor"
                            }, 
                            {
                                "alarmstatus": "Ok", 
                                "curtemp": "23", 
                                "majthres": "70", 
                                "minthres": "40", 
                                "sensor": "INTAKE", 
                                "tempmod": "1", 
                                "temptype": "Monitor"
                            }
                        ]
                    }
                }, 
                "code": "200", 
                "input": "show environment temperature ", 
                "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 environment temperature command, see the CLI command reference:

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

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

CLI Output
Switch# show environment temperature 

 Control Temperature 
-------------------------------------------------------------------------
Module  Sensor             MajorThresh   MinorThres   CurTemp     Status 
                           (Celsius)     (Celsius)   (Celsius)
------------------------------------------------------------------------- 1 ASIC 92 85 47 Ok
1 INTAKE 45 31 23 Ok
Monitor Temperature ------------------------------------------------------------------------- Module Sensor MajorThresh MinorThres CurTemp Status (Celsius) (Celsius) (Celsius)
------------------------------------------------------------------------- 1 ASIC 110 90 47 Ok
1 INTAKE 70 40 23 Ok