C Commands
collect routing
82
Cisco Nexus 7000 Series NX-OS System Management Command Reference
OL-25806-03
collect routing
To configure a routing attribute as a nonkey field and collect the value of the field for a Flexible NetFlow
flow record, use the collect
routing command. To disable the use of a routing attribute as a nonkey field
for a Flexible NetFlow flow record, use the no form of this command.
collect routing {{destination | source} as [peer] | traffic-index | forwarding-status | next-hop
address ipv4 [bgp]}
no collect routing {{destination | source} as [peer] | traffic-index | forwarding-status | next-hop
address ipv4 [bgp]}
Syntax Description
Defaults This command is not enabled by default.
Command Modes Flow record configuration
Supported User Roles network-admin
vdc-admin
Command History
destination Configures one or more of the destination routing attributes fields as a
nonkey field and collects the values from the flows.
source Configures one or more of the source routing attributes fields as a nonkey
field and collects the values from the flows.
as Configures the destination AS field as a nonkey field and collects the value
in the AS field from the flows.
peer (Optional) Configures the destination AS number of the peer network as a
nonkey field and collects the value of the AS number of the peer network
from the flows.
traffic-index Configures the Border Gateway Protocol (BGP) source or destination traffic
index as a nonkey field and collects the value of the BGP destination traffic
index from the flows.
forwarding-status Collects the forwarding status of the packet and triggers the collection of
flows denied by Access Control List (ACL) entries.
next-hop address ipv4 Configures the next-hop value as a nonkey field and collects information
regarding the next-hop from the flows.
bgp (Optional) Configures the IP address of the next hop BGP network as a
nonkey field and collects the value of the IP address of the BGP next-hop
network from the flows.
Release Modification
4.0(1) This command was introduced.