Page 676 / 757 Scroll up to view Page 671 - 675
xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
672
DGS-3627:admin# show syslog
Command: show syslog
Syslog Global State: Enabled
DGS-3627:admin#
config syslog host
Purpose
Used to configure the syslog host configurations.
Syntax
config syslog host <index 1-4> [severity [emergency | alert | critical | error | warning |
notice | informational | debug | all | <level 0-7>] | facility [local0 | local1 | local2 | local3 |
local4 | local5 | local6 | local7] | udp_port <udp_port_number> | ipaddress <ipaddr> |
state [enable | disable]]
Description
This command configures the syslog host configurations. The user can choose and report a
specific level of messages to a specific host. When the user chooses a specific level for a
specific host, messages which are at that severity level or higher will be reported to the
specified host.
When the specified host doesn’t exist, the prompt message, “The entry does not exist.” will
be displayed and this configuration will fail.
When the IP address is invalid, the prompt message, “Invalid IP address.” will be displayed
and this configuration will fail.
The prompt message, “The IP address has already been configured.” will be prompted to the
user when configuring syslog hosts with “all” option and just assigning one IP address to
those hosts. This configuration will fail.
When the specified IP address already exists, the prompt message, “The host IP address
already exists.” will be displayed and this configuration will fail.
Parameters
host
- The host index or all hosts.
severity
-
emergency
Severity level 0
alert
Severity level 1
critical
Severity level 2
error
Severity level 3
warning
Severity level 4
notice
Severity level 5
informational
Severity level 6
debug
Severity level 7
facility
- Some of the operating system daemons and processes have been assigned facility
values. Processes and daemons that have not been explicitly assigned a facility may use any
of the "local use" facilities or they may use the "user-level" facility. Those facilities that have
been designated are shown below. This facility setting will be put in the syslog packet when it
is sent to a specific syslog server.
local0
user-defined facility
local1
user-defined facility
local2
user-defined facility
local3
user-defined facility
local4
user-defined facility
local5
user-defined facility
local6
user-defined facility
local7
user-defined facility
udp_port
- The UDP port number.
ipaddr
- Specify the IP address for the host.
state
- The syslog protocol is used for the transmission of event notification messages across
Page 677 / 757
xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
673
config syslog host
networks to a host. The option enables or disables the host to receive such messages.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage:
To configure syslog host configuration:
DGS-3627:admin# config syslog host all severity all facility local0
Command: config syslog host all severity all facility local0
Success.
DGS-3627:admin#
create syslog host
Purpose
Used to create a new syslog host.
Syntax
create syslog host <index 1-4> {severity [ emergency | alert | critical | error | warning |
notice | informational |debug| all | <level 0-7>] | facility [ local0 | local1 | local2 | local3 |
local4 | local5 | local6 | local7] | udp_port <udp_port_number> | ipaddress<ipaddr> |
state [ enable | disable]}
Description
This command creates a new syslog host. The user can choose and report specific levels of
messages to a specific host. When the user chooses a specific level for a specific host,
messages which are at that severity level or higher will be reported to that host.
When the IP address is invalid, the prompt message, “Invalid IP address,” will be displayed
and this configuration will fail.
When the specified IP address already exists, the prompt message, “The host IP address
already exists,” will be displayed and this configuration will fail.
When the specified host already exists, the prompt message, “The entry already exists,” will
be displayed and this configuration will fail.
Parameters
host
- The host index or all hosts
severity
emergency
Severity level 0
alert
Severity level 1
critical
Severity level 2
error
Severity level 3
warning
Severity level 4
notice
Severity level 5
informational
Severity level 6
debug
Severity level 7
all
Severity level All
facility
- Some of the operating system daemons and processes have been assigned facility
values. Processes and daemons that have not been explicitly assigned a facility may use any
of the "local use" facilities or they may use the "user-level" facility. The facilities that have
been designated are shown below.
local0
user-defined facility
local1
user-defined facility
local2
user-defined facility
local3
user-defined facility
local4
user-defined facility
local5
user-defined facility
Page 678 / 757
xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
674
create syslog host
local6
user-defined facility
local7
user-defined facility
udp_port
- The UDP port number.
state
- The syslog protocol is used for the transmission of event notification messages across
networks to a host. This option enables or disables the hosts that will receive such
messages.
ipaddress
– Specify the IP address used here.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage:
To create a new syslog host:
DGS-3627:admin# create syslog host 1 ipaddress 10.90.90.1 severity all facility local0
Command: create syslog host 1 ipaddress 10.90.90.1 severity all facility local0
Success.
DGS-3627:admin#
delete syslog host
Purpose
Used to delete the syslog host(s).
Syntax
delete syslog host [<index 1-4> | all]
Description
This command deletes the syslog host(s).
When the specified host doesn’t exist, the prompt message, “The entry does not exist,” will
be displayed and this configuration will fail.
Parameters
host [ <index 1-4> | all ]
- Host index or all hosts.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage:
To delete a syslog host:
DGS-3627:admin# delete syslog host 4
Command: delete syslog host 4
Success.
DGS-3627:admin#
show syslog host
Purpose
Used to display syslog host configurations.
Syntax
show syslog host {<index 1-4>}
Description
This command displays the syslog host configurations.
Parameters
index
- The host index.
If no parameter is specified, all hosts will be displayed.
Restrictions
None.
Page 679 / 757
xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
675
Example usage:
To display syslog host configurations:
DGS-3627:admin# show syslog host
Command: show syslog host
Syslog Global State: Enabled
Host Id
Host IP Address
Severity
Facility
UDP port
Status
-------
---------------
--------------
--------
--------
--------
1
172.18.70.97
All
Local5
514
Enabled
Total Entries : 1
DGS-3627:admin#
config log_save_timing
Purpose
Used to configure the method for saving the log.
Syntax
config log_save_timing [time_interval <min 1-65535> | on_demand | log_trigger]
Description
This command is used to set the method for saving the log.
Parameters
time_interval
- Save log to flash every xxx minutes. (If no new log events occur in this period,
don't save.)
on_demand
- Save log to flash whenever the user enters the "save log" or "save all"
command. The default setting is on_demand.
log_trigger
- Save log to flash whenever a new log event arrives.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage:
To configure the method for saving a log as on demand:
DGS-3627:admin#
config log_save_timing on_demand
Command: config log_save_timing on_demand
Success.
DGS-3627:admin#
show log_save_timing
Purpose
Used to show the method for saving the log.
Syntax
show log_save_timing
Description
To show the method for saving the log.
Parameters
None.
Restrictions
None.
Example usage:
To show the timing method used for saving the log:
Page 680 / 757
xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
676
DGS-3627:admin# show log_save_timing
Command: show log_save_timing
Saving log method: on_demand
DGS-3627:admin#
show attack_log
Purpose
Displays the attack log messages.
Syntax
show attack_log {unit <unit_id 1-n>} {index <value_list>}
Description
Displays the attack log messages. The attack log message refers to log messages driven by
modules such as DOS and the IP-MAC-port binding module. This type of log message may
generate a large amount of messages and quickly cause the system to run out of system log
storage. Therefore, for this type of log messages only the first log that is generated each
minute can be stored in the system log, with the rest of them being stored in a separate table
named attack log.
When the attack log is empty, the prompt message, “Log is empty,” will be displayed.
Parameters
unit
- The attack log messages on the specified unit will be displayed.
If unit ID is specified, then this unit will be referred to as the master unit.
index
- The list of index numbers of the entries that need to be displayed. For example, show
attack_log index 1-5 will display the attack log messages from 1 to 5.
If no parameter is specified, all entries in the attack log will be displayed.
Restrictions
None.
Example usage:
To show dangerous messages on the master:
DGS-3627:admin#
show attack_log index 1
Command: show attack_log index 1
Index
Date
Time
Level
Log Text
----- ---------- -------- -------- ----------------------------------------------
1
2008-10-17 15:00:14 CRIT(2)
Land attack is blocked from (IP: 10.72.24.1
Port: 7)
DGS-3627:admin#
clear attack_log
Purpose
Used to clear the attack log.
Syntax
clear attack_log {unit <unit_id 1-n>|all}
Description
Used to clear the attack log.
Parameters
unit
- The attack log messages on the specified unit will be cleared.
If specified, this unit will be referred to as the master unit.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage:
To clear the master’s attack log:

Rate

4.5 / 5 based on 2 votes.

Bookmark Our Site

Press Ctrl + D to add this site to your favorites!

Share
Top