Flow monitor commands -- display flow-monitor

Use display flow-monitor to display information about flow monitor entries.

Syntax

Centralized devices:

display flow-monitor [ invalid ] [ verbose ] [ { ip | mpls [ label-position1 label-value1 [ label-position2 label-value2 [ label-position3 label-value3 ] ] ] } ] [ destination destination-address | interface interface-type interface-number | source source-address ] *

Distributed devices in standalone mode:Centralized IRF devices:

display flow-monitor [ invalid ] [ verbose ] [ { ip | mpls [ label-position1 label-value1 [ label-position2 label-value2 [ label-position3 label-value3 ] ] ] } ] [ destination destination-address | interface interface-type interface-number | source source-address ] * [ slot slot-number [ cpu cpu-number ] ]

Distributed devices in IRF mode:

display flow-monitor [ invalid ] [ verbose ] [ { ip | mpls [ label-position1 label-value1 [ label-position2 label-value2 [ label-position3 label-value3 ] ] ] } ] [ destination destination-address | interface interface-type interface-number | source source-address ] * [ chassis chassis-number slot slot-number [ cpu cpu-number ] ]

Views

Any view

Predefined user roles

network-admin

network-operator

mdc-admin

mdc-operator

Parameters

invalid: Specifies illegitimate flow monitor entries. If you do not specify this keyword, this command displays information about legitimate flow monitor entries.

verbose: Displays detailed information about flow monitor entries. If you do not specify this keyword, this command displays brief information about flow monitor entries.

ip: Specifies IP flow monitor entries.

mpls: Specifies MPLS flow monitor entries.

label-position1 label-value1: Specifies a label by its position and value. The value range for the label-position1 argument is 1 to 6. The value range for the label-value1 argument is 0 to 1048575.

label-position2 label-value2: Specifies a label by its position and value. The value range for the label-position2 argument is 1 to 6. The value range for the label-value2 argument is 0 to 1048575.

label-position3 label-value3: Specifies a label by its position and value. The value range for the label-position3 argument is 1 to 6. The value range for the label-value3 argument is 0 to 1048575.

destination destination-ip: Specifies a destination IP address in dotted-decimal notation.

interface interface-type interface-number: Specifies an interface by its type and number.

source source-ip: Specifies a source IP address in dotted-decimal notation.

slot slot-number: Specifies a card by its slot number. If you do not specify a card, the command displays information about flow monitor entries on all cards. (Distributed devices in standalone mode.)

slot slot-number: Specifies an IRF member device by its member ID. If you do not specify a member device, this command displays information about flow monitor entries on all member devices. (Centralized IRF devices.) (IRF 3 incapable.)

slot slot-number: Specifies an IRF member device by its member ID or specifies a PEX by its virtual slot number. On an IRF fabric, this command displays information about flow monitor entries on all member devices if you do not specify a member device. On an IRF 3 system, this command displays the entry information on all IRF member devices and PEXs if you do not specify an IRF member device or PEX. (Centralized IRF devices.) (IRF 3 capable.)

chassis chassis-number slot slot-number: Specifies a card on an IRF member device. The chassis-number argument represents the member ID of the IRF member device. The slot-number argument represents the slot number of the card. If you do not specify a card, this command displays information about flow monitor entries on all cards. (Distributed devices in IRF mode.) (IRF 3 incapable.)

chassis chassis-number slot slot-number: Specifies a card on an IRF member device or specifies a PEX. The chassis-number argument represents the member ID of the IRF member device or the virtual chassis number of the PEX. The slot-number argument represents the slot number of the card or PEX. On an IRF fabric, this command displays information about flow monitor entries on all cards if you do not specify a card. On an IRF 3 system, this command displays the entry information on all cards and PEXs if you do not specify a card or PEX. (Distributed devices in IRF mode.) (IRF 3 capable.)

cpu cpu-number: Specifies a CPU by its number. This option is available only if multiple CPUs are available on the specified slot.

Examples

# (Centralized devices.) Display brief information about flow monitor entries.

<Sysname> display flow-monitor

Total 1 matching IP flow monitor entries and 2 matching MPLS flow monitor entries.

State: Fixed

Type Source Destination Protocol Direction Interface VPN

Labels

-------------------------------------------------------------------------------

IP 2.2.2.2 3.3.3.3 6 Inbound GE1/0/2

IP& 4.4.4.4 5.5.5.5 6 Inbound GE1/0/2 vpn1

MPLS 1:18

2:24

3:30

MPLS 1:18 Outbound GE1/0/2

2:24

3:30

# (Distributed devices in standalone mode.) (Centralized IRF devices.) Display brief information about flow monitor entries.

<Sysname> display flow-monitor

Total 1 matching IP flow monitor entries and 0 matching MPLS flow monitor entries on slot 1.

State: Fixed

Type Source Destination Protocol Direction Interface VPN

Labels

