AOS-CX Switch Simulator

 View Only
Expand all | Collapse all

SFlow working?

This thread has been viewed 31 times
  • 1.  SFlow working?

    Posted Nov 15, 2025 06:20 AM

    Has anyone got SFLOW working?
    I tried with v 10.16 and 10.15 in both esxi and gns3.

    In wiregaurd the switch just sends counters sample data not flow data.



    -------------------------------------------


  • 2.  RE: SFlow working?

    Posted Nov 15, 2025 12:13 PM

    Hello,

    Can you share your global sflow configuration and the configuration under the port you are listening to?
     
    I think you left the sampling and polling value at the default "4096*-30," and since a packet of that size is not passing through that port, it is not generating data.
     
    show sflow
    sFlow Status
    sFlow Statistics
    show sflow interface x/x/x 
    -------------------------------------------



  • 3.  RE: SFlow working?

    Posted Nov 16, 2025 09:20 PM

    output:

    switch# show sflow
     
    sFlow Global Configuration
    -----------------------------------------
    sFlow                         enabled
    Collector IP/Port/Vrf         192.168.2.79/16896/default
    Agent Address                 192.168.2.147
    Sampling Rate                 1
    Polling Interval              10
    Header Size                   128
    Max Datagram Size             1400
    reachability-check            disabled
     
    sFlow Status
    -----------------------------------------
    Running - Yes
     
    Collector Status
    ----------------
     
    sFlow enabled on Interfaces:
    -----------------------------------------
    1/1/2
     
    sFlow Statistics
    -----------------------------------------
    Number of Samples             0
    switch# sflow status
    Invalid input: sflow
    switch# sh sflow  int 1/1/2
     
    sFlow Configuration - Interface 1/1/2
    -----------------------------------------
    sFlow                         enabled
    Sampling Rate                 1
    Number of Samples             0
    sFlow Sampling Status         success
    I dont see any errors here, just no samples.


    ------------------------------
    Output:
    ```
    ------------------------------



  • 4.  RE: SFlow working?

    Posted Nov 17, 2025 06:31 AM
    The global and interface config look correct.
     
    Sampling rate 1
     
    Previously, only "Counters sample" was visible in Wireshark; this indicates that the flow engine is not working, only per-interface counters are being sent.
     
    Traffic may not actually be passing through 1/1/2.
     
    Since sampling is set to 1, even a single ping to 1/1/2 should increase the sample count. So, could you run the following command and check if there is any change in the values?
     
    show interface 1/1/2 counters
     
    We need to check if the RX/TX packet counts are increasing. If the interface counters are also close to 0, then no traffic is passing through that port.
     
    Also, this command might be useful:
     
    Sampling direction (mode)
     
    Versions 10.14+ have the global sflow mode ingress, egress, both command; ingress is the default. If 1/1/2 only sees heavy traffic in the egress direction, the sample count in ingress mode may remain 0.
     
    config terminal
    sflow mode both
     
    You can type this command and test again.
    -------------------------------------------



  • 5.  RE: SFlow working?

    Posted Nov 17, 2025 12:00 PM

    There is no counters
    switch# show interface 1/1/2 counters
    Invalid input: counters
    switch# show interface 1/1/2
      brief             Show information in brief format
      dom               Show transceiver diagnostics information
      environment       Show interface environmental information
      error-statistics  Show interface error statistics
      extended          Show additional interface statistics
      flow-control      Show flow control information
      human-readable    Show statistic in human readable format
      link-status       Show link status information
      monitor           Continuously monitor interface statistics
      physical          Show physical interface information
      qos               Show QoS info for the interface
      queues            Show transmit queue information for the interface
      statistics        Show interface statistics
      transceiver       Show transceiver information
      utilization       Show utilization statistics
      vsx-peer          Displays VSX peer switch information
      <cr>
    switch# show interface 1/1/2 statistics
    --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    Interface                       RX Bytes          RX Packets            RX Drops            TX Bytes          TX Packets            TX Drops        RX Broadcast        RX Multicast        TX Broadcast        TX Multicast            RX Pause            TX Pause
    --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    1/1/2                          216183614             3004269                   0            48385902              584886                   0                   0                   0                   0                   0                   0                   0
    switch#

    Yea i tried to check sflow mode both, but 10.16 and 10.15 didnt have it???
    switch(config)# sflow mode both
    Invalid input: mode
    switch(config)# sflow
      agent-ip            Set agent IP address (Suggested: Reachable from
                          collector)
      collector           Set collector IP address configuration
      disable             Disable sFlow
      header-size         Configure sFlow header size
      max-datagram-size   Configure sFlow maximum datagram size
      polling             Configure polling interval
      reachability-check  Enable collector reachability check using ICMP
      sampling            Set sampling rate
      <cr>
    switch(config)# sflow

    -------------------------------------------



  • 6.  RE: SFlow working?

    Posted Nov 17, 2025 03:06 PM
    I checked your latest output.
    There is clearly traffic on interface 1/1/2 (millions of RX packets and hundreds of thousands of TX packets).
    sFlow is enabled globally and on the interface, with a sampling rate of 1 and a polling interval of 10 seconds.
    However, the show sflow and show sflow interface 1/1/2 commands still show Sample Count: 0, and in Wireshark, the sFlow datagrams only contain Counter samples, with no Flow samples at all.
     
    This appears to be a limitation or bug in the 10.15/10.16 simulator images rather than a configuration issue. sFlow flow sampling works as documented on physical CX switches, and there is even an official "AOS-CX Simulator sFlow Lab" based on older images where flow samples are visible.
     
    https://higherlogicdownload.s3.amazonaws.com/HPE/eb4753c1-3d17-4d1f-9564-eacaa5a91eae_file.pdf?X-Amz-Expires=3600& X-Amz-Security-Token=IQoJb3JpZ2luX2VjEOz%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FwEaCXVzLWVhc3QtMSJHMEUCIQCIME81%2FY3h8Dlup6EF1SwT% 2B51NsCZK1ndBfDwCX9gSAQIgTEwpjQNKHAmRA8WZx5vIisCpqgIkJjhkBZSCnKGjPg4qugUItP%2F%2F%2F%2F%2F%2F%2F%2F%2F% 2FARAAGgwzODAzMzczNDA3MDYiDCnd%2BD8%2BsG1XDd2TuSqOBdQZPtj5JhOFUJV5jbIPmTHkSsqXojere7wZMR1B% 2Bqqvox36okd2DUIf5NVniOpyyKQMhWpx5Xo1wo80Tr3X2syrUEcvPfizsA%2FsSnoxh%2F3% 2BBDLKlEOa%2Fe%2ByVaJC4klrytLxGDjWnxxlUat%2FTU9nU4JYtt0p3RljQPtLtK3tVfE%2FN8Qzy% 2BhUQMLGnf3folgMghkVMRIJEgyIR5RtkWQ5Pu3Pk3Govv0P10akAfMhS7rMtrTfuD29mG6ApTRk7ZP%2F5Kqs4oO%2Btbbwo5xdd9iBFoDKcYA7GitVhoIww% 2FKkKJrX6QtN2CGLKHWOwj1zLRI4c%2F0aPLXdDm0QGNsGWyizyHSY0BV215SlQDAYk5IwQaNmvaVX0G0aKMHw5JEgQ%2FXv52vxnvzbuqT7%2BS% 2Bf65GphC9EBggQB%2BerR4WiF%2B9I%2FNZWu9qkX6I8VDelkIVPCTSCRkZ7DdKb8hC%2BVa3iiJK0zNQZHSkbM0Eg4mffD7d7LWM5kFIXYalq7pi8smfGVlmwER% 2BmYN4tcNPdcTM5ZTsKzN1Yq48JkiK6JDWZhL7VIqJyItEm%2BIe%2FnjkwlScgN2lbHUpA23Q5OUG4ihO5OXwtpUucbeEm2jMnJ2lAttutxm6yiNAYan2wrolWwa% 2F1rIXgVkzA9g3R0rejR93GZ2rvo%2BVCvevSnjn2QBdLrOsGgDnr6IMPP4YHAxQ3wz8UanRZBnh%2FLUTpdhmdx%2BsIyN9wdN%2Fzj% 2FIB4pRh8Oon2jBBZNiPb%2BWPz03oN1wVvTH9bRqzqIZDlUQMU6ztZnDD% 2FR3omwx71JyQdn2VJuXTMt0AqvS4oT8B5NlXoX8R3WXFBOJ8tNMO56klAXcx00btrJcWYtBuvKyYz34M% 2BjewNW2EHDD76O3IBjqxARvGmoccbPIAw%2BOtY%2F4fKIXlGeAh% 2BVfz0y%2BRSn7rppNGxDlHTHmzODadCfJFvurgvEtsuW164qBfSpBwL34sTpMXKNnhM48% 2B3JC5eyrXpUSyeopbUjxCHbqJ0KoqF86IfzVNdzic9jzyQhUQpHulvTri06qbgNfO2cmCbZBuPTzwu%2Beq3dGthRWsYL9%2B8jg0u% 2BUYBIGihmrPons0GxoSSY0VVcCnb19HWcfhNSIMygIYrw%3D%3D& X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=ASIAVRDO7IERBKTFNR7U%2F20251117%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20251117T194636Z& X-Amz-SignedHeaders=host&X-Amz-Signature=e182535ea9e566ea0ed00343556436adb9643fe7bd28c0299eda4a1bec9aea50
     
    At this point, my recommendation would be:
     
    If possible, test with an older simulator image (the one used in the sFlow lab) or
     
    Test the same configuration on physical CX hardware.
     
    If you can reproduce this behavior there as well, it would be beneficial to open a TAC case so the engineering team can verify whether this is a known simulator issue in the 10.15/10.16 versions.
    -------------------------------------------



  • 7.  RE: SFlow working?

    Posted Nov 17, 2025 06:14 PM

    Ill try to test 10.14.

    -------------------------------------------



  • 8.  RE: SFlow working?

    Posted Nov 20, 2025 03:11 PM

    Tested 10.14 and 10.13.  same issue.  Starting to think its a simulator limitation.

    -------------------------------------------



  • 9.  RE: SFlow working?

    Posted Nov 21, 2025 08:38 AM

    Hello @nicholaszn

    I think it seems like a simulator issue. Have you had a chance to test this on a physical CX device? Did the same issue occur there?

    -------------------------------------------



  • 10.  RE: SFlow working?

    Posted Nov 21, 2025 09:11 AM

    I dont have a physical switch to test with using the latest version.




  • 11.  RE: SFlow working?

    Posted Nov 25, 2025 01:46 PM
    Hi
    so i got to test some more.

    Tested 10.14, 10.13, 10.12, 10.11, 10.10.
    10.11 and 10.10 actually work, but not 12 or later.
    10.11
    switch# sho version
    -----------------------------------------------------------------------------
    ArubaOS-CX
    (c) Copyright Hewlett Packard Enterprise Development LP
    -----------------------------------------------------------------------------
    Version      : Virtual.10.11.0001
    Build Date   :
    Build ID     : ArubaOS-CX:Virtual.10.11.0001:ceaf8b745b6a:202211301746
    Build SHA    : ceaf8b745b6a277969971642cb0aa4c6c3d8925f
    Hot Patches  :
    Active Image :

    Service OS Version :
    BIOS Version       :
    switch# sho sflow

    sFlow Global Configuration
    -----------------------------------------
    sFlow                         enabled
    Collector IP/Port/Vrf         192.168.2.79/16896/default
    Agent Address                 192.168.2.146
    Sampling Rate                 1
    Polling Interval              10
    Header Size                   128
    Max Datagram Size             1400

    sFlow Status
    -----------------------------------------
    Running - Yes

    Collector Status
    ----------------

    sFlow enabled on Interfaces:
    -----------------------------------------
    1/1/1

    sFlow Statistics
    -----------------------------------------
    Number of Samples             46915
    switch# sh sflow int 1/1/1

    sFlow Configuration - Interface 1/1/1
    -----------------------------------------
    sFlow                         enabled
    Sampling Rate                 1
    Number of Samples                 47983
    sFlow Sampling Status         success

    pretty much the same for 10.10.

    So not sure if something changed in the simulator.   I also noticed there seems to be no way in any of these versions to configure ingress / egress for sflow.