Annotate your router sessions
The November Technical Services News from Cisco included the Annotating Troubleshooting Sessions document from the Cisco’s support wiki. The document describes two well hidden features of Cisco IOS:
- The send log exec-level command writes a line in the syslog, allowing you to delineate logging or debugging outputs.
- The exclamation mark used as the first character in any IOS command line (not just in the configuration) serves as a comment. If you’re logging the TTY session, you can use these comments to document the session.
script(1) man page
@Scott: That's simply brilliant. Thanks for sharing this tip.
%SYS-7-USERLOG: Message from 1(XXX): TEST
%SYS-2-USERLOG: Message from 1(XXX): TEST2
"service timestamps log" is configured and normal logs include the timestamp in front of them.
Nov 24 19:54:32: %SYS-2-LOGMSG: Message from 1(XXX): TEST
I guess Cisco is still experimenting with it.