332
Additional Features and Applications
As an example on how we can use above macros, let’s say we want the ACS to send an
e-mail to the administrator whenever a crash happens. The e-mail should have the
information about the reason of the crash, machine name and windows version
information. So we just have to create the following entry in
syslog-ng.conf
:
And the following entry will activate 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); };
$<os-product>
Which Windows Server product. It can
be: Windows Server 2003 Datacenter
Edition, Windows Server 2003
Embedded, Windows Server 2003
Enterprise Edition or Windows Server
2003.
Windows Server
2003
$<os-service-pack>
Alphanumeric string that identifies the
most up-to-date service pack installed.
If none installed, the string is None.
None
$<tty>
ACS serial port tty or alias name.
S2.server_connected_
to_serial2
destination win2003mail { pipe("/dev/cyc_alarm"
template("sendmail -t [email protected] -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 "));};
File Description 9.6: Send e-mail when crashing example
Macro
Description
Value to replace
macro
Table 9.5: f_windows_boot available macros
Содержание AlterPath ACS
Страница 16: ...xvi Table of Contents...
Страница 29: ...13 This page has been left intentionally blank...
Страница 30: ...14 Preface...
Страница 68: ...52 Device Access...
Страница 86: ...70 Authentication Step 5 Saving changes To save the configuration run the command saveconf...
Страница 96: ...80 Authentication Save the configuration to flash 2 cli config savetoflash...
Страница 114: ...98 Authentication...
Страница 204: ...188 Administration To exit the CLI mode and return to ACS s shell issue the command cli quit...
Страница 268: ...252 Power Management with AlterPath PM Integration...
Страница 304: ...288 PCMCIA Cards Integration...
Страница 338: ...322 Profile Configuration...
Страница 364: ...348 Additional Features and Applications...
Страница 376: ...360 Appendix A New User Background Information...
Страница 406: ...390 Appendix C Cabling and Hardware Information This page has been left intentionally blank...
Страница 418: ...402 List of Tables...
Страница 420: ...404 List of Figures...