-------------------------------------------------------------------------------

IP 2.2.2.2 3.3.3.3 6 Inbound GE1/0/2 vpn1

Total 1 matching IP flow monitor entries and 0 matching MPLS flow monitor entries on slot 2.

State: Unfixed

Type Source Destination Protocol Direction Interface VPN

Labels

-------------------------------------------------------------------------------

IP 4.4.4.4 3.3.3.3 6 Inbound GE1/0/2 vpn1

Table 1 Command output

Field | Description
State | State of the flow monitor table: · Fixed—The table has been frozen. · Unfixed—The table has not been frozen. This field is not displayed for illegitimate flow monitor entries.
Type | Flow type: · IP—IP flow. · MPLS—MPLS flow without IP options. · IP&MPLS—MPLS flows with IP options.
Source | Source IP address of the flow.
Destination | Destination IP address of the flow.
Protocol | IP protocol number of the flow.
Direction | Flow direction: · Inbound. · Outbound.
Interface | Interface that the flow passes through.
VPN | ‌ VPN to which the flow belongs. This field is empty if the flow does not belong to any VPN.
Labels | MPLS label list. The list supports a maximum of three labels.

# (Centralized devices.) Display detailed information about flow monitor entries.

<Sysname> display flow-monitor verbose

Total 1 matching IP flow monitor entries and 2 matching MPLS flow monitor entries.

State: Fixed

Type Source Destination Protocol Direction Interface VPN

Labels

-------------------------------------------------------------------------------

IP 2.2.2.2 3.3.3.3 6 Inbound GE1/0/2 vpn1

Packets: 283457

Bytes : 5339980

Entry created time: 11/01/2014, 10:01:03

First packet arrived: 11/01/2014, 10:01:03

Last packet arrived: 11/01/2014, 10:02:59

IP& 4.4.4.4 5.5.5.5 6 Inbound GE1/0/2 vpn1

MPLS 1:18

2:24

3:30

Packets: 283457

Bytes : 5339980

Entry created time: 11/01/2014, 08:01:15

First packet arrived: 11/01/2014, 08:01:15

Last packet arrived: 11/01/2014, 08:03:22

MPLS 1:18 Inbound GE1/0/2 vpn1

2:24

3:30

Packets: 283457

Bytes : 5339980

Entry created time: 11/01/2014, 00:08:10

First packet arrived: 11/01/2014, 00:08:10

Last packet arrived: 11/01/2014, 00:09:24

# (Distributed devices in standalone mode.) (Centralized IRF devices.) Display detailed information about flow monitor entries.

<Sysname> display flow-monitor verbose

Total 1 matching IP flow monitor entries and 0 matching MPLS flow monitor entries on slot 1

State: Fixed

Type Source Destination Protocol Direction Interface VPN

Labels

-------------------------------------------------------------------------------

IP 2.2.2.2 3.3.3.3 6 Inbound GE1/0/2 vpn1

Packets: 283457

Bytes : 5339980

Entry created time: 11/01/2014, 00:01:03

First packet arrived: 11/01/2014, 00:01:03

Last packet arrived: 11/01/2014, 00:02:59

Total 1 matching IP flow monitor entries and 0 matching MPLS flow monitor entries on slot 2.

State: Unfixed

Type Source Destination Protocol Direction Interface VPN

Labels

-------------------------------------------------------------------------------

IP 4.4.4.4 3.3.3.3 6 Inbound GE1/0/2 vpn1

Packets: 283457

Bytes : 5339980

Entry created time: 11/01/2014, 10:03:03

First packet arrived: 11/01/2014, 10:03:03

Last packet arrived: 11/01/2014, 10:04:59

Table 2 Command output

Field | Description
Packets | Number of packets in the flow.
Bytes | Number of bytes in the flow.
Entry created time | Time when the flow monitor entry was created.
First packet arrived | Time when the first packet in the flow arrived. If no matching packet arrives, this field displays N/A.
Last packet arrived | Time when the last packet in the flow arrived. If no matching packet arrives, this field displays N/A.

Flow monitor commands -- flow-monitor

Use flow-monitor to enable flow monitor.

Use undo flow-monitor to disable flow monitor.

Syntax

flow-monitor { inbound | outbound }

undo flow-monitor { inbound | outbound }

Default

Flow monitor is disabled.

Views

System view

Predefined user roles

network-admin

mdc-admin

Parameters

inbound: Enables flow monitor for incoming traffic.

outbound: Enables flow monitor for incoming traffic.

Examples

# Enable flow monitor for incoming traffic.

<Sysname> system-view

[Sysname] flow-monitor inbound

Flow monitor commands -- flow-monitor add ip

Use flow-monitor add ip to add an IP flow monitor entry to the flow monitor table.

Syntax

Centralized devices:

flow-monitor add ip source source-address destination dest-address protocol protocol-number interface interface-type interface-number { inbound | outbound } [ vpn-instance vpn-instance-name ]

