PF v2 MIBS? revisited
-
I'm looking for the Netgate SG-3100 MIBs.
I did see this:
https://forum.netgate.com/topic/36425/solved-pf-v2-mibs?_=1631716208403downloaded
https://people.freebsd.org/~harti/bsnmp/bsnmp-1.12.tar.gzcopied all the MIBs in there to my mib directory and did an
snmpwalk -v 2c sg3100 .1.3.6 > /tmp/outputBut it looks like I still don't have all the MIBs - eg:
BEGEMOT-SNMPD-MIB::begemotSnmpdTransportOid."inet" = OID: BEGEMOT-SNMPD-MIB::begemotSnmpdTransportMappings.4
BEGEMOT-SNMPD-MIB::begemotSnmpdTransportOid."lsock" = OID: BEGEMOT-SNMPD-MIB::begemotSnmpdTransLsock
BEGEMOT-MIB::begemot.2.1.1.1.0 = STRING: "snmpd"
BEGEMOT-MIB::begemot.2.1.1.2.0 = INTEGER: 20000
BEGEMOT-MIB::begemot.2.1.1.3.0 = INTEGER: 1000
BEGEMOT-MIB::begemot.2.1.1.4.0 = Gauge32: 0
BEGEMOT-MIB::begemot.2.1.2.1.0 = Counter32: 0
BEGEMOT-MIB::begemot.2.1.2.2.0 = Counter32: 0Where are the missing MIBs?
-
What OS are you using to display (walk) the mibs ?
Following this for my APC PDU
https://tobinsramblings.wordpress.com/2011/05/03/snmp-tutorial-apc-pdus/I had to (On linux mint) :
Edit /etc/snmp/snmp.conf and comment out the line starting with 'mibs :'
cat /etc/snmp/snmp.conf # As the snmp packages come without MIB files due to license reasons, loading # of MIBs is disabled by default. If you added the MIBs you can reenable # loading them by commenting out the following line. #mibs :
And if you stored the mibs in your "local" .snmp dir
You have to activate themWe’re almost done, next activate the Definition “PowerNet-MIB” by adding the following line to .snmp/snmp.conf mibs PowerNet-MIB
-
@bingo600 said in PF v2 MIBS? revisited:
What OS are you using to display (walk) the mibs ?
Windows and Debian. I've got net-snmp installed and am using the command line "snmpwalk' tool. evars are
$ env | grep MIB
MIBS=ALL
MIBDIRS=/usr/local/share/snmp/mibs:/usr/local/share/snmp/mibs/cisco:/usr/local/share/snmp/mibs/netgate -
@ler762
I have my APC PDU's working following the above recipe on Raspbian & Linux Mint
Happy "hunting" -
They're right on the firewall in
/usr/share/snmp/mibs/
.You can copy them off with scp.
That is assuming you are using the native SNMP daemon. If you are using the NET-SNMP package that's different, they're in
/usr/local/share/snmp/mibs/
(but that one does not have PF data, so no PF MIBs) -
@jimp
Thank you!! That got it.I copied the files from the netgate fw up to my PC. I don't know why, but the netgate sg3100 did NOT have
UCD-DISKIO-MIB.txt
UCD-SNMP-MIB-OLD.txt
so I copied them from the net-snmp 5.9.1 source tarball.I'm still missing the MIB for begemot.203
$ snmpwalk netgate-fw begemot.203 2>/dev/null
BEGEMOT-MIB::begemot.203.0.0 = INTEGER: 0
BEGEMOT-MIB::begemot.203.100.0 = STRING: "/usr/local/etc/rrdbot"
BEGEMOT-MIB::begemot.203.101.0 = STRING: "/var/run/snmp-regex.sock"and this is wrong:
$ snmpwalk netgate-fw begemotIfMaxspeed 2>/dev/null
BEGEMOT-MIB2-MIB::begemotIfMaxspeed.1.0 = Counter64: 2500000000 bps
BEGEMOT-MIB2-MIB::begemotIfMaxspeed.2.0 = Wrong Type (should be Counter64): Timeticks: (100) 0:00:01.00
BEGEMOT-MIB2-MIB::begemotIfMaxspeed.3.0 = Wrong Type (should be Counter64): Timeticks: (0) 0:00:00.00
BEGEMOT-MIB2-MIB::begemotIfMaxspeed.4.0 = Wrong Type (should be Counter64): Timeticks: (100) 0:00:01.00but I can live with that.
I can't tell if I'm missing some more MIB file[s] or the BEGEMOT-LM75-MIB is broken, but
$ snmpwalk netgate-fw sysLocation
Unlinked OID in BEGEMOT-LM75-MIB: lm75SensorTemperature ::= { lm75SensorEntry 7 }
Undefined identifier: lm75SensorEntry near line 153 of /usr/local/share/snmp/mibs/netgate/BEGEMOT-LM75-MIB.txt
Unlinked OID in BEGEMOT-LM75-MIB: lm75SensorParent ::= { lm75SensorEntry 6 }
Undefined identifier: lm75SensorEntry near line 145 of /usr/local/share/snmp/mibs/netgate/BEGEMOT-LM75-MIB.txt
Unlinked OID in BEGEMOT-LM75-MIB: lm75SensorPnpInfo ::= { lm75SensorEntry 5 }
Undefined identifier: lm75SensorEntry near line 137 of /usr/local/share/snmp/mibs/netgate/BEGEMOT-LM75-MIB.txt
Unlinked OID in BEGEMOT-LM75-MIB: lm75SensorLocation ::= { lm75SensorEntry 4 }
Undefined identifier: lm75SensorEntry near line 129 of /usr/local/share/snmp/mibs/netgate/BEGEMOT-LM75-MIB.txt
Unlinked OID in BEGEMOT-LM75-MIB: lm75SensorDesc ::= { lm75SensorEntry 3 }
Undefined identifier: lm75SensorEntry near line 121 of /usr/local/share/snmp/mibs/netgate/BEGEMOT-LM75-MIB.txt
Unlinked OID in BEGEMOT-LM75-MIB: lm75SensorSysctlIndex ::= { lm75SensorEntry 2 }
Undefined identifier: lm75SensorEntry near line 113 of /usr/local/share/snmp/mibs/netgate/BEGEMOT-LM75-MIB.txt
Unlinked OID in BEGEMOT-LM75-MIB: lm75SensorIndex ::= { lm75SensorEntry 1 }
Undefined identifier: lm75SensorEntry near line 105 of /usr/local/share/snmp/mibs/netgate/BEGEMOT-LM75-MIB.txt
Unlinked OID in BEGEMOT-LM75-MIB: lm75Sensor ::= { begemotlm75Objects 1 }
Undefined identifier: begemotlm75Objects near line 64 of /usr/local/share/snmp/mibs/netgate/BEGEMOT-LM75-MIB.txt
Unlinked OID in BEGEMOT-LM75-MIB: begemotLm75Objects ::= { begemotLm75 1 }
Undefined identifier: begemotLm75 near line 58 of /usr/local/share/snmp/mibs/netgate/BEGEMOT-LM75-MIB.txt
Cannot adopt OID in BEGEMOT-LM75-MIB: lm75SensorIndex ::= { lm75SensorEntry 1 }
Cannot adopt OID in BEGEMOT-LM75-MIB: lm75SensorSysctlIndex ::= { lm75SensorEntry 2 }
Cannot adopt OID in BEGEMOT-LM75-MIB: lm75SensorDesc ::= { lm75SensorEntry 3 }
Cannot adopt OID in BEGEMOT-LM75-MIB: lm75SensorLocation ::= { lm75SensorEntry 4 }
Cannot adopt OID in BEGEMOT-LM75-MIB: lm75SensorPnpInfo ::= { lm75SensorEntry 5 }
Cannot adopt OID in BEGEMOT-LM75-MIB: lm75SensorParent ::= { lm75SensorEntry 6 }
Cannot adopt OID in BEGEMOT-LM75-MIB: lm75SensorTemperature ::= { lm75SensorEntry 7 }
Cannot adopt OID in BEGEMOT-LM75-MIB: lm75Sensor ::= { begemotlm75Objects 1 }
Cannot adopt OID in BEGEMOT-LM75-MIB: lm75SensorTable ::= { begemotLm75Objects 2 }
Cannot adopt OID in BEGEMOT-LM75-MIB: begemotLm75Objects ::= { begemotLm75 1 }
Cannot adopt OID in BEGEMOT-LM75-MIB: lm75Sensors ::= { lm75Sensors 1 }
Cannot adopt OID in BEGEMOT-LM75-MIB: loosTempSensorEntry ::= { lm75SensorTable 1 }
Cannot adopt OID in BEGEMOT-LM75-MIB: lm75SensorTemperature ::= { lm75SensorEntry 7 }
Cannot adopt OID in BEGEMOT-LM75-MIB: lm75SensorParent ::= { lm75SensorEntry 6 }
Cannot adopt OID in BEGEMOT-LM75-MIB: lm75SensorPnpInfo ::= { lm75SensorEntry 5 }
Cannot adopt OID in BEGEMOT-LM75-MIB: lm75SensorLocation ::= { lm75SensorEntry 4 }
Cannot adopt OID in BEGEMOT-LM75-MIB: lm75SensorDesc ::= { lm75SensorEntry 3 }
Cannot adopt OID in BEGEMOT-LM75-MIB: lm75SensorSysctlIndex ::= { lm75SensorEntry 2 }
Cannot adopt OID in BEGEMOT-LM75-MIB: lm75SensorIndex ::= { lm75SensorEntry 1 }
Cannot adopt OID in BEGEMOT-LM75-MIB: lm75SensorTable ::= { begemotLm75Objects 2 }
Cannot adopt OID in BEGEMOT-LM75-MIB: lm75Sensor ::= { begemotlm75Objects 1 }
Cannot adopt OID in BEGEMOT-LM75-MIB: begemotLm75Objects ::= { begemotLm75 1 }
Cannot adopt OID in BEGEMOT-LM75-MIB: lm75Sensors ::= { lm75Sensors 1 }
Cannot adopt OID in BEGEMOT-LM75-MIB: loosTempSensorEntry ::= { lm75SensorTable 1 }
SNMPv2-MIB::sysLocation.0 = STRING:so I deleted BEGEMOT-LM75-MIB.txt and all the errors went away :)
$ snmpwalk netgate-fw sysLocation
SNMPv2-MIB::sysLocation.0 = STRING:Thanks again!!