3-2
Cisco CNS NetFlow Collection Engine Installation and Configuration Guide, 5.0.2
OL-6900-01
Chapter 3 Configuring CNS NetFlow Collection Engine
UNIX Environment Variables
UNIX Environment Variables
In releases prior to version 5.0, the CNS NetFlow Collection Engine Installation Guide recommended
setting a number of environment variables, such as
NFC_DIR
and
NFC_RESOURCEFILE
. These
settings should be removed from the environment for this release prior to installing and running CNS
NetFlow Collection Engine. The environment is automatically determined by startup scripts in the 5.0
release.
Enabling NetFlow Data Export
Because of the configuration differences between routers and switches, any detailed configuration
description for either type of NetFlow export device is beyond the scope of this guide. At the broadest
conceptual level, you must perform the following types of configuration tasks on the export devices:
•
Enable NetFlow services on Cisco routers; enable Multilayer Switching (MLS) on Catalyst 5000
series switches equipped with an NFFC.
•
Specify the IP address and the UDP port number used to identify CNS NetFlow Collection Engine
as the receiver of exported NetFlow data. In a default CNS NetFlow Collection Engine installation,
UDP ports 9995 and 9996 are automatically configured as the UDP ports CNS NetFlow Collection
Engine uses to receive NetFlow exported data.
•
Enable NetFlow data export.
For information on Cisco IOS software features related to NetFlow services on Cisco routers, see the
Cisco IOS software configuration guides and command references.
For information on specific configuration commands for Cisco Catalyst 5000 series switches, see the
"
NetFlow Switching Enhancements
" feature module in Cisco IOS release notes and feature modules.
For information on software features related to MLS on Catalyst 5000 series switches, see the
Catalyst
5000 Series Multilayer Switching User Guide
.
Starting CNS NetFlow Collection Engine
To start CNS NetFlow Collection Engine, you must be logged in as the user specified during installation.
Beginning in version 5.0, CNS NetFlow Collection Engine executables no longer have setuid-to-bin
permission.
Step 1
To run CNS NetFlow Collection Engine, log in as the user specified during installation.
Step 2
Enter the following command:
/opt/CSCOnfc/bin/nfcollector start all
CNS NetFlow Collection Engine runs as several processes. See the
“CNS NetFlow Collection Engine
Architectural Overview” section on page 1-5
for details about these processes.
Note
Typically, CNS NetFlow Collection Engine is started and allowed to run until there is some reason to
stop it.