Distributed devices in standalone mode:Centralized IRF devices:

flow-monitor add ip source source-address destination dest-address protocol protocol-number interface interface-type interface-number { inbound | outbound } [ vpn-instance vpn-instance-name ] [ slot slot-number [ cpu cpu-number ] ]

Distributed devices in IRF mode:

flow-monitor add ip source source-address destination dest-address protocol protocol-number interface interface-type interface-number { inbound | outbound } [ vpn-instance vpn-instance-name ] [ chassis chassis-number slot slot-number [ cpu cpu-number ] ]

Default

No IP flow monitor entries exist.

Views

System view

Predefined user roles

network-admin

mdc-admin

Parameters

ip: Specifies the IP flow monitor entry.

source source-address: Specifies the source IP address in dotted-decimal notation.

destination dest-address: Specifies the destination IP address in dotted-decimal notation.

protocol protocol-number: Specifies the protocol number in the range of 0 to 255. Common protocols include ICMP (1), IGMP (2), TCP (6), and UDP (17).

interface interface-type interface-number: Specifies the interface that the flow passes through. The interface-type interface-number arguments specify an interface by its type and number.

inbound: Specifies the incoming traffic.

outbound: Specifies the outgoing traffic.

vpn-instance vpn-instance-name: Specifies the MPLS L3VPN instance to which the flow belongs. The vpn-instance-name argument is a case-sensitive string of 1 to 31 characters. If the flow is on the public network, do not specify this option.

slot slot-number: Specifies a card by its slot number. If you do not specify a card, the command adds the IP flow monitor entry to all cards. (Distributed devices in standalone mode.)

slot slot-number: Specifies an IRF member device by its member ID. If you do not specify a member device, this command adds the IP flow monitor entry to all member devices. (Centralized IRF devices.) (IRF 3 incapable.)

slot slot-number: Specifies an IRF member device by its member ID or specifies a PEX by its virtual slot number. On an IRF fabric, this command adds the IP flow monitor entry to all member devices if you do not specify a member device. On an IRF 3 system, this command adds the entry to all IRF member devices and PEXs if you do not specify an IRF member device or PEX. (Centralized IRF devices.) (IRF 3 capable.)

chassis chassis-number slot slot-number: Specifies a card on an IRF member device. The chassis-number argument represents the member ID of the IRF member device. The slot-number argument represents the slot number of the card. If you do not specify a card, this command adds the IP flow monitor entry to all cards. (Distributed devices in IRF mode.) (IRF 3 incapable.)

chassis chassis-number slot slot-number: Specifies a card on an IRF member device or specifies a PEX. The chassis-number argument represents the member ID of the IRF member device or the virtual chassis number of the PEX. The slot-number argument represents the slot number of the card or PEX. On an IRF fabric, this command adds the IP flow monitor entry to all cards if you do not specify a card. On an IRF 3 system, this command adds the entry to all cards and PEXs if you do not specify a card or PEX. (Distributed devices in IRF mode.) (IRF 3 capable.)

cpu cpu-number: Specifies a CPU by its number. This option is available only if multiple CPUs are available on the specified slot.

Usage guidelines

If you specify an existing illegitimate entry, the system adds the entry to the flow monitor table and deletes the entry from the illegitimate entry list.

Examples

# (Centralized devices.) Add an IP flow monitor entry.

<Sysname> system-view

[Sysname] flow-monitor add ip source 1.1.1.1 destination 2.2.2.2 protocol 6 interface gigabitethernet 1/0/1 inbound

# (Distributed devices in standalone mode.) (Centralized IRF devices.) Add an IP flow monitor entry to the specified slot.

<Sysname> system-view

[Sysname] flow-monitor add ip source 1.1.1.1 destination 2.2.2.2 protocol 6 interface gigabitethernet 1/0/1 inbound slot 1

Related commands

display flow-monitor

Flow monitor commands -- flow-monitor add mpls

Use flow-monitor add mpls to add an MPLS flow monitor entry to the flow monitor table.

Syntax

Centralized devices:

flow-monitor add mpls label-position1 label-value1 [ label-position2 label-value2 [ label-position3 label-value3 ] ] [ source source-address destination dest-address protocol protocol-number ] interface interface-type interface-number { inbound | outbound } [ vpn-instance vpn-instance-name ]

Distributed devices in standalone mode:Centralized IRF devices:

flow-monitor add mpls label-position1 label-value1 [ label-position2 label-value2 [ label-position3 label-value3 ] ] [ source source-address destination dest-address protocol protocol-number ] interface interface-type interface-number { inbound | outbound } [ vpn-instance vpn-instance-name ] [ slot slot-number [ cpu cpu-number ] ]

Distributed devices in IRF mode:

