newdevice: Updated Zyxelnwa to add storage, mempools and wireless support

* zyxelnwa: add storage, mempools and wireless

* zyxelnwa: add storage, mempools and wireless

* Update Zyxelnwa.php

* zyxelnwa: add MIB and use snmp-get
This commit is contained in:
tomarch
2017-10-07 22:17:51 +02:00
committed by Neil Lathwood
parent f92449e637
commit c927e6d68c
12 changed files with 1039 additions and 1 deletions

33
LibreNMS/OS/Zyxelnwa.php Normal file
View File

@@ -0,0 +1,33 @@
<?php
/*
* LibreNMS
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation, either version 3 of the License, or (at your
* option) any later version. Please see LICENSE.txt at the top level of
* the source code distribution for details.
*
* @package LibreNMS
* @link http://librenms.org
* @copyright 2017 Thomas GAGNIERE
* @author Thomas GAGNIERE <tgagniere@reseau-concept.com>
*/
namespace LibreNMS\OS;
use LibreNMS\Device\WirelessSensor;
use LibreNMS\Interfaces\Discovery\Sensors\WirelessClientsDiscovery;
use LibreNMS\OS;
class Zyxelnwa extends OS implements WirelessClientsDiscovery
{
public function discoverWirelessClients()
{
$oid = '.1.3.6.1.4.1.890.1.15.3.5.1.1.2.1'; //ZYXEL-ES-SMI::esMgmt.5.1.1.2.1
return array(
new WirelessSensor('clients', $this->getDeviceId(), $oid, 'zyxelnwa', 1, 'Clients')
);
}
}

View File

