beautypg.com

Log email time – Allied Telesis AlliedWare Plus Operating System Version 5.4.4C (x310-26FT,x310-26FP,x310-50FT,x310-50FP) User Manual

Page 292

background image

Logging Commands

Software Reference for x310 Series Switches

10.20

AlliedWare Plus

TM

Operating System - Version 5.4.4C

C613-50046-01 REV A

log email time

This command configures the time used in messages sent to an email address. If the
syslog server is in a different time zone to your switch then the time offset can be
configured using either the utc-offset parameter option keyword or the local-offset
parameter option keyword, where utc-offset is the time difference from UTC (Universal
Time, Coordinated) and local-offset is the difference from local time.

Syntax

log email time {local|local-offset|utc-offset

{plus|minus}<0-24>}

Default

The default is local time.

Mode

Global Configuration

Usage

Use the local option if the email recipient is in the same time zone as this device. Messages
will display the time as on the local device when the message was generated.

Use the offset option if the email recipient is in a different time zone to this device. Specify
the time offset of the email recipient in hours. Messages will display the time they were
generated on this device but converted to the time zone of the email recipient.

Examples

To send messages to the email address [email protected] in the same time zone as the
switch’s local time zone, use the following commands:

To send messages to the email address [email protected] with the time information
converted to the time zone of the email recipient, which is 3 hours ahead of the switch’s
local time zone, use the following commands:

Parameter

Description

The email address to send log messages to

time

Specify the time difference between the email recipient and the
switch you are configuring.

local

The switch is in the same time zone as the email recipient

local-offset

The switch is in a different time zone to the email recipient. Use
the plus or minus keywords and specify the difference (offset)
from local time of the switch to the email recipient in hours.

utc-offset

The switch is in a different time zone to the email recipient. Use
the plus or minus keywords and specify the difference (offset)
from UTC time of the switch to the email recipient in hours.

plus

Negative offset (difference) from the switch to the email
recipient.

minus

Positive offset (difference) from the switch to the email
recipient.

<0-24>

World Time zone offset in hours

awplus#

configure terminal

awplus(config)#

log email [email protected] time local 0

awplus#

configure terminal

awplus(config)#

log email [email protected] time local-offset
plus 3