flow-monitor add mpls label-position1 label-value1 [ label-position2 label-value2 [ label-position3 label-value3 ] ] [ source source-address destination dest-address protocol protocol-number ] interface interface-type interface-number { inbound | outbound } [ vpn-instance vpn-instance-name ] [ chassis chassis-number slot slot-number [ cpu cpu-number ] ]

Default

No MPLS flow monitor entries exist.

Views

System view

Predefined user roles

network-admin

mdc-admin

Parameters

mpls: Specifies the MPLS flow monitor entry.

label-position1 label-value1: Specifies a label by its position and value. The value range for the label-position1 argument is 1 to 6. The value range for the label-value1 argument is 0 to 1048575.

label-position2 label-value2: Specifies a label by its position and value. The value range for the label-position2 argument is 1 to 6. The value range for the label-value2 argument is 0 to 1048575.

label-position3 label-value3: Specifies a label by its position and value. The value range for the label-position3 argument is 1 to 6. The value range for the label-value3 argument is 0 to 1048575.

source source-address: Specifies the source IP address in dotted-decimal notation.

destination dest-address: Specifies the destination IP address in dotted-decimal notation.

protocol protocol-number: Specifies the protocol number in the range of 0 to 255. Common protocols include ICMP (1), IGMP (2), TCP (6), and UDP (17).

interface interface-type interface-number: Specifies the interface that the flow passes through. The interface-type interface-number arguments specify an interface by its type and number.

inbound: Specifies the incoming traffic.

outbound: Specifies the outgoing traffic.

vpn-instance vpn-instance-name: Specifies the MPLS L3VPN instance to which the flow belongs. The vpn-instance-name argument is a case-sensitive string of 1 to 31 characters. If the flow is on the public network, do not specify this option.

slot slot-number: Specifies a card by its slot number. If you do not specify a card, the command adds the MPLS flow monitor entry to all cards. (Distributed devices in standalone mode.)

slot slot-number: Specifies an IRF member device by its member ID. If you do not specify a member device, this command adds the MPLS flow monitor entry to all member devices. (Centralized IRF devices.) (IRF 3 incapable.)

slot slot-number: Specifies an IRF member device by its member ID or specifies a PEX by its virtual slot number. On an IRF fabric, this command adds the MPLS flow monitor entry to all member devices if you do not specify a member device. On an IRF 3 system, this command adds the entry to all IRF member devices and PEXs if you do not specify an IRF member device or PEX. (Centralized IRF devices.) (IRF 3 capable.)

chassis chassis-number slot slot-number: Specifies a card on an IRF member device. The chassis-number argument represents the member ID of the IRF member device. The slot-number argument represents the slot number of the card. If you do not specify a card, this command adds the MPLS flow monitor entry to all cards. (Distributed devices in IRF mode.) (IRF 3 incapable.)

chassis chassis-number slot slot-number: Specifies a card on an IRF member device or specifies a PEX. The chassis-number argument represents the member ID of the IRF member device or the virtual chassis number of the PEX. The slot-number argument represents the slot number of the card or PEX. On an IRF fabric, this command adds the MPLS flow monitor entry to all cards if you do not specify a card. On an IRF 3 system, this command adds the entry to all cards and PEXs if you do not specify a card or PEX. (Distributed devices in IRF mode.) (IRF 3 capable.)

cpu cpu-number: Specifies a CPU by its number. This option is available only if multiple CPUs are available on the specified slot.

Usage guidelines

If you specify an existing illegitimate entry, the system adds the entry to the flow monitor table and deletes the entry from the illegitimate entry list.

Examples

# (Centralized devices.) Add an MPLS flow monitor entry.

<Sysname> system-view

[Sysname] flow-monitor add mpls 1 20 2 23 3 12 source 1.1.1.1 destination 2.2.2.2 protocol 6 interface gigabitethernet 1/0/1 inbound

# (Distributed devices in standalone mode.) (Centralized IRF devices.) Add an MPLS flow monitor entry to the specified slot.

<Sysname> system-view

[Sysname] flow-monitor add mpls 1 20 2 23 3 12 source 1.1.1.1 destination 2.2.2.2 protocol 6 interface gigabitethernet 1/0/1 inbound slot 1

Related commands

display flow-monitor

Flow monitor commands -- flow-monitor delete ip

Use flow-monitor delete ip to delete an IP flow monitor entry.

Syntax

Centralized devices:

flow-monitor delete ip source source-address destination dest-address protocol protocol-number interface interface-type interface-number { inbound | outbound } [ vpn-instance vpn-instance-name ]

Distributed devices in standalone mode:Centralized IRF devices:

flow-monitor delete ip source source-address destination dest-address protocol protocol-number interface interface-type interface-number { inbound | outbound } [ vpn-instance vpn-instance-name ] [ slot slot-number [ cpu cpu-number ] ]

Distributed devices in IRF mode:

