
179
# /bin/config –-get=config.alerts.total
This command should display output similar to:
config.alerts.total 1
Note that if you see:
config.alerts.total
This means you have 0 alerts configured.
Your new alert will be the existing total plus 1. So if the previous command gave you 0, then
you start with user number 1. If you already have 1 alert, your new alert will be number 2, etc.
To configure an email alert to be sent to
when the regular expression
“Cpu.*0.0% id,” matches logging on serial port 5, you would need to issue the following
commands (Assuming you have 1 previous alert in place):
# /bin/config –[email protected]
# /bin/config –-set=”config.alerts.alert2.pattern=.*0.0% id,”
# /bin/config –-set=config.alerts.alert2.port5=on
# /bin/config –-del=config.alerts.total=2
The following command will synchronize the live system with the new configuration:
# /bin/config –-run=alerts
14.7
SDT Host Configuration
14.7.1
SDT Host TCP Ports
To setup the list of TCP ports for a host, you use the config command:
# config -s config.sdt.hosts.host3.tcpports.tcport1 = 23
# config -s config.sdt.hosts.host3.tcpports.tcport2 = 5900
# config -s config.sdt.hosts.host3.tcpports.tcport3 = 3389
The above assumes the config below:
# vi /etc/config/config.xml ~
</users>