show portmonitor filter
Displays information on the filters defined for port monitoring sessions.
- interface
- The device interface.
Operational mode
Use this command to display information on the filters defined for port monitoring sessions.
The following example displays information for all of the defined port monitor filters.
vyatta@vyatta:~$ show portmonitor filter
---------------------------------
Rulesets Information: Portmonitor
---------------------------------
--------------------------------------------------------------------------------
Portmonitor Inbound Filter Rules "dev":
Active on (dp0s4, in)
rule action proto packets bytes
---- ------ ----- ------- -----
2 allow any 0 0
condition - to 31.1.1.1
20 drop any 2054 107173
condition - all
Portmonitor Inbound Filter Rules "dev":
Active on (dp0s5, in)
rule action proto packets bytes
---- ------ ----- ------- -----
2 allow any 0 0
condition - to 31.1.1.1
20 drop any 2126 110807
condition - all
---------------------------------
Rulesets Information: Portmonitor
---------------------------------
--------------------------------------------------------------------------------
Portmonitor Outbound Filter Rules "dev2":
Active on (dp0s4, out)
rule action proto packets bytes
---- ------ ----- ------- -----
2 allow any 0 0
condition - from 31.1.1.1
20 drop any 0 0
condition - all
Portmonitor Outbound Filter Rules "dev2":
Active on (dp0s5, out)
rule action proto packets bytes
---- ------ ----- ------- -----
2 allow any 0 0
condition - from 31.1.1.1
20 drop any 0 0
condition - all
The following example displays information for the filters defined on a specific interface (dp0s5).
vyatta@vyatta:~$ show portmonitor filter dp0s5
---------------------------------
Rulesets Information: Portmonitor
---------------------------------
--------------------------------------------------------------------------------
Portmonitor Inbound Filter Rules "dev":
Active on (dp0s5, in)
rule action proto packets bytes
---- ------ ----- ------- -----
2 allow any 0 0
condition - to 31.1.1.1
20 drop any 2198 114551
condition - all
---------------------------------
Rulesets Information: Portmonitor
---------------------------------
--------------------------------------------------------------------------------
Portmonitor Outbound Filter Rules "dev2":
Active on (dp0s5, out)
rule action proto packets bytes
---- ------ ----- ------- -----
2 allow any 0 0
condition - from 31.1.1.1
20 drop any 0 0
condition - all