NAME
SNMP::Info::Layer7::QNAP - SNMP Interface to QNAP NAS devices
AUTHOR
df-an and the SNMP::Info Developers
SYNOPSIS
# Let SNMP::Info determine the correct subclass for you.
my $qnap = new SNMP::Info(
AutoSpecify => 1,
Debug => 1,
DestHost => 'mynas',
Community => 'public',
Version => 2
)
or die "Can't connect to DestHost.\n";
my $class = $qnap->class();
print "SNMP::Info determined this device to fall under subclass : $class\n";
DESCRIPTION
Subclass for QNAP NAS devices running QTS or QuTS hero. Devices using both the legacy QNAP enterprise number 24681 and the current enterprise number 55062 are detected automatically from sysObjectID. Current QTS and QuTS hero inventory is read from the 55062.1 and 55062.2 subtrees, respectively.
Inherited Classes
Inherited MIBs
QNAP inventory values are queried using numeric OIDs, so neither NAS-MIB nor QTS-MIB needs to be installed.
See "Required MIBs" in SNMP::Info::Layer7 and SNMP::Info::Entity for inherited requirements.
GLOBALS
- $qnap->vendor()
-
Returns
'qnap'. - $qnap->name()
-
Returns
hostname.0from the QTS or QuTS hero subtree of QTS-MIB, falling back to the standard SNMPsysName.0value. - $qnap->model()
-
Returns
systemModel.0from the QTS or QuTS hero subtree of QTS-MIB, falling back tomodelName.0from NAS-MIB on legacy devices. - $qnap->serial()
-
Returns
serialNumber.0from the QTS or QuTS hero subtree of QTS-MIB. Legacy devices fall back to the serial number derived from ENTITY-MIB. - $qnap->os()
-
Returns the lowercase operating-system family identifier
'qts'or'quts hero'. The explicit QTS-MIB subtree takes precedence. For legacy or generic QNAPsysObjectIDvalues, a firmware version beginning withhidentifies QuTS hero; all other QNAP devices fall back to QTS. - $qnap->os_ver()
-
Returns
firmwareVersion.0from the QTS or QuTS hero subtree of QTS-MIB. Legacy devices fall back to a firmware version in QNAP'ssysDescrformat and then to ENTITY-MIB. The QuTS herohprefix is preserved so the full vendor version, for exampleh5.2.10.3577, remains available for security advisory and vulnerability matching. - $qnap->e_swver()
-
Returns ENTITY-MIB software revisions for component inventory. For a chassis entry, a complete QTS-MIB or QNAP
sysDescrfirmware version takes precedence over a shortenedentPhysicalSoftwareRevvalue. This keeps the module inventory consistent withos_ver()without changing Netdisco report code.