Operating System - HP-UX
1826372 Members
3852 Online
109692 Solutions
New Discussion

Re: Help decipering a command string

 
SOLVED
Go to solution

Help decipering a command string

Can someone decipher what this command is doing? We've recently upgraded to a new server and since then our sulog appears to be getting truncated daily. In reviewing the syslog, I've found this entry; however, I'm not sure what the command is doing.

/opt/dsau/bin/clog -D -f 'sulog' -l /var/opt/dsau/layouts/syslog_layout -t 100 /var/adm/syslog/syslog.log

Thanks,
Staci
6 REPLIES 6
Court Campbell
Honored Contributor

Re: Help decipering a command string

I have only ever seem mention of clog before. It's used for log consolidation. I'll poke around and see what I can find. Maybe someone will know more.
"The difference between me and you? I will read the man page." and "Respect the hat." and "You could just do a search on ITRC, you don't need to start a thread on a topic that's been answered 100 times already." Oh, and "What. no points???"
James R. Ferguson
Acclaimed Contributor

Re: Help decipering a command string

Hi Staci:

Perhaps this manual helps:

http://docs.hp.com/en/T2786-90265/ch03s03.html#chdgjaai

Regards!

...JRF...
Court Campbell
Honored Contributor

Re: Help decipering a command string

Here is the man page:

clog(1M) clog(1M)

NAME
clog - Displays the specified log file. clog is part of the
Distributed Systems Administration Utilities (DSAU).

SYNOPSIS
Path: /opt/dsau/bin/clog

clog -D [options] filename

DESCRIPTION
Displays the specified log file as directed by the options given. You
must specify -D.

Options
-d [+-]date[-enddate]
Shows only lines matching the date or date range, where date
displays an exact match (date), the specified date and
earlier (-date), the specified date and later (+date), or a
range of dates (date-enddate), inclusive. Dates must be in
the form [yyyy]mmdd[.hh[mm[ss]]].

-f filter_spec
Shows only results matching filter_spec, where filter_spec
is a Perl regular expression.

-h Displays help on clog command options.

-i Makes filter_spec case-insensitive.

-k column_number
Sorts the result in ascending order by the specified
columns, where column_number is 1-4. The columns are
specified in the file /var/opt/dsau/layouts/syslog_layout,
which must not be changed.

-l layout_file
Bases the output on the specified layout file.

-o output_file
Sends the result to output_file.

-r Causes -k to sort in reverse order.

-t number_of_lines
Outputs up to the number of lines specified. The command
reads the specified number of lines from the end of the log
file, applies any of the filter_spec expressions, and
outputs the resulting output, which may contain less than
the number of lines specified.

Hewlett-Packard Company - 1 - Formatted: August 1, 2007

clog(1M) clog(1M)

SEE ALSO
clog_wizard

Hewlett-Packard Company - 2 - Formatted: August 1, 2007
"The difference between me and you? I will read the man page." and "Respect the hat." and "You could just do a search on ITRC, you don't need to start a thread on a topic that's been answered 100 times already." Oh, and "What. no points???"
Court Campbell
Honored Contributor
Solution

Re: Help decipering a command string

So basically it looks like someone was displaying 100 lines from syslog.log that had the word sulog in the line. and had is formatted to the sysylog_layout.
"The difference between me and you? I will read the man page." and "Respect the hat." and "You could just do a search on ITRC, you don't need to start a thread on a topic that's been answered 100 times already." Oh, and "What. no points???"

Re: Help decipering a command string

Thanks for your help. You've answered my question.

Re: Help decipering a command string

a