Chapter 2 Setting Up The NAM Traffic Analyzer

Traffic

Creating NetFlow Data Sources Using the CLI

To manually configure a NetFlow data source on the NAM using the CLI, for example if the auto-creation feature is turned off, use the following steps. Note that when using the CLI, there are two separate phases involved. First you must create a “device” entry on the NAM and remember the device ID. Then you must create a data source entry using this device ID. For convenience, these two phases are combined together when using the GUI to create NetFlow data sources.

Step 1 Enter the command device netflow. You will now be in netflow device subcommand mode as shown here:

root@172-20-104-107.cisco.com# device netflow

Entering into subcommand mode for this command.

Type 'exit' to apply changes and come out of this mode.

Type 'cancel' to discard changes and come out of this mode.

root@172-20-104-107.cisco.com(sub-device-netflow)#

Step 2 Enter ? to see all the command options available, as in the example below:

root@172-20-104-107.cisco.com(sub-device-netflow)# ?

?

- display help

address

- device IP address (*)

cancel

- discard changes and exit from subcommand mode

community

- SNMPv2c community string

exit

- create device and exit from sub-command mode

help

- display help

show

- show current config that will be applied on exit

snmp-version

- SNMP version to use to communicate with device

v3-auth-passphrase

- SNMPv3 authentication passphrase

v3-auth-protocol

- SNMPv3 authentication protocol

v3-priv-passphrase

- SNMPv3 privacy passphrase

v3-priv-protocol

- SNMPv3 privacy protocol

v3-sec-level

- SNMPv3 security level

v3-username

- SNMPv3 username

(*)- denotes a mandatory field for this configuration.

root@172-20-104-107.cisco.com(sub-device-netflow)#

Step 3 Enter the IP address of the device as shown in this example (required): root@172-20-104-107.cisco.com(sub-device-netflow)# address 192.168.0.1

Step 4 If desired, enter the SNMP credentials for the device, as in the example below. If you specify snmp-version v2c, then you should enter the community string for the device. If you specify snmp-version v3, then you should enter the security level, username, authentication protocol, authentication passphrase, privacy protocol, and privacy passphrase.

root@172-20-104-107.cisco.com(sub-device-netflow)# snmp-version v2c root@172-20-104-107.cisco.com(sub-device-netflow)# community public

Step 5 Type show to look at the device configuration that will be applied and verify that it is correct:

root@172-20-104-107.cisco.com(sub-device-netflow)# show

 

DEVICE TYPE

: NDE (Netflow Data Export)

 

DEVICE ADDRESS

: 192.168.0.1

 

 

 

 

SNMP VERSION

: SNMPv2c

 

V2C COMMUNITY

: public

 

V3 USERNAME

:

 

 

 

 

 

User Guide for the Cisco Network Analysis Module (NAM) Traffic Analyzer, 5.0

 

 

 

 

 

 

 

 

 

 

 

 

OL-22617-01

 

 

2-25

 

 

 

 

 

Page 59
Image 59
Cisco Systems NAM, 5 manual Creating NetFlow Data Sources Using the CLI