@@ -29,12 +29,13 @@ Your new OS class should extend LibreNMS\OS and implement the interfaces for the
```php
namespace LibreNMS\OS;
use LibreNMS\Device\WirelessSensor;
use LibreNMS\Interfaces\Discovery\Sensors\WirelessClientsDiscovery;
use LibreNMS\OS;
class Airos extends OS implements WirelessClientsDiscovery
{
public functon discoverWirelessClients()
public function discoverWirelessClients()
{
$oid = '.1.3.6.1.4.1.41112.1.4.5.1.15.1'; //UBNT-AirMAX-MIB::ubntWlStatStaCount.1
return array(

View File

@@ -0,0 +1,23 @@
<?php
/*
* LibreNMS
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation, either version 3 of the License, or (at your
* option) any later version. Please see LICENSE.txt at the top level of
* the source code distribution for details.
*
* @package LibreNMS
* @link http://librenms.org
* @copyright 2017 Thomas GAGNIERE
* @author Thomas GAGNIERE <tgagniere@reseau-concept.com>
*/
if ($device['os'] == 'zyxelnwa') {
d_echo('Zyxel NWA');
$usage = snmp_get($device, '.1.3.6.1.4.1.890.1.6.22.1.2.0', '-Ovq');
if (is_numeric($usage)) {
discover_mempool($valid_mempool, $device, '0', 'zywall', 'Memory', '1', null, null);
}
}

View File

@@ -0,0 +1,25 @@
<?php
/*
* LibreNMS
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation, either version 3 of the License, or (at your
* option) any later version. Please see LICENSE.txt at the top level of
* the source code distribution for details.
*
* @package LibreNMS
* @link http://librenms.org
* @copyright 2017 Thomas GAGNIERE
* @author Thomas GAGNIERE <tgagniere@reseau-concept.com>
*/
if ($device['os'] == 'zyxelnwa') {
echo 'Zyxel NWA: ';
$descr = 'Processor';
$oid = '.1.3.6.1.4.1.890.1.6.22.1.1.0';
$usage = snmp_get($device, $oid, '-OQUvs');
if (is_numeric($usage)) {
discover_processor($valid['processor'], $device, $oid, '0', 'zywall', $descr, 1, $usage, null, null);
}
}

View File

@@ -0,0 +1,25 @@
<?php
/*
* LibreNMS
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation, either version 3 of the License, or (at your
* option) any later version. Please see LICENSE.txt at the top level of
* the source code distribution for details.
*
* @package LibreNMS
* @link http://librenms.org
* @copyright 2017 Thomas GAGNIERE
* @author Thomas GAGNIERE <tgagniere@reseau-concept.com>
*/
d_echo('Zyxel NWA');
$perc = snmp_get($device, ".1.3.6.1.4.1.890.1.6.22.1.2.0", '-OvQ');
if (is_numeric($perc)) {
$mempool['perc'] = $perc;
$mempool['used'] = $perc;
$mempool['total'] = 100;
$mempool['free'] = 100 - $perc;
}

View File

@@ -1,3 +1,7 @@
<?php
$hardware = $poll_device['sysDescr'];
$data = snmp_get_multi($device, 'sysSwVersionString.0 sysProductSerialNumber.0', '-OQU', 'ZYXEL-ES-COMMON');
$version = $data[0]['ZYXEL-ES-COMMON::sysSwVersionString'];
$serial = $data[0]['ZYXEL-ES-COMMON::sysProductSerialNumber'];
$features = snmp_get($device, 'operationMode.0', '-Ovq', 'ZYXEL-ES-ZyxelAPMgmt');

View File

@@ -0,0 +1,294 @@
-- **********************************************
-- ZyXEL Communications Corporation
--
-- Enterprise Solution MIB definitions
-- Common MIBs (COMMON)
--
-- Julian Wu
--
-- Copyright by ZyXEL Communications Corp.
-- All rights reserved.
-- **********************************************
ZYXEL-ES-COMMON DEFINITIONS ::= BEGIN
IMPORTS
MODULE-IDENTITY,
OBJECT-IDENTITY,
OBJECT-TYPE FROM SNMPv2-SMI
OBJECT-GROUP,
MODULE-COMPLIANCE FROM SNMPv2-CONF
DisplayString FROM SNMPv2-TC
esMgmt FROM ZYXEL-ES-SMI
esConformance FROM ZYXEL-ES-SMI;
esSysInfo MODULE-IDENTITY
LAST-UPDATED "201009200000Z"
ORGANIZATION "Enterprise Solution ZyXEL"
CONTACT-INFO
""
DESCRIPTION
"The subtree for system information"
::= { esMgmt 1 }
esSysMgmt MODULE-IDENTITY
LAST-UPDATED "201009060000Z"
ORGANIZATION "Enterprise Solution ZyXEL"
CONTACT-INFO
""
DESCRIPTION
"The subtree for basic system management"
::= { esMgmt 2 }
-- esSysInfo OIDs
SwPlatform ::= TEXTUAL-CONVENTION
STATUS current
DESCRIPTION
"The indicattion of software platform.
zynos : ZyNOS.
zld : ZLD.
other : Other operating system."
SYNTAX INTEGER {
other(1),
zynos(2),
zld(3)
}
sysSwPlatform OBJECT-TYPE
SYNTAX SwPlatform
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The software platform of this agent"
::= { esSysInfo 1 }
sysSwMajorVersion OBJECT-TYPE
SYNTAX INTEGER
MAX-ACCESS read-only
STATUS current
DESCRIPTION
""
::= { esSysInfo 2 }
sysSwMinorVersion OBJECT-TYPE
SYNTAX INTEGER
MAX-ACCESS read-only
STATUS current
DESCRIPTION
""
::= { esSysInfo 3 }
sysSwModel OBJECT-TYPE
SYNTAX DisplayString
MAX-ACCESS read-only
STATUS current
DESCRIPTION
""
::= { esSysInfo 4 }
sysSwPatchNumber OBJECT-TYPE
SYNTAX INTEGER
MAX-ACCESS read-only
STATUS current
DESCRIPTION
""
::= { esSysInfo 5 }
sysSwVersionString OBJECT-TYPE
SYNTAX DisplayString
MAX-ACCESS read-only
STATUS current
DESCRIPTION
""
::= { esSysInfo 6 }
sysSwDay OBJECT-TYPE
SYNTAX INTEGER
MAX-ACCESS read-only
STATUS current
DESCRIPTION
""
::= { esSysInfo 7 }
sysSwMonth OBJECT-TYPE
SYNTAX INTEGER
MAX-ACCESS read-only
STATUS current
DESCRIPTION
""
::= { esSysInfo 8 }
sysSwYear OBJECT-TYPE
SYNTAX INTEGER
MAX-ACCESS read-only
STATUS current
DESCRIPTION
""
::= { esSysInfo 9 }
sysProductFamily OBJECT-TYPE
SYNTAX DisplayString
MAX-ACCESS read-only
STATUS current
DESCRIPTION
""
::= { esSysInfo 10 }
sysProductModel OBJECT-TYPE
SYNTAX DisplayString
MAX-ACCESS read-only
STATUS current
DESCRIPTION
""
::= { esSysInfo 11 }
sysProductSerialNumber OBJECT-TYPE
SYNTAX DisplayString
MAX-ACCESS read-only
STATUS current
DESCRIPTION
""
::= { esSysInfo 12 }
sysCountryCode OBJECT-TYPE
SYNTAX DisplayString
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"System Country."
::= { esSysInfo 16 }
-- esSysMgmt OIDs
MgmtAlarmStatus ::= TEXTUAL-CONVENTION
STATUS current
DESCRIPTION
""
SYNTAX BITS {
sysAlarmDetected(0),
sysTemperatureError(1),
sysFanRPMError(2),
sysVoltageRangeError(3)
}
sysMgmtReboot OBJECT-TYPE
SYNTAX INTEGER {
running(0),
reboot (1)
}
MAX-ACCESS read-write
STATUS current
DESCRIPTION
""
::= { esSysMgmt 1 }
sysMgmtConfigSave OBJECT-TYPE
SYNTAX INTEGER {
running(0),
save (1)
}
MAX-ACCESS read-write
STATUS current
DESCRIPTION
""
::= { esSysMgmt 2 }
sysMgmtRestoreDefaultConfig OBJECT-TYPE
SYNTAX INTEGER {
running(0),
restore (1)
}
MAX-ACCESS read-write
STATUS current
DESCRIPTION
""
::= { esSysMgmt 3 }
sysMgmtCPUUsage OBJECT-TYPE
SYNTAX INTEGER (0..100)
MAX-ACCESS read-only
STATUS current
DESCRIPTION
""
::= { esSysMgmt 4 }
sysMgmtMemUsage OBJECT-TYPE
SYNTAX INTEGER (0..100)
MAX-ACCESS read-only
STATUS current
DESCRIPTION
""
::= { esSysMgmt 5 }
sysMgmtFlashUsage OBJECT-TYPE
SYNTAX INTEGER (0..100)
MAX-ACCESS read-only
STATUS current
DESCRIPTION
""
::= { esSysMgmt 6 }
-- compliance statements for ES-COMMON
esBasicCompliances OBJECT IDENTIFIER ::= { esConformance 1 }
esBasicGroups OBJECT IDENTIFIER ::= { esConformance 2 }
esBasicCompliance MODULE-COMPLIANCE
STATUS current
DESCRIPTION
"The compliance statement for ES common MIB"
MODULE -- this module
MANDATORY-GROUPS {
esSysInfoGroup,
esSysMgmtGroup
}
::= { esBasicCompliances 1 }
esSysInfoGroup OBJECT-GROUP
OBJECTS {
sysSwPlatform,
sysSwMajorVersion,
sysSwMinorVersion,
sysSwModel,
sysSwPatchNumber,
sysSwVersionString,
sysSwDay,
sysSwMonth,
sysSwYear,
sysProductFamily,
sysProductModel,
sysProductSerialNumber
}
STATUS current
DESCRIPTION
""
::= { esBasicGroups 1 }
esSysMgmtGroup OBJECT-GROUP
OBJECTS {
sysMgmtReboot,
sysMgmtConfigSave,
sysMgmtRestoreDefaultConfig,
sysMgmtCPUUsage,
sysMgmtMemUsage
}
STATUS current
DESCRIPTION
""
::= { esBasicGroups 2 }
END

View File

@@ -0,0 +1,36 @@
-- **********************************************
-- ZyXEL Communications Corporation
--
-- Enterprise Solution MIB definitions
-- ProWLAN MIBs
--
-- LiKuang Tsai
--
-- Copyright by ZyXEL Communications Corp.
-- All rights reserved.
-- **********************************************
ZYXEL-ES-ProWLAN DEFINITIONS ::= BEGIN
IMPORTS
MODULE-IDENTITY,
OBJECT-IDENTITY,
OBJECT-TYPE FROM SNMPv2-SMI
OBJECT-GROUP,
MODULE-COMPLIANCE FROM SNMPv2-CONF
esProductSpecific FROM ZYXEL-ES-SMI;
esProWLAN MODULE-IDENTITY
LAST-UPDATED "201010060000Z"
ORGANIZATION "Enterprise Solution ZyXEL"
CONTACT-INFO
""
DESCRIPTION
"The subtree for ProWLAN product line"
::= { esProductSpecific 1 }
END

View File

@@ -0,0 +1,37 @@
-- **********************************************
-- ZyXEL Communications Corporation
--
-- Enterprise Solution MIB definitions
-- RF MANAGEMENT MIBs
--
-- Copyright by ZyXEL Communications Corp.
-- All rights reserved.
-- **********************************************
ZYXEL-ES-RF-MANAGEMENT DEFINITIONS ::= BEGIN
IMPORTS
MODULE-IDENTITY,
OBJECT-IDENTITY,
OBJECT-TYPE FROM SNMPv2-SMI
OBJECT-GROUP,
MODULE-COMPLIANCE FROM SNMPv2-CONF
esMgmt FROM ZYXEL-ES-SMI;
--
-- Node: esRFMgmt
--
esRFMgmt MODULE-IDENTITY
LAST-UPDATED "201009200000Z"
ORGANIZATION "Enterprise Solution ZyXEL"
CONTACT-INFO ""
DESCRIPTION
"The sub tree for RF management information"
::= { esMgmt 6 }
END

View File

@@ -0,0 +1,72 @@
-- **********************************************
-- ZyXEL Communications Corporation
--
-- Enterprise Solution MIB definitions
-- Structure of Management Information (SMI)
--
-- Julian Wu
--
-- Copyright by ZyXEL Communications Corp.
-- All rights reserved.
-- **********************************************
ZYXEL-ES-SMI DEFINITIONS ::= BEGIN
IMPORTS
MODULE-IDENTITY,
OBJECT-IDENTITY,
enterprises FROM SNMPv2-SMI;
zyxel OBJECT IDENTIFIER ::= { enterprises 890 }
products OBJECT IDENTIFIER ::= { zyxel 1 }
enterpriseSolution MODULE-IDENTITY
LAST-UPDATED "201009200000Z"
ORGANIZATION "Enterprise Solution ZyXEL"
CONTACT-INFO
""
DESCRIPTION
"The Structure of Management Information
for Enterprise Solution ZyXEL"
::= { products 15 }
esAgentCapability OBJECT-IDENTITY
STATUS current
DESCRIPTION
"The root object identifier for
AGENT-CAPABILITIES values"
::= { enterpriseSolution 1 }
esConformance OBJECT-IDENTITY
STATUS current
DESCRIPTION
"The root object identifier for
MODULE-COMPLIANCE values"
::= { enterpriseSolution 2 }
esMgmt OBJECT-IDENTITY
STATUS current
DESCRIPTION
"The main subtree for MIBs"
::= { enterpriseSolution 3 }
esProductSpecific OBJECT-IDENTITY
STATUS current
DESCRIPTION
"The root of product-specific OID subtrees"
::= { enterpriseSolution 4 }
esPartnerProducts OBJECT-IDENTITY
STATUS current
DESCRIPTION
"The root for MIBs from partner products.
Followed by partner sysObjectID values"
::= { enterpriseSolution 5 }
END

View File

@@ -0,0 +1,436 @@
-- **********************************************
-- ZyXEL Communications Corporation
--
-- Enterprise Solution MIB definitions
-- WIRELESS MIBs (WIRELESS)
--
-- Copyright by ZyXEL Communications Corp.
-- All rights reserved.
-- **********************************************
ZYXEL-ES-WIRELESS DEFINITIONS ::= BEGIN
IMPORTS
MODULE-IDENTITY,
OBJECT-IDENTITY,
OBJECT-TYPE FROM SNMPv2-SMI
OBJECT-GROUP,
MODULE-COMPLIANCE FROM SNMPv2-CONF
DisplayString, MacAddress, DateAndTime FROM SNMPv2-TC
esMgmt FROM ZYXEL-ES-SMI;
--
-- Node: esWireless
-- includes wlanRadioTable, wlanStationTable, wlanStatisticsTable, wlanTraps
--
esWireless MODULE-IDENTITY
LAST-UPDATED "201009200000Z"
ORGANIZATION "Enterprise Solution ZyXEL"
CONTACT-INFO ""
DESCRIPTION
"The sub tree for Wireless information"
::= { esMgmt 5 }
--
-- Node: wlanRadioTable
--
wlanRadioTable OBJECT-TYPE
SYNTAX SEQUENCE OF WlanRadioEntry
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION
"This table lists WLAN Radio information. Use chipIndex as the index of each entry"
::= { esWireless 1 }
wlanRadioEntry OBJECT-TYPE
SYNTAX WlanRadioEntry
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION
"An entry describing WLAN Radio information for each chip."
INDEX {ifIndex }
::= { wlanRadioTable 1 }
WlanRadioEntry ::= SEQUENCE {
wlanCurrentChannel INTEGER,
wlanStationCount Unsigned32,
wlanSupportedChannel OCTET STRING,
wlanMode INTEGER,
wlanChannel INTEGER,
}
wlanCurrentChannel OBJECT-TYPE
SYNTAX INTEGER {
device_is_disable(0),
channel-01_2412mhz(1),
channel-02_2417mhz(2),
channel-03_2422mhz(3),
channel-04_2427mhz(4),
channel-05_2432mhz(5),
channel-06_2437mhz(6),
channel-07_2442mhz(7),
channel-08_2447mhz(8),
channel-09_2452mhz(9),
channel-10_2457mhz(10),
channel-11_2462mhz(11),
channel-12_2467mhz(12),
channel-13_2472mhz(13),
channel-36_5180mhz(36),
channel-40_5200mhz(40),
channel-44_5220mhz(44),
channel-48_5240mhz(48),
channel-52_5260mhz(52),
channel-56_5280mhz(56),
channel-60_5300mhz(60),
channel-64_5320mhz(64),
channel-100_5500mhz(100),
channel-104_5520mhz(104),
channel-108_5540mhz(108),
channel-112_5560mhz(112),
channel-116_5580mhz(116),
channel-120_5600mhz(120),
channel-124_5620mhz(124),
channel-128_5640mhz(128),
channel-132_5660mhz(132),
channel-136_5680mhz(136),
channel-140_5700mhz(140),
channel-149_5745mhz(149),
channel-153_5765mhz(153),
channel-157_5785mhz(157),
channel-161_5805mhz(161),
channel-165_5825mhz(165)
}
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The current operating wireless channel."
::= { wlanRadioEntry 1 }
wlanStationCount OBJECT-TYPE
SYNTAX Unsigned32
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The total numbers of associated stations"
::= { wlanRadioEntry 2 }
wlanSupportedChannel OBJECT-TYPE
SYNTAX OCTET STRING
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The wireless channels supported by WLAN in this regulatory domain"
::= { wlanRadioEntry 3 }
wlanMode OBJECT-TYPE
SYNTAX INTEGER {
mode_2_4G(1),
mode_5G(2)
}
MAX-ACCESS read-write
STATUS current
DESCRIPTION
"The control for WLAN radio mode."
::= { wlanRadioEntry 5 }
wlanChannel OBJECT-TYPE
SYNTAX INTEGER {
channel-01_2412mhz(1),
channel-02_2417mhz(2),
channel-03_2422mhz(3),
channel-04_2427mhz(4),
channel-05_2432mhz(5),
channel-06_2437mhz(6),
channel-07_2442mhz(7),
channel-08_2447mhz(8),
channel-09_2452mhz(9),
channel-10_2457mhz(10),
channel-11_2462mhz(11),
channel-12_2467mhz(12),
channel-13_2472mhz(13),
channel-36_5180mhz(36),
channel-40_5200mhz(40),
channel-44_5220mhz(44),
channel-48_5240mhz(48),
channel-52_5260mhz(52),
channel-56_5280mhz(56),
channel-60_5300mhz(60),
channel-64_5320mhz(64),
channel-100_5500mhz(100),
channel-104_5520mhz(104),
channel-108_5540mhz(108),
channel-112_5560mhz(112),
channel-116_5580mhz(116),
channel-120_5600mhz(120),
channel-124_5620mhz(124),
channel-128_5640mhz(128),
channel-132_5660mhz(132),
channel-136_5680mhz(136),
channel-140_5700mhz(140),
channel-149_5745mhz(149),
channel-153_5765mhz(153),
channel-157_5785mhz(157),
channel-161_5805mhz(161),
channel-165_5825mhz(165)
}
MAX-ACCESS read-write
STATUS current
DESCRIPTION
"The control for WLAN channel. When setting this
parameter, the value should be a subset of all supported channel"
::= { wlanRadioEntry 6 }
--
-- Node: wlanStationTable
--
wlanStationTable OBJECT-TYPE
SYNTAX SEQUENCE OF WlanStationEntry
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION
"This table lists the associated stations."
::= { esWireless 2 }
wlanStationEntry OBJECT-TYPE
SYNTAX WlanStationEntry
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION
"An entry describing the station information."
INDEX { stationIndex }
::= { wlanStationTable 1 }
WlanStationEntry ::= SEQUENCE {
stationIndex Integer32,
stationMacAddress MacAddress,
stationAssociatedTime DateAndTime,
stationSSID OCTET STRING
}
stationIndex OBJECT-TYPE
SYNTAX Integer32 (1..2147483647)
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION
"Index of stations."
::= { wlanStationEntry 1 }
stationMacAddress OBJECT-TYPE
SYNTAX MacAddress
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The MAC Addresss of the station."
DEFVAL { "public" }
::= { wlanStationEntry 2 }
stationAssociatedTime OBJECT-TYPE
SYNTAX DateAndTime
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The associated time of the station."
::= { wlanStationEntry 3 }
stationSSID OBJECT-TYPE
SYNTAX OCTET STRING
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The associated ssid."
::= { wlanStationEntry 4 }
--
-- Node: wlanStatistics
--
wlanStatisticsTable OBJECT-TYPE
SYNTAX SEQUENCE OF WlanStatisticsEntry
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION
"This table lists WLAN statistics information. Use chipIndex as the index of each entry"
::= { esWireless 3 }
wlanStatisticsEntry OBJECT-TYPE
SYNTAX WlanStatisticsEntry
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION
"An entry describing WLAN statistics information."
INDEX { ifIndex }
::= { wlanStatisticsTable 1 }
WlanStatisticsEntry ::= SEQUENCE {
dot11FailedCount Counter64,
dot11RetryCount Counter64,
dot11ACKFailureCount Counter64,
dot11ReceivedFragmentCount Counter64,
dot11TransmittedFrameCount Counter64,
dot11ReceivedPktCount Counter64,
dot11TransmittedPktCount Counter64
}
dot11FailedCount OBJECT-TYPE
SYNTAX Counter64
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"This counter shall increment when an MSDU is not transmitted
successfully due to the number of transmit attempts exceeding
either the dot11ShortRetryLimit or dot11LongRetryLimit. "
::= { wlanStatisticsEntry 1 }
dot11RetryCount OBJECT-TYPE
SYNTAX Counter64
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"This counter shall increment when an MSDU is successfully
transmitted after one or more retransmissions."
::= { wlanStatisticsEntry 2 }
dot11ACKFailureCount OBJECT-TYPE
SYNTAX Counter64
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"This counter shall increment when an ACK is not received
when expected."
::= { wlanStatisticsEntry 3 }
dot11ReceivedFragmentCount OBJECT-TYPE
SYNTAX Counter64
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"This counter shall be incremented for each successful received
MPDU of type Data or Management."
::= { wlanStatisticsEntry 4 }
dot11TransmittedFrameCount OBJECT-TYPE
SYNTAX Counter64
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"This counter shall increment for each successfully transmitted MSDU."
::= { wlanStatisticsEntry 5 }
dot11ReceivedPktCount OBJECT-TYPE
SYNTAX Counter64
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"This counter shall increment for each successfully received packets."
::= { wlanStatisticsEntry 6 }
dot11TransmittedPktCount OBJECT-TYPE
SYNTAX Counter64
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"This counter shall increment for each successfully transmitted packets."
::= { wlanStatisticsEntry 7 }
--
-- Node: wlanTraps
--
wlanTraps OBJECT-IDENTITY
STATUS current
DESCRIPTION
"The subtree for WIRELESS"
::= { esWireless 4 }
trapsControl OBJECT-IDENTITY
STATUS current
DESCRIPTION
"The subtree for CAPWAP"
::= { wlanTraps 1 }
trapsFormat OBJECT-IDENTITY
STATUS current
DESCRIPTION
"The subtree for CAPWAP"
::= { wlanTraps 2 }
trapsItems OBJECT-IDENTITY
STATUS current
DESCRIPTION
"The subtree for CAPWAP"
::= { wlanTraps 3 }
-- Traps Control
wlanTrapsControl OBJECT-TYPE
SYNTAX INTEGER {
enable(1),
disable(2)
}
MAX-ACCESS read-write
STATUS current
DESCRIPTION
"Controls wireless group traps enable or disable."
::= { trapsControl 1 }
-- Trap Format
trapGenericMessage OBJECT-TYPE
SYNTAX DisplayString
MAX-ACCESS accessible-for-notify
STATUS current
DESCRIPTION
"Provide generic information on traps."
::= { trapsFormat 1 }
trapMACAddress OBJECT-TYPE
SYNTAX MacAddress
MAX-ACCESS accessible-for-notify
STATUS current
DESCRIPTION
"Represents MAC address of the device or the host which triggers the trap."
::= { trapsFormat 2 }
trapWlanSSID OBJECT-TYPE
SYNTAX DisplayString
MAX-ACCESS accessible-for-notify
STATUS current
DESCRIPTION
"The SSID name which the wireless client associates."
::= { trapsFormat 3 }
-- Trap Items
wlanStaAssociation NOTIFICATION-TYPE
STATUS current
DESCRIPTION
"Wireless client assocication notification."
::= { trapsItems 1 }
wlanStaDisassociation NOTIFICATION-TYPE
STATUS current
DESCRIPTION
"Wireless client disassocication notification."
::= { trapsItems 2 }
wlanStaAuthFail NOTIFICATION-TYPE
STATUS current
DESCRIPTION
"Wireless client authentication failed."
::= { trapsItems 3 }
END

View File

@@ -0,0 +1,52 @@
-- **********************************************
-- ZyXEL Communications Corporation
--
-- Enterprise Solution MIB definitions
-- ZyXEL AP Management MIBs
--
-- LiKuang Tsai
--
-- Copyright by ZyXEL Communications Corp.
-- All rights reserved.
-- **********************************************
ZYXEL-ES-ZyxelAPMgmt DEFINITIONS ::= BEGIN
IMPORTS
MODULE-IDENTITY,
OBJECT-IDENTITY,
OBJECT-TYPE FROM SNMPv2-SMI
OBJECT-GROUP,
MODULE-COMPLIANCE FROM SNMPv2-CONF
esMgmt FROM ZYXEL-ES-SMI;
zyxelAPMgmt MODULE-IDENTITY
LAST-UPDATED "201403100000Z"
ORGANIZATION "Enterprise Solution ZyXEL"
CONTACT-INFO
""
DESCRIPTION
"The subtree for zyxelAPMgmt information"
::= { esMgmt 4 }
-- zyxelAPMgmt OIDs
operationMode OBJECT-TYPE
SYNTAX INTEGER {
standalone (1),
controller (2),
managed (3)
}
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"Wireless AP operation mode"
::= { zyxelAPMgmt 1 }
END