Welcome, Guest. Please login or register.

Author Topic: SNMP Agent Upgrade to 64bit  (Read 4297 times)

gderf

  • Administrator
  • Newbie
  • *****
  • Posts: 32
  • Karma: +0/-0
    • View Profile
SNMP Agent Upgrade to 64bit
« on: August 04, 2015, 04:17:02 PM »
The current SNMP Agent/MIB does not have any 64bit counters available.


On high speed interfaces with high throughput rates, the 32bit counters used in the current t1n1wall version wrap too quickly to be of use by programs that poll interfaces infrequently.


Current pfsense does not have this problem as it makes use of 64bit counters on the interface OIDs.


gderf

  • Administrator
  • Newbie
  • *****
  • Posts: 32
  • Karma: +0/-0
    • View Profile
Re: SNMP Agent Upgrade to 64bit
« Reply #1 on: August 14, 2015, 10:28:19 PM »
Thanks to Andy, this has been incorporated into 1.8.2b44.


Lee Sharp

  • Newbie
  • *
  • Posts: 29
  • Karma: +0/-0
    • View Profile
    • SmallWall
Re: SNMP Agent Upgrade to 64bit
« Reply #2 on: August 17, 2015, 06:31:50 PM »
While I was looking at the code and options to pull this into SmallWall I noticed some potential problems in the .configure options.

First, whitespace is inconsistent, and in one case, missing.  So at some point in the future "--with-sys-location="location"--without-openssl"  may get silently dropped.

Second, --with-default-snmp-version="2" is set twice.

I cleaned it up to make it easier to parse and read, and this is what is in SmallWall.  Please feel free to use my trivial, but potentially helpful later, changes. :)

Code: [Select]
# ucd-snmp
        cd $MW_BUILDPATH/tmp
rm -Rf net-snmp-5.7.3
        tar -zxf $MW_BUILDPATH/freebsd8/build/local-sources/net-snmp-5.7.3.tar.gz
        cd net-snmp-5.7.3
./configure --with-default-snmp-version="2" --with-sys-contact="contact" \
--with-sys-location="location" --without-openssl --enable-ipv6 \
--disable-set-support --disable-des --disable-privacy --disable-md5 \
--disable-debugging --enable-static --enable-mini-agent \
--disable-testing-code --disable-shared-version --disable-shared \
'--with-out-transports=TCP Unix TCPIPv6 Callback' --enable-mfd-rewrites \
'--with-mib-modules=if-mib host mibII/var_route ucd_snmp' --with-defaults
make

andywhite

  • Administrator
  • Full Member
  • *****
  • Posts: 124
  • Karma: +0/-0
    • View Profile
Re: SNMP Agent Upgrade to 64bit
« Reply #3 on: September 12, 2015, 03:14:18 PM »
Thanks Lee , this is updated

Lee Sharp

  • Newbie
  • *
  • Posts: 29
  • Karma: +0/-0
    • View Profile
    • SmallWall
Re: SNMP Agent Upgrade to 64bit
« Reply #4 on: September 14, 2015, 05:43:55 PM »
Glad to help! We both need all we can get. :)