function ov rootfs logread

NAME [edit section]

ov_rootfs_logread

SYNOPSIS [edit section]

DESCRIPTION [edit section]

This function saves the system log on the target.

It creates a temp directory on the target to hold the log, then invokes a client-side program to save the system logs on the target to a file. The base-distrib version of this function uses '/sbin/logread' to read the log, and the nologger.dist version of this function uses 'cat /var/log/messages'.

The second parameter specifies a suffix to use with the log file. Internally, this is always either the string "before" or "after".

EXAMPLES [edit section]

Here are some sample invocations:

Where $@ are the arguments to dump_syslogs.

ENVIRONMENT and ARGUMENTS [edit section]

Variables used are:

These are used to build the filename for the test log on the target.

The full path is: $1/${NODE_NAME}.${BUILD_ID}.${BUILD_NUMBER}.$2

RETURN [edit section]

Returns non-zero on error.

SOURCE [edit section]

Located in overlays/base/base-distrib.sh, and in overlays/distribs/nologger.dist

SEE ALSO [edit section]