SNMP::...rtinet(3pm)
π SNMP::...rtinet(3pm) π
okay bestie, welcome to the User Contributed Perl Documentation corner of the internet, and specifically to SNMP::...rtinet(3pm) β yes that's really the page name, and yes we're doing this together π«Ά
β¨ NAME β¨
SNMP::Info::Layer3::Fortinet β an SNMP Interface to Fortinet network devices. that's it, that's the whole name section, slay π
π AUTHOR π
Eric Miller
(yes, one legend, holding up an entire Fortinet module, we love to see it π)
πΈ SYNOPSIS πΈ
here's the whole vibe, copy it exactly bestie, character for character, no cap:
# Let SNMP::Info determine the correct subclass for you.
my $fortinet = new SNMP::Info(
AutoSpecify => 1,
Debug => 1,
DestHost => 'myswitch',
Community => 'public',
Version => 2
)
or die "Can't connect to DestHost.\n";
my $class = $fortinet->class();
print "SNMP::Info determined this device to fall under subclass : $class\n";
the or die "Can't connect to DestHost.\n"; is doing so much emotional labor fr fr π
π¦ DESCRIPTION π¦
it's an Abstraction subclass for Fortinet network devices. that's the tea π
π§ Inherited Classes
the family tree, the ancestry, the main character lineage:
SNMP::Info::Layer3SNMP::Info::Aggregate
π Required MIBs
these are the MIBs you literally need, no skips, no substitutions:
FORTINET-CORE-MIBFORTINET-FORTIAUTHENTICATOR-MIBFORTINET-FORTIMANAGER-FORTIANALYZER-MIBFORTINET-FORTIGATE-MIB
π Inherited Classes' MIBs
your faves have needs too:
- See "Required MIBs" in
SNMP::Info::Layer3for its own MIB requirements. - See "Required MIBs" in
SNMP::Info::Aggregatefor its own MIB requirements.
β GLOBALS β
These are methods that return scalar value from SNMP. little single-value besties π
$fortinet->vendor()β Returns'fortinet'.$fortinet->model()β Returns the chassis model.$fortinet->os()β Returns'fortios'.$fortinet->os_ver()β Returns the software version extracted from the Fortinet MIB, and the order it checks them in is literally this:
("fgSysVersion") ("fmSysVersion") ("facSysVersion")
$fortinet->serial()β Returns the chassis serial number.
("fnSysSerial")
π«Ά Globals 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. not just one cute little value β a whole hash ref, iconic π
$fortinet->interfaces();β Returns the map between SNMP Interface Identifier (iid) and"ifName"."agg_ports"β Returns a HASH reference mapping from slave to master port for each member of a port bundle on the device. Keys areifIndexof the slave ports, Values areifIndexof the corresponding master ports.
π Table Methods imported from SNMP::Info::Layer3
See documentation in "TABLE METHODS" in SNMP::Info::Layer3 for details.
bestie reminder:<pink>xyz</pink>π β that's this page, that's the whole thing, and every method you inherit needs the docs from its own page, so go read those too π
that's the whole page!! no notes, ate and left no crumbs β¨ and for the cute sign-off β this is perl v5.40.1, dated 2026-02-28, filed under SNMP::...rtinet(3pm). mwah ππ¦πΈ
π¦ 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