Brocade Network OS NETCONF Operations Guide v4.1.1 User Manual

Page 518

Advertising
background image

486

Network OS NETCONF Operations Guide

53-1003231-02

Configuring the sFlow protocol globally

31

To configure sFlow globally, perform the following steps.

1. Issue an <edit-config> RPC to configure the <sflow> node in the

urn:brocade.com:mgmt:brocade-sflow namespace.

2. Under the <sflow> node, include the following elements.

a. Include the empty <enable> leaf element to enable the sFlow protocol globally.

b. In the <polling-interval> element, set the maximum number of seconds between

successive samples of counters to be sent to the collector.

The valid range is 1 through 165535. The default value is 20.

c. In the <sample-rate> element, set the number of packets to be skipped before the next

sample is taken.

The valid range is 2 through 16777215. The default value is 32768.

d. Include the <collector> node element.

3. Under the <collector> node, include the following elements.

a. In the <collector-ip-address> leaf element, specify the IP address of the collector.

b. Optional: In the <collector-port-number> element, specify the UDP port number on the

collector.

The default value is 6343.

The following example enables sFlow globally, designates 102.10.128.176 as the sFlow
collector, sets the polling interval to 35, and the sample rate to 4096.

<?xml version="1.0" encoding="UTF-8"?>

<rpc message-id="2500" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">

<edit-config>

<target>

<running/>

</target>

<config>

<sflow xmlns="urn:brocade.com:mgmt:brocade-sflow">

<enable/>

<collector>

<collector-ip-address>192.10.138.176</collector-ip-address>

</collector>

<polling-interval>35</polling-interval>

<sample-rate>4096</sample-rate>

</sflow>

</config>

</edit-config>

</rpc>

<rpc-reply message-id="2500" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">

<ok/>

</rpc-reply>

Advertising