SNMP: Difference between revisions

From Noisebridge
Jump to navigation Jump to search
(New page: Noisebridge has a private enterprise number, 33792. This is used as the root of a private enterprises MIB which is available for use by any project which would like to use SNMP or a simil...)
 
No edit summary
Line 1: Line 1:
Noisebridge has a private enterprise number, 33792.  This is used as the root of a private enterprises MIB which is available for use by any project which would like to use SNMP or a similar protocol which requires a PEN.  The authoritative copy of the MIB rooted at this PEN is this wiki page.
Noisebridge has a private enterprise number, 33792.  This is used as the root of a private enterprises MIB which is available for use by any project which would like to use SNMP or a similar protocol which requires a PEN.  The authoritative copy of the MIB rooted at this PEN is this wiki page.


{code}
<pre><tt>
--
--
-- NOISEBRIDGE-MIB module definition
-- NOISEBRIDGE-MIB module definition
Line 10: Line 10:


NOISEBRIDGE-MIB DEFINITIONS ::= BEGIN
NOISEBRIDGE-MIB DEFINITIONS ::= BEGIN
IMPORTS
IMPORTS  


enterprises FROM RFC1155-SMI;
enterprises FROM RFC1155-SMI;
Line 38: Line 38:


END
END
{code}
</tt></pre>

Revision as of 11:47, 28 July 2009

Noisebridge has a private enterprise number, 33792. This is used as the root of a private enterprises MIB which is available for use by any project which would like to use SNMP or a similar protocol which requires a PEN. The authoritative copy of the MIB rooted at this PEN is this wiki page.

<tt>
--
-- NOISEBRIDGE-MIB module definition
-- See https://www.noisebridge.net/wiki/SNMP for details.
-- Send bug reports to the Noisebridge Discuss List <noisebridge-discuss@lists.noisebridge.net>
-- Copyright (C) 2009, Noisebridge
--

NOISEBRIDGE-MIB DEFINITIONS ::= BEGIN
IMPORTS 

	enterprises FROM RFC1155-SMI;

noisebridge OBJECT IDENTIFIER ::= { enterprises 33792 }

noisebridge-door OBJECT IDENTIFIER ::= { noisebridge 1 }

noisebridge-door-status OBJECT-TYPE
	SYNTAX INTEGER
	ACCESS read-only
	STATUS mandatory
	DESCRIPTION "The status of the door at noisebridge: either open(0) or closed(1)."
	REFERENCE "The door probe on voltron"
	::= { noisebridge-door 1 }

noisebridge-traps OBJECT IDENTIFIER ::= { noisebridge 100 }

noisebridge-door-trap TRAP-TYPE
	ENTERPRISE noisebridge-traps
	VARIABLES {
		noisebridge-door-status
	}
	DESCRIPTION "This trap means the status of the door at noisebridge has changed."
	REFERENCE "CoS via the door probe on voltron"
	::= 1

END
</tt>