Operating System - HP-UX
1833294 Members
2999 Online
110051 Solutions
New Discussion

Re: Binary to ASCII convert of Syslog?

 
Willie Gonzalez
New Member

Binary to ASCII convert of Syslog?

Hello,

I am trying to parse out an HP UNIX syslog ,that is in binary format, to ASCII format (human readable). Unfortunately, I can not find any programs/commands/utilities that do this. I am doing this because we need to have the data parsed certainly and readable on-the-fly on the systems. Any help with this would be greatly appreciately.

Thanks,
Willie
5 REPLIES 5
James R. Ferguson
Acclaimed Contributor

Re: Binary to ASCII convert of Syslog?

Hi Willie:

Exactly what file are you attempting to view?

In general, the 'strings' command [strings ] is useful and provides simplistic analysis. See "man strings".

...JRF...
Rita C Workman
Honored Contributor

Re: Binary to ASCII convert of Syslog?

Are you maybe referring to

dos2ux or ux2dos -
these commands convert HP format to ASCII format and vice versa. See manpage on these.

/rcw
Gregory Fruth
Esteemed Contributor

Re: Binary to ASCII convert of Syslog?

Umm, /var/adm/syslog/syslog.log is already in ASCII format!
Maybe you mean one of...
/etc/utmp
/etc/utmpx
/var/adm/btmp
/var/adm/wtmp
/var/adm/wtmpx
If so, see the man page for "wtmp" for a programmatic
interface and "fwtmp" for a standalone command to read the files.
Willie Gonzalez
New Member

Re: Binary to ASCII convert of Syslog?

Just got off phone with tech and it turns out that the "log" they are attempting to view is actually audit trails and not a log persay. It seems as though they are using 3rd party products which are generating the audit trails, some of which are in binary form.

Let me retract this question then until they are abit more forth coming with what actual files they are needing to convert.

Thanks for the help.
someone_4
Honored Contributor

Re: Binary to ASCII convert of Syslog?

what I have done before. Is use an FTP client.
Me I use cute FTP but I am sure other clients have it too. Use it to FTP to the box/server and there is a setting that you can choose , under transfer and transfer type. And pick the type you want. I have downloaded many files and logs from my server this way. I also use this to write scripts. I use an html editor notepad or other to write my script. Then I ftp it up to the dir i want it in. Saves allot of time.
hope this helps.
Richard