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::Layer3
  • SNMP::Info::Aggregate

πŸ’œ Required MIBs

these are the MIBs you literally need, no skips, no substitutions:

  • FORTINET-CORE-MIB
  • FORTINET-FORTIAUTHENTICATOR-MIB
  • FORTINET-FORTIMANAGER-FORTIANALYZER-MIB
  • FORTINET-FORTIGATE-MIB

🌟 Inherited Classes' MIBs

your faves have needs too:

  • See "Required MIBs" in SNMP::Info::Layer3 for its own MIB requirements.
  • See "Required MIBs" in SNMP::Info::Aggregate for 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 are ifIndex of the slave ports, Values are ifIndex of 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