SNMP::...Arista(3pm)

✨ SNMP::...Arista(3pm) ✨

okay bestie, welcome to SNMP::Info::Layer3::Arista β€” the part of the User Contributed Perl Documentation that is literally just the SNMP Interface to Arista Networks EOS πŸ’– she's a perl module, she's a subclass, she's everything ✨


🌸 AUTHOR 🌸

Bill Fenner 🫢 (iconic behavior, no cap)


πŸŽ€ SYNOPSIS πŸŽ€

# Let SNMP::Info determine the correct subclass for you.
my $arista = 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      = $arista->class();
print "SNMP::Info determined this device to fall under subclass : $class\n";

like, you just let SNMP::Info do the vibe check and pick the right subclass for u πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

She's the subclass for Arista Networks EOS-based devices. that's the whole assignment. main character energy fr fr πŸ‘‘

πŸ’œ Inherited Classes

  • SNMP::Info::Aggregate
  • SNMP::Info::Layer3
  • SNMP::Info::MAU

🌈 Required MIBs

  • ARISTA-PRODUCTS-MIB

🌟 Inherited Classes' MIBs

  • See "Required MIBs" in SNMP::Info::Layer3 for its own MIB requirements.
  • See "Required MIBs" in SNMP::Info::Aggregate for its own MIB requirements.
  • See "Required MIBs" in SNMP::Info::MAU for its own MIB requirements.

πŸ’– GLOBALS πŸ’–

these are methods that return scalar values from SNMP β€” one little fact per method, she's lowkey efficient 😌

  • $arista->vendor() β€” Returns 'arista'
  • $arista->model() β€” Tries to reference $arista->id() to one of the product MIBs listed above. Also removes 'arista' from the name, bc readability, obviously ✨
  • $arista->os() β€” Returns 'EOS'
  • $arista->os_ver() β€” Grabs the os version from "sysDescr"

🧚 Global Methods imported from SNMP::Info::Layer3

See documentation in "GLOBALS" in SNMP::Info::Layer3 for details.

πŸ“ Global Methods imported from SNMP::Info::MAU

See documentation in "GLOBALS" in SNMP::Info::MAU for details.


πŸ”₯ TABLE METHODS πŸ”₯

these ones hand u back tables of information, in the form of a reference to a hash. it's giving organized 🫢

  • $arista->i_duplex_admin() β€” Returns info from MAU-MIB
  • $arista->i_speed_admin() β€” Returns info from MAU-MIB
  • $arista->lldp_if() β€” Returns the mapping to the SNMP Interface Table.
  • 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.

🌸 Table Methods imported from SNMP::Info::MAU

See documentation in "TABLE METHODS" in SNMP::Info::MAU for details.


πŸ’… SET METHODS πŸ’…

these are methods that provide SNMP set functionality for overridden methods, or that give u a simpler interface to complex set operations. See "SETTING DATA VIA SNMP" in SNMP::Info for general information on set operations β€” iykyk πŸ‘‘

  • set_i_vlan()

ngl bestie, that set method list is short and she's mysterious. that's just what the page says, so that's what I'm giving u πŸ™ˆ

and that's the whole page, mwah πŸ’‹ brought to u by perl v5.40.1, dated 2026-02-28 β€” slay, go configure some switches, periodt πŸ’–βœ¨πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from