After getting nfdump and nfsen up and running in our environment, I thought it would be useful to list the commands used to collect and export the netflow data. For the full netflow configuration guide please visit – Catalyst 6500/6000 Switches NetFlow Configuration and Troubleshooting
Enable Netflow
Switch(config)#mls netflow interface
Switch(config)#mls flow ip interface-full
Switch(config)#mls nde sender version 5
Start Netflow On Vlan 10
Switch(config)# interface vlan 10
Switch(config-if)# ip flow ingress
Switch(config-if)# ip flow egress
Verify Netflow Entries
Switch# show mls netflow ip
Switch# show mls netflow ip count
Configure NDE (Netflow Data Export)
Switch(config)# ip flow-export source vlan 5
Switch(config)# ip flow-export version 5
Switch(config)# ip flow-export destination 192.168.1.10 65000
Verify NDE
Switch# show mls nde
Netflow Data Export enabled
Exporting flows to 192.168.1.10 (65000)
Exporting flows from 10.1.1.1 (54677)
Version: 5
Layer2 flow creation is disabled
Layer2 flow export is disabled
Include Filter not configured
Exclude Filter not configured
Total Netflow Data Export Packets are:
282455 packets, 0 no packets, 8191195 records
Total Netflow Data Export Send Errors:
IPWRITE_NO_FIB = 0
IPWRITE_ADJ_FAILED = 0
IPWRITE_PROCESS = 0
IPWRITE_ENQUEUE_FAILED = 0
IPWRITE_IPC_FAILED = 0
IPWRITE_OUTPUT_FAILED = 0
IPWRITE_MTU_FAILED = 0
IPWRITE_ENCAPFIX_FAILED = 0
IPWRITE_CARD_FAILED = 0
Netflow Aggregation Disabled