flow-monitor delete ip source source-address destination dest-address protocol protocol-number interface interface-type interface-number { inbound | outbound } [ vpn-instance vpn-instance-name ] [ chassis chassis-number slot slot-number [ cpu cpu-number ] ]

Views

System view

Predefined user roles

network-admin

mdc-admin

Parameters

ip: Specifies the IP flow monitor entry.

source source-address: Specifies the source IP address in dotted-decimal notation.

destination dest-address: Specifies the destination IP address in dotted-decimal notation.

protocol protocol-number: Specifies the protocol number in the IPv4 header, in the range of 0 to 255. Common protocols include ICMP (1), IGMP (2), TCP (6), and UDP (17).

interface interface-type interface-number: Specifies the interface that the flow passes through. The interface-type interface-number arguments specify an interface by its type and number.

inbound: Specifies the incoming traffic.

outbound: Specifies the outgoing traffic.

vpn-instance vpn-instance-name: Specifies the MPLS L3VPN instance to which the flow belongs. The vpn-instance-name argument is a case-sensitive string of 1 to 31 characters. If the flow is on the public network, do not specify this option.

slot slot-number: Specifies a card by its slot number. If you do not specify a card, the command deletes the IP flow monitor entry from all cards. (Distributed devices in standalone mode.)

slot slot-number: Specifies an IRF member device by its member ID. If you do not specify a member device, this command deletes the IP flow monitor entry from all member devices. (Centralized IRF devices.) (IRF 3 incapable.)

slot slot-number: Specifies an IRF member device by its member ID or specifies a PEX by its virtual slot number. On an IRF fabric, this command deletes the IP flow monitor entry from all member devices if you do not specify a member device. On an IRF 3 system, this command deletes the entry from all IRF member devices and PEXs if you do not specify an IRF member device or PEX. (Centralized IRF devices.) (IRF 3 capable.)

chassis chassis-number slot slot-number: Specifies a card on an IRF member device. The chassis-number argument represents the member ID of the IRF member device. The slot-number argument represents the slot number of the card. If you do not specify a card, this command deletes the IP flow monitor entry from all cards. (Distributed devices in IRF mode.) (IRF 3 incapable.)

chassis chassis-number slot slot-number: Specifies a card on an IRF member device or specifies a PEX. The chassis-number argument represents the member ID of the IRF member device or the virtual chassis number of the PEX. The slot-number argument represents the slot number of the card or PEX. On an IRF fabric, this command deletes the IP flow monitor entry from all cards if you do not specify a card. On an IRF 3 system, this command deletes the entry from all cards and PEXs if you do not specify a card or PEX. (Distributed devices in IRF mode.) (IRF 3 capable.)

cpu cpu-number: Specifies a CPU by its number. This option is available only if multiple CPUs are available on the specified slot.

Examples

# (Centralized devices.) Delete an IP flow monitor entry.

<Sysname> system-view

[Sysname] flow-monitor delete ip source 1.1.1.1 destination 2.2.2.2 protocol 6 interface gigabitethernet 1/0/1 inbound

# (Distributed devices in standalone mode.) (Centralized IRF devices.) Delete an IP flow monitor entry from the specified slot.

<Sysname> system-view

[Sysname] flow-monitor delete ip source 1.1.1.1 destination 2.2.2.2 protocol 6 interface gigabitethernet 1/0/1 inbound slot 1

Related commands

display flow-monitor

Flow monitor commands -- flow-monitor delete mpls

Use flow-monitor delete mpls to delete an MPLS flow monitor entry.

Syntax

Centralized devices:

flow-monitor delete mpls label-position1 label-value1 [ label-position2 label-value2 [ label-position3 label-value3 ] ] [ source source-address destination dest-address protocol protocol-number ] interface interface-type interface-number { inbound | outbound } [ vpn-instance vpn-instance-name ]

Distributed devices in standalone mode:Centralized IRF devices:

flow-monitor delete mpls label-position1 label-value1 [ label-position2 label-value2 [ label-position3 label-value3 ] ] [ source source-address destination dest-address protocol protocol-number ] interface interface-type interface-number { inbound | outbound } [ vpn-instance vpn-instance-name ] [ slot slot-number [ cpu cpu-number ] ]

Distributed devices in IRF mode:

flow-monitor delete mpls label-position1 label-value1 [ label-position2 label-value2 [ label-position3 label-value3 ] ] [ source source-address destination dest-address protocol protocol-number ] interface interface-type interface-number { inbound | outbound } [ vpn-instance vpn-instance-name ] [ chassis chassis-number slot slot-number [ cpu cpu-number ] ]

Views

System view

Predefined user roles

network-admin

mdc-admin

Parameters

mpls: Specifies the MPLS flow monitor entry.

label-position1 label-value1: Specifies a label by its position and value. The value range for the label-position1 argument is 1 to 6. The value range for the label-value1 argument is 0 to 1048575.

