Help : Configure : Example 1

The following configuration file shows typical settings for a probe monitoring a layer 2/3 switch using its mirror port:

[probe]

host = probe.inmon.com                      ; change to result of "hostname" command
softwareKey = 3BC37BEF3C13E76F0003FFFFA4E46D998B7D7C3949879FCD475158E1
collectorHost = traffic.inmon.com           ; name of the sFlow collector

; some settings can have default values defined at the top level
; which are then overridden for specific agents below:

samplingRate = 1000
community = private

; Include scripts relevant to layer 2 switching
script.getArpCache.interval     = 3600       ; get MAC -> ifIndex mapping
script.getVlanTable.interval    = 3600       ; get ifIndex -> VLAN mapping
script.getIfTable.interval      = 3600       ; get ifIndex -> MAC mapping

; Include scripts relevant to layer 3 switching
script.getRoutingTable.interval = 3600       ; get CIDR -> nextHop, protocol, ifIndex

        ; agent sending SPAN/mirror traffic to interface eth1

        [agent]
        address = 10.0.0.254                  ; address of the switch management agent
        ; Uncomment next line if monitoring a Cisco Catalyst with VLANs configured
        ; script.getCiscoBridgeTable.interval = 3600
                [adaptor]
                deviceName = eth1
                mirrorDirection = input       ; input traffic is being mirrored

Note: The switch (10.0.0.254) must be configured to mirror input packets to the monitor/SPAN port connected to eth1 on the probe (see Port Mirroring).