HP 6125XLG R2306-HP 6125XLG Blade Switch Network Management and Monitoring Con - Page 103

Configuring the sFlow agent and sFlow collector information, Configuring flow sampling

Page 103 highlights

Tasks at a glance Perform at least one of the following tasks: • Configuring flow sampling • Configuring counter sampling Configuring the sFlow agent and sFlow collector information Step 1. Enter system view. 2. (Optional.) Configure an IP address for the sFlow agent. 3. Configure the sFlow collector information. 4. (Optional.) Specify the source IP address of sFlow packets. Command system-view sflow agent { ip ip-address | ipv6 ipv6-address } sflow collector collector-id [ vpn-instance vpn-instance-name ] { ip ip-address | ipv6 ipv6-address } [ port port-number | datagram-size size | time-out seconds | description text ] * sflow source { ip ip-address | ipv6 ipv6-address } * Remarks N/A By default, no IP address is configured for the sFlow agent. The device periodically checks whether the sFlow agent has an IP address. If not, the device automatically selects an IPv4 address for the sFlow agent but does not save the IPv4 address in the configuration file. NOTE: • HP recommends that you manually configure an IP address for the sFlow agent. • Only one IP address can be configured for the sFlow agent on the device, and a newly configured IP address overwrites the existing one. By default, no sFlow collector information is configured. By default, the source IP address is determined by routing. Configuring flow sampling Perform this task to configure flow sampling on an Ethernet interface. The sFlow agent samples packets on that interface according to the configured parameters, encapsulates them into sFlow packets, and sends them in UDP packets to the specified sFlow collector. To configure flow sampling: 97

  • 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

97
Tasks at a glance
Perform at least one of the following tasks:
Configuring flow sampling
Configuring counter sampling
Configuring the sFlow agent and sFlow collector
information
Step
Command
Remarks
1.
Enter system view.
system-view
N/A
2.
(Optional.)
Configure an IP
address for the
sFlow agent.
sflow agent
{
ip
ip-address
|
ipv6
ipv6-address
}
By default, no IP address is configured for the
sFlow agent. The device periodically checks
whether the sFlow agent has an IP address. If not,
the device automatically selects an IPv4 address
for the sFlow agent but does not save the IPv4
address in the configuration file.
NOTE:
HP recommends that you manually configure
an IP address for the sFlow agent.
Only one IP address can be configured for the
sFlow agent on the device, and a newly
configured IP address overwrites the existing
one.
3.
Configure the
sFlow collector
information.
sflow collector
collector-id
[
vpn-instance
vpn-instance-name
] {
ip
ip-address
|
ipv6
ipv6-address
}
[
port
port-number
|
datagram-size
size
|
time
-
out
seconds
|
description
text
] *
By default, no sFlow collector information is
configured.
4.
(Optional.) Specify
the source IP
address of sFlow
packets.
sflow source
{
ip
ip-address
|
ipv6
ipv6-address
} *
By default, the source IP address is determined by
routing.
Configuring flow sampling
Perform this task to configure flow sampling on an Ethernet interface. The sFlow agent samples packets
on that interface according to the configured parameters, encapsulates them into sFlow packets, and
sends them in UDP packets to the specified sFlow collector.
To configure flow sampling: