LEDs
TL;DR (Quick Start)
Section titled “TL;DR (Quick Start)”For the impatient: configure LED for interface activity.
# Show available LEDs/system/leds/print
# Set LED to show interface activity/system/leds/add leds=user-led interface=ether1 type=interface-activityTurn off all LEDs (dark mode):
/system/leds/settings/set all-leds-off=immediateOverview
Section titled “Overview”What this does: RouterOS allows configuring each LED’s behavior to display interface activity, wireless signal strength, modem signal, or custom on/off states controlled by scripts.
When to use this:
- Indicating network activity on specific interfaces
- Displaying wireless or LTE signal strength
- Creating an “internet connected” indicator
- Reducing light pollution with dark mode
- Custom status indicators via scripts
Prerequisites:
- Device with configurable LEDs (most RouterBOARDs)
- Knowledge of available LED names on your device
LED Types
Section titled “LED Types”| Type | Description |
|---|---|
interface-activity | Blinks on interface traffic (TX/RX) |
interface-receive | Blinks on incoming traffic only |
interface-transmit | Blinks on outgoing traffic only |
interface-speed | Indicates link speed |
interface-speed-1G | On when link is 1 Gbps |
interface-status | On when interface is up |
wireless-status | On when wireless is enabled |
wireless-signal-strength | Multiple LEDs show signal level |
modem-signal | Multiple LEDs show LTE/modem signal |
modem-technology | Indicates modem connection type |
flash-access | Blinks on flash/disk access |
poe-out | Indicates PoE output status |
poe-fault | Indicates PoE fault |
fan-fault | Indicates fan failure |
ap-cap | CAPsMAN managed AP indicator |
on | LED always on |
off | LED always off |
Configuration Steps
Section titled “Configuration Steps”Step 1: List Available LEDs
Section titled “Step 1: List Available LEDs”View LEDs on your device:
/system/leds/printExample output:
Flags: X - disabled # LEDS TYPE INTERFACE 0 user-led interface-activity ether1 1 led1 wireless-signal-strength wlan1Step 2: Configure LED Behavior
Section titled “Step 2: Configure LED Behavior”Set an LED to show interface activity:
/system/leds/set [find leds=user-led] type=interface-activity interface=ether1Or add a new configuration:
/system/leds/add leds=user-led type=interface-activity interface=ether1Step 3: Verify Configuration
Section titled “Step 3: Verify Configuration”/system/leds/printCommon Scenarios
Section titled “Common Scenarios”Scenario: Interface Activity Indicator
Section titled “Scenario: Interface Activity Indicator”Show traffic on a specific interface:
/system/leds/add leds=user-led interface=ether1 type=interface-activityScenario: Wireless Signal Strength
Section titled “Scenario: Wireless Signal Strength”Display WiFi signal using multiple LEDs:
/system/leds/add leds=led1,led2,led3,led4,led5 interface=wlan1 type=wireless-signal-strengthMore LEDs light up as signal strength increases.
Scenario: LTE/Modem Signal Strength
Section titled “Scenario: LTE/Modem Signal Strength”Configure LEDs for LTE signal indication:
/system/leds/add leds=led1,led2,led3,led4,led5 interface=lte1 \ type=modem-signal modem-signal-treshold=-91Signal range [-91..-51] is divided among LEDs:
- First LED: Signal above -91 dBm
- Last LED: Signal at -51 dBm (excellent)
Scenario: Internet Connection Indicator
Section titled “Scenario: Internet Connection Indicator”Use Netwatch to control LED based on internet connectivity:
Step 1: Create LED configuration
/system/leds/add leds=user-led type=on disabled=noNote the entry number (e.g., 0).
Step 2: Configure Netwatch
/tool/netwatch/add host=8.8.8.8 interval=10s \ up-script="/system/leds/set 0 disabled=no" \ down-script="/system/leds/set 0 disabled=yes"LED turns off when internet is unreachable.
Scenario: Turn Off All LEDs (Dark Mode)
Section titled “Scenario: Turn Off All LEDs (Dark Mode)”Reduce light pollution:
/system/leds/settings/set all-leds-off=immediateOptions:
never: LEDs always on (default)immediate: Turn off immediatelyafter-1min: Turn off after 1 minute idleafter-1h: Turn off after 1 hour idle
Scenario: LED Controlled by Script
Section titled “Scenario: LED Controlled by Script”Toggle LED on/off via script:
# Turn LED on/system/leds/set [find leds=user-led] type=on disabled=no
# Turn LED off/system/leds/set [find leds=user-led] disabled=yesScenario: Mode Button LED Toggle
Section titled “Scenario: Mode Button LED Toggle”Toggle LED with the mode button:
Step 1: Create toggle script
/system/script/add name=led-toggle source={ :local entry [/system/leds/find leds=user-led] :local state [/system/leds/get $entry disabled] /system/leds/set $entry disabled=(!$state)}Step 2: Assign to mode button
/system/routerboard/mode-button/set enabled=yes on-event=led-toggleScenario: Link Speed Indicator
Section titled “Scenario: Link Speed Indicator”Show when link is at specific speed:
/system/leds/add leds=led1 interface=ether1 type=interface-speed-1GLED lights when interface is running at 1 Gbps.
Scenario: PoE Output Status
Section titled “Scenario: PoE Output Status”Indicate PoE output on a port:
/system/leds/add leds=poe-led interface=ether5 type=poe-outVerification
Section titled “Verification”Confirm LED configuration:
Check 1: View LED Configuration
Section titled “Check 1: View LED Configuration”/system/leds/printExpected: LEDs listed with correct type and interface.
Check 2: Check Global Settings
Section titled “Check 2: Check Global Settings”/system/leds/settings/printExpected: all-leds-off setting as configured.
Check 3: Test LED Manually
Section titled “Check 3: Test LED Manually”Temporarily set LED to on:
/system/leds/set [find leds=user-led] type=on disabled=noVerify LED illuminates, then restore original config.
Troubleshooting
Section titled “Troubleshooting”| Symptom | Cause | Solution |
|---|---|---|
| LED not responding | Entry disabled | Set disabled=no |
| No LEDs listed | Device has no configurable LEDs | Check device specifications |
| Dark mode not working | Device doesn’t support feature | Not all hardware supports dark mode |
| Signal LEDs all off | Interface not specified or down | Verify interface name and status |
| Activity LED always on | Constant traffic on interface | Normal behavior; try different interface |
| LED command not found | Wrong LED name | Check available LEDs with /system/leds/print |
Debug: List Available LED Names
Section titled “Debug: List Available LED Names”/system/leds/printUse exact LED names from this output.
Debug: Check Interface Status
Section titled “Debug: Check Interface Status”For interface-based LEDs:
/interface/print where name=ether1Ensure interface exists and is running.
Common Mistakes
- Wrong LED name - LED names are device-specific; check with
printfirst - Missing interface - Activity/speed types require
interfaceproperty - Disabled entry - Setting
type=offvsdisabled=yesare different; disabled hides the entry - Dark mode on unsupported device - Some devices can’t turn off all LEDs due to hardware design
Dark Mode Device Support
Section titled “Dark Mode Device Support”| Device Type | Dark Mode Support |
|---|---|
| CRS305, CRS309, CRS317 | Full |
| RB5009, RB4011 | Full |
| hAP series | Partial (some LEDs) |
| cAP series | Partial |
| NetMetal, LHG series | Full |
| SXT, Cube, LDF series | Full |
| hEX, hAP lite | Partial |
Related Topics
Section titled “Related Topics”System
Section titled “System”- RouterBOARD - mode button configuration
- Health Monitoring - system status indicators
Automation
Section titled “Automation”Interfaces
Section titled “Interfaces”- Interfaces Overview - interface-linked LEDs
- Ethernet Interfaces - port activity LEDs
Reference
Section titled “Reference”Key Commands Reference
Section titled “Key Commands Reference”| Command | Description |
|---|---|
/system/leds/print | View LED configurations |
/system/leds/add | Add LED configuration |
/system/leds/set | Modify LED configuration |
/system/leds/remove | Remove LED configuration |
/system/leds/settings/print | View global LED settings |
/system/leds/settings/set | Modify global settings |
LED Properties
Section titled “LED Properties”| Property | Type | Default | Description |
|---|---|---|---|
leds | string | - | LED name(s) to control |
type | enum | - | LED behavior type |
interface | string | - | Interface for activity/status types |
modem-signal-treshold | integer | -91 | Threshold for modem signal (-113..-51) |
disabled | yes/no | no | Disable this LED entry |
Global Settings (/system/leds/settings)
Section titled “Global Settings (/system/leds/settings)”| Property | Type | Default | Description |
|---|---|---|---|
all-leds-off | enum | never | Dark mode: never/immediate/after-1min/after-1h |
LED Type Reference
Section titled “LED Type Reference”| Type | Requires Interface | Multiple LEDs | Description |
|---|---|---|---|
interface-activity | Yes | No | TX/RX traffic blink |
interface-receive | Yes | No | RX traffic only |
interface-transmit | Yes | No | TX traffic only |
interface-speed | Yes | No | Link speed indicator |
interface-speed-1G | Yes | No | On at 1 Gbps |
interface-status | Yes | No | On when link up |
wireless-signal-strength | Yes | Yes | Signal bars |
modem-signal | Yes | Yes | LTE signal bars |
on | No | No | Always on |
off | No | No | Always off |