(Difference between revisions)
|Line 1:||Line 1:|
Latest revision as of 18:14, 12 June 2008
To annotate one or more syslog files and print them to the screen with annotations attached, use the annotate command.
- annotate [pass-through | filtered] [follow] [files]
pass-through (Optional) Indicates that all messages are printed to standard output. filtered (Optional) Indicates that only those messages that are deemed important by FACT are printed. follow (Optional) Specifies that FACT continuously watches for more records to be appended to the files and analyzes those records as they arrive. files (Optional) Specifies the files to annotate (one file or multiple files).
- The default is pass-through (filtered for Alpha II release).
- This command uses the current scan to perform annotations. If you specify no files, FACT looks in the FACT main configuration file and annotates only the files that are in the log-file parameters.
- The following example shows how FACT annotates a short log file:
fact> annotate mylogfile Mar 21 20:14:28 herosm1 ib_sm: %IB-6-INFO: Generate SM IN_SERVICE trap for GID=fe:80:00:00:00:00:00:00:00:18:8b:90:97:fe:13:3a (hero0404/1/1, hero0404/1:1/1) (hero0404/1/1, hero0404/1:1/1, neighbor = 00:1b:0d:0b:00:00:8e:63 (leaf04b)/1/4)