logv logc logw

Last Updated : Apr 05, 2018 |

Syntax

logv [OPTIONS]...[LOGS...] [-t time]...[[-a]FILTERS]...[-?]  
logc [OPTIONS]...[LOGS...] [-t time]...[[-a]FILTERS]... [-?]
logw [OPTIONS]...[LOGS] [[-a]FILTERS]...[-?]
-b

Remove blank lines.

-c

Display the contents of the log. Automatically set if called with logc.

-d

Augment timestamps with time delta between entries displayed.

-desp [N]

Output a separator line when the delta between entries is greater than N seconds. The default is one second.

-ls

List the names and sizes of the log files.

-r

Reverse the order to display the latest entry first.

-s

Strip off the timestamp and header of each line.

-st

Leave the timestamp and strip off the rest of the header on each line.

-sd

Format the timestamp as yyyy/mm/dd HH:MM:SS and strip off the rest of the header on each line.

-w

Watch the log (automatically set if called with logw).

-v

Display the version of the command.

-l

Search only the latest file in the log. The default is all files.

-lf file

Assume that file is a log file and read input from it. Multiple -lf arguments may be entered.

-ld dir

Look for log files in the directory dir instead of the default directory.

-clear

Clear the log files (only logmanager files).

-t pattern

Filter events for a particular day/time pattern with the format of yyyy[mm[dd:[HH[MM[SS[mmm]]]]]]

-t range

Filter events for a particular day/time pattern with the format of yyyy[mm[dd:[HH[MM[SS[mmm]]]]]]-yyyy[mm[dd:[HH[MM[SS[mmm]]]]]]

-t today

Display today's log.

-t yesterday

Display yesterday's log.

app-pat

Filter events for a specific application or process (i.e., capro). Multiple application patterns may be specified.

-a

Application patterns following the -a are applied to the output of those preceding the -a. Application patterns following the -a are known to be grep patterns.

-g

Assume application filters are grep patterns instead of application names.

-I

Assume application pattern filters are grep patterns and ignore the case of letters.

--view VIEWNAME

Display the log using the log types and grep patterns associated with the view VIEWNAME. The built-in views are:

  • ipevt - List IP events (interfaces up/down, telephone/ endpoint registration/deregistration).

  • bashhist - Platform command history log.

  • mst - If enabled via a SAT command, entries to the Communication Manager’s message sequence trace (MST) log can be echoed into the debug trace log as well.

  • hwerr - The events that go into the Communication Manager’s hardware error and alarm logs. This needs special deciphering by an external tool.

  • sat - The System Administration and Maintenance activities performed on Communication Manager’s System Access Terminal (SAT).

  • swerr - The events that go into the Communication Manager’s software error log. This needs special deciphering by an external tool.

  • kernel - Linux kernel debug messages.

  • cron - Linux scheduled task log.

-?

Display command option descriptions.

Description

Use logv to merge and edit (vi) the various log files in the system.

Use logc to merge and output (cat) various log files to standard output.

Use logw to watch the requested log file for changes applying the specified filters. Multiple logs can be specified. The logs are merged and sorted by time. Multiple time patterns and time ranges can also be specified.

Log file name

The log file names are:

Log file name

Description

all

Display all possible logs.

lm

logmanager debug trace log (default).

lxboot

Linux boot message.

lxsys

Linux syslog.

lxsec

Linux access security log.

lxwtmp

Linux login/logout/reboot log.

lxxfer

Linux file transfer log.

wd

Watchdog logs.

cmds

Platform command history log.

httperr

HTTP/web server error log.

httpssl

HTTP/web secure sockets layer (SSL) request log.

httpaccess

HTTP/web access log.

cmresetart

Communication Manager restart log (last 16 restarts).

filesync

Communication Manager file synchronization log.

update

System updates/patches

ccsppm

PPM log

siptrace

SIP trace log

ccsmasw

Core Router trace log.