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

πŸ“š Required MIBs

you need these loaded, fr fr, no skipping:

  • AUTOMATION-SMI
  • AUTOMATION-SYSTEM-MIB
  • AUTOMATION-TC
  • SIEMENS-SMI
  • SN-MSPS-SCX-MIB

and here are the links the author left for you 🫢

<https://support.industry.siemens.com/cs/document/22015045/private-mibs%3A-scalance-x-scalance-w-and-snmp-opc-profile?dti=0&lc=en-DE>

<https://support.industry.siemens.com/cs/document/67637278/automationmib-now-available-for-download-in-version-v02-00-00-02-?dti=0&lc=en-TN>

πŸ“ 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() β€” returns scalance
  • $scalance->vendor() β€” returns siemens
  • $scalance->model() β€” pulls a meaningful name out of the description πŸ”
  • $scalance->mac() β€” uses the dot1dBaseBridgeAddress
  • $scalance->os_ver() β€” cleans up that os_version string 🧼
  • $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 past VLAN or Port, and if that fails, it goes past the last comma πŸ’β€β™€οΈ
  • $scalance->lldp_ip() β€” simatic does not implement lldpRemManAddrIfSubtype, 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 implement lldpRemManAddrIfSubtype, 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