Page 626 / 757 Scroll up to view Page 621 - 625
xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
622
create sflow flow_sampler
Syntax
create sflow flow_sampler ports [<portlist> | all] analyzer_server_id < value 1-4> {rate
<value 0-65535> | tx_rate <value 0-65535> | maxheadersize <value 18-256>
Description
Used to create the sFlow flow_sampler. By configuring the sampling function for a port, a
sample packet received by this port will be encapsulated and forwarded to analyzer server at
the specified interval.
Parameters
ports
- Specifies the list of ports to be configured.
analyzer_server_id
- Specifies the ID of a server analyzer where the packet will be
forwarded.
rate
- The sampling rate for packet Rx sampling.
tx_rate
- The sampling rate for packet Tx sampling.
maxheadersize
- The maximum number of leading bytes in the packet which has been
sampled that will be encapsulated and forwarded to the server. If not specified, the default
value is 128
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage:
Create sFlow flow sampler:
DGS-3627:admin# create sflow flow_sampler ports 1 analyzer_server_id 1 rate 1
maxheadersize 18
Command: create sflow flow_sampler ports 1 analyzer_server_id 1 rate 1 maxheadersize 18
Success.
DGS-3627:admin#
config sflow flow_sampler
Purpose
Used to config the sFlow flow_sampler parameters.
Syntax
config sflow flow_sampler ports [<portlist> | all] {rate <value 0-65535> | tx_rate <value
0-65535> | maxheadersize <value 18-256>}(1)
Description
Configures the sFlow flow sampler parameters. In order to change the analyzer_server_id,
first
delete the flow_sampler and create a new one.
Parameters
ports
- Specifies the list of ports to be configured.
rate
- The sampling rate for packet Rx sampling.
tx_rate
- The sampling rate for packet Tx sampling.
maxheadersize
- The maximum number of leading bytes in the packet which has been
sampled that will be encapsulated and forwarded to the server. If not specified, the default
value is 128.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage:
Configure the sFlow sampler the rate of port 1 to be 0:
DGS-3627:admin# config sflow flow_sampler ports 1 rate 0 tx_rate 1
Command: config sflow flow_sampler ports 1 rate 0 tx_rate 1
Success.
DGS-3627:admin#
Page 627 / 757
xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
623
delete sflow flow_sampler
Purpose
Used to delete the sFlow flow_sampler.
Syntax
delete sflow flow_sampler ports [<portlist> | all]
Description
Used to delete the sFlow flow_sampler.
Parameters
ports
- Specifies the list of ports to be configured.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage:
Delete the sFlow sampler port 1:
DGS-3627:admin# delete sflow flow_sampler ports 1
Command: delete sflow flow_sampler ports 1
Success.
DGS-3627:admin#
create sflow counter_poller
Purpose
Used to create the sFlow counter_poller:
Syntax
create sflow counter_poller ports [<portlist> | all] analyzer_server_id < value 1-4>
{interval [ disable | <sec 20-120>]}
Description
This command is used to create the sFlow counter poller. The poller function instructs the
switch to forward statistics counter information with respect to a port. The counters are RFC
2233 counters.
Parameters
analyzer_server_id
- The analyzer_server_id is the id of a analyzer_server,
interval
- The maximum number of seconds between successive statistic counters
information.
If set to 0, the counter-poller is disabled.
If interval is not specified, its default value is 0.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage:
Create sFlow counter poller,which sample port 1 to analyzer server 1:
DGS-3627:admin# create sflow counter_poller ports 1 analyzer_server_id 1
Command: create sflow counter_poller ports 1 analyzer_server_id 1
Success.
DGS-3627:admin#
config sflow counter_poller
Purpose
Used to config the sFlow counter_poller parameters.
Syntax
config sflow counter_poller ports [<portlist> | all] interval [disable | <sec 20-120>]
Description
This command is used to configure the sFlow counter_poller parameters. If the user wants
the change the analyzer_server_id, he needs to delete the counter_poller and creates a new
one.
Page 628 / 757
xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
624
config sflow counter_poller
Parameters
interval
- The maximum number of seconds between successive samples of the counters.
If set it 0, the counter-sample is disabled.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage:
Configure the interval of sFlow counter poller port 1 to be 0:
DGS-3627:admin# config sflow counter_poller ports 1 interval disable
Command: config sflow counter_poller ports 1 interval disable
Success.
DGS-3627:admin#
delete sflow counter_poller
Purpose
Used to delete the sFlow counter poller.
Syntax
delete sflow counter_poller ports [<portlist> | all]
Description
Delete the sFlow counter_poller from the specified port.
Parameters
None.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage:
Delete sFlow counter poller on port 1:
DGS-3627:admin# delete sflow counter_poller ports 1
Command: delete sflow counter_poller ports 1
Success.
DGS-3627:admin#
create sflow analyzer_server
Purpose
Used to create the analyzer server.
Syntax
create sflow analyzer_server < value 1-4 > owner<name 16> {timeout [<sec m-n> |
infinite] | collectoraddress [<ipaddr> | <ipv6addr>] | collectorport <udp_port_number 1-
65535> | maxdatagramsize < value m-n>}
Description
Creates the analyzer_server. You can specify more than one analyzer_server with the same
IP address but with different UDP port numbers. You can have up to four unique
combinations of IP address and UDP port number.
Parameters
owner
- The entity making use of this sFlow analyzer_server. When owner is set or modified,
the timeout value will become 400 automaticly.
timeout
- The length of time before the server is timed out. When the analyzer_server times
out, all of the flow_samplers and counter_pollers associated with this analyzer_server will be
deleted. If not specified, its default value is 400.
collectoraddress
- The IP address of the analyzer_server. If this is set to 0 or not specified,
the IPv4 address is 0.0.0.0 and the entry is not active.
collectorport
- The destination UDP port for sending the sFlow datagrams. If not specified, the
default value is 6364.
Page 629 / 757
xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
625
create sflow analyzer_server
maxdatagramsize
- The maximum number of data bytes that can be packed in a single
sample datagram. If not specified, the default value is 1400.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage:
To create the analyzer_server:
DGS-3627:admin# create sflow analyzer_server 2 owner monitor timeout infinite collect
oraddress 10.0.0.1 collectorport 65524 maxdatagramsize 300
Command: create sflow analyzer_server 2 owner monitor timeout infinite collector
address 10.0.0.1 collectorport 65524 maxdatagramsize 300
Success.
DGS-3627:admin#
config sflow analyzer_server
Purpose
Used to config the analyzer server information.
Syntax
config sflow analyzer_server <value 1-4> {timeout [<sec 1-2000000 > | infinity] |
collectoraddress
[ <ipaddr> | <ipv6addr>] | collectorport <udp_port_number 1-65535>
| maxdatagramsize < value 300-1400 >}(1)
Description
Configures the receiver information. You can specify more than one collector with the same
IP address if the UDP port numbers are unique.
Parameters
timeout
- The time (in seconds) remaining before the sample is released and stops sampling.
When the analyzer_server times out, all of the flow_samplers and counter_pollers associated
with this analyzer_server will be deleted.
collectoraddress
- The IP address of the server.
If not specified or set a 0 address, sFlow packets will not be sent to this server.
collectorport
- The destination port for sending sFlow datagrams
maxdatagramsize
- The maximum number of data bytes that can be packed in a single
sample datagram.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage:
Configure the sFlow analyzer server to be 10.90.90.90:
DGS-3627:admin# config sflow analyzer_server 1 collectoraddress 10.90.90.90
Command: config sflow analyzer_server 1 collectoraddress 10.90.90.90
Success.
DGS-3627:admin#
delete sflow_analyzer_server
Purpose
Used to delete the analyzer_server.
Syntax
delete sflow analyzer_server < value 1-4 >
Description
Used to delete the analyzer_server.
Page 630 / 757
xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
626
delete sflow_analyzer_server
Parameters
None.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage:
To delete the analyzer_server:
DGS-3627:admin# delete sflow analyzer_server 1
Command: delete sflow analyzer_server 1
Success.
DGS-3627:admin#
enable sflow
Purpose
Used to enable the sFlow function.
Syntax
enable sflow
Description
Enable the sFlow function.
Parameters
None.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage:
Enable sFlow:
DGS-3627:admin# enable sflow
Command: enable sflow
Success.
DGS-3627:admin#
disable sflow
Purpose
Used to disable the sFlow function.
Syntax
disable sflow
Description
Disable the sFlow function.
Parameters
None.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage:
To disable the sFlow function:

Rate

4.5 / 5 based on 2 votes.

Bookmark Our Site

Press Ctrl + D to add this site to your favorites!

Share
Top