Operating System - HP-UX
1834532 Members
3192 Online
110069 Solutions
New Discussion

Re: HOW to format file format into readable logged by nettl

 
SOLVED
Go to solution
Sir T S S
Advisor

HOW to format file format into readable logged by nettl

hi all,
need some help of how to format file logged by nettl to readable format?

thank in advance..

Sir T
4 REPLIES 4
Sridhar Bhaskarla
Honored Contributor
Solution

Re: HOW to format file format into readable logged by nettl

Hi,

Look at the man page of 'netfmt'. Simply running 'netfmt -f ' can decode the entire log file. However, there may be a lot of information that you won't need. You can create 'filters'. The man page contains extensive information on how to make filter file. For ex., you want to print all the tcp 'login' packets from the local host to xx.xx.xx.xx, create a file with the following contents

filter ip_saddr local
filter ip_daddr xx.xx.xx.xx
filter tcp_sport login

and run 'netfmt -c fileter -f '

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
sstan
Frequent Advisor

Re: HOW to format file format into readable logged by nettl

try netfmt ( formarter )

e.g netfmt -v -t 50 -f /var/adm/nettl.LOGXXX

this list last 50 record, can also create filter to left out unneccesary data,

simple as it man netfmt... for more info.

cheers.
sstan
Sir T S S
Advisor

Re: HOW to format file format into readable logged by nettl

thank for fast reply, i love this place.
Sir T S S
Advisor

Re: HOW to format file format into readable logged by nettl

thanks all.