SNMP::...alance(3pm)
πΈ SNMP::Info::Layer3::Scalance
okay bestie, welcome to the Scalance page π this is the SNMP::Info subclass that talks to Siemens Scalance Switches over SNMP, and it's here to make your switch spill all its config tea β¨
Perl doc, user-contributed, section 3pm β that's the vibe. Let's go π¦
π NAME
SNMP::Info::Layer3::Scalance β the SNMP interface to Siemens Scalance Switches, no cap π
π AUTHOR
Christoph Handel. iconic behavior, we stan π«Ά
β¨ SYNOPSIS
the whole point: let SNMP::Info clock which subclass you actually need, so you don't have to guess π
# Let SNMP::Info determine the correct subclass for you.
my $scalance = new SNMP::Info(
AutoSpecify => 1,
Debug => 1,
DestHost => 'myswitch',
Community => 'public',
Version => 2
)
or die "Can't connect to DestHost.\n";
my $class = $scalance->class();
print "SNMP::Info determined this device to fall under subclass : $class\n";
like. it literally just tells you what it is. main character energy π₯
π DESCRIPTION
This whole thing gives you an abstraction over the configuration info you can pull off a Siemens Scalance Switch via SNMP. that's the gig β¨
lowkey important: it's only been tested with scalance xr524 β so if you're on something else, you're in untested territory, bestie π
𧬠Inherited Classes
it gets its whole inheritance from these two queens:
SNMP::Info::Layer3SNMP::Info::MAU
π Required MIBs
you need these loaded, fr fr, no skipping:
AUTOMATION-SMIAUTOMATION-SYSTEM-MIBAUTOMATION-TCSIEMENS-SMISN-MSPS-SCX-MIB
and here are the links the author left for you π«Ά
π Change Log
...it's empty. nothing to report. an icon of silence π
π GLOBALS
these are the methods that hand you back scalar values straight from SNMP. one value, one vibe, periodt β¨
$scalance->layers()β it overwrites the snmp value, because we support 1-3 π$scalance->os()β returnsscalance$scalance->vendor()β returnssiemens$scalance->model()β pulls a meaningful name out of the description π$scalance->mac()β uses thedot1dBaseBridgeAddress$scalance->os_ver()β cleans up thatos_versionstring π§Ό$scalance->i_description()β siemens returns a description that's stuffed with firmware, switch serial, etc., so this cleans it up. it tries to use anything pastVLANorPort, and if that fails, it goes past the last comma πββοΈ$scalance->lldp_ip()β simatic does not implementlldpRemManAddrIfSubtype, but remote system names are available, so it tries to resolve them via DNS and uses that π
π Globals imported from SNMP::Info::Layer3
see the documentation in "GLOBALS" in SNMP::Info::Layer3 for the deets π
π Globals imported from SNMP::Info::MAU
see the documentation in "GLOBALS" in SNMP::Info::MAU for the deets π
π¦ TABLE METHODS
these hand you back tables of info as a reference to a hash. whole datasets, served fresh π
π Overrides
$scalance->lldp_ip()β returns a reference to a hash of ports to remote ips. simatic does not implementlldpRemManAddrIfSubtype, but remote system names are available, so it tries to resolve them via DNS and uses that πβ¨
π Table Methods imported from SNMP::Info::Layer3
see the documentation in "TABLE METHODS" in SNMP::Info::Layer3 for the deets π
π Table Methods imported from SNMP::Info::MAU
see the documentation in "TABLE METHODS" in SNMP::Info::MAU for the deets π
and that's the whole page bestie, you ate it up π this one's from perl v5.40.1, dated 2026-02-28 β go forth and SNMP responsibly ππ
π¦ 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