AlterPath ACS Command Reference Guide
173
Administration
Example to write a message in /var/log/messages file:
5) To write messages to the session of a logged-in user:
destination d_user { usertty("<username>"); };
Example to send message to all sessions with root user logged:
6) To send a message to a remote syslogd server:
destination d_udp { udp("<remote IP address>" port(514)); };
Example to send syslogs to syslogd located at 10.0.0.1 :
Connect all of the above.
a.
To connect the sources, filters, and actions, use the following
statement. (Actions would be any message coming from one of
the listed sources. A match for each of the filters is sent to the
listed destinations.)
log { source(S1); source(S2); ...
filter(F1);filter(F2);...
destination(D1); destination(D2);...
};
where :
•
Sx - Identifier of the sources defined before.
•
Fx - Identifier of the filters defined before.
•
Dx - Identifier of the actions/destinations defined before.
Examples connecting sources, filters and actions:
1) To send all messages received from local syslog clients to console:
destination d_message { file("/var/log/messages"); };
File Description 5.8: Writing messages to file
destination d_userroot { usertty("root"); };
File Description 5.9: Sending messages to logged user
destination d_udp1 { udp("10.0.0.1" port(514)); };
File Description 5.10: Sending syslogs to a remote server
Содержание 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...