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.

getSerialNumber($oid)

Wraps get($oid), assuming the value is a serial number and sanitizing it accordingly.

getMacAddress($oid)

Wraps get($oid), assuming the value is a mac address and sanitizing it accordingly.

walkMacAddresses($oid)

Wraps walk($oid), assuming the values are mac addresses and sanitizing them accordingly.