SNMP::...r3::Pf(3pm)
π SNMP::Info::Layer3::Pf π
okay bestie, we're doing SNMP::Info::Layer3::Pf β the SNMP Interface to FreeBSD-Based Firewalls using Pf /Pf Sense β¨ (yes that's the real name, someone wrote it like that, we respect it)
it lives in the User Contributed Perl Documentation section of the manual, so you know it's a community vibe π«Ά
π AUTHOR
Max Baker
periodt, that's the whole author section, we love a one-liner π
β¨ SYNOPSIS β¨
# Let SNMP::Info determine the correct subclass for you.
my $pf = new SNMP::Info(
AutoSpecify => 1,
Debug => 1,
# These arguments are passed directly to SNMP::Session
DestHost => 'myswitch',
Community => 'public',
Version => 2
)
or die "Can't connect to DestHost.\n";
my $class = $pf->class();
print "SNMP::Info determined this device to fall under subclass : $class\n";
no cap, this is the classic "let the library figure out what you're talking to" move πΈ
π DESCRIPTION
Subclass for FreeBSD PF-Based devices π
π₯ LLDP Support
LLDP Support is included but untested in this Device Class π not me telling you that straight up, but fr fr, it's literally in the docs.
so the tea is: it's reported that the available CDP/LLDP modules for net-snmp don't work on FreeBSD (which is what pfSense is based on) because they assume certain Linux specific Ethernet structures π which, fair, that's giving very much "this was not built for you."
This problem is apparently solved on PF based firewall appliances by using the ladvd package π¦ and a port for it may be found here: http://www.freshports.org/net/ladvd/
and then, iconic honesty: "I'm not sure if this module ties into Net-SNMP or not." π we stan a real one.
π§ Inherited Classes
SNMP::Info::Layer3
π Required MIBs
FOKUS-MIB
Inherited Classes' MIBs
See "Required MIBs" in SNMP::Info::Layer3 for its own MIB requirements π«
β GLOBALS β
These are methods that return scalar values from SNMP π
$pf->vendor()β Returns'freebsd'π§$pf->model()β Grabs the os version fromsysDescrπ$pf->os()β Returns'Pf'π$pf->os_ver()β Tries to reference$pf->id()to one of the product MIBs listed above. Will probably return a truncation of the default OID for pf-based systemsenterprises.12325.1.1.2.1.1π
π Global Methods imported from SNMP::Info::Layer3
See documentation in "GLOBALS" in SNMP::Info::Layer3 for details β¨
π TABLE METHODS π
These are methods that return tables of information in the form of a reference to a hash π
π Table Methods imported from SNMP::Info::Layer3
See documentation in "TABLE METHODS" in SNMP::Info::Layer3 for details π
heads up bestie: this doc came fromperl v5.40.1and was dated2026-02-28ποΈ so if you're reading it in the future, hi, you're the main character now π
stay slay, go query a firewall, ily π«Άπ
π¦ where this page comes from
- ubuntu stonking: libsnmp-info-perl 3.975000-1 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms