Setting a temperature threshold on a Cisco router lets you monitor the internal hardware temperature and get alerted before components overheat and cause failures. This is done through the router's environmental monitoring features, usually via Simple Network Management Protocol (SNMP) or by configuring the built-in temperature thresholds in the device's IOS. You'll need administrative access to the router (via console, SSH, or Telnet) and, if you want alerts, an SNMP management station or a syslog server.

What You'll Need

  • Administrative (privileged EXEC or configuration) access to the Cisco router.
  • The router's IP address and credentials (username/password or enable secret).
  • If you want external alerts: an SNMP manager (like PRTG, SolarWinds, or Zabbix) or a syslog server.
  • Basic knowledge of Cisco IOS command-line interface (CLI) commands.

Step-by-Step

The exact commands depend on your router's IOS version and platform. The following steps use standard IOS commands that work on most modern Cisco routers (like ISR 4000 series, ASR 1000, etc.). For older models or different IOS versions (like IOS-XE), the commands may be slightly different, but the concepts are the same.

  1. Connect to the router – Use a console cable, SSH, or Telnet to access the router's command-line interface. Enter privileged EXEC mode by typing enable and providing the enable password or secret.

  2. Check current temperature readings – Before setting thresholds, see what the router is currently reporting. Use the command show environment temperature (on many platforms) or show environment all to display all environmental stats, including temperature, voltage, and fan status. Look for output like:

    System Temperature: 45°C / 113°F
    Temperature Thresholds: Shutdown 70°C, Warning 60°C

    Note the current temperature and the default thresholds. If the command isn't available, try show system temperature or show temperature depending on your platform.

  3. Enter global configuration mode – Type configure terminal (or conf t) to enter global configuration mode.

  4. Set the temperature thresholds – The command to set temperature thresholds is typically temperature threshold or temperature limit. On many IOS-XE routers, you can set both a warning (major) and a shutdown (critical) threshold. For example:

    Router(config)# temperature threshold warning 55
    Router(config)# temperature threshold shutdown 65

    This sets a warning threshold of 55°C and a shutdown threshold of 65°C. If the router reaches the shutdown threshold, it will automatically shut down to prevent hardware damage. The warning threshold triggers a syslog message and can be used for SNMP traps.

    If your router doesn't support the temperature threshold command, you may need to use SNMP to set thresholds via the CISCO-ENVMON-MIB. In that case, you'll set the threshold values from your SNMP manager (like PRTG or Zabbix) using the OIDs for ciscoEnvMonTemperatureThreshold.

  5. Configure SNMP to send alerts – To get notified when the temperature exceeds the threshold, you need SNMP traps or informs. First, configure SNMP community strings and trap destinations:

    Router(config)# snmp-server community public RO
    Router(config)# snmp-server community private RW
    Router(config)# snmp-server enable traps envmon
    Router(config)# snmp-server host 192.168.1.100 traps version 2c public

    Replace 192.168.1.100 with your SNMP manager's IP address. The envmon trap enables environmental monitoring traps, which include temperature alerts.

  6. Configure syslog for temperature warnings – If you use syslog, you can also send temperature warnings to a syslog server:

    Router(config)# logging host 192.168.1.101
    Router(config)# logging trap informational

    This sends syslog messages to the specified server. Temperature threshold crossings will generate messages like %ENVMON-1-TEMP_CRITICAL: Temperature has exceeded the shutdown threshold.

  7. Verify your configuration – Exit configuration mode (end) and check your settings:

    Router# show running-config | include temperature
    Router# show environment temperature

    This should show your configured thresholds. Also, test by intentionally raising the threshold to a value below the current temperature (if safe) to see if the trap or syslog message fires. But be careful – don't set a shutdown threshold that could cause an immediate shutdown if the router is already hot.

Common Mistakes

  • Setting thresholds too low – Many routers run normally at 40–50°C. Setting a warning threshold at 40°C will cause constant alerts. Check the normal operating temperature first and set thresholds 10–15°C above that.
  • Forgetting to enable SNMP traps – Setting thresholds without enabling traps or syslog means you'll never know when they're crossed. The router only logs locally unless you configure a remote destination.
  • Using the wrong command for your IOS version – Some older IOS versions use temperature limit or require you to set thresholds via SNMP only. Always check your platform's documentation.
  • Not setting both warning and shutdown thresholds – If you only set a shutdown threshold, the router will shut down without prior warning. Set a warning threshold to give yourself time to act.
  • Ignoring the ambient temperature – The router's internal temperature is affected by the room temperature. If your server room is hot, the router will run hotter. Take that into account.

Tips

  • Monitor the temperature over a week to establish a baseline before setting thresholds. Use show environment temperature at different times of day.
  • Use SNMPv3 instead of SNMPv2c for security if your network supports it. SNMPv2c sends community strings in plaintext.
  • Set the warning threshold at a level that gives you enough time to investigate (e.g., 10°C below the shutdown threshold).
  • If your router has multiple temperature sensors (e.g., for different line cards), set thresholds for each sensor if possible. The command may accept a sensor index.
  • Integrate with your network monitoring system (like Nagios, Zabbix, or PRTG) to graph temperature trends and alert on deviations.
  • Remember that the shutdown threshold is a safety feature – don't disable it unless you have a good reason and a backup cooling plan.

Troubleshooting

If you're not getting alerts or the thresholds aren't working, try these steps:

  • Check if the router actually supports the command – Type temperature ? in configuration mode to see available options. If nothing appears, your platform may not support CLI threshold setting.
  • Verify SNMP configuration – Use show snmp to confirm traps are enabled and the host is configured. Also check that your SNMP manager is listening on the correct port (UDP 162).
  • Test with a manual trap – Send a test trap from the router using test snmp trap (if available) to verify the SNMP manager receives it.
  • Check syslog – If you're using syslog, ensure the router can reach the syslog server (ping from the router) and that the server is configured to accept messages from the router.
  • Look at the logs – Use show logging to see if any temperature-related messages have been generated. If you see messages but not on your server, the issue is with the server configuration.
  • Verify the threshold values – Use show environment temperature to see the current thresholds. If they don't match what you set, you may have set them for a different sensor or the command didn't take effect.
  • Restart the SNMP agent – In some cases, restarting SNMP can help: no snmp-server followed by reconfiguring it.

Frequently Asked Questions

What is the default temperature threshold on Cisco routers?

Default thresholds vary by model and IOS version. Typically, the shutdown threshold is around 70°C and the warning threshold is around 60°C, but you should check with show environment temperature on your specific router.

Can I set different thresholds for different sensors?

Yes, on many platforms you can specify a sensor index or name in the command, like temperature threshold 1 warning 55 for sensor 1. Check your platform's documentation for the exact syntax.

Will the router shut down automatically if it exceeds the shutdown threshold?

Yes, if you have the shutdown threshold set and the router's hardware supports it, the router will initiate a shutdown to prevent damage. This is a safety feature and should not be disabled.

How do I get an email alert when the temperature exceeds a threshold?

You need to configure SNMP traps to a network management system (like PRTG or Zabbix) that can send email notifications. The router itself does not send emails directly.

What is the normal operating temperature for a Cisco router?

Most Cisco routers operate normally between 30°C and 50°C, but it depends on the model and ambient conditions. Check the hardware installation guide for your specific model for recommended ranges.

Can I set temperature thresholds via SNMP instead of CLI?

Yes, you can use SNMP to set the ciscoEnvMonTemperatureThreshold OID from a management station. This is useful if you want to manage multiple devices from a central tool.