Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
New Member

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

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
Cisco Employee

Re: oft-requested -- Utility to convert Cisco context buffer int

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

New Member

Re: oft-requested -- Utility to convert Cisco context buffer int

Is there somewhere we can download this script from??

New Member

Re: oft-requested -- Utility to convert Cisco context buffer int

me too!!

Cisco Employee

Re: oft-requested -- Utility to convert Cisco context buffer int

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

New Member

Re: oft-requested -- Utility to convert Cisco context buffer int

THANK-YOU! Excellent tool!

-brkn!

109
Views
0
Helpful
5
Replies
CreatePlease to create content