AlterPath ACS Command Reference Guide
171
Administration
•
$PROGRAM
- The message was sent by this program (BUFF-
ERING or SOCK).
•
$HOST
- The name of the source host.
•
$FULLHOST
- The name of the source host and the source
driver. Format: <source>@<hostname>
•
$MSG or $MESSAGE
- The message received.
Example to send e-mail to [email protected] (SMTP's IP address 10.0.0.2)
from the e-mail address [email protected] with subject “ALARM”. The
message will carry the current date, the host-name of this ACS and the
message that was received from the source.
2) To send to pager server (sms server):
destination <ident> {pipe(‘/dev/cyc_alarm’ template(‘sendsms
<pars>’));};
where ident: uniquely identify this destination
•
pars: -d <mobile phone number>
•
-m \’<message - max.size 160 characters>\’
•
-u <username to login on sms server>
•
-p <port sms - default : 6701>
•
<server IP address or name>
Example to send a pager to phone number 123 (Pager server at 10.0.0.1)
with message carrying the current date, the hostname of this ACS and the
message that was received from the source:
3) To send snmptrap.
destination d_mail1 {
pipe('/dev/cyc_alarm'
template('sendmail -t [email protected] -f [email protected] -s \”ALARM\” \\
-m \'$FULLDATE $HOST $MSG\' -h 10.0.0.2'));
};
File Description 5.4: Send e-mail example
destination d_pager {
pipe(‘/dev/cyc_alarm’
template(‘sendsms -d 123 -m \’$FULLDATE $HOST $MSG\’ 10.0.0.1’));
};
File Description 5.5: To send a pager phone example
Содержание 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...