NAME
SNMP::Info::Layer3::Sophos - SNMP Interface to Sophos SFOS firewalls
AUTHOR
SNMP::Info Developers
SYNOPSIS
# Let SNMP::Info determine the correct subclass for you.
my $sophos = new SNMP::Info(
AutoSpecify => 1,
Debug => 1,
DestHost => 'myrouter',
Community => 'public',
Version => 2
)
or die "Can't connect to DestHost.\n";
my $class = $sophos->class();
print "SNMP::Info determined this device to fall under subclass : $class\n";
DESCRIPTION
Subclass for Sophos firewalls running SFOS.
SFOS does not implement sysServices, so the device is classified by the enterprise number of its sysObjectID and this class reports its own layers. The ARP cache is served through the standard ipNetToMediaTable and is inherited from SNMP::Info::Layer3.
Inherited Classes
Inherited MIBs
The device information is read through numeric OIDs, so that the class does not require SFOS-FIREWALL-MIB to be installed.
See "Required MIBs" in SNMP::Info::Layer3 for its MIB requirements.
GLOBALS
These are methods that return scalar value from SNMP
- $sophos->vendor()
-
Returns
'sophos'. - $sophos->name()
-
Returns
sfosDeviceName.0(.1.3.6.1.4.1.2604.5.1.1.1.0) on SFOS, falling back to standardsysName.0when it is unavailable or blank. Other Sophos devices usesysName.0by default. Set the environment variableSNMP_INFO_SOPHOS_NAME_OIDto a numeric scalar OID, including its instance suffix, to prefer a different source on any Sophos device, with the same fallback. For example, to use standardsysName.0:export SNMP_INFO_SOPHOS_NAME_OID=.1.3.6.1.2.1.1.5.0The variable is read when this module is loaded. An unset or empty value uses the default. When using Netdisco, set it in the backend process environment and restart the backend for changes to take effect.
- $sophos->sfos_name()
-
Returns the configured hostname scalar directly, without the
sysName.0fallback used byname(). - $sophos->os()
-
Returns
'sfos'for appliances whosesysObjectIDsits under.1.3.6.1.4.1.2604.5. Other Sophos devices reaching this class through the bare enterprise number fall through to the inherited method. - $sophos->model()
-
Returns the value of
sfosDeviceType.0, for example'XGS118_XN01_SFOS'. - $sophos->os_ver()
-
Returns the value of
sfosDeviceFWVersion.0, including the maintenance release and build, for example'22.0.1 MR-1-Build490'. - $sophos->serial()
-
Returns the value of
sfosDeviceAppKey.0, the appliance key.
Overrides
- $sophos->layers()
-
Returns 01001100 for appliances whose
sysObjectIDsits under.1.3.6.1.4.1.2604.5. SFOS doesn't report layers, so the class reports them itself, reflecting Layer 3,4,7 functionality. Other Sophos devices reaching this class through the bare enterprise number fall through to the inherited method.
Globals imported from SNMP::Info::Layer3
See documentation in "GLOBALS" in SNMP::Info::Layer3 for details.
TABLE METHODS
Table Methods imported from SNMP::Info::Layer3
See documentation in "TABLE METHODS" in SNMP::Info::Layer3 for details.