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

Configuring counter sampling, Displaying and maintaining sFlow

Page 104 highlights

Step 1. Enter system view. 2. Enter Ethernet interface view. Command system-view interface interface-type interface-number 3. (Optional.) Set the flow sampling mode. sflow sampling-mode { determine | random } 4. Enable flow sampling and specify the number of packets out of which flow sampling sflow sampling-rate rate samples a packet on the interface. 5. (Optional.) Set the maximum number of bytes of a packet (starting from the packet sflow flow max-header length header) that flow sampling can copy. 6. Specify the sFlow collector for flow sampling. sflow flow collector collector-id Remarks N/A N/A By default, the sampling mode is random. At present, the determine sampling mode is not supported. By default, Flow sampling samples no packet. The default setting is 128 bytes. By default, no sFlow collector is specified for flow sampling. Configuring counter sampling Perform this task to configure counter sampling on an Ethernet interface. The sFlow agent periodically collects the counter information on that interface, encapsulates the information into sFlow packets, and sends them in UDP packets to the specified sFlow collector. To configure counter sampling: Step Command 1. Enter system view. system-view 2. Enter Ethernet interface view. interface interface-type interface-number 3. Enable counter sampling and set the counter sampling sflow counter interval interval-time interval. 4. Specify the sFlow collector for counter sampling. sflow counter collector collector-id Remarks N/A N/A By default, counter sampling is disabled. By default, no sFlow collector is specified for counter sampling. Displaying and maintaining sFlow Execute display commands in any view. Task Display sFlow configuration. Command display sflow 98

  • 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

98
Step
Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Enter Ethernet interface view.
interface
interface-type
interface-number
N/A
3.
(Optional.) Set the flow
sampling mode.
sflow sampling-mode
{
determine
|
random
}
By default, the sampling mode is
random. At present, the determine
sampling mode is not supported.
4.
Enable flow sampling and
specify the number of packets
out of which flow sampling
samples a packet on the
interface.
sflow sampling-rate
rate
By default, Flow sampling samples
no packet.
5.
(Optional.) Set the maximum
number of bytes of a packet
(starting from the packet
header) that flow sampling
can copy.
sflow flow max-header
length
The default setting is 128 bytes.
6.
Specify the sFlow collector for
flow sampling.
sflow flow collector
collector-id
By default, no sFlow collector is
specified for flow sampling.
Configuring counter sampling
Perform this task to configure counter sampling on an Ethernet interface. The sFlow agent periodically
collects the counter information on that interface, encapsulates the information into sFlow packets, and
sends them in UDP packets to the specified sFlow collector.
To configure counter sampling:
Step
Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Enter Ethernet interface view.
interface
interface-type
interface-number
N/A
3.
Enable counter sampling and
set the counter sampling
interval.
sflow counter interval
interval-time
By default, counter sampling is
disabled.
4.
Specify the sFlow collector for
counter sampling.
sflow counter collector
collector-id
By default, no sFlow collector is
specified for counter sampling.
Displaying and maintaining sFlow
Execute
display
commands in any view.
Task
Command
Display sFlow configuration.
display sflow