Log host time – Allied Telesis AlliedWare Plus Operating System Version 5.4.4C (x310-26FT,x310-26FP,x310-50FT,x310-50FP) User Manual
Page 298
![background image](/manuals/427254/298/background.png)
Logging Commands
Software Reference for x310 Series Switches
10.26
AlliedWare Plus
TM
Operating System - Version 5.4.4C
C613-50046-01 REV A
log host time
This command configures the time used in messages sent to a remote syslog server. 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 host
{plus|minus} <0-24>}
Default
The default is local time.
Mode
Global Configuration
Usage
Use the local option if the remote syslog server is in the same time zone as the switch.
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 remote syslog server in hours. Messages will display the time they
were generated on this device but converted to the time zone of the remote syslog server.
Examples
To send messages to the remote syslog server with the IP address 10.32.16.21 in the
same time zone as the switch’s local time zone, use the following commands:
To send messages to the remote syslog server with the IP address 10.32.16.12 with
the time information converted to the time zone of the remote syslog server, 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 syslog server.
minus
Positive offset (difference) from the switch to the syslog server.
<0-24>
World Time zone offset in hours
awplus#
configure terminal
awplus(config)#
log host 10.32.16.21 time local 0
awplus#
configure terminal
awplus(config)#
log host 10.32.16.12 time local-offset plus 3