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

Specify sFlow collector 2 for counter sampling., Set the counter sampling interval to 120 seconds.

Page 148 highlights

Configuration procedure 1. Configure the sFlow agent and sFlow collector: # Configure the IP address of vlan-interface 1 on Device as 3.3.3.1/16. system-view [Device] interface vlan-interface 1 [Device-Vlan-interface1] ip address 3.3.3.1 16 [Device-Vlan-interface1] quit # Specify the IP address for the sFlow agent. [Device] sflow agent ip 3.3.3.1 # Specify sFlow collector ID 2, IP address 3.3.3.2, the default interface number, and description of netserver for the sFlow collector. [Device] sflow collector 2 ip 3.3.3.2 description netserver 2. Configure counter sampling: # Set the counter sampling interval to 120 seconds. [Device] interface gigabitethernet 1/0/1 [Device-GigabitEthernet1/0/1] sflow counter interval 120 # Specify sFlow collector 2 for counter sampling. [Device-GigabitEthernet1/0/1] sflow counter collector 2 3. Configure flow sampling: # Set the Flow sampling mode and sampling interval. [Device-GigabitEthernet1/0/1] sflow sampling-mode random [Device-GigabitEthernet1/0/1] sflow sampling-rate 4000 # Specify sFlow collector 2 for flow sampling. [Device-GigabitEthernet1/0/1] sflow flow collector 2 # Display the sFlow configuration and operation information. [Device-GigabitEthernet1/0/1] display sflow sFlow Version: 5 sFlow Global Information: Agent IP:3.3.3.1 Collector Information: ID IP Port Aging Size Description 1 6343 0 1400 2 3.3.3.2 6543 N/A 1400 netserver 3 6343 0 1400 4 6343 0 1400 5 6343 0 1400 6 6343 0 1400 7 6343 0 1400 8 6343 0 1400 9 6343 0 1400 10 6343 0 1400 sFlow Port Information: Interface CID Interval(s) FID MaxHLen Rate Mode Status GE1/0/1 2 120 2 128 4000 Random Active 141

  • 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

141
Configuration procedure
1.
Configure the sFlow agent and sFlow collector:
# Configure the IP address of vlan-interface 1 on Device as 3.3.3.1/16.
<Device> system-view
[Device] interface vlan-interface 1
[Device-Vlan-interface1] ip address 3.3.3.1 16
[Device-Vlan-interface1] quit
# Specify the IP address for the sFlow agent.
[Device] sflow agent ip 3.3.3.1
# Specify sFlow collector ID 2, IP address 3.3.3.2, the default interface number, and description
of
netserver
for the sFlow collector.
[Device] sflow collector 2 ip 3.3.3.2 description netserver
2.
Configure counter sampling:
# Set the counter sampling interval to 120 seconds.
[Device] interface gigabitethernet 1/0/1
[Device-GigabitEthernet1/0/1] sflow counter interval 120
# Specify sFlow collector 2 for counter sampling.
[Device-GigabitEthernet1/0/1] sflow counter collector 2
3.
Configure flow sampling:
# Set the Flow sampling mode and sampling interval.
[Device-GigabitEthernet1/0/1] sflow sampling-mode random
[Device-GigabitEthernet1/0/1] sflow sampling-rate 4000
# Specify sFlow collector 2 for flow sampling.
[Device-GigabitEthernet1/0/1] sflow flow collector 2
# Display the sFlow configuration and operation information.
[Device-GigabitEthernet1/0/1] display sflow
sFlow Version: 5
sFlow Global Information:
Agent
IP:3.3.3.1
Collector Information:
ID
IP
Port
Aging
Size
Description
1
6343
0
1400
2
3.3.3.2
6543
N/A
1400
netserver
3
6343
0
1400
4
6343
0
1400
5
6343
0
1400
6
6343
0
1400
7
6343
0
1400
8
6343
0
1400
9
6343
0
1400
10
6343
0
1400
sFlow Port Information:
Interface CID
Interval(s) FID
MaxHLen
Rate
Mode
Status
GE1/0/1
2
120
2
128
4000
Random
Active