Page 671 / 757 Scroll up to view Page 666 - 670
xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
667
show syslog source_ipif
Purpose
Show syslog source IP interface.
Syntax
show syslog source_ipif
Description
This command is used to display the syslog source IP interface.
Parameters
None.
Restrictions
None.
Example usage:
Show syslog source IP interface:
DGS-3627:admin# show syslog source_ipif
Command: show syslog source_ipif
Syslog Source IP Interface Configuration:
IP Interface
: ipif3
IPv4 Address
: 14.0.0.3
DGS-3627:admin#
config trap source_ipif
Purpose
Configure trap source IP interface.
Syntax
config trap source_ipif [<ipif_name> {<ipaddr> | <ipv6addr>} | none]
Description
This command is used to configure trap source IP interface.
Parameters
ipif_name
- IP interface name. If only specify this parameter, the least IPv4 address and the
smallest IPv6 address of ipif_name will be used as source IP addresses.
none
- For clearing the configured source IP interface.
ipaddr
- IPv4 address.
ipv6addr
- IPv6 address.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage:
Configure trap source IP interface:
DGS-3627:admin# config trap source_ipif inter4
Command: config trap source_ipif inter4
Success
DGS-3627:admin#
To clear the configured trap source IP interface:
Page 672 / 757
xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
668
DGS-3627:admin# config trap source_ipif none
Command: config trap source_ipif none
Success
DGS-3627:admin#
show trap source_ipif
Purpose
Show trap source IP interface.
Syntax
show trap source_ipif
Description
This command is used to display the trap source IP interface.
Parameters
None.
Restrictions
None.
Example usage:
Show trap source IP interface:
DGS-3627:admin# show trap source_ipif
Command: show trap source_ipif
Trap Source IP Interface Configuration:
IP Interface
: ipif4
IPv4 Address
: None
IPv6 address
: 3000::52
DGS-3627:admin#
Page 673 / 757
xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
669
91
SYSTEM LOG COMMANDS
The System Log commands in the Command Line Interface (CLI) are listed (along with the appropriate parameters) in the
following table.
Command
Parameters
clear log
show log
{[index <value_list> | severity {emergency | alert | critical | error | warning | notice
| informational| debug |<level_list 0-7>}]}
enable syslog
disable syslog
show syslog
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]]
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]}
delete syslog host
[<index 1-4> | all]
show syslog host
{<index 1-4>}
config log_save_timing
[time_interval <min 1-65535> | on_demand | log_trigger]
show log_save_timing
show attack_log
{unit <unit_id 1-12>} {index <value_list>}
clear attack_log
{unit <unit_id 1-12>|all}
upload attack_log_toTFTP
[<ipaddr> | <ipv6addr> |<domain_name 255>] dest_file <path_filename 64> {unit
<unit_id 1-12>}
upload attack_log_toRCP
[{username <username 15>} {<ipaddr>} dest_file <path_filename 64> | rcp:
<string 128> ] {unit <unit_id 1-12>}
config system_severity
[trap | log | all] [emergency | alert | critical | error | warning | notice | information |
debug | <level 0-7>]
show system_severity
Each command is listed, in detail, in the following sections.
clear log
Purpose
Used to clear the switch’s history log.
Syntax
clear log
Description
This command clears the switch’s history log.
Parameters
None.
Restrictions
Only Administrator and Operator-level users can issue this command.
Page 674 / 757
xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
670
Example usage:
To clear the switch’s history log:
DGS-3627:admin# clear log
Command: clear log
Success.
DGS-3627:admin#
show log
Purpose
Used to display the switch’s history log.
Syntax
show log {[index <value_list> | severity {emergency | alert | critical | error | warning |
notice | informational| debug |<level_list 0-7>}]}
Description
This command displays the switch’s history log.
When the log is empty, the prompt message “Log is empty.” will be displayed.
Parameters
index
- The show log command will display the history log between the log number of X and
Y. For example, showing log index 1-5 will display the history log from 1 to 5.
If no parameter is specified, all history log entries will be displayed.
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
level_list
- Specifies a list of severity levels to be displayed. If there is more than one severity
level, please separate them by comma. The level number is from 0 to 7.
Restrictions
None.
Example usage:
To display the switch’s history log:
DGS-3627:admin#
show log index 1-3
Command: show log index 1-3
Index Date
Time
Level
Log Text
----- ---------- -------- ------- ----------------------------------------------
3
2008-10-17 15:00:14 INFO(1) Successful login through Console (Username: Anonymous)
2
2008-10-17 10:50:36 WARN(3) Console session timed out (Username: Anonymous)
1
2008-10-16 15:19:17 CRIT(5) SNMP request received from 10.0.0.27 with invalid
community string!
DGS-3627:admin#
enable syslog
Purpose
Used to enable the sending of syslog messages.
Syntax
enable syslog
Page 675 / 757
xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
671
enable syslog
Description
This command enables the sending of syslog messages.
Parameters
None.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage:
To enable the sending of syslog messages:
DGS-3627:admin# enable syslog
Command: enable syslog
Success.
DGS-3627:admin#
disable syslog
Purpose
Used to disable the sending of syslog messages.
Syntax
disable syslog
Description
This command disables the sending of syslog messages.
Parameters
None.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage:
To disable the sending of syslog messages:
DGS-3627:admin# disable syslog
Command: disable syslog
Success.
DGS-3627:admin#
show syslog
Purpose
Used to display the syslog protocol global state.
Syntax
show syslog
Description
This command displays the syslog protocol global state.
Parameters
None.
Restrictions
None.
Example usage:
To display the syslog protocol global state:

Rate

4.5 / 5 based on 2 votes.

Bookmark Our Site

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

Share
Top