Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix MIBS description #1

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
68 changes: 68 additions & 0 deletions CWY-DEV-MIB.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
CWY-DEV-MIB DEFINITIONS ::= BEGIN

IMPORTS
OBJECT-GROUP, MODULE-COMPLIANCE FROM SNMPv2-CONF
enterprises, OBJECT-TYPE, MODULE-IDENTITY FROM SNMPv2-SMI;

-- ********************************************************************
-- * MODULE IDENTITY
-- ********************************************************************
deviceMib MODULE-IDENTITY
LAST-UPDATED "202009031200Z"
ORGANIZATION "CELERWAY"
CONTACT-INFO "[email protected]"
DESCRIPTION
"MIB module for Celerway device"
REVISION "202009031200Z"
DESCRIPTION
"Initial version to get board name, model and firmware version"
::= { celerway 3 }

-- The Enterprises Number
celerway OBJECT IDENTIFIER ::= { enterprises 55404 }

boardName OBJECT-TYPE
SYNTAX OCTET STRING
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"Device board name"
::= { deviceMib 1 }

modelName OBJECT-TYPE
SYNTAX OCTET STRING
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"Device model name"
::= { deviceMib 2 }

firmwareVersion OBJECT-TYPE
SYNTAX OCTET STRING
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"Device firmware version"
::= { deviceMib 3 }

-- **********************************************************************
-- * Object Group
-- **********************************************************************
deviceMibGroup OBJECT-GROUP
OBJECTS { boardName, modelName, firmwareVersion }
STATUS current
DESCRIPTION
"A collection of objects for device information."
::= { deviceMib 4 }

-- **********************************************************************
-- * Module Compliance
-- **********************************************************************
deviceMibCompliance MODULE-COMPLIANCE
STATUS current
DESCRIPTION
"The compliance statement for the device MIB."
MODULE
MANDATORY-GROUPS { deviceMibGroup }
::= { deviceMib 5 }
END
104 changes: 104 additions & 0 deletions CWY-DLB-MIB.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
CWY-DLB-MIB DEFINITIONS ::= BEGIN

IMPORTS
OBJECT-GROUP, MODULE-COMPLIANCE FROM SNMPv2-CONF
enterprises, Integer32, OBJECT-TYPE, MODULE-IDENTITY FROM SNMPv2-SMI;

-- ********************************************************************
-- * MODULE IDENTITY
-- ********************************************************************
loadBalancerMib MODULE-IDENTITY
LAST-UPDATED "202009031200Z"
ORGANIZATION "CELERWAY"
CONTACT-INFO "[email protected]"
DESCRIPTION
"Add load balancer values"
REVISION "202009031200Z"
DESCRIPTION
"MIB module for Celerway load balancer subsystem"
::= { celerway 2 }

-- The Enterprises Number
celerway OBJECT IDENTIFIER ::= { enterprises 55404 }

-- **********************************************************************
-- * Table
-- **********************************************************************
loadBalancerInfoTable OBJECT-TYPE
SYNTAX SEQUENCE OF LoadBalancerInfoEntry
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION
"Modems info table"
::= { loadBalancerMib 1 }

loadBalancerInfoEntry OBJECT-TYPE
SYNTAX LoadBalancerInfoEntry
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION
"An entry in the loadBalancerInfoTable"
INDEX { loadBalancerInfoId }
::= { loadBalancerInfoTable 1 }

LoadBalancerInfoEntry ::=
SEQUENCE {
loadBalancerInfoId Integer32,
interfaceName OCTET STRING,
connectivityPassed OCTET STRING,
linkQuality OCTET STRING
}

loadBalancerInfoId OBJECT-TYPE
SYNTAX Integer32 (1..65535)
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION
"Load balancer info ID"
::= { loadBalancerInfoEntry 1 }

interfaceName OBJECT-TYPE
SYNTAX OCTET STRING
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"Name of the interface of the load balancer link"
::= { loadBalancerInfoEntry 2 }

connectivityPassed OBJECT-TYPE
SYNTAX OCTET STRING
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"Status of the connectivity check for the load balancer link"
::= { loadBalancerInfoEntry 3 }

linkQuality OBJECT-TYPE
SYNTAX OCTET STRING
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"Estimated link quality"
::= { loadBalancerInfoEntry 4 }

