summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorStuart Henderson <sthen@cvs.openbsd.org>2018-05-30 18:17:21 +0000
committerStuart Henderson <sthen@cvs.openbsd.org>2018-05-30 18:17:21 +0000
commit7e97791df3343f7e795d7f864564659d43f74d65 (patch)
tree8f919e62d8d855c4cbf3819fd1f020ff661d053b /share
parentf6a03861dd0e165a998e18dbb3f83064e61f4cd6 (diff)
Use new SIOCGIFGLIST to provide carpGroupTable, showing "demote" values
for interface groups on the system. From Jan Klemkow.
Diffstat (limited to 'share')
-rw-r--r--share/snmp/OPENBSD-CARP-MIB.txt58
1 files changed, 56 insertions, 2 deletions
diff --git a/share/snmp/OPENBSD-CARP-MIB.txt b/share/snmp/OPENBSD-CARP-MIB.txt
index 4b6a3e33733..b97c2e820e1 100644
--- a/share/snmp/OPENBSD-CARP-MIB.txt
+++ b/share/snmp/OPENBSD-CARP-MIB.txt
@@ -1,4 +1,4 @@
--- $OpenBSD: OPENBSD-CARP-MIB.txt,v 1.3 2012/09/28 09:21:48 jj Exp $
+-- $OpenBSD: OPENBSD-CARP-MIB.txt,v 1.4 2018/05/30 18:17:20 sthen Exp $
--
-- Copyright (c) 2006-2011 Joel Knight <knight.joel@gmail.com>
--
@@ -32,7 +32,7 @@ IMPORTS
FROM SNMPv2-CONF;
carpMIBObjects MODULE-IDENTITY
- LAST-UPDATED "201201310000Z"
+ LAST-UPDATED "201805140000Z"
ORGANIZATION "OpenBSD"
CONTACT-INFO "
Author: Joel Knight
@@ -41,6 +41,8 @@ carpMIBObjects MODULE-IDENTITY
"
DESCRIPTION "The MIB module for gathering information about
Common Address Redundancy Protocol (CARP) interfaces."
+ REVISION "201805140000Z"
+ DESCRIPTION "Add the carpGroupTable to OPENBSD-CARP-MIB."
REVISION "201201310000Z"
DESCRIPTION "Add the OPENBSD-CARP-MIB to snmpd."
::= { openBSD 6 }
@@ -176,6 +178,58 @@ carpIfState OBJECT-TYPE
::= { carpIfEntry 7 }
+-- carpGroup
+
+carpGroupTable OBJECT-TYPE
+ SYNTAX SEQUENCE OF CarpGroupEntry
+ MAX-ACCESS not-accessible
+ STATUS current
+ DESCRIPTION
+ "A list of interface groups."
+ ::= { carpMIBObjects 4 }
+
+carpGroupEntry OBJECT-TYPE
+ SYNTAX CarpGroupEntry
+ MAX-ACCESS not-accessible
+ STATUS current
+ DESCRIPTION
+ "An entry containing management information applicable to a
+ particular interface group."
+ INDEX { carpGroupIndex }
+ ::= { carpGroupTable 1 }
+
+CarpGroupEntry ::=
+ SEQUENCE {
+ carpGroupIndex Integer32,
+ carpGroupName OCTET STRING,
+ carpGroupDemote Integer32
+ }
+
+carpGroupIndex OBJECT-TYPE
+ SYNTAX Integer32 (1..2147483647)
+ MAX-ACCESS not-accessible
+ STATUS current
+ DESCRIPTION
+ "The demote value of the interface group."
+ ::= { carpGroupEntry 1 }
+
+carpGroupName OBJECT-TYPE
+ SYNTAX OCTET STRING
+ MAX-ACCESS read-only
+ STATUS current
+ DESCRIPTION
+ "The name of the interface group."
+ ::= { carpGroupEntry 2 }
+
+carpGroupDemote OBJECT-TYPE
+ SYNTAX Integer32 (1..2147483647)
+ MAX-ACCESS read-only
+ STATUS current
+ DESCRIPTION
+ "The demote value of the interface group."
+ ::= { carpGroupEntry 3 }
+
+
-- carpStats
carpIpPktsRecv OBJECT-TYPE