label-position2 label-value2: Specifies a label by its position and value. The value range for the label-position2 argument is 1 to 6. The value range for the label-value2 argument is 0 to 1048575.

label-position3 label-value3: Specifies a label by its position and value. The value range for the label-position3 argument is 1 to 6. The value range for the label-value3 argument is 0 to 1048575.

source source-address: Specifies the source IP address in dotted-decimal notation.

destination dest-address: Specifies the destination IP address in dotted-decimal notation.

protocol protocol-number: Specifies the protocol number in the IPv4 header, in the range of 0 to 255. Common protocols include ICMP (1), IGMP (2), TCP (6), and UDP (17).

interface interface-type interface-number: Specifies the interface that the flow passes through. The interface-type interface-number arguments specify an interface by its type and number.

inbound: Specifies the incoming traffic.

outbound: Specifies the outgoing traffic.

vpn-instance vpn-instance-name: Specifies the MPLS L3VPN instance to which the flow belongs. The vpn-instance-name argument is a case-sensitive string of 1 to 31 characters. If the flow is on the public network, do not specify this option.

slot slot-number: Specifies a card by its slot number. If you do not specify a card, the command deletes the MPLS flow monitor entry from all cards. (Distributed devices in standalone mode.)

slot slot-number: Specifies an IRF member device by its member ID. If you do not specify a member device, this command deletes the MPLS flow monitor entry from all member devices. (Centralized IRF devices.) (IRF 3 incapable.)

slot slot-number: Specifies an IRF member device by its member ID or specifies a PEX by its virtual slot number. On an IRF fabric, this command deletes the MPLS flow monitor entry from all member devices if you do not specify a member device. On an IRF 3 system, this command deletes the entry from all IRF member devices and PEXs if you do not specify an IRF member device or PEX. (Centralized IRF devices.) (IRF 3 capable.)

chassis chassis-number slot slot-number: Specifies a card on an IRF member device. The chassis-number argument represents the member ID of the IRF member device. The slot-number argument represents the slot number of the card. If you do not specify a card, this command deletes the MPLS flow monitor entry from all cards. (Distributed devices in IRF mode.) (IRF 3 incapable.)

chassis chassis-number slot slot-number: Specifies a card on an IRF member device or specifies a PEX. The chassis-number argument represents the member ID of the IRF member device or the virtual chassis number of the PEX. The slot-number argument represents the slot number of the card or PEX. On an IRF fabric, this command deletes the MPLS flow monitor entry from all cards if you do not specify a card. On an IRF 3 system, this command deletes the entry from all cards and PEXs if you do not specify a card or PEX. (Distributed devices in IRF mode.) (IRF 3 capable.)

cpu cpu-number: Specifies a CPU by its number. This option is available only if multiple CPUs are available on the specified slot.

Examples

# (Centralized devices.) Delete an MPLS flow monitor entry.

<Sysname> system-view

[Sysname] flow-monitor delete mpls 1 23 2 20 3 12 source 1.1.1.1 destination 2.2.2.2 protocol 6 interface gigabitethernet 1/0/1 inbound

# (Distributed devices in standalone mode.) (Centralized IRF devices.) Delete an MPLS flow monitor entry from the specified slot.

<Sysname> system-view

[Sysname] flow-monitor delete mpls 1 23 2 20 3 12 source 1.1.1.1 destination 2.2.2.2 protocol 6 interface gigabitethernet 1/0/1 inbound slot 1

Related commands

display flow-monitor

Flow monitor commands -- flow-monitor fixup

Use flow-monitor fixup to freeze the flow monitor table and set the table to fixed state.

Use undo flow-monitor fixup to set the flow monitor table to unfixed state and delete all illegitimate flow monitor entries.

Syntax

Centralized devices:

flow-monitor fixup

undo flow-monitor fixup

Distributed devices in standalone mode:Centralized IRF devices:

flow-monitor fixup [ slot slot-number [ cpu cpu-number ] ]

undo flow-monitor fixup [ slot slot-number [ cpu cpu-number ] ]

Distributed devices in IRF mode:

flow-monitor fixup [ chassis chassis-number slot slot-number [ cpu cpu-number ] ]

undo flow-monitor fixup [ chassis chassis-number slot slot-number [ cpu cpu-number ] ]

Default

The flow monitor table is in unfixed state.

Views

System view

Predefined user roles

network-admin

mdc-admin

Parameters

slot slot-number: Specifies a card by its slot number. If you do not specify a card, the command freezes the flow monitor tables on all cards. (Distributed devices in standalone mode.)

slot slot-number: Specifies an IRF member device by its member ID. If you do not specify a member device, this command freezes the flow monitor tables on all member devices. (Centralized IRF devices.) (IRF 3 incapable.)

