Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    SNMP daily reset

    Scheduled Pinned Locked Moved SNMP
    5 Posts 3 Posters 1.0k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J
      Jonb
      last edited by

      Hi all,

      I am SNMP querying the if stats for octets in and out. I am being lazy and wanting to reset the values on the PFSense side so that I can get transfers that day.

      I am using OID:
      1.3.6.1.2.1.2.2.1.10.X
      1.3.6.1.2.1.2.2.1.16.X

      Is there an easy way to set a corn to clear the SNMP counter at midnight it a different OID for the daily value?

      Hosted desktops and servers with support without complication.
      www.blueskysystems.co.uk

      J 1 Reply Last reply Reply Quote 0
      • J
        Jonb @Jonb
        last edited by

        I have been looking further as I have found the counter32 is wrapping too much.

        I then found:I have found:
        .1.3.6.1.4.1.12325.1.200.1.8.2.1.7

        Thankfully this is couter64 but I am looking for the daily amount. Does anyone know the right OID?

        Hosted desktops and servers with support without complication.
        www.blueskysystems.co.uk

        NogBadTheBadN jimpJ 2 Replies Last reply Reply Quote 0
        • NogBadTheBadN
          NogBadTheBad @Jonb
          last edited by NogBadTheBad

          @jonb said in SNMP daily reset:

          I have been looking further as I have found the counter32 is wrapping too much.

          I then found:I have found:
          .1.3.6.1.4.1.12325.1.200.1.8.2.1.7

          Thankfully this is couter64 but I am looking for the daily amount. Does anyone know the right OID?

          snmpdelta maybe or install Status_Traffic_Totals.

          I run the following script from Email Reports to email me the daily interface stats:-

          [21.05.1-RELEASE][admin@pfsense]/root/scripts: more vnstat-daily
          #!/bin/csh
          foreach int ( pppoe0 igb0.2 igb0.3 igb0.4 igb0.5 igb0.6 igb0.7 igb0.9 igb0.11 enc0 )
          echo
          /usr/local/bin/vnstat -i $int -d 1
          echo
          

          Andy

          1 x Netgate SG-4860 - 3 x Linksys LGS308P - 1 x Aruba InstantOn AP22

          1 Reply Last reply Reply Quote 0
          • jimpJ
            jimp Rebel Alliance Developer Netgate @Jonb
            last edited by jimp

            @jonb said in SNMP daily reset:

            I have been looking further as I have found the counter32 is wrapping too much.

            I then found:I have found:
            .1.3.6.1.4.1.12325.1.200.1.8.2.1.7

            Thankfully this is couter64 but I am looking for the daily amount. Does anyone know the right OID?

            There isn't an OID for "daily" stats in SNMP -- that's a function of your NMS. Normally an NMS would poll the data from SNMP and store it over time and then you query the NMS database for a report that gives you daily totals.

            Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

            Need help fast? Netgate Global Support!

            Do not Chat/PM for help!

            J 1 Reply Last reply Reply Quote 0
            • J
              Jonb @jimp
              last edited by Jonb

              @jimp thank you I thought that might of been the case. The tool I am using isn't a proper network management it was more informational on home automation.

              Hosted desktops and servers with support without complication.
              www.blueskysystems.co.uk

              1 Reply Last reply Reply Quote 0
              • First post
                Last post
              Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.