Annotation of src/share/snmp/OPENBSD-MEM-MIB.txt, Revision 1.2
1.2 ! sthen 1: -- $OpenBSD: OPENBSD-MEM-MIB.txt,v 1.1 2008/12/23 18:32:10 reyk Exp $
1.1 reyk 2: --
3: -- Copyright (c) 2008 Reyk Floeter <reyk@openbsd.org>
4: --
5: -- Permission to use, copy, modify, and distribute this document for any
6: -- purpose with or without fee is hereby granted, provided that the above
7: -- copyright notice and this permission notice appear in all copies.
8: --
9: -- THE DOCUMENT IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10: -- WITH REGARD TO THIS DOCUMENT INCLUDING ALL IMPLIED WARRANTIES OF
11: -- MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12: -- ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13: -- WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14: -- ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15: -- OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS DOCUMENT.
16:
17: OPENBSD-MEM-MIB DEFINITIONS ::= BEGIN
18:
19: IMPORTS
1.2 ! sthen 20: MODULE-IDENTITY, NOTIFICATION-TYPE, OBJECT-TYPE, Counter64, Integer32
1.1 reyk 21: FROM SNMPv2-SMI
22: DisplayString
23: FROM SNMPv2-TC
24: ifIndex, ifNumber
25: FROM IF-MIB
26: openBSD
27: FROM OPENBSD-BASE-MIB
28: MODULE-COMPLIANCE, OBJECT-GROUP
29: FROM SNMPv2-CONF;
30:
31: memMIBObjects MODULE-IDENTITY
1.2 ! sthen 32: LAST-UPDATED "201202090000Z"
1.1 reyk 33: ORGANIZATION "OpenBSD"
34: CONTACT-INFO
35: "Editor: Reyk Floeter
36: EMail: reyk@openbsd.org
37: WWW: http://www.openbsd.org/"
38: DESCRIPTION
39: "The MIB module exporting OpenBSD memory statistics."
1.2 ! sthen 40: REVISION "201202090000Z"
! 41: DESCRIPTION
! 42: "Correct problems reported by smilint."
! 43: REVISION "200812230000Z"
! 44: DESCRIPTION
! 45: "Add the OPENBSD-MEM-MIB to snmpd."
1.1 reyk 46: ::= { openBSD 5 }
47:
48: --
49: -- Core MIB elements
50: --
51:
52: -- memMIBVersion OBJECT IDENTIFIER ::= { memMIBObjects 1 }
1.2 ! sthen 53: -- memIfTable OBJECT IDENTIFIER ::= { memMIBObjects 2 }
1.1 reyk 54:
55: --
56: -- MIB details
57: --
58:
59: memMIBVersion OBJECT-TYPE
60: SYNTAX Integer32
61: MAX-ACCESS read-only
62: STATUS current
63: DESCRIPTION
64: "The current version of this MIB supported by the agent.
65: The memory MIB might be updated frequently to export
66: statistics specific to the latest version of OpenBSD.
67: The client should check this version."
68: ::= { memMIBObjects 1 }
69:
70: memIfTable OBJECT-TYPE
1.2 ! sthen 71: SYNTAX SEQUENCE OF MemIfEntry
! 72: MAX-ACCESS not-accessible
1.1 reyk 73: STATUS current
74: DESCRIPTION
75: "A list of interface entries. The number of entries is given
76: by the value of ifNumber."
77: ::= { memMIBObjects 2 }
78:
79: memIfEntry OBJECT-TYPE
1.2 ! sthen 80: SYNTAX MemIfEntry
1.1 reyk 81: MAX-ACCESS not-accessible
82: STATUS current
83: DESCRIPTION
84: "An entry containing memory and systems statistics applicable
85: to a particular interface."
86: INDEX { ifIndex }
87: ::= { memIfTable 1 }
88:
1.2 ! sthen 89: MemIfEntry ::= SEQUENCE {
1.1 reyk 90: memIfName DisplayString,
91: memIfLiveLocks Counter64
92: }
93:
94: memIfName OBJECT-TYPE
95: SYNTAX DisplayString
96: MAX-ACCESS read-only
97: STATUS current
98: DESCRIPTION
99: "The textual name of the interface as assigned by the operating
100: system. For example, `lo0' for the first loopback device or
101: `em1' for the second Ethernet device using the `em' driver."
102: ::= { memIfEntry 1 }
103:
104: memIfLiveLocks OBJECT-TYPE
105: SYNTAX Counter64
106: MAX-ACCESS read-only
107: STATUS current
108: DESCRIPTION
109: "The number of times the growth of the interface receive ring
110: was limited as a response to high system load."
111: ::= { memIfEntry 2 }
112:
113: END