slot slot-number: Specifies an IRF member device by its member ID or specifies a PEX by its virtual slot number. On an IRF fabric, this command freezes the flow monitor tables on all member devices if you do not specify a member device. On an IRF 3 system, this command freezes the flow monitor tables on all IRF member devices and PEXs if you do not specify an IRF member device or PEX. (Centralized IRF devices.) (IRF 3 capable.)

chassis chassis-number slot slot-number: Specifies a card on an IRF member device. The chassis-number argument represents the member ID of the IRF member device. The slot-number argument represents the slot number of the card. If you do not specify a card, this command freezes the flow monitor tables on all cards. (Distributed devices in IRF mode.) (IRF 3 incapable.)

chassis chassis-number slot slot-number: Specifies a card on an IRF member device or specifies a PEX. The chassis-number argument represents the member ID of the IRF member device or the virtual chassis number of the PEX. The slot-number argument represents the slot number of the card or PEX. On an IRF fabric, this command freezes the flow monitor tables on all cards if you do not specify a card. On an IRF 3 system, this command freezes the flow monitor tables on all cards and PEXs if you do not specify a card or PEX. (Distributed devices in IRF mode.) (IRF 3 capable.)

cpu cpu-number: Specifies a CPU by its number. This option is available only if multiple CPUs are available on the specified slot.

Examples

# (Centralized devices.) Freeze the flow monitor table.

<Sysname> system-view

[Sysname] flow-monitor fixup

# (Distributed devices in standalone mode.) (Centralized IRF devices.) Freeze the flow monitor table in the specified slot.

<Sysname> system-view

[Sysname] flow-monitor fixup slot 1

Related commands

display flow-monitor

Flow monitor commands -- reset flow-monitor entry

Use reset flow-monitor entry to delete illegitimate, fixed, or unfixed flow monitor entries.

Syntax

Centralized devices:

reset flow-monitor entry [ invalid ] [ ip | mpls ] [ interface interface-type interface-number ]

Distributed devices in standalone mode:Centralized IRF devices:

reset flow-monitor entry [ invalid ] [ ip | mpls ] [ interface interface-type interface-number ] [ slot slot-number [ cpu cpu-number ] ] [ source slot source-slot-number [ cpu source-cpu-number ] ]

Distributed devices in IRF mode:

reset flow-monitor entry [ invalid ] [ ip | mpls ] [ interface interface-type interface-number ] [ chassis chassis-number slot slot-number [ cpu cpu-number ] ] [ source chassis source-chassis-number slot source-slot-number [ cpu source-cpu-number ] ]

Views

User view

Predefined user roles

network-admin

mdc-admin

Parameters

invalid: Specifies illegitimate flow monitor entries. If you do not specify this keyword, this command deletes fixed or unfixed flow monitor entries.

ip: Specifies IP flow monitor entries.

mpls: Specifies MPLS flow monitor entries.

interface interface-type interface-number: Specifies the interface that the traffic passes through. The interface-type interface-number arguments specify an interface by its type and number.

slot slot-number: Specifies a card by its slot number. If you do not specify a card, the command deletes flow monitor entries from all cards. (Distributed devices in standalone mode.)

slot slot-number: Specifies an IRF member device by its member ID. If you do not specify a member device, this command deletes flow monitor entries from all member devices. (Centralized IRF devices.) (IRF 3 incapable.)

slot slot-number: Specifies an IRF member device by its member ID or specifies a PEX by its virtual slot number. On an IRF fabric, this command deletes flow monitor entries from all member devices if you do not specify a member device. On an IRF 3 system, this command deletes flow monitor entries from all IRF member devices and PEXs if you do not specify an IRF member device or PEX. (Centralized IRF devices.) (IRF 3 capable.)

chassis chassis-number slot slot-number: Specifies a card on an IRF member device. The chassis-number argument represents the member ID of the IRF member device. The slot-number argument represents the slot number of the card. If you do not specify a card, this command deletes flow monitor entries from all cards. (Distributed devices in IRF mode.) (IRF 3 incapable.)

chassis chassis-number slot slot-number: Specifies a card on an IRF member device or specifies a PEX. The chassis-number argument represents the member ID of the IRF member device or the virtual chassis number of the PEX. The slot-number argument represents the slot number of the card or PEX. On an IRF fabric, this command deletes flow monitor entries from all cards if you do not specify a card. On an IRF 3 system, this command deletes flow monitor entries from all cards and PEXs if you do not specify a card or PEX. (Distributed devices in IRF mode.) (IRF 3 capable.)

cpu cpu-number: Specifies a CPU by its number. This option is available only if multiple CPUs are available on the specified slot.

source: Specifies the source card from which the traffic is mirrored. Specify this keyword to delete the flow monitor entries generated based on the mirrored traffic when the source card is removed.

slot source-slot-number: Specifies a card by its slot number. This command deletes flow monitor entries that are generated based on the traffic passing through the card. (Distributed devices in standalone mode.)

