Skip to main content
  • Place orders quickly and easily
  • View orders and track your shipping status
  • Enjoy members-only rewards and discounts
  • Create and access a list of your products
  • Manage your Dell EMC sites, products, and product-level contacts using Company Administration.

Dell PowerStore Service Scripts Guide

Review system journal logs (svc_journalctl)

This service script enables you to view log messages from the system journal in a consistent format. It also enables you to specify additional arguments and to filter or display additional information. Use this script as a triage tool to troubleshoot issues.

Usage

FunctionDiagnostic and Recovery
ModeService
UsageService
Requires service user password?No
Requires root privileges?No
May cause data unavailability?No
May cause data loss?No
ScopeNode
PrerequisitesNone

Format

svc_journalctl [-h][-r][-b ID][-k][-t value][-p value][-g value][--case-sensitive=TRUE/FALSE][-S value][-U value][--system][--user][-D value][--file value][-f][--output-fields value]

Optional arguments

QualifierDescription
-h, --helpShow the help message and exit.
-r, --reverseShow the newest entries first.
-b, --bootShow current boot or the boot for the specified ID.
-k, --dmesgShow the kernel message log from the current boot.
-t, --identifierShow entries with the specified syslog identifier.
-p, --priorityFilter output by message priorities or priority range.
-g, --grepFilter output to entries where the specified field matches the specified regular expression.
--case-sensitive Make pattern matching case sensitive or case insensitive. Valid values are TRUE or FALSE.
-S, --sinceShow entries not older than the specified date.
-U, --untilShow entries not newer than the specified date.
--systemShow the system journal.
--userShow the user journal for the current user.
-D, --directoryShow journal files from the specified directory.
--fileShow the specified journal file.
-f, --follow Show only the most recent journal entries, and continuously print new entries as they are appended to the journal.
--output-fields Show a comma-separated list of the fields that you want to include in the output.

Fields

The system journal contains entries with information (binary data) stored in fields with specific meaning. In addition, you can use the optional arguments to filter the information that is based on these fields or on the value that these fields contain. For example:

  • The following command establishes a basic field matching query to view log messages associated with the Platform component. The command has a marker value of NDU and a message priority level of ERROR:
    svc_journalctl COMPONENT=Platform MARKER=NDU PRIORITY=ERROR
  • The following command enables you to search for a specific case-sensitive text pattern in the log messages associated with the Platform component:
    svc_journalctl -g --case-sensitive=TRUE CONTEXT_ID=456abc COMPONENT=Platform

For more information about the journal fields, see System Journal Fields.

Output Format

When you run the script, the output appears in a set order of default fields. The following is a sample of the default output from the script:
2019 Mar 11 14:51:45 FNM00175000815-A DEBUG CC CP bedrock.config.ConfigManagerVerticle vert.x-eventloop-thread-0 no_ctx_id Starting to set injector.

Where:

FieldValue
__REALTIME_TIMESTAMP2019 Mar 11 14:51:45
_HOSTNAMEFNM00175000815-A
PRIORITYDEBUG
MARKERCC
COMPONENTCP
SUB_COMPONENTbedrock.config.ConfigManagerVerticle
THREAD_NAMEvert.x-eventloop-thread-0
CONTEXT_IDno_ctx_id
MESSAGEStarting to set injector.

If you want to view additional fields in the output, specify them in the --output-fields argument. For example:

svc_journalctl --output-fields=CODE_LINE,CODE_FUNC

2019 Mar 11 14:51:45 FNM00175000815-A DEBUG CC CP bedrock.config.ConfigManagerVerticle vert.x-eventloop-thread-0 no_ctx_id [814] [validatePlatformResponseStateTask] Starting to set injector.

Where:

FieldValue
CODE_LINE[814]
CODE_FUNC[validatePlatformResponseStateTask]

Rate this content

Accurate
Useful
Easy to understand
Was this article helpful?
0/3000 characters
  Please provide ratings (1-5 stars).
  Please provide ratings (1-5 stars).
  Please provide ratings (1-5 stars).
  Please select whether the article was helpful or not.
  Comments cannot contain these special characters: <>()\