The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

FusionInventory::Agent::SNMP - Base class for SNMP client

DESCRIPTION

This is the object used by the agent to perform SNMP queries.

METHODS

get($oid)

This method returns a single value, corresponding to a single OID. The value is normalised to remove any control character, and hexadecimal mac addresses are translated into plain ascii.

walk($oid)

This method returns an hashref of values, indexed by their OIDs, starting from the given one. The values are normalised to remove any control character, and hexadecimal mac addresses are translated into plain ascii.

switch_community($suffix)

Initiate a new SNMP connection, using a community derived from original one, with a suffix appended.