asg log

This command is supported only on these:

  • ElasticXL Cluster

  • Maestro Security Group

  • Scalable Chassis Security Group

Notes:

  • You can run the "asg log" command in Gaia gClish or in the Expert mode.

  • You must run the "show smo log" command in Gaia gClish.

Description

Shows the content of log files aggregated from all Security Group Members.

Syntax in the Expert mode

asg log [-b <SGM IDs>] --file <Log File> [--from "<Timestamp>"] [--to "<Timestamp>"] [--tail <N>] [--filter "<String>"]

Syntax in Gaia gClish

show smo log <Log File> [from "<Timestamp>"] [to "<Timestamp>"] [tail <N>] [filter "<String>"]

Parameters

Parameter

Description

-b <SGM IDs>

Applies to Security Group Members as specified by the <SGM IDs>.

<SGM IDs> can be:

  • No <SGM IDs> specified, or all

    Applies to all Security Group Members and all Sites

  • One Security Group Member (for example, 1_1)

  • A comma-separated list of Security Group Members (for example, 1_1,1_4)

  • A range of Security Group Members (for example, 1_1-1_4)

  • One Site (chassis1, or chassis2)

  • The Active Site (chassis_active)

<Log File>

In the Expert mode, specifies the log file by its type or full path:

  • audit

    If you specify this log type, the output shows all audit logs in the /var/log/ directory.

    To specify a log file, enter its full path and name.

    For example: /var/log/asgaudit.log.1

  • ports

    If you specify this log type, the output shows all logs about ports in the /var/log/ directory.

    To specify a log file, enter its full path and name.

    For example: /var/log/ports

  • dist_mode

    If you specify this log type, the output shows all logs for the Distribution Mode activity.

    To specify a log file, enter its full path and name.

    For example: /var/log/dist_mode

    See Working with the Distribution Mode.

 

In Gaia gClish, specifies the log file by its type:

  • acpid

    Shows messages from the /var/log/acpid file.

  • audit

    Shows all audit messages from the /var/log/ directory.

  • auditlog

    Shows messages from the /var/log/audit/audit.log file.

  • auth

    Shows messages from the /var/log/auth file.

  • command_logger

    Shows messages from the /var/log/command_logger file.

  • cron

    Shows messages from the /var/log/cron file.

  • dist_mode

    Shows all logs for the Distribution Mode activity.

    See Working with the Distribution Mode.

  • gcopy

    Shows all logs for the GCopy activity.

  • gw_to_vsx

    Shows messages from the Gateway to VSX Gateway conversion.

  • messages

    Shows messages from the /var/log/messages* file.

  • pkg_config

    Shows messages from the /var/log/pkg_config_log file.

  • ports

    Shows messages from the /var/log/ports file.

  • routed

    Shows messages from the /var/log/routed*.log file.

  • save_config

    Shows messages from the /var/log/save_config_log file.

  • secure

    Shows messages from the /var/log/secure file.

  • send_alert

    Shows messages from the /var/log/send_alert file.

  • vs_start

    Shows messages from the /var/log/vs_start.elg file.

--from "<Timestamp>"

Shows only the log entries from the specified timestamp and above.

You must use the timestamp as it appears in the log file.

--to "<Timestamp>"

Shows only the log entries until the specified timestamp.

You must use the timestamp as it appears in the log file.

--tail <N>

Show only the last N lines of the log file for each Security Group Member.

For example, "-tail 3" shows only the last 3 lines of the specified log file.

Default: 10 lines.

--filter "<String>"

Specifies a text string to use as a filter for the log entries.

For example: --filter debug

Examples