Service manual
Appendices 119
An example on how to use the macros
In the following example, the console server sends an email to the administrator whenever a crash
happens. The email should have the information about the reason of the crash, machine name and
windows version information. The following entry should be created in syslog-ng.conf.
The following entry activates the win2003mail action when the f_windows_bluescreen filter
is successful.
source src { unix-stream("/dev/log"); };
log { source(src); filter(f_windows_bluescreen);
destination(win2003mail); };
Server commands
The following are the commands that may be sent to the server.
destination win2003mail { pipe("/dev/cyc_alarm"
template("sendmail -t administrator@cyclades.com -f acs -s
\"\
Server $<name> crashed\" -m \'\
Break Point: $<INSTANCE CLASSNAME=> $<PROPERTY NAME=>
$<VALUE>\
Server: $<name>\
OS: $<os-product>\
Build: $<os-build-number> Version: $<os-version>\
Service Pack: $<os-service-pack>\
Processor: $<processor-architecture>\
Server GUID: $<guid>\
ACS port: $<tty>\
\' -h mail.cyclades.com "));};
Table A.7: Server Commands
Command Set Description
ch Channel management commands.
ch -ci <#> Close a channel by its number.
cmd Create a Command Prompt channel.
ch -si <#> Switch to another channel (from Channel 0).
d Dump the current kernel log.
f Toggles the information output by the t-list command, which shows
processes only, or shows processes and threads.
i List all IP network numbers and their IP addresses.