device: Added Lenovo CNOS support (#8332)

* Lenovo CNOS Discovery+Logo Update

* Lenovo MIBs

* Update lenovo-cnos.yaml

Left example CPU Usage there.

* Update lenovo-cnos.yaml

* Update lenovo-cnos.yaml

* Update and rename lenovo-cnos.yaml to cnos.yaml

* Rename lenovo-cnos.yaml to cnos.yaml

* Rename Lenovo-Env-MIB.mib to LENOVO-ENV-MIB

* Rename Lenovo-Products-MIB.mib to  LENOVO-PRODUCTS-MIB

* Rename Lenovo-SMI-MIB.mib to LENOVO-SMI-MIB

* Update lenovo.svg

* Create cnos.json

* Create cnos.snmprec

* Update cnos.json

* Update cnos.yaml
This commit is contained in:
jackson-tim
2018-03-13 06:59:35 -05:00
committed by Neil Lathwood
parent 7946f15b44
commit f55d98ab03
8 changed files with 802 additions and 1 deletions

View File

@@ -1 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 38.573" version="1"><path d="M237.947 25.444c1.198-3.875 1.198-6.16.05-7.65-.855-1.026-2.103-1.539-3.995-1.539-4.217 0-6.553 2.395-8.435 8.394-1.208 3.936-1.208 6.22-.06 7.7.795.976 2.114 1.49 3.996 1.49 4.157 0 6.562-2.345 8.444-8.395zm16.487-8.676c1.65 2.064 2.003 4.68 1.026 7.881-2.737 8.847-13.064 13.92-28.363 13.92-9.129 0-15.339-1.771-18.087-5.193-1.65-2.054-1.932-4.73-.966-7.932 2.738-8.847 13.065-13.92 28.363-13.92 9.069 0 15.35 1.822 18.027 5.244m-57.059-4.388h16.205c-.976 1.308-18.6 24.991-18.892 25.394h-24.87c-.122-.745-3.09-24.478-3.202-25.394h15.239c.11.745 2.224 17.805 2.224 17.805s13.065-17.463 13.296-17.805M147.1 25.444c1.198-3.875 1.258-6.16.06-7.65-.804-1.026-2.113-1.539-3.935-1.539-4.227 0-6.622 2.395-8.444 8.394-1.258 3.936-1.258 6.22-.06 7.7.795.976 2.113 1.49 3.935 1.49 4.227 0 6.623-2.345 8.444-8.395zm16.547-8.676c1.661 2.064 2.003 4.68.977 7.881-2.738 8.847-13.075 13.92-28.303 13.92-9.13 0-15.35-1.771-18.097-5.193-1.65-2.054-1.993-4.73-1.027-7.932 2.798-8.847 13.125-13.92 28.363-13.92 9.13 0 15.35 1.822 18.087 5.244m-47.698-1.248c.624.796.966 1.59.795 2.738l-6.33 19.567h-16.78l5.94-18.258c.22-.795-.061-1.48-.514-1.993-.805-.976-2.516-1.6-8.394-1.198 0 0-6.955 21.167-7.076 21.449H66.822c.16-.453 7.87-24.015 7.981-24.247 5.828-1.027 13.528-1.993 21.52-1.993 10.84 0 17.452 1.309 19.626 3.936m-61.226 5.364c.343-1.6-.17-2.798-.744-3.482-.624-.805-2.003-1.832-4.852-1.832-4.046 0-7.075 1.942-8.102 5.193l-1.993 7.479 15.691-7.358zm14.091-.06c0 1.198-.281 2.224-.513 2.677-.513.12-29.782 6.623-29.782 6.623s-.292 1.43.795 2.174c1.43 1.027 2.97 1.308 5.586 1.42 6.452.281 15.188-3.483 17.634-4.56-.393 1.248-2.909 6.733-3.02 7.015-1.087.403-7.136 2.335-19.002 2.395-4.51.06-12.551-.513-15.863-4.68-1.65-2.053-1.942-4.962-.805-8.615 2.687-8.727 12.732-13.75 27.447-13.75 8.223 0 13.588 1.54 16.044 4.56.966 1.258 1.48 2.859 1.48 4.74M11.696 0h16.607c-.342 1.077-11.525 37.14-11.706 37.774H0C.342 36.687 11.524.624 11.696 0" fill="#005e9d"/></svg>
<svg viewBox="0 0 500 105" xmlns="http://www.w3.org/2000/svg"><g fill="#e60012"><path d="M209.972 23.363c-8.939 0-19.104 4.144-25.315 12.44l.004-.017-.004.004.004-11.124h-21.318V102.3h21.314V58.125c0-7.95 6.165-16.402 17.578-16.402 8.821 0 17.948 6.136 17.948 16.402V102.3h21.319V54.175c0-17.856-12.775-30.812-31.53-30.812M393.015 24.659L373.744 77.54 354.472 24.66h-24.353l31.942 77.609h23.36l31.943-77.61h-24.349zM99.7 48.054c3.63-4.875 9.413-7.736 16.397-7.736 7.682 0 13.51 4.387 16.524 10.863L95.376 66.633c-1.017-7.93 1.012-14.133 4.324-18.579m40.956 30.375c-8.972 6.64-14.099 8.224-22.281 8.224-7.362 0-13.128-2.286-17.192-6.296l54.5-22.608c-1.189-8.426-4.387-15.952-9.308-21.676-7.16-8.316-17.759-12.716-30.664-12.716-23.44 0-41.116 17.293-41.116 40.132 0 23.433 17.717 40.128 43.465 40.128 14.426 0 29.177-6.837 36.077-14.825l-13.481-10.363zM72.563 82.723H24.11V1.445H2.502v100.852h70.061V82.723zM455.644 41.623c-11.905 0-20.55 9.023-20.55 21.856 0 12.255 9.158 21.857 20.836 21.857 11.91 0 20.55-9.27 20.55-21.857 0-12.254-9.153-21.856-20.836-21.856m0 61.98c-23.314 0-41.582-17.368-41.582-40.124 0-22.499 18.394-40.123 41.868-40.123 23.315 0 41.578 17.368 41.578 40.123 0 22.496-18.39 40.124-41.864 40.124M291.523 41.623c-11.905 0-20.545 9.023-20.545 21.856 0 12.255 9.153 21.857 20.835 21.857 11.905 0 20.545-9.27 20.545-21.857 0-12.254-9.152-21.856-20.835-21.856m0 61.98c-23.314 0-41.578-17.368-41.578-40.124 0-22.499 18.39-40.123 41.868-40.123 23.31 0 41.578 17.368 41.578 40.123 0 22.496-18.393 40.124-41.868 40.124"/></g></svg>

Before

Width:  |  Height:  |  Size: 2.0 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

View File

@@ -0,0 +1,12 @@
os: cnos
text: 'Lenovo Cloud Network Operating System'
type: network
icon: lenovo
group: lenovo
over:
- { graph: device_bits, text: 'Device Traffic' }
- { graph: device_processor, text: 'CPU Usage' }
- { graph: device_mempool, text: 'Memory Usage' }
discovery:
- sysObjectID:
- .1.3.6.1.4.1.19046.1.7

View File

@@ -0,0 +1,55 @@
mib: LENOVO-ENV-MIB
modules:
sensors:
state:
data:
-
oid: lenovoEnvMibPowerSupplyEntry
value: lenovoEnvMibPowerSupplyState
num_oid: .1.3.6.1.4.1.19046.2.3.11.1.1.1.5.
descr: 'PS{{ $lenovoEnvMibPowerSupplyID }}'
index: 'lenovoEnvMibPowerSupplyState.{{ $index }}'
states:
- { value: 0, descr: off, graph: 1, generic: 1 }
- { value: 1, descr: on, graph: 1, generic: 0 }
- { value: 2, descr: absent, graph: 1, generic: 1 }
- { value: 3, descr: outputFault, graph: 1, generic: 2 }
- { value: -1, descr: unknown, graph: 1, generic: 3 }
-
oid: lenovoEnvMibFanEntry
value: lenovoEnvMibFanState
num_oid: .1.3.6.1.4.1.19046.2.3.11.1.2.1.1.5.
descr: lenovoEnvMibFanName
index: 'lenovoEnvMibFanState.{{ $index }}'
states:
- { value: 0, descr: ok, graph: 1, generic: 0 }
- { value: 1, descr: absent, graph: 1, generic: 1 }
- { value: 2, descr: fault, graph: 1, generic: 2 }
- { value: -1, descr: unknown, graph: 1, generic: 3 }
-
oid: lenovoEnvMibTempSensorEntry
value: lenovoEnvMibTempSensorState
num_oid: .1.3.6.1.4.1.19046.2.3.11.1.3.1.1.5.
descr: lenovoEnvMibTempSensorDesc
index: 'lenovoEnvMibTempSensorState.{{ $index }}'
states:
- { value: 0, descr: ok, graph: 1, generic: 0 }
- { value: 1, descr: fault, graph: 1, generic: 2 }
- { value: -1, descr: unknown, graph: 1, generic: 3 }
fanspeed:
data:
-
oid: lenovoEnvMibFanEntry
value: lenovoEnvMibFanSpeedRPM
num_oid: .1.3.6.1.4.1.19046.2.3.11.1.2.1.8.
index: 'lenovoEnvMibFanSpeedRPM.{{ $index }}'
descr: lenovoEnvMibFanName
temperature:
data:
-
oid: lenovoEnvMibTempSensorEntry
value: lenovoEnvMibTempSensorTemperature
num_oid: .1.3.6.1.4.1.19046.2.3.11.1.3.1.6.
index: 'lenovoEnvTempSensorTemperature.{{ $index }}'
descr: lenovoEnvMibTempSensorName

View File

@@ -0,0 +1,104 @@
-- LENOVO-PRODUCTS-MIB: Lenovo product object identifier assignments
-- Copyright (c) 2014-2017 Lenovo Group Ltd. All rights reserved.
LENOVO-PRODUCTS-MIB DEFINITIONS ::= BEGIN
IMPORTS
MODULE-IDENTITY
FROM SNMPv2-SMI
lenovoProducts, lenovoModules
FROM LENOVO-SMI-MIB;
lenovoProductsMIB MODULE-IDENTITY
LAST-UPDATED "201705010000Z"
ORGANIZATION "Lenovo"
CONTACT-INFO
"Lenovo
Postal: 1009 Think Place
Morrisville, NC 27560
USA
Tel: +1 (919) 968-4465
E-mail: snmp@lenovo.com"
DESCRIPTION
"This module defines the object identifiers returned as values for
sysObjectID for Lenovo hardware."
REVISION "201604200000Z"
DESCRIPTION "Initial version."
REVISION "201705010000Z"
DESCRIPTION "Add sysObjectId for G8332 CNOS product"
REVISION "201705020000Z"
DESCRIPTION "Add sysObjectIDs for NE1032, NE1032T, NE1072, and NE10032 switches."
::= { lenovoModules 1 }
-- Lenovo Server Products
lenovoServerProducts OBJECT-IDENTITY
STATUS current
DESCRIPTION
"Root object identifier for Lenovo server products."
::= { lenovoProducts 11 }
-- Lenovo Network Flex Products
flex OBJECT-IDENTITY
STATUS current
DESCRIPTION
"Root object identifier for Lenovo Flex network products."
::= { lenovoProducts 18}
--Lenovo Flex System SI4091 10Gb System Interconnect Module
si4091 OBJECT IDENTIFIER ::= { flex 23}
-- Lenovo Network RackSwitch (ToR) Products
tor OBJECT-IDENTITY
STATUS current
DESCRIPTION
"Root object identifier for Lenovo RackSwitch network products."
::= { lenovoProducts 7}
-- Lenovo RackSwitch G8296
g8296 OBJECT IDENTIFIER ::= { tor 22}
-- Lenovo RackSwitch G8272
g8272 OBJECT IDENTIFIER ::= { tor 24}
-- Lenovo RackSwitch G8296 CNOS
g8296-cnos OBJECT IDENTIFIER ::= { tor 29}
-- Lenovo RackSwitch G8272 CNOS
g8272-cnos OBJECT IDENTIFIER ::= { tor 30}
-- Lenovo RackSwitch G8332 CNOS
g8332-cnos OBJECT IDENTIFIER ::= { tor 31}
-- Lenovo ThinkSystem NE1032 RackSwitch
ne1032 OBJECT IDENTIFIER ::= { tor 32}
-- Lenovo ThinkSystem NE1032T RackSwitch
ne1032t OBJECT IDENTIFIER ::= { tor 33}
-- Lenovo ThinkSystem NE1072T RackSwitch
ne1072t OBJECT IDENTIFIER ::= { tor 34}
-- Lenovo ThinkSystem NE10032 RackSwitch
ne10032 OBJECT IDENTIFIER ::= { tor 36}
-- Lenovo ThinkSystem NE2572 RackSwitch
ne2572 OBJECT IDENTIFIER ::= { tor 41}
-- Lenovo CE0128T Switch
ce0128t OBJECT IDENTIFIER ::= { tor 37}
-- Lenovo CE0128P Switch
ce0128p OBJECT IDENTIFIER ::= { tor 38}
-- Lenovo CE0152T Switch
ce0152t OBJECT IDENTIFIER ::= { tor 39}
-- Lenovo ThinkSystem NE2572 RackSwitch
ne2572 OBJECT IDENTIFIER ::= { tor 41}
END

476
mibs/lenovo/LENOVO-ENV-MIB Normal file
View File

@@ -0,0 +1,476 @@
LENOVO-ENV-MIB DEFINITIONS ::= BEGIN
IMPORTS
MODULE-IDENTITY, OBJECT-TYPE, Integer32, Gauge32
FROM SNMPv2-SMI
TEXTUAL-CONVENTION
FROM SNMPv2-TC
SnmpAdminString
FROM SNMP-FRAMEWORK-MIB
PhysicalIndex
FROM ENTITY-MIB
network-mibs
FROM LENOVO-SMI-MIB;
-------------------------------------------------------------------------------
-- Module Identity
-------------------------------------------------------------------------------
lenovoEnvMIB MODULE-IDENTITY
LAST-UPDATED "201609230000Z" -- 09/23/2016 00:00GMT
ORGANIZATION "Lenovo"
CONTACT-INFO "
Lenovo
3325 Scott Blvd.
Santa Clara, CA 95054
"
DESCRIPTION "
Defines environmental notifications
"
REVISION "201609230000Z" -- 09/23/2016 00:00GMT
DESCRIPTION "Initial version."
::= { network-mibs 11 }
-------------------------------------------------------------------------------
-- Textual Conventions
-------------------------------------------------------------------------------
LenovoEnvMibPowerSupplyState ::= TEXTUAL-CONVENTION
STATUS current
DESCRIPTION
"Status of the Power Supply"
SYNTAX INTEGER {
off(0),
on(1),
absent(2),
outputFault (3)
}
LenovoEnvMibFanState ::= TEXTUAL-CONVENTION
STATUS current
DESCRIPTION
"Status of the Fan"
SYNTAX INTEGER {
ok(0),
absent(1),
fault (2)
}
LenovoEnvMibTempSensorState ::= TEXTUAL-CONVENTION
STATUS current
DESCRIPTION
"Status of the temperature sensor"
SYNTAX INTEGER {
ok(0),
fault(1)
}
LenovoEnvMibTempSensorThreshold ::= TEXTUAL-CONVENTION
STATUS current
DESCRIPTION
"Threshold that was crossed that generated the notification"
SYNTAX INTEGER {
warning(0),
failure(1),
ok(2)
}
LenovoEnvMibFanAirFlow ::= TEXTUAL-CONVENTION
STATUS current
DESCRIPTION
"Air flow direction of the Fan"
SYNTAX INTEGER {
front2back(0),
back2front(1),
notinstalled(2)
}
-------------------------------------------------------------------------------
-- Objects
-------------------------------------------------------------------------------
lenovoEnvMibObjects OBJECT IDENTIFIER ::= { lenovoEnvMIB 1 }
lenovoEnvMibPowerSupplyTable OBJECT-TYPE
SYNTAX SEQUENCE OF LenovoEnvMibPowerSupplyEntry
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION
"This table contains information for the
various power supplies in the switch."
::= { lenovoEnvMibObjects 1 }
lenovoEnvMibPowerSupplyEntry OBJECT-TYPE
SYNTAX LenovoEnvMibPowerSupplyEntry
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION
"A single row containing information for a power supply.
The power supply description and name are derived from
values in the Entity MIB. Row is indexed using the same
index used by the Physical Table of the Entity MIB"
INDEX { lenovoEnvMibPowerSupplyIndex }
::= { lenovoEnvMibPowerSupplyTable 1 }
LenovoEnvMibPowerSupplyEntry ::= SEQUENCE {
lenovoEnvMibPowerSupplyIndex PhysicalIndex,
lenovoEnvMibPowerSupplyID Integer32,
lenovoEnvMibPowerSupplyDesc SnmpAdminString,
lenovoEnvMibPowerSupplyName SnmpAdminString,
lenovoEnvMibPowerSupplyState LenovoEnvMibPowerSupplyState
}
lenovoEnvMibPowerSupplyIndex OBJECT-TYPE
SYNTAX PhysicalIndex
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"Index of entry for power supply in Physical Table of Entity MIB"
::= { lenovoEnvMibPowerSupplyEntry 1 }
lenovoEnvMibPowerSupplyID OBJECT-TYPE
SYNTAX Integer32
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"ID of power supply"
::= { lenovoEnvMibPowerSupplyEntry 2 }
lenovoEnvMibPowerSupplyDesc OBJECT-TYPE
SYNTAX SnmpAdminString
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"Description of power supply"
::= { lenovoEnvMibPowerSupplyEntry 3 }
lenovoEnvMibPowerSupplyName OBJECT-TYPE
SYNTAX SnmpAdminString
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"Name of power supply"
::= { lenovoEnvMibPowerSupplyEntry 4 }
lenovoEnvMibPowerSupplyState OBJECT-TYPE
SYNTAX LenovoEnvMibPowerSupplyState
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"State of the power supply"
::= { lenovoEnvMibPowerSupplyEntry 5 }
lenovoEnvMibFanTable OBJECT-TYPE
SYNTAX SEQUENCE OF LenovoEnvMibFanEntry
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION
"This table contains information for the
various fans in the switch."
::= { lenovoEnvMibObjects 2 }
lenovoEnvMibFanEntry OBJECT-TYPE
SYNTAX LenovoEnvMibFanEntry
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION
"A single row containing information for a fan.
The fan description and name are derived from
values in the Entity MIB. Row is indexed using the same
index used by the Physical Table of the Entity MIB"
INDEX { lenovoEnvMibFanIndex }
::= { lenovoEnvMibFanTable 1 }
LenovoEnvMibFanEntry ::= SEQUENCE {
lenovoEnvMibFanIndex PhysicalIndex,
lenovoEnvMibFanID Integer32,
lenovoEnvMibFanDesc SnmpAdminString,
lenovoEnvMibFanName SnmpAdminString,
lenovoEnvMibFanState LenovoEnvMibFanState,
lenovoEnvMibFanAirFlow LenovoEnvMibFanAirFlow,
lenovoEnvMibFanModule Integer32,
lenovoEnvMibFanSpeedRPM Integer32,
lenovoEnvMibFanSpeedPercent Gauge32
}
lenovoEnvMibFanIndex OBJECT-TYPE
SYNTAX PhysicalIndex
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"Index of entry for fan in Physical Table of Entity MIB"
::= { lenovoEnvMibFanEntry 1 }
lenovoEnvMibFanID OBJECT-TYPE
SYNTAX Integer32
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"ID of fan"
::= { lenovoEnvMibFanEntry 2 }
lenovoEnvMibFanDesc OBJECT-TYPE
SYNTAX SnmpAdminString
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"Description of fan"
::= { lenovoEnvMibFanEntry 3 }
lenovoEnvMibFanName OBJECT-TYPE
SYNTAX SnmpAdminString
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"Name of fan"
::= { lenovoEnvMibFanEntry 4 }
lenovoEnvMibFanState OBJECT-TYPE
SYNTAX LenovoEnvMibFanState
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"State of the fan"
::= { lenovoEnvMibFanEntry 5 }
lenovoEnvMibFanAirFlow OBJECT-TYPE
SYNTAX LenovoEnvMibFanAirFlow
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"Airflow direction of the fan"
::= { lenovoEnvMibFanEntry 6 }
lenovoEnvMibFanModule OBJECT-TYPE
SYNTAX Integer32
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"Module number of the fan"
::= { lenovoEnvMibFanEntry 7 }
lenovoEnvMibFanSpeedRPM OBJECT-TYPE
SYNTAX Integer32
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"Speed of the fan in revolutions per minute (RPM)"
::= { lenovoEnvMibFanEntry 8 }
lenovoEnvMibFanSpeedPercent OBJECT-TYPE
SYNTAX Gauge32
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"Speed of the fan as a percentage"
::= { lenovoEnvMibFanEntry 9 }
lenovoEnvMibTempSensorTable OBJECT-TYPE
SYNTAX SEQUENCE OF LenovoEnvMibTempSensorEntry
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION
"This table contains information for the
various temperature sensors in the switch."
::= { lenovoEnvMibObjects 3 }
lenovoEnvMibTempSensorEntry OBJECT-TYPE
SYNTAX LenovoEnvMibTempSensorEntry
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION
"A single row containing information for a temperature sensor.
The temperature sensor description and name are derived from
values in the Entity MIB. Row is indexed using the same
index used by the Physical Table of the Entity MIB"
INDEX { lenovoEnvMibTempSensorIndex }
::= { lenovoEnvMibTempSensorTable 1 }
LenovoEnvMibTempSensorEntry ::= SEQUENCE {
lenovoEnvMibTempSensorIndex PhysicalIndex,
lenovoEnvMibTempSensorID Integer32,
lenovoEnvMibTempSensorDesc SnmpAdminString,
lenovoEnvMibTempSensorName SnmpAdminString,
lenovoEnvMibTempSensorState LenovoEnvMibTempSensorState,
lenovoEnvMibTempSensorTemperature Integer32
}
lenovoEnvMibTempSensorIndex OBJECT-TYPE
SYNTAX PhysicalIndex
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"Index of entry for temperature sensor in Physical Table of Entity MIB"
::= { lenovoEnvMibTempSensorEntry 1 }
lenovoEnvMibTempSensorID OBJECT-TYPE
SYNTAX Integer32
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"ID of temperature sensor"
::= { lenovoEnvMibTempSensorEntry 2 }
lenovoEnvMibTempSensorDesc OBJECT-TYPE
SYNTAX SnmpAdminString
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"Description of temperature sensor"
::= { lenovoEnvMibTempSensorEntry 3 }
lenovoEnvMibTempSensorName OBJECT-TYPE
SYNTAX SnmpAdminString
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"Name of temperature sensor"
::= { lenovoEnvMibTempSensorEntry 4 }
lenovoEnvMibTempSensorState OBJECT-TYPE
SYNTAX LenovoEnvMibTempSensorState
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"State of the temperature sensor"
::= { lenovoEnvMibTempSensorEntry 5 }
lenovoEnvMibTempSensorTemperature OBJECT-TYPE
SYNTAX Integer32
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"Temperature of the sensor in Celcius"
::= { lenovoEnvMibTempSensorEntry 6 }
lenovoEnvMibTempSensorThresholds OBJECT IDENTIFIER ::= { lenovoEnvMibObjects 4 }
lenovoEnvMIBTempSensorWarning OBJECT-TYPE
SYNTAX Integer32
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"System temperature sensor warning threshold value"
::= { lenovoEnvMibTempSensorThresholds 1 }
lenovoEnvMIBTempSensorShutdown OBJECT-TYPE
SYNTAX Integer32
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"System temperature sensor shutdown/failure threshold value"
::= { lenovoEnvMibTempSensorThresholds 2 }
lenovoEnvMIBTempSensorSetPoint OBJECT-TYPE
SYNTAX Integer32
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"System temperature sensor set point threshold value"
::= { lenovoEnvMibTempSensorThresholds 3 }
-------------------------------------------------------------------------------
-- Notifications
-------------------------------------------------------------------------------
lenovoEnvMibNotificationPrefix OBJECT IDENTIFIER ::= { lenovoEnvMIB 3 }
lenovoEnvMibNotifications OBJECT IDENTIFIER ::= { lenovoEnvMibNotificationPrefix 0 }
lenovoEnvMibNotificationObjects OBJECT IDENTIFIER ::= { lenovoEnvMibNotificationPrefix 1 }
lenovoEnvMibTempSensorThreshold OBJECT-TYPE
SYNTAX LenovoEnvMibTempSensorThreshold
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"Threshold that was crossed that generated the notification"
::= { lenovoEnvMibNotificationObjects 1 }
lenovoEnvMibPowerSupplyFailure NOTIFICATION-TYPE
OBJECTS {
lenovoEnvMibPowerSupplyID,
lenovoEnvMibPowerSupplyName,
lenovoEnvMibPowerSupplyState
}
STATUS current
DESCRIPTION
"This trap signifies that a power supply has failed."
--#SEVERITY CRITICAL
::= { lenovoEnvMibNotifications 1 }
lenovoEnvMibPowerSupplyFixed NOTIFICATION-TYPE
OBJECTS {
lenovoEnvMibPowerSupplyID,
lenovoEnvMibPowerSupplyName,
lenovoEnvMibPowerSupplyState
}
STATUS current
DESCRIPTION
"This trap signifies that a power supply has been restored."
--#SEVERITY INFORMATIONAL
::= { lenovoEnvMibNotifications 2 }
lenovoEnvMibFanFailure NOTIFICATION-TYPE
OBJECTS {
lenovoEnvMibFanID,
lenovoEnvMibFanName,
lenovoEnvMibFanState,
lenovoEnvMibFanRPM
}
STATUS current
DESCRIPTION
"This trap signifies that a fan has failed."
--#SEVERITY CRITICAL
::= { lenovoEnvMibNotifications 3 }
lenovoEnvMibFanFixed NOTIFICATION-TYPE
OBJECTS {
lenovoEnvMibFanID,
lenovoEnvMibFanName,
lenovoEnvMibFanState,
lenovoEnvMibFanRPM
}
STATUS current
DESCRIPTION
"This trap signifies that a fan has been restored."
--#SEVERITY INFORMATIONAL
::= { lenovoEnvMibNotifications 4 }
lenovoEnvMibTempSensorFailure NOTIFICATION-TYPE
OBJECTS {
lenovoEnvMibTempSensorID,
lenovoEnvMibTempSensorName,
lenovoEnvMibTempSensorState,
lenovoEnvMibTempSensorTemperature,
lenovoEnvMibTempSensorThreshold
}
STATUS current
DESCRIPTION
"This trap signifies that a temperature sensor has failed."
--#SEVERITY CRITICAL
::= { lenovoEnvMibNotifications 5 }
lenovoEnvMibTempSensorFixed NOTIFICATION-TYPE
OBJECTS {
lenovoEnvMibTempSensorID,
lenovoEnvMibTempSensorName,
lenovoEnvMibTempSensorState,
lenovoEnvMibTempSensorTemperature,
lenovoEnvMibTempSensorThreshold
}
STATUS current
DESCRIPTION
"This trap signifies that a temperature sensor has been restored."
--#SEVERITY INFORMATIONAL
::= { lenovoEnvMibNotifications 6 }
END

View File

@@ -0,0 +1,73 @@
-- LENOVO-SMI-MIB: Lenovo structure of management information
-- Copyright (c) 2014-2016 Lenovo. All rights reserved.
LENOVO-SMI-MIB DEFINITIONS ::= BEGIN
IMPORTS
MODULE-IDENTITY,
OBJECT-IDENTITY,
enterprises
FROM SNMPv2-SMI;
lenovo MODULE-IDENTITY
LAST-UPDATED "201608150000Z"
ORGANIZATION "Lenovo Group Ltd."
CONTACT-INFO
"Lenovo
Postal: 1009 Think Place
Morrisville, NC 27560
USA
Tel: +1 (919) 968-4465
E-mail: snmp@lenovo.com"
DESCRIPTION
"The Structure of Management Information for the
Lenovo Enterprise Business Group."
REVISION "201610271830Z"
DESCRIPTION
"Initial version."
::= { enterprises 19046 } -- assigned by IANA
lenovoProducts OBJECT-IDENTITY
STATUS current
DESCRIPTION
"Root object identifier from which sysObjectID values are assigned.
Values are defined in LENOVO-PRODUCTS-MIB."
::= { lenovo 1 }
lenovoNetworkMibs OBJECT-IDENTITY
STATUS current
DESCRIPTION
"Root object identifier for management-related Lenovo network MIBs."
::= { lenovo 2 }
tor-mibs OBJECT-IDENTITY
STATUS current
DESCRIPTION
"Root for pre-10.x Lenovo RackSwitch switch MIBs."
::= { lenovoNetworkMibs 7 }
flex-mibs OBJECT-IDENTITY
STATUS current
DESCRIPTION
"Root for pre-10.x Lenovo Flex chassis switch MIBs."
::= { lenovoNetworkMibs 18 }
network-mibs OBJECT-IDENTITY
STATUS current
DESCRIPTION
"Root for Lenovo device-independent switch MIBs."
::= { lenovoNetworkMibs 3 }
lenovoServerMibs OBJECT-IDENTITY
STATUS current
DESCRIPTION
"Root object identifier for management-related Lenovo server MIBs."
::= { lenovo 11 }
lenovoModules OBJECT-IDENTITY
STATUS current
DESCRIPTION
"Root bject identifier from which MODULE-IDENTITY values may be assigned."
::= { lenovo 4 }
END

79
tests/data/cnos.json Normal file
View File

@@ -0,0 +1,79 @@
{
"applications": {
"discovery": {
"applications": [],
"application_metrics": []
},
"poller": "matches discovery"
},
"bgp-peers": {
"discovery": {
"devices": [
{
"bgpLocalAs": null
}
],
"bgpPeers": [],
"bgpPeers_cbgp": []
},
"poller": "matches discovery"
},
"mempools": {
"discovery": {
"mempools": []
},
"poller": "matches discovery"
},
"ports": {
"discovery": {
"ports": []
},
"poller": "matches discovery"
},
"os": {
"discovery": {
"devices": [
{
"sysName": "",
"sysObjectID": ".1.3.6.1.4.1.19046.1.7.34",
"sysDescr": "Lenovo ThinkSystem NE1072T RackSwitch",
"sysContact": null,
"version": null,
"hardware": "",
"features": null,
"location": null,
"os": "cnos",
"type": "network",
"serial": null,
"icon": "lenovo.svg"
}
]
},
"poller": "matches discovery"
},
"processors": {
"discovery": {
"processors": []
},
"poller": "matches discovery"
},
"sensors": {
"discovery": {
"sensors": [],
"state_indexes": []
},
"poller": "matches discovery"
},
"storage": {
"discovery": {
"storage": []
},
"poller": "matches discovery"
},
"wireless": {
"discovery": {
"wireless_sensors": []
},
"poller": "matches discovery"
}
}

View File

@@ -0,0 +1,2 @@
1.3.6.1.2.1.1.1.0|4|Lenovo ThinkSystem NE1072T RackSwitch
1.3.6.1.2.1.1.2.0|6|.1.3.6.1.4.1.19046.1.7.34