Command Reference Guide

sFlow Commands
CLI Command Reference
September 2014 Page 244
HP Moonshot Switch Module CLI Command Reference
sflow receiver owner notimeout
Use this command to configure a receiver as a non-timeout entry. Unlike entries configured with a specific
timeout value, this command will be shown in show running-config and retained after reboot. As the sFlow
receiver is configured as a non-timeout entry, information related to sampler and pollers will also be shown in
the running-config and will be retained after reboot.
If a receiver is configured with a specific value, these configurations will not be shown in running-config.
Samplers and pollers information related to this receiver will also not be shown in running-config.
sflow sampler
A data source configured to collect flow samples is called a poller. Use this command to configure a new sFlow
sampler instance on an interface or range of interfaces for this data source if
rcvr_idx is valid.
Format
sflow receiver index owner owner-string notimeout
Mode Global Config
Field Description
index Receiver index identifier. The range is 1 to 8.
Receiver Owner The owner name corresponds to the receiver name. The identity string for the receiver, the
entity making use of this sFlowRcvrTable entry. The range is 127 characters. The default is
a null string. The empty string indicates that the entry is currently unclaimed and the
receiver configuration is reset to the default values. An entity wishing to claim an
sFlowRcvrTable entry must ensure that the entry is unclaimed before trying to claim it. The
entry is claimed by setting the owner string to a non-null value. The entry must be claimed
before assigning a receiver to a sampler or poller.
Format
sflow sampler {rcvr-indx | rate sampling-rate | maxheadersize size}
Mode Interface Config
Field Description
Receiver Index The sFlow Receiver for this sFlow sampler to which flow samples are to be sent. A value of
zero (0) means that no receiver is configured, no packets will be sampled. Only active
receivers can be set. If a receiver expires, then all samplers associated with the receiver will
also expire. Possible values are 1-8. The default is 0.
Maxheadersize The maximum number of bytes that should be copied from the sampler packet. The range
is 20-256. The default is 128. When set to zero (0), all the sampler parameters are set to
their corresponding default value.
Sampling Rate The statistical sampling rate for packet sampling from this source. A sampling rate of 1
counts all packets. A value of zero (0) disables sampling. A value of N means that out of N
incoming packets, 1 packet will be sampled. The range is 1024-65536 and 0. The default is
0.