1SNMP::Info::Layer3::Pf(U3s)er Contributed Perl DocumentatSiNoMnP::Info::Layer3::Pf(3)
2
3
4

NAME

6       SNMP::Info::Layer3::Pf - SNMP Interface to FreeBSD-Based Firewalls
7       using Pf /Pf Sense
8

AUTHOR

10       Max Baker
11

SYNOPSIS

13        # Let SNMP::Info determine the correct subclass for you.
14        my $pf = new SNMP::Info(
15                               AutoSpecify => 1,
16                               Debug       => 1,
17                               # These arguments are passed directly to SNMP::Session
18                               DestHost    => 'myswitch',
19                               Community   => 'public',
20                               Version     => 2
21                               )
22           or die "Can't connect to DestHost.\n";
23
24        my $class      = $pf->class();
25        print "SNMP::Info determined this device to fall under subclass : $class\n";
26

DESCRIPTION

28       Subclass for Free-BSD PF-Based devices
29

LLDP Support

31       LLDP Support is included but untested in this Device Class.  It is
32       reported that the available CDP/LLDP modules for net-snmp don't work on
33       FreeBSD (on which pfSense is based) as they assume certain Linux
34       specific Ethernet structures.  This problem is apparently solved on PF
35       based firewall appliances by using the ladvd package, for which a port
36       may be found here: <http://www.freshports.org/net/ladvd/>.  I'm not
37       sure if this module ties into Net-SNMP or not.
38
39   Inherited Classes
40       SNMP::Info::Layer3
41       SNMP::Info::LLDP
42
43   Required MIBs
44       FOKUS-MIB
45       Inherited Classes' MIBs
46           See "Required MIBs" in SNMP::Info::Layer3 for its own MIB
47           requirements.
48
49           See "Required MIBs" in SNMP::Info::LLDP for its own MIB
50           requirements.
51

GLOBALS

53       These are methods that return scalar values from SNMP
54
55       $pf->vendor()
56               Returns 'FreeBSD'
57
58       $pf->model()
59           Grabs the os version from "sysDescr"
60
61       $pf->os()
62           Returns 'Pf'
63
64       $pf->os_ver()
65           Tries to reference $pf->id() to one of the product MIBs listed
66           above.  Will probably return a truncation of the default OID for
67           pf-based systems "enterprises.12325.1.1.2.1.1".
68
69   Global Methods imported from SNMP::Info::Layer3
70       See documentation in "GLOBALS" in SNMP::Info::Layer3 for details.
71

TABLE METHODS

73       These are methods that return tables of information in the form of a
74       reference to a hash.
75
76   Table Methods imported from SNMP::Info::Layer3
77       See documentation in "TABLE METHODS" in SNMP::Info::Layer3 for details.
78
79   Table Methods imported from SNMP::Info::LLDP
80       See documentation in "TABLE METHODS" in SNMP::Info::LLDP for details.
81
82
83
84perl v5.28.0                      2018-11-29         SNMP::Info::Layer3::Pf(3)
Impressum