Skip to content

config rule

Opens an editor that allows you to create rules to be applied to monitors and to initiate alerting and action. For detailed information about writing and using rules, refer to the Guide to Rules and Monitors.

Command availability

CLI resource: system

Lantronix system: All

LMS offerings: All


config rule [no] <"rulename">

Using the no modifier with the config rule command deletes the rule.


no - used before subcommands to remove attributes or entries.

conditions - list of elements evaluated from collected data and evaluated using thresholds to determine if rule is true

description - Provide information about the rule. This is a free text field of 255 characters. Use the no modifier to clear an existing description.

start - rule's MMDDYYYYHHMMSS start time - INACTIVE before

expire - rule's MMDDYYYYHHMMSS expiration time - INACTIVE after

show - display current settings

action - may be any of the following:

  • alarm [alarmType] [noalert | -a message | -oid id]
  • certify
  • clearCounters
  • clearServiceModule [-i interfaceName]
  • clearValue [system | monitor] variable_name
  • decrementValue [system | monitor] variable_name
  • emailSystemLog [email address]
  • event [alarmType] [-a message]
  • execute [-raw] [-pattern pattern] [-multiline] [-command command] [-timeout timeout] [-setValue [system | monitor] variable_name value]
  • incrementValue [system | monitor] variable_name
  • interfaceCycle [-i interfaceName]
  • interfaceOff [-i interfaceName]
  • interfaceOn [-i interfaceName]
  • powerCycle [delay seconds]
  • powerOff
  • powerOn
  • pppOff
  • pppOn
  • pullRunningConfig
  • pullStartupConfig
  • pullTech
  • pushOS [candidate | current | previous]
  • pushRunningConfig [candidate | current | previous]
  • pushStartupConfig [candidate | current | previous]
  • reboot
  • rebootAll
  • rebootWorking
  • restartSystem
  • restore
  • serviceProcessorPowerCycle
  • serviceProcessorPowerOff
  • serviceProcessorPowerOn
  • setPosition
  • setValue [system | monitor] variable_name value
  • writeStatus [a status message]

Actions are executed in the order they are listed in the rule.

exit -save the rule and exit the rule configuration editor.


[admin@LantronixLM]# config rule carrier
[config rule carrier]# show
description Serial Carrier ProblControl Center
action alarm -a "serial carrier problControl Center"
interface.operationalStatus equals up AND
interface.lineProtocolStatus equals down AND
serviceModule.currentLossOfFrame equals true AND
serviceModule.currentLossOfSignal equals true

In the Lantronix web interface

Inventory > group page > Automation > Rules - specific to this inventory group

Inventory > Local Manager page > Automation > Rules - specific to this system


1.1 - This command was introduced.

3.2 - The execute action was added.

3.4 - The emailLocal ManagerLog and restartLocal Manager actions were renamed emailSystemLog and restartSystem, respectively. The serviceProcessorPower actions were added. The certify, restore, and writeStatus actions were added.

Related commands

  • config ruleset
  • config monitors
  • show rule