slot source-slot-number: Specifies an IRF member device by its member ID. This command deletes flow monitor entries that are generated based on the traffic passing through the IRF member device. (Centralized IRF devices.) (IRF 3 incapable.)

slot source-slot-number: Specifies an IRF member device by its member ID or specifies a PEX by its virtual slot number. On an IRF fabric, this command deletes flow monitor entries that are generated based on the traffic passing through the IRF member device. On an IRF 3 system, this command deletes flow monitor entries that are generated based on the traffic passing through the IRF member device or the PEX. (Centralized IRF devices.) (IRF 3 capable.)

chassis source-chassis-number slot source-slot-number: Specifies a card on an IRF member device. The chassis-number argument represents the member ID of the IRF member device. The slot-number argument represents the slot number of the card. This command deletes flow monitor entries that are generated based on the traffic passing through the card. (Distributed devices in IRF mode.) (IRF 3 incapable.)

chassis source-chassis-number slot source-slot-number: Specifies a card on an IRF member device or specifies a PEX. The chassis-number argument represents the member ID of the IRF member device or the virtual chassis number of the PEX. The slot-number argument represents the slot number of the card or PEX. On an IRF fabric, this command deletes flow monitor entries that are generated based on the traffic passing through the card. On an IRF 3 system, this command deletes flow monitor entries that are generated based on the traffic passing through the card or the PEX. (Distributed devices in IRF mode.) (IRF 3 capable.)

cpu source-cpu-number: Specifies a CPU by its number. This command deletes flow monitor entries that are generated based on the traffic passing through the CPU. This option is available only if multiple CPUs are available on the specified slot.

Usage guidelines

The interface and source keywords are mutually exclusive. If you specify one of the two keywords, this command can delete flow monitor entries as follows:

· Unfixed entries from an unfrozen flow monitor table.

· Illegitimate and fixed entries from a frozen flow monitor table.

If you specify neither the interface keyword nor the source keyword, this command can delete flow monitor entries as follows:

· Unfixed entries from an unfrozen flow monitor table.

· Illegitimate entries from a frozen flow monitor table.

Examples

# (Centralized devices.) Delete all illegitimate flow monitor entries.

<Sysname> reset flow-monitor entry invalid

# (Distributed devices in standalone mode.) (Centralized IRF devices.) Delete all illegitimate flow monitor entries from the specified slot.

<Sysname> reset flow-monitor entry invalid slot 1

Related commands

display flow-monitor

Flow monitor commands -- reset flow-monitor statistics

Use reset flow-monitor statistics to clear flow monitor statistics.

Syntax

Centralized devices:

reset flow-monitor statistics

Distributed devices in standalone mode:Centralized IRF devices:

reset flow-monitor statistics [ slot slot-number [ cpu cpu-number ] ]

Distributed devices in IRF mode:

reset flow-monitor statistics [ chassis chassis-number slot slot-number [ cpu cpu-number ] ]

Views

User view

Predefined user roles

network-admin

mdc-admin

Parameters

slot slot-number: Specifies a card by its slot number. If you do not specify a card, the command clears flow monitor statistics on all cards. (Distributed devices in standalone mode.)

slot slot-number: Specifies an IRF member device by its member ID. If you do not specify a member device, this command clears flow monitor statistics on all member devices. (Centralized IRF devices.) (IRF 3 incapable.)

slot slot-number: Specifies an IRF member device by its member ID or specifies a PEX by its virtual slot number. On an IRF fabric, this command clears flow monitor statistics on all member devices if you do not specify a member device. On an IRF 3 system, this command clears flow monitor statistics on all IRF member devices and PEXs if you do not specify an IRF member device or PEX. (Centralized IRF devices.) (IRF 3 capable.)

chassis chassis-number slot slot-number: Specifies a card on an IRF member device. The chassis-number argument represents the member ID of the IRF member device. The slot-number argument represents the slot number of the card. If you do not specify a card, this command clears flow monitor statistics on all cards. (Distributed devices in IRF mode.) (IRF 3 incapable.)

chassis chassis-number slot slot-number: Specifies a card on an IRF member device or specifies a PEX. The chassis-number argument represents the member ID of the IRF member device or the virtual chassis number of the PEX. The slot-number argument represents the slot number of the card or PEX. On an IRF fabric, this command clears flow monitor statistics on all cards if you do not specify a card. On an IRF 3 system, this command clears flow monitor statistics on all cards and PEXs if you do not specify a card or PEX. (Distributed devices in IRF mode.) (IRF 3 capable.)

cpu cpu-number: Specifies a CPU by its number. This option is available only if multiple CPUs are available on the specified slot.

Examples

# (Centralized devices.) Clear flow monitor statistics.

<Sysname> reset flow-monitor statistics

# (Distributed devices in standalone mode.) (Centralized IRF devices.) Clear flow monitor statistics in the specified slot.

<Sysname> reset flow-monitor statistics slot 1

Related commands

display flow-monitor