cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
424
Views
0
Helpful
5
Replies

oft-requested -- Utility to convert Cisco context buffer into ascii

brok3n
Level 1
Level 1

What can I do/use to convert that field of the logfiles to readable ascii? I remember seeing this question asked here before but don't remember seeing resolution.

Thanks,

brkn

5 Replies 5

bkubesh
Level 1
Level 1

I have a shell script that will parse the logfile and display it in a a more readable format. I will send it to you directly as an email attachment.

-BK

Is there somewhere we can download this script from??

me too!!

The nrLogview script has been posted to:

ftp://ftp-eng.cisco.com/bkubesh/nrLogview

Usage: cat | nrLogview -- [-f ] [-Vh] [-S] [-x] [sigid ...]

or

nrLogview -- [-f ] [-Vh] [-S] [-x] [sigid...]

-f = signature description file location (default: /usr/nr/etc/signatures)

-V = print this usage

-h = same as -V

-S = print summary only

-x = use list of sigid's as exclude list from output

sigid = signature ID's to filter.

NOTE: The "--" must be present to seperate awk args from the script args. When using this script on an active log file, it will give an error, like premature end of file. I typically use a "grep , log.* | nrLogview -- -S" to summarize an active log file. This eliminates all the NULLs at the end.

-BK

THANK-YOU! Excellent tool!

-brkn!