-- **********************************************************************
-- * Object Group
-- **********************************************************************
loadBalancerGroup OBJECT-GROUP
OBJECTS { interfaceName, connectivityPassed, linkQuality }
STATUS current
DESCRIPTION
"A collection of objects for load balancer"
::= { loadBalancerMib 2 }

-- **********************************************************************
-- * Module Compliance
-- **********************************************************************
loadBalancerCompliance MODULE-COMPLIANCE
STATUS current
DESCRIPTION
"Compliance statement for load balancer MIB"
MODULE
MANDATORY-GROUPS { loadBalancerGroup }
::= { loadBalancerMib 3 }
END
147 changes: 147 additions & 0 deletions CWY-GPS-MIB.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,147 @@
CWY-GPS-MIB DEFINITIONS ::= BEGIN

IMPORTS
OBJECT-GROUP FROM SNMPv2-CONF
enterprises, Integer32, OBJECT-TYPE, MODULE-IDENTITY FROM SNMPv2-SMI;

-- ********************************************************************
-- * MODULE IDENTITY
-- ********************************************************************
gpsMib MODULE-IDENTITY
LAST-UPDATED "202301251200Z"
ORGANIZATION "CELERWAY"
CONTACT-INFO "[email protected]"
DESCRIPTION
"MIB module for GPS info"
REVISION "202301251200Z"
DESCRIPTION
"First version"
::= { celerway 4 }

-- The Enterprises Number
celerway OBJECT IDENTIFIER ::= { enterprises 55404 }

-- **********************************************************************
-- * Table
-- **********************************************************************
gpsInfoTable OBJECT-TYPE
SYNTAX SEQUENCE OF GpsInfoEntry
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION
"Modems info table"
::= { gpsMib 1 }

gpsInfoEntry OBJECT-TYPE
SYNTAX GpsInfoEntry
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION
"An entry in the gpsInfoTable"
INDEX { gpsInfoId }
::= { gpsInfoTable 1 }

GpsInfoEntry ::=
SEQUENCE {
gpsInfoId Integer32,
gpsSignal Integer32,
gpsAge Integer32,
gpsLatitude OCTET STRING,
gpsLongitude OCTET STRING,
gpsElevation OCTET STRING,
gpsSpeed OCTET STRING,
gpsSatellites Integer32
}

gpsInfoId OBJECT-TYPE
SYNTAX Integer32 (1..512)
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION
"GPS info ID"
::= { gpsInfoEntry 1 }


gpsSignal OBJECT-TYPE
SYNTAX Integer32
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"GPS signal availability flag"
::= { gpsInfoEntry 2 }

gpsAge OBJECT-TYPE
SYNTAX Integer32
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"Age of the GPS info in seconds"
::= { gpsInfoEntry 3 }

gpsLatitude OBJECT-TYPE
SYNTAX OCTET STRING
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"GPS latitude"
::= { gpsInfoEntry 4 }

gpsLongitude OBJECT-TYPE
SYNTAX OCTET STRING
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"GPS longitude"
::= { gpsInfoEntry 5 }

gpsElevation OBJECT-TYPE
SYNTAX OCTET STRING
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"GPS elevation"
::= { gpsInfoEntry 6 }

gpsSpeed OBJECT-TYPE
SYNTAX OCTET STRING
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"GPS Speed"
::= { gpsInfoEntry 7 }

gpsSatellites OBJECT-TYPE
SYNTAX Integer32
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"Number of GPS sattelites"
::= { gpsInfoEntry 8 }

-- **********************************************************************
-- * Object Group
-- **********************************************************************
gpsInfoGroup OBJECT-GROUP
OBJECTS {
gpsSignal,
gpsAge,
gpsLatitude,
gpsLongitude,
gpsElevation,
gpsSpeed,
gpsSatellites
}
STATUS current
DESCRIPTION
"A collection of objects for GPS information."
::= { gpsMib 2 }


gpsMibCompliance MODULE-COMPLIANCE
STATUS current
DESCRIPTION
"Compliance statement for GPS MIB."
MODULE
MANDATORY-GROUPS { gpsInfoGroup }
::= { gpsMib 3 }
END
Loading