Chapter12NetFlowConīæguration
StepCommandFunction
ZXR10(config-flow-record)#collectcounter{bytes
[long]|packets[long]}
Setsthenumberandbytenumber
ofīowpacketsasanon-key
īæelds.
bytes:Thisīæeldhas4bytes.
byteslong:Thisīæeldhas8bytes.
packets:Thisīæeldhas4bytes.
packetslong:Thisīæeldhas8
bytes.
ZXR10(config-flow-record)#collectdatalinkmac
{destination-address|source-address}
SetsthesourceMACaddressor
destinationMACaddressasa
non-keyīæeld.
ZXR10(config-flow-record)#collectflow
{direction|sample-rate}
Setstheīowdirectionor
samplingrateasanon-keyīæeld.
ZXR10(config-flow-record)#collectinterface
{input|output}
Setstheinputinterfaceindex
oroutputinterfaceindexasa
non-keyīæeld.
ZXR10(config-flow-record)#collectipv4
{[destinationaddress|address-prefix
minimum-mask<len>]|[sourceaddress|
address-prefixminimum-mask<len>]}
SetsIPv4informationasa
non-keyīæeld.
ZXR10(config-flow-record)#collectmplslabel
stacksection<1
ā
5>
SetsMPLSinformationasa
non-keyīæeld.
ZXR10(config-flow-record)#collectrouting{bgp
as-number{destination|source|next-adjacent|
prev-adjacent}|next-hop-address{ipv4|ipv6}}
Setstheroutenexthop
informationasanon-keyīæeld.
ZXR10(config-flow-record)#collecttimestamp
{sys-uptime{first|last}|absolute{first-millisec|
last-millisec}}
Setsthetimeorabsolutetime
whenaīowisswitchedforthe
īærstorlasttimeasnon-keyīæeld.
sys-uptimefirst:setsthesystem
power-uptimewhentheīow
arrivesatthecachefortheīærst
timeasacollectednon-keyīæeld.
Unit:ms.
sys-uptimelast:setsthesystem
power-uptimewhentheīowis
updatedinthecacheforthelast
timeasthecollectednon-key
īæeld.Unit:ms.
4
12-5
SJ-20140504150128-007|2014-05-10(R1.0)ZTEProprietaryandConīædential