SmartWare Software Configuration Guide

12 • Ethernet port configuration

 

 

The following is an example of how the sniffer is normally used:

Step

Command

Purpose

 

 

 

1

[name] (cfg)# sniff ethernet

Enable the sniffer on ethernet port 0 1. (Normally the sniffer stops

 

0 1 [wrap]

capturing, if the capture buffer is full. However, if the ‘wrap’ option is

 

 

specified, the sniffer starts discarding the oldest packets and retains

 

 

the newest ones, if the capture buffer is full.)

 

 

 

2

 

Now the sniffer is active and will capture the datapackets on the

 

 

specified ethernet port.

 

 

 

3

[name] (cfg)# no sniff ether-

Disable the sniffer on ethernet port 0 1. (Note, that the captured

 

net 0 1]

data is not stored to flash memory unless you issue this command)

 

 

The file in the flash memory will be named as follows:

 

 

nvram:ethernet-0-<slot>-<port>.cap

 

 

In this example the name will be:

 

 

nvram:ethernet-0-0-1.cap

 

 

 

4

[name] (cfg)# copy

Copy the capture file via TFTP to a workstation.

 

nvram:ethernet-0-0-1.cap

 

 

tftp://tftp.mypc.net/

 

 

capture.cap

 

 

 

 

5

[name] (cfg)# erase

Erase the capture file on the system to save flash memory.

 

nvram:ethernet-0-0-1.cap

 

 

 

 

6

 

Now the capture file capture.cap can be viewed on a workstation

 

 

with Ethereal for example.

 

 

 

 

Note It is possible to capture packets on multiple Ethernet ports at the same time.

Using the built-in Ethernet sniffer

150

Page 150
Image 150
Patton electronic SmartNode 4110 Series manual Following is an example of how the sniffer is normally used