Reference to a list of HASH references, each one representing one sample.
Depending on the sFlow version and type of hardware where the data comes
from (router, switch, etc.), the hash contains the following additional
keys:
In case of sFlow <= 4:
sampleType
sampleSequenceNumber
sourceIdType
sourceIdIndex
If it's a sFlow <= 4 flowsample you will get the
following additional keys:
samplingRate
samplePool
drops
inputInterface
outputInterface
packetDataType
extendedDataInSample
If it's a sFlow <= 4 countersample you will get
these additional keys:
counterSamplingInterval
countersVersion
In case of sFlow >= 5 you will first get enterprise, format
and length information:
sampleTypeEnterprise
sampleTypeFormat
sampleLength
If the sample is a Foundry ACL based sample (enterprise ==
1991 and format == 1) you will receive the following information:
FoundryFlags
FoundryGroupID
In case of a flowsample (enterprise == 0 and format ==
1):
sampleSequenceNumber
sourceIdType
sourceIdIndex
samplingRate
samplePool
drops
inputInterface
outputInterface
flowRecordsCount
If it's an expanded flowsample (enterprise == 0 and
format == 3) you will get these additional keys instead of
inputInterface and outputInterface:
inputInterfaceFormat
inputInterfaceValue
outputInterfaceFormat
outputInterfaceValue
In case of a countersample (enterprise == 0 and format
== 2) or an expanded countersample (enterprise == 0 and format ==
4):
sampleSequenceNumber
sourceIdType
sourceIdIndex
counterRecordsCount
counterDataLength
Depending on the hardware you can get the following additional
keys:
Header data (sFlow format):
HEADERDATA
HeaderProtocol
HeaderFrameLength
HeaderStrippedLength
HeaderSizeByte
HeaderSizeBit
HeaderBin
Additional Header data decoded from the raw packet header:
HeaderEtherSrcMac
HeaderEtherDestMac
HeaderType (ether type)
HeaderDatalen (of the whole packet including ethernet header)
Ethernet frame data:
ETHERNETFRAMEDATA
EtherMacPacketlength
EtherSrcMac
EtherDestMac
EtherPackettype
IPv4 data:
IPv4DATA
IPv4Packetlength
IPv4NextHeaderProtocol
IPv4srcIp
IPv4destIp
IPv4srcPort
IPv4destPort
IPv4tcpFlags
IPv4tos
IPv6 data:
IPv6DATA
IPv6Packetlength
IPv6NextHeaderProto
IPv6srcIp
IPv6destIp
IPv6srcPort
IPv6destPort
IPv6tcpFlags
IPv6Priority
Switch data:
SWITCHDATA
SwitchSrcVlan
SwitchSrcPriority
SwitchDestVlan
SwitchDestPriority
Router data:
ROUTERDATA
RouterIpVersionNextHopRouter
RouterIpAddressNextHopRouter
RouterSrcMask
RouterDestMask
Gateway data:
GATEWAYDATA
GatewayIpVersionNextHopRouter (only in case of sFlow v5)
GatewayIpAddressNextHopRouter (only in case of sFlow v5)
GatewayAsRouter
GatewayAsSource
GatewayAsSourcePeer
GatewayDestAsPathsCount
GatewayDestAsPaths (arrayreference)
each enty contains a hashreference:
asPathSegmentType
lengthAsList
AsPath (arrayreference, asNumbers as entries)
GatewayLengthCommunitiesList (added in sFlow v4)
GatewayCommunities (arrayreference, added in sFlow v4)
each enty contains a community (added in sFlow v4)
localPref
User data:
USERDATA
UserSrcCharset (only in case of sFlow v5)
UserLengthSrcString
UserSrcString
UserDestCharset (only in case of sFlow v5)
UserLengthDestString
UserDestString
Url data (added in sFlow v3):
URLDATA
UrlDirection
UrlLength
Url
UrlHostLength (only in case of sFlow v5)
UrlHost (only in case of sFlow v5)
The following keys can be only available in sFlow v5:
Mpls data:
MPLSDATA
MplsIpVersionNextHopRouter
MplsIpAddressNextHopRouter
MplsInLabelStackCount
MplsInLabelStack (arrayreference containing MplsInLabels)
MplsOutLabelStackCount
MplsOutLabelStack (arrayreference containing MplsOutLabels)
Nat data:
NATDATA
NatIpVersionSrcAddress
NatSrcAddress
NatIpVersionDestAddress
NatDestAddress
Mpls tunnel:
MPLSTUNNEL
MplsTunnelNameLength
MplsTunnelName
MplsTunnelId
MplsTunnelCosValue
Mpls vc:
MPLSVC
MplsVcInstanceNameLength
MplsVcInstanceName
MplsVcId
MplsVcLabelCosValue
Mpls fec:
MPLSFEC
MplsFtnDescrLength
MplsFtnDescr
MplsFtnMask
Mpls lpv fec:
MPLSLPVFEC
MplsFecAddrPrefixLength
Vlan tunnel:
VLANTUNNEL
VlanTunnelLayerStackCount
VlanTunnelLayerStack (arrayreference containing VlanTunnelLayer entries)
The following keys are also available in sFlow < 5:
Counter generic:
COUNTERGENERIC
ifIndex
ifType
ifSpeed
ifDirection
ifAdminStatus
ifOperStatus
ifInOctets
ifInUcastPkts
ifInMulticastPkts
ifInBroadcastPkts
ifInDiscards
ifInErrors
ifInUnknownProtos
ifOutOctets
ifOutUcastPkts
ifOutMulticastPkts
ifOutBroadcastPkts
ifOutDiscards
ifOutErrors
ifPromiscuousMode
Counter ethernet:
COUNTERETHERNET
dot3StatsAlignmentErrors
dot3StatsFCSErrors
dot3StatsSingleCollisionFrames
dot3StatsMultipleCollisionFrames
dot3StatsSQETestErrors
dot3StatsDeferredTransmissions
dot3StatsLateCollisions
dot3StatsExcessiveCollisions
dot3StatsInternalMacTransmitErrors
dot3StatsCarrierSenseErrors
dot3StatsFrameTooLongs
dot3StatsInternalMacReceiveErrors
dot3StatsSymbolErrors
Counter tokenring:
COUNTERTOKENRING
dot5StatsLineErrors
dot5StatsBurstErrors
dot5StatsACErrors
dot5StatsAbortTransErrors
dot5StatsInternalErrors
dot5StatsLostFrameErrors
dot5StatsReceiveCongestions
dot5StatsFrameCopiedErrors
dot5StatsTokenErrors
dot5StatsSoftErrors
dot5StatsHardErrors
dot5StatsSignalLoss
dot5StatsTransmitBeacons
dot5StatsRecoverys
dot5StatsLobeWires
dot5StatsRemoves
dot5StatsSingles
dot5StatsFreqErrors
Counter vg:
COUNTERVG
dot12InHighPriorityFrames
dot12InHighPriorityOctets
dot12InNormPriorityFrames
dot12InNormPriorityOctets
dot12InIPMErrors
dot12InOversizeFrameErrors
dot12InDataErrors
dot12InNullAddressedFrames
dot12OutHighPriorityFrames
dot12OutHighPriorityOctets
dot12TransitionIntoTrainings
dot12HCInHighPriorityOctets
dot12HCInNormPriorityOctets
dot12HCOutHighPriorityOctets
Counter vlan:
COUNTERVLAN
vlan_id
octets
ucastPkts
multicastPkts
broadcastPkts
discards
Counter processor (only in sFlow v5):
COUNTERPROCESSOR
cpu5s
cpu1m
cpu5m
memoryTotal
memoryFree