SNMP: Difference between revisions

From Noisebridge
Jump to navigation Jump to search
No edit summary
No edit summary
 
(2 intermediate revisions by 2 users not shown)
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 an IANA-assigned [http://www.iana.org/assignments/enterprise-numbers 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.


<pre><tt>
Example usage:
<pre>
snmpget -m +NOISEBRIDGE-MIB -M +. -c REDACTED -v2c 172.30.0.1 noisebridge-door-status
NOISEBRIDGE-MIB::noisebridge-door-status.0 = INTEGER: 0
</pre>
 
<pre>
--
--
-- NOISEBRIDGE-MIB module definition
-- NOISEBRIDGE-MIB module definition
Line 22: Line 28:
ACCESS read-only
ACCESS read-only
STATUS mandatory
STATUS mandatory
DESCRIPTION "The status of the door at noisebridge: either open(0) or closed(1)."
DESCRIPTION "The status of the door at noisebridge: either open(1) or closed(0)."
REFERENCE "The door probe on voltron"
REFERENCE "The door probe on voltron"
::= { noisebridge-door 1 }
::= { noisebridge-door 1 }
Line 38: Line 44:


END
END
</tt></pre>
</pre>

Latest revision as of 13:04, 28 July 2009

Noisebridge has an IANA-assigned 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.

Example usage:

snmpget -m +NOISEBRIDGE-MIB -M +. -c REDACTED -v2c 172.30.0.1 noisebridge-door-status
NOISEBRIDGE-MIB::noisebridge-door-status.0 = INTEGER: 0
--
-- 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(1) or closed(0)."
	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