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.
View all HP 6125G manuals
Add to My Manuals
Save this manual to your list of manuals |
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