Skip to content
Permalink
Browse files

Added support for Waystream products (#9481)

DO NOT DELETE THIS TEXT

#### Please note

> Please read this information carefully. You can run `./scripts/pre-commit.php` to check your code before submitting.

- [X ] Have you followed our [code guidelines?](http://docs.librenms.org/Developing/Code-Guidelines/)

#### Testers

If you would like to test this pull request then please run: `./scripts/github-apply <pr_id>`, i.e `./scripts/github-apply 5926`
After you are done testing, you can remove the changes with `./scripts/github-remove`.  If there are schema changes, you can ask on discord how to revert.

This has been running in two production networks for > 3 months without any issues.
  • Loading branch information...
lowinger42 authored and laf committed Nov 28, 2018
1 parent db1fa8c commit edcafadf226c49b103c197cba4a895ecda409be5
@@ -0,0 +1 @@
<svg viewBox="0 0 100 57" xmlns="http://www.w3.org/2000/svg"><title>logo</title><g fill="none" fill-rule="evenodd"><path fill="#1E1E1C" d="M14.094 41.963l-2.126 7.563-1.977-7.563H7.434l-2.17 7.563-1.999-7.563H0L3.416 53.2H6.51l2.062-7.047 1.913 7.047h3.05l3.546-11.237zm9.14 7.305v-.945H22.03c-1.805 0-2.858.387-2.858 1.59 0 .816.494 1.353 1.633 1.353 1.375 0 2.428-.751 2.428-1.998m-7.112.817c0-2.622 2.406-3.61 5.844-3.61h1.268v-.452c0-1.331-.408-2.062-1.827-2.062-1.224 0-1.783.624-1.912 1.59h-2.943c.193-2.664 2.299-3.846 5.049-3.846 2.75 0 4.705 1.118 4.705 4.169V53.2h-3.03v-1.354c-.644.903-1.632 1.59-3.394 1.59-2.041 0-3.76-.988-3.76-3.351m20.474-.409h2.901c.129 1.01.623 1.59 1.977 1.59 1.203 0 1.761-.451 1.761-1.224 0-.774-.666-1.096-2.277-1.332-2.987-.45-4.147-1.311-4.147-3.502 0-2.343 2.149-3.503 4.448-3.503 2.492 0 4.361.903 4.64 3.481h-2.857c-.172-.924-.687-1.354-1.762-1.354-1.01 0-1.59.473-1.59 1.16 0 .71.537.989 2.17 1.225 2.815.408 4.362 1.118 4.362 3.524 0 2.427-1.762 3.695-4.727 3.695-3.03 0-4.791-1.332-4.899-3.76m10.257.194v-7.907l3.094-3.866v3.866h2.363v2.213h-2.363v5.415c0 .902.451 1.332 1.246 1.332.473 0 .816-.065 1.182-.215v2.406c-.43.15-1.053.301-1.891.301-2.364 0-3.631-1.203-3.631-3.545m6.502-7.907h3.115v2.149c.709-1.504 1.805-2.3 3.631-2.32v2.9c-2.299-.022-3.631.73-3.631 2.88V53.2h-3.115V41.963zm14.7 4.405c-.108-1.698-.967-2.514-2.45-2.514-1.396 0-2.342.923-2.578 2.514h5.028zm-8.23 1.353v-.172c0-3.545 2.514-5.844 5.78-5.844 2.9 0 5.48 1.697 5.48 5.715v.86h-8.101c.086 1.869 1.095 2.943 2.793 2.943 1.44 0 2.149-.624 2.342-1.57h2.943c-.365 2.43-2.299 3.782-5.371 3.782-3.395.001-5.866-2.126-5.866-5.714zm18.716 1.547v-.945h-1.204c-1.805 0-2.858.387-2.858 1.59 0 .816.495 1.353 1.633 1.353 1.375 0 2.428-.751 2.428-1.998m-7.112.817c0-2.622 2.407-3.61 5.845-3.61h1.267v-.452c0-1.331-.408-2.062-1.826-2.062-1.225 0-1.783.624-1.913 1.59h-2.943c.193-2.664 2.3-3.846 5.05-3.846s4.705 1.118 4.705 4.169V53.2h-3.03v-1.354c-.644.903-1.632 1.59-3.394 1.59-2.042 0-3.761-.988-3.761-3.351M82.6 41.963h3.116v1.72c.559-1.054 1.762-1.978 3.438-1.978 1.482 0 2.6.623 3.137 1.955.903-1.353 2.363-1.955 3.781-1.955 2.084 0 3.696 1.31 3.696 4.297V53.2h-3.094v-6.854c0-1.44-.645-2.084-1.762-2.084-1.203 0-2.17.774-2.17 2.299v6.64h-3.094v-6.855c0-1.44-.666-2.084-1.762-2.084-1.203 0-2.17.774-2.17 2.299v6.64h-3.115V41.962z"/><path fill="#1E1E1C" d="M28.543 56.28h3.012l5.78-14.317H34.35l-2.514 6.746-2.729-6.746h-3.352l4.47 10.098z"/><path d="M38.782 29.483l3.322-11.271-4.528-15.363a3.462 3.462 0 1 0-6.642 1.958l7.838 26.59a3.44 3.44 0 0 1 .01-1.914" fill="#86CBCA"/><path d="M46.62 2.893l-4.515 15.319 3.322 11.27c.191.65.18 1.308.01 1.914l4.515-15.318L46.63 4.807a3.44 3.44 0 0 1-.01-1.914" fill="#973C8F"/><path d="M45.427 29.483l-3.323-11.271-3.322 11.27a3.44 3.44 0 0 0-.01 1.914l.013.045a3.453 3.453 0 0 0 1.944 2.196l.024.011c.068.03.138.053.208.078.042.014.082.03.124.043.057.017.114.031.171.046.056.014.113.029.169.04.054.011.11.019.164.027.059.009.117.018.175.023.056.006.112.009.168.011.058.003.115.006.172.006.058 0 .115-.003.173-.006.056-.002.112-.005.168-.01.058-.006.116-.015.174-.024.055-.008.11-.016.165-.027.056-.011.112-.026.169-.04.056-.015.114-.029.17-.046.043-.013.083-.029.125-.043.07-.025.14-.049.208-.078l.024-.01a3.453 3.453 0 0 0 1.943-2.197l.013-.045a3.44 3.44 0 0 0-.009-1.913" fill="#633C79"/><path d="M54.477 29.483L57.8 18.212 53.284 2.893a3.442 3.442 0 0 1-.009 1.914l-3.322 11.271 4.515 15.318a3.437 3.437 0 0 1 .01-1.913" fill="#FFD924"/><path d="M53.284 2.893l-.012-.044A3.455 3.455 0 0 0 51.328.653l-.024-.011c-.068-.03-.138-.053-.208-.078L50.972.52c-.056-.017-.114-.03-.171-.045-.056-.014-.113-.029-.169-.04-.054-.011-.11-.019-.164-.027a2.718 2.718 0 0 0-.343-.034 2.476 2.476 0 0 0-.173-.007c-.057 0-.114.003-.172.006-.056.003-.112.005-.168.01-.058.007-.116.016-.175.025a2.95 2.95 0 0 0-.164.027c-.057.011-.113.026-.169.04-.057.015-.115.028-.17.045-.043.014-.084.03-.125.044-.07.025-.14.048-.209.078l-.024.01a3.454 3.454 0 0 0-1.943 2.197l-.013.044a3.44 3.44 0 0 0 .01 1.914l3.322 11.271 3.323-11.271a3.44 3.44 0 0 0 .01-1.914" fill="#943B33"/><path d="M66.628.507a3.462 3.462 0 0 0-4.3 2.342L57.8 18.212l3.323 11.27c.19.65.18 1.308.009 1.914l7.838-26.59A3.463 3.463 0 0 0 66.628.508" fill="#EC595E"/><path d="M61.123 29.483L57.8 18.212l-3.323 11.27a3.44 3.44 0 0 0-.01 1.914l.014.045a3.453 3.453 0 0 0 1.943 2.196l.024.011c.068.03.138.053.208.078.042.014.082.03.125.043.056.017.114.031.17.046.057.014.113.029.17.04.053.011.109.019.164.027.058.009.116.018.174.023.056.006.112.009.168.011.058.003.115.006.173.006.057 0 .115-.003.172-.006.056-.002.113-.005.168-.01.058-.006.116-.015.175-.024a2.95 2.95 0 0 0 .164-.027c.056-.011.113-.026.169-.04.057-.015.114-.029.17-.046.043-.013.084-.029.125-.043.07-.025.14-.049.208-.078l.024-.01a3.453 3.453 0 0 0 1.943-2.197l.013-.045a3.437 3.437 0 0 0-.008-1.913" fill="#E74E1C"/></g></svg>
@@ -0,0 +1,54 @@
mib: WAYSTREAM-MIB
modules:
sensors:
temperature:
data:
-
descr: Temperature {{ $index }}
oid: wsTempEntry
value: wsTempMeasured
num_oid: '.1.3.6.1.4.1.9303.4.1.2.1.1.2.{{ $index }}'
low_warn_limit: wsTempThresholdLow
warn_limit: wsTempThresholdHigh
divisor: 100

voltage:
data:
-
descr: Voltage {{ $index }}
oid: wsVoltEntry
value: wsVoltMeasured
num_oid: '.1.3.6.1.4.1.9303.4.1.2.2.1.3.{{ $index }}'
low_warn_limit: wsVoltThresholdLow
warn_limit: wsVoltThresholdHigh
divisor: 1000
skip_values: 0

fanspeed:
data:
-
descr: Fan speed {{ $index }}
oid: wsFanEntry
value: wsFanRPM
num_oid: '.1.3.6.1.4.1.9303.4.1.2.3.1.2.{{ $index }}'

dbm:
options:
divisor: 1000
skip_values: 0
data:
- oid: wsSFPEntry
descr: Receive power {{ $index }}
value: wsSFPRXdBmPower
index: 'wsSFPRXdBmPower.{{ $index }}'
num_oid: '.1.3.6.1.4.1.9303.4.1.4.1.23.{{ $index }}'
low_warn_limit: wsSFPRXInputPowNormalLowdBm
warn_limit: wsSFPRXInputPowNormalHighdBm

- oid: wsSFPEntry
descr: Transmit power {{ $index }}
value: wsSFPTXdBmPower
index: 'wsSFPTXdBmPower.{{ $index }}'
num_oid: '.1.3.6.1.4.1.9303.4.1.4.1.22.{{ $index }}'
low_warn_limit: wsSFPTXOutputPowNormalLowdBm
warn_limit: wsSFPTXOutputPowNormalHighdBm
@@ -0,0 +1,20 @@
os: ibos
text: 'Waystream iBOS'
type: network
icon: waystream
group: waystream
over:
- { graph: device_bits, text: 'Device Traffic' }
- { graph: device_processor, text: 'CPU Usage' }
- { graph: device_mempool, text: 'Memory Usage' }
bad_if:
- downstream0
- Lo0
- Null0
- system0
discovery:
- sysObjectID:
# ASR 5k products
- .1.3.6.1.4.1.9303.1.1.
# Metrostar products
- .1.3.6.1.4.1.9303.1.5.
@@ -0,0 +1,6 @@
<?php
if (preg_match('/(.*), iBOS Version ibos-.*?-(.*)\s+Copyright/', $device['sysDescr'], $regexp_result)) {
$hardware = $regexp_result[1];
$version = $regexp_result[2];
}
@@ -0,0 +1,178 @@
WAYSTREAM-COPY-MIB DEFINITIONS ::= BEGIN
--
-- This is the Waystream MIB definition for the iBOS file copy function
--
-- Copyright (c) 2017 Waystream AB, All rights reserved
--

IMPORTS
MODULE-IDENTITY,
OBJECT-TYPE,
Unsigned32
FROM SNMPv2-SMI

DisplayString
FROM SNMPv2-TC

wsExperiment
FROM WAYSTREAM-SMI;


wsCopy MODULE-IDENTITY
LAST-UPDATED "201702101100Z" -- February 10, 2017
ORGANIZATION "Waystream AB"
CONTACT-INFO
"Waystream AB
Customer Service

Mail : Farogatan 33
SE-164 51 Kista
Sweden

Tel : +46 8 5626 9450

E-mail: info@waystream.com
Web : http://www.waystream.com"
DESCRIPTION
"MIB describing the file copy functions available on Waystream ASRs"

REVISION "201702101100Z" -- February 10, 2017
DESCRIPTION
"Company name change:
In October 2015 PacketFront Network Products was renamed Waystream.
In this update all PacketFront were changed to Waystream and all
pf* to ws*."
REVISION "201101111735Z" -- January 11th, 2011
DESCRIPTION
"Updated company name"
REVISION "200903231117Z"
DESCRIPTION
"Updated telephone information in contact-info"
REVISION "200809101538Z"
DESCRIPTION
"Initial - moved pfCopy from PACKETFRONT-MIB"

::= { wsExperiment 2 }


-- Get filehandle
wsCopyNextState OBJECT-TYPE
SYNTAX Unsigned32
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"Generate a unique filehandle. The filehandle is
used with the other objects in the wsCopy branch
to set the source and destination and commence
file transfer activities."
::= { wsCopy 1 }

-- the ws Copy table
-- Table with states of current copy sessions.
wsCopyTable OBJECT-TYPE
SYNTAX SEQUENCE OF WsCopyEntry
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION
"A list of current copy sessions. The next available entry is
given by the value of wsCopyNextState."
::= { wsCopy 2 }

wsCopyEntry OBJECT-TYPE
SYNTAX WsCopyEntry
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION
"An entry for a copy session."
INDEX { wsCopyIndex }
::= { wsCopyTable 1 }

WsCopyEntry ::=
SEQUENCE {
wsCopyIndex Unsigned32,
wsCopySource DisplayString,
wsCopyDestination DisplayString,
wsCopyStatus INTEGER,
wsCopyError DisplayString
}


wsCopyIndex OBJECT-TYPE
SYNTAX Unsigned32
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"A unique value for each copy session."
::= { wsCopyEntry 1 }

-- Set copy source
wsCopySource OBJECT-TYPE
SYNTAX DisplayString (SIZE (0..255))
MAX-ACCESS read-write
STATUS current
DESCRIPTION
"The source URL for a filhandle. The string
provided must match an acceptable URL as
typed in the command line interface copy command."
::= { wsCopyEntry 2 }

-- Set copy destination
wsCopyDestination OBJECT-TYPE
SYNTAX DisplayString (SIZE (0..255))
MAX-ACCESS read-write
STATUS current
DESCRIPTION
"The destination filename for a filehandle. The
string provided must match an acceptable destination
as typed in the command line interface copy command."
::= { wsCopyEntry 3 }

-- Set/Get copy status
wsCopyStatus OBJECT-TYPE
SYNTAX INTEGER {
notused(0),
start(1),
stop(2),
destroy(3),
init(4),
inprogress(5),
failed(6),
finished(7)
}
MAX-ACCESS read-write
STATUS current
DESCRIPTION
"The status of a filehandle

notused - Get: The filehandle has not been used during the last 24 hours
Set: Not possible
start - Get: Not possible
Set: Start filetransfer
stop - Get: Not possible
Set: Stop filetransfer in progress
destroy - Get: Not possible
Set: Remove source and destination entries for filehandle
init - Get: Filtransfer started
Set: Not possible
inprogress - Get: Filetransfer in progress
Set: Not possible
failed - Get: A failure occured during last filetransfer
Set: Not possible
finished - Get: The file was successfully transferred and stored
Set: not possible
"
::= { wsCopyEntry 4 }

wsCopyError OBJECT-TYPE
SYNTAX DisplayString (SIZE (0..255))
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"A textual description of the filehandle last
error status. If the filehandle does not exist or
has not been used for the last 24 hours, a 'No Error'
message is returned."
::= { wsCopyEntry 5 }


END
@@ -0,0 +1,131 @@
WAYSTREAM-IGMP-CACHE-MIB DEFINITIONS ::= BEGIN
--
-- This is the Waystream Management Information Base definition for IGMP
-- cache viewing on Waystream iBOS based products.
--
-- Copyright (c) 2017 Waystream AB, All rights reserved
--

IMPORTS
MODULE-IDENTITY,
OBJECT-TYPE,
IpAddress,
TimeTicks
FROM SNMPv2-SMI

InterfaceIndex
FROM IF-MIB

wsMgmt
FROM WAYSTREAM-SMI;

--
-- Waystream IGMP snoop
--
wsIgmp MODULE-IDENTITY
LAST-UPDATED "201702101100Z" -- February 10, 2017
ORGANIZATION "Waystream AB"
CONTACT-INFO
"Waystream AB
Customer Service

Mail : Farogatan 33
SE-164 51 Kista
Sweden

Tel : +46 8 5626 9450

E-mail: info@waystream.com
Web : http://www.waystream.com"

DESCRIPTION
"Waystream MIB describing IGMP caching and snooping functions of
ASRs"

REVISION "201702101100Z" -- February 10, 2017
DESCRIPTION
"Company name change:
In October 2015 PacketFront Network Products was renamed Waystream.
In this update all PacketFront were changed to Waystream and all
pf* to ws*."
REVISION "201101111754Z" -- January 11, 2011
DESCRIPTION
"Updated company name"
REVISION "200904291349Z"
DESCRIPTION
"Moved pfIgmp from pfExperimental.3 to pfMgmt.13"
REVISION "200903231125Z"
DESCRIPTION
"Updated telephone information in contact-info"
REVISION "200804301348Z"
DESCRIPTION
"Move from PACKETFRONT-MIB"
REVISION "200706131437Z"
DESCRIPTION
"Initial implementation of pfIgmp"

::= { wsMgmt 13 }


wsIgmpCacheTable OBJECT-TYPE
SYNTAX SEQUENCE OF WsIgmpCacheEntry
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION
"The table listing all snooped members of IP multicast groups
that are connected through downstream0-mapped interfaces."
::= { wsIgmp 2 }

wsIgmpCacheEntry OBJECT-TYPE
SYNTAX WsIgmpCacheEntry
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION
"An entry in the wsIgmpCacheTable."
INDEX { wsIgmpCacheAddress, wsIgmpCacheIfIndex, wsIgmpCacheReporter }
::= { wsIgmpCacheTable 1 }

WsIgmpCacheEntry ::= SEQUENCE {
wsIgmpCacheAddress IpAddress,
wsIgmpCacheIfIndex InterfaceIndex,
wsIgmpCacheReporter IpAddress,
wsIgmpCacheUpTime TimeTicks
}

wsIgmpCacheAddress OBJECT-TYPE
SYNTAX IpAddress
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION
"The IP multicast group for which this entry
contains information."
::= { wsIgmpCacheEntry 1 }

wsIgmpCacheIfIndex OBJECT-TYPE
SYNTAX InterfaceIndex
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION
"The interface for which this entry contains
information for an IP multicast group."
::= { wsIgmpCacheEntry 2 }

wsIgmpCacheReporter OBJECT-TYPE
SYNTAX IpAddress
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION
"The reporter for which this entry contains
information for an IP multicast group."
::= { wsIgmpCacheEntry 3 }

wsIgmpCacheUpTime OBJECT-TYPE
SYNTAX TimeTicks
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"Time elapsed since this entry was created."
::= { wsIgmpCacheEntry 4 }


END

0 comments on commit edcafad

Please sign in to comment.
You can’t perform that action at this time.