Knowledge Search


×
 

What options are available when configuring snoop?

  [KB6586] Show Article Properties


Summary:
What options are available when configuring snoop?
Symptoms:
Symptoms & Errrors:
  • A snoop capture isn't gathering the data I need
  • How do I set the detail length?
Solution:

The snoop command has a list of options / settings that are different from the debug options / settings. 
NOTE: Flow filters ('set ff' commands) apply to the debug flow capture, and they do not appy to the snoop catpture.

The snoop options available for your release are viewable via the CLI command :

     snoop ?

This will produce a list similar to the following:

Parameter

Description

snoop Starts the snoop capture
snoop ? Provides a list of top level options:

detail   snoop detail configuration

filter   snoop filter configuration
info     show snoop information
off      turn off snoop
snoop detail ? To set the packet length to display, use the len option

len      snoop detail length
off      turn off snoop detail

<number> packet length to display (range: 1 - 1514)
snoop filter ? Filter options allow the setting of the IP source, destination, and/or port; setting the filter direction, interface, etc.

cisco-hdlc   snoop cisco hdlc protocol packet
delete       delete snoop filter
ethernet     snoop specified ethernet
frame-relay  snoop frame relay protocol and multilink fragment packet
id           snoop filter id
ip           snoop ip packet
off          turn off snoop filter
on           turn on snoop filter
ppp          snoop ppp protocol and multilink fragment packet
tcp          snoop tcp packet
udp          snoop udp packet
snoop filter ip ? IP Filter options:

direction      snoop direction
dst-ip         snoop filter dst ip
dst-port       snoop filter dst port
interface      interface name
ip-proto       snoop filter ip proto
port           src or dst port
src-ip         snoop filter src ip
src-port       snoop filter src port
<IPv4 Address> IPv4 Address
offset         ip offset
snoop filter ethernet ? Ethernet Filter options:

arp            snoop arp packet
direction      snoop direction
interface      interface name
nsrp           snoop nsrp packet
vlan           snoop vlan packet
<number >      snoop specified ethernet type
except         snoop all but the specified ethernet type
offset         ethernet offset
snoop info Provides details about the snoop settings that have been configured.

Snoop: OFF
Filters Defined: 0, Active Filters 0
Detail: OFF, Detail Display length: 96

For information on reviewing a snoop capture see KB5413

Related Links: