HP 6125G HP 6125G & 6125G/XG Blade Switches Network Management and Mon - Page 146

Configuring the sFlow agent and sFlow collector, Configuring flow sampling

Page 146 highlights

Configuring the sFlow agent and sFlow collector Step 1. Enter system view. Command system-view 2. Specify the IP address for the sflow agent { ip ip-address | ipv6 sFlow agent. ipv6-address } sflow collector collector-id { { ip 3. Configure the ip-address | ipv6 ipv6-address } | sFlow collector. datagram-size size | description text | port port-number | time-out seconds } * 4. Specify the source IP sflow source { ip ip-address | ipv6 address of sent ipv6-address } * sFlow packets. Remarks N/A Optional Not specified by default. The device periodically checks the existence of the sFlow agent address. If the sFlow agent has no IP address configured, the device automatically selects an interface IP address for the sFlow agent but does not save the selected IP address. NOTE: • HP recommends configuring an IP address manually for the sFlow agent. • Only one IP address can be specified for the sFlow agent on the device. By default, the device presets a number of sFlow collectors. Use the display sflow command to display the parameters of the preset sFlow collectors. Optional Not specified by default. Configuring flow sampling Step Command Remarks 1. Enter system view. system-view N/A 2. Enter Layer 2 Ethernet interface view. interface interface-type interface-number N/A 3. Set the Flow sampling mode. sflow sampling-mode { determine | random } 4. Set the interval for flow sampling. sflow sampling-rate interval Optional random by default. Not set by default. 5. Set the maximum copied length of a sampled packet. sflow flow max-header length Optional By default, up to 128 bytes of a sampled packet can be copied. You are recommended to use the default value. 6. Specify the sFlow collector for sflow flow collector flow sampling. collector-id No collector is specified for flow sampling by default. 139

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157

139
Configuring the sFlow agent and sFlow collector
Step
Command
Remarks
1.
Enter system
view.
system-view
N/A
2.
Specify the IP
address for the
sFlow agent.
sflow agent
{
ip
ip-address
|
ipv6
ipv6-address
}
Optional
Not specified by default. The device
periodically checks the existence of the sFlow
agent address. If the sFlow agent has no IP
address configured, the device automatically
selects an interface IP address for the sFlow
agent but does not save the selected IP address.
NOTE:
HP recommends configuring an IP address
manually for the sFlow agent.
Only one IP address can be specified for the
sFlow agent on the device.
3.
Configure the
sFlow collector.
sflow collector
collector-id
{ {
ip
ip-address
|
ipv6
ipv6-address
}
|
datagram-size
size
|
description
text
| port
port-number
|
time-out
seconds
} *
By default, the device presets a number of sFlow
collectors.
Use the
display sflow
command to display the
parameters of the preset sFlow collectors.
4.
Specify the
source IP
address of sent
sFlow packets.
sflow source
{
ip
ip-address
|
ipv6
ipv6-address
} *
Optional
Not specified by default.
Configuring flow sampling
Step
Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Enter Layer 2 Ethernet
interface view.
interface
interface-type
interface-number
N/A
3.
Set the Flow sampling mode.
sflow sampling-mode
{
determine
|
random
}
Optional
random
by default.
4.
Set the interval for flow
sampling.
sflow sampling-rate
interval
Not set by default.
5.
Set the maximum copied
length of a sampled packet.
sflow flow max-header
length
Optional
By default, up to 128 bytes of a sampled
packet can be copied. You are
recommended to use the default value.
6.
Specify the sFlow collector for
flow sampling.
sflow flow collector
collector-id
No collector is specified for flow
sampling by default.