display blacklist

Syntax

display blacklist { all | ip source-ip-address [ slot slot-number ] | slot slot-number } [ | { begin | exclude | include } regular-expression ]

View

Any view

Default level

1: Monitor level

Parameters

ip source-ip-address: Displays information about the blacklist entry for an IP address. The source-ip-address argument cannot be the broadcast address, 127.0.0.0/8, a class D address, or a class E address.

all: Displays information about all blacklist entries.

slot slot-number: Displays information about the blacklist entries on an IRF member device. The slot-number argument represents the ID of the IRF member switch. The value range for the argument depends on the number of member switches and their member IDs in the IRF fabric.

|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.

begin: Displays the first line that matches the specified regular expression and all lines that follow.

exclude: Displays all lines that do not match the specified regular expression.

include: Displays all lines that match the specified regular expression.

regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.

Description

Use display blacklist to display blacklist information.

Related commands: blacklist enable and blacklist ip.

Examples

# Display information about all blacklist entries.

<Sysname> display blacklist all
                    Blacklist information
------------------------------------------------------------------------------
Blacklist                               : enabled
Blacklist items                         : 1
------------------------------------------------------------------------------
IP              Type   Aging started       Aging finished      Dropped packets
                       YYYY/MM/DD hh:mm:ss YYYY/MM/DD hh:mm:ss
2.2.1.2         manual 2011/05/27 19:15:39 Never               0
1.1.1.2         auto   2011/05/01 18:26:31 2011/05/01 18:36:31 4294967295
1.1.1.3         manual 2011/05/02 06:13:20 2011/05/02 07:54:47 4294967295
--------------------------------------------------------------------------

Table 66: Command output

Field

Description

Blacklist

Whether the blacklist feature is enabled.

Blacklist items

Number of blacklist entries.

IP

IP address of the blacklist entry.

Type

Type of the blacklist entry:

  • manual—The entry was manually added.

  • auto—The entry was automatically added.

Aging started

Installation time of the entry.

Aging finished

Expiration time of the entry. For an entry with no aging time setting, the value Never is displayed.

Dropped packets

Number of packets from the IP address that have been dropped.