Imported Upstream version 1.5.1

This commit is contained in:
Mario Fetka
2020-09-22 02:25:22 +02:00
commit 434d6067d9
2103 changed files with 928962 additions and 0 deletions

8
snmp/README.txt Normal file
View File

@@ -0,0 +1,8 @@
xtreemfs-mib is a MIB(Management Information Base) for the
SNMPv2c protocol.
If you make changes validate them with smilint command.
Use generatecode.sh to generate Java code

16
snmp/generatedcode.sh Normal file
View File

@@ -0,0 +1,16 @@
#!/bin/bash
JAVA=java
if [ ! -z "${JAVA_HOME}" ]; then
JAVA=$JAVA_HOME/bin/java
fi
CLASSPATH="../java/lib/jdmkrt.jar":"../java/lib/jdmktk.jar":"$CLASSPATH"
export CLASSPATH
$JAVA com.sun.jdmk.tools.MibGen -mc -d ../java/servers/src/org/xtreemfs/common/monitoring/generatedcode -tp org.xtreemfs.common.monitoring.generatedcode xtreemfs-mib.txt mib_core.txt
exit 0;

38
snmp/jdmk.acl Normal file
View File

@@ -0,0 +1,38 @@
# @(#)file jdmk.acl
# @(#)author Sun Microsystems, Inc.
# @(#)version 1.11
# @(#)lastedit 04/04/07
#
# Copyright 2004 Sun Microsystems, Inc. All rights reserved.
# SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
# access: can take only "read-only" or "read-write" values
#
# managers can be :
# - hostname: hubble
# - ip v4 and v6 addresses: 123.456.789.12 , fe80::a00:20ff:fe9b:ea82
# - subnet mask: 123!255!255!255 (its an IPO address where "." are replaced
# by "!"). This way of expressing the subnet is deprecated, use the prefix
# notation.
# - ip v4 and v6 netmask prefix notation :
# 123.456.789.12/24, fe80::a00:20ff:fe9b:ea82/64
acl = {
{
communities = public
access = read-only
managers = localhost
}
{
communities = private
access = read-write
managers = localhost
}
}
trap = {
{
trap-community = public
hosts = localhost
}
}

375
snmp/mib_core.txt Normal file
View File

@@ -0,0 +1,375 @@
--
-- @(#)file mib_core.txt
-- @(#)author Sun Microsystems, Inc.
-- @(#)version 1.8
-- @(#)date 07/04/04
--
-- The file contains stubs for common definitions scattered around many
-- different RFCs. It is a convenience that will allow mibgen to compile
-- a MIB without requiring that you pass all standard SNMP modules on the
-- command line.
--
-- See the listed RFCs themselves for the original definitions.
--
CORE-MIB DEFINITIONS ::= BEGIN
IMPORTS ;
--------------------------------------
-- Commonly used OBJECT IDENTIFIERS --
--------------------------------------
-----------------------
-- As defined in SMI --
-----------------------
-- the path to the root
internet OBJECT IDENTIFIER ::= { iso(1) org(3) dod(6) 1 }
directory OBJECT IDENTIFIER ::= { internet 1 }
mgmt OBJECT IDENTIFIER ::= { internet 2 }
experimental OBJECT IDENTIFIER ::= { internet 3 }
private OBJECT IDENTIFIER ::= { internet 4 }
enterprises OBJECT IDENTIFIER ::= { private 1 }
security OBJECT IDENTIFIER ::= { internet 5 }
snmpV2 OBJECT IDENTIFIER ::= { internet 6 }
-- transport domains
snmpDomains OBJECT IDENTIFIER ::= { snmpV2 1 }
-- transport proxies
snmpProxys OBJECT IDENTIFIER ::= { snmpV2 2 }
-- module identities
snmpModules OBJECT IDENTIFIER ::= { snmpV2 3 }
------------------------------
-- MIB-II OBJECT IDENTIFIER --
------------------------------
mib-2 OBJECT IDENTIFIER ::= { mgmt 1 }
-----------------
-- entreprises --
-----------------
sun OBJECT IDENTIFIER ::= { enterprises 42 }
messaging OBJECT IDENTIFIER ::= { sun products(2) 8 }
agents OBJECT IDENTIFIER ::= { messaging 1 }
private-mibs OBJECT IDENTIFIER ::= { messaging 2 }
snmpx400d OBJECT IDENTIFIER ::= { agents 1 }
snmpxapiad OBJECT IDENTIFIER ::= { agents 2 }
snmpx500d OBJECT IDENTIFIER ::= { agents 3 }
snmpimd OBJECT IDENTIFIER ::= { agents 4 }
snmpslapd OBJECT IDENTIFIER ::= { agents 5 }
--------------------------------------------------------------
-- Stubs for commonly used TEXTUAL CONVENTIONS and SYNTAXES --
--------------------------------------------------------------
------------------------------------------------------------------------
-- Stub for EntryStatus syntax from RFC 1271 --
-- See http://www.ietf.org/rfc/rfc1271.txt for the actual definition. --
------------------------------------------------------------------------
EntryStatus ::= INTEGER
{ valid(1),
createRequest(2),
underCreation(3),
invalid(4)
}
------------------------------------------------------------------------
-- Stubs for standard SNMP Syntaxes as defined in RFC 1065/1442 --
-- See http://www.ietf.org/rfc/rfc1065.txt for the actual definition. --
-- See http://www.ietf.org/rfc/rfc1442.txt for the actual definition. --
------------------------------------------------------------------------
Gauge32 ::= Gauge
Counter32 ::= Counter
Integer32 ::= INTEGER
-- application-wide types
NetworkAddress ::=
CHOICE {
internet
IpAddress
}
IpAddress ::=
[APPLICATION 0]
IMPLICIT OCTET STRING (SIZE (4))
Counter ::=
[APPLICATION 1]
IMPLICIT INTEGER (0..4294967295)
Counter64 ::=
[APPLICATION 1]
IMPLICIT INTEGER (0..18446744073709551615)
Gauge ::=
[APPLICATION 2]
IMPLICIT INTEGER (0..4294967295)
Unsigned32 ::=
[APPLICATION 2]
IMPLICIT INTEGER (0..4294967295)
TimeTicks ::=
[APPLICATION 3]
IMPLICIT INTEGER (0..4294967295)
Opaque ::=
[APPLICATION 4]
IMPLICIT OCTET STRING
-----------------------------------------------------------------------
-- Stubs for standard SNMPv2 Textual Conventions defined in RFC 1903 --
-- See http://www.ietf.org/rfc/rfc1903.txt for the actual definition. --
------------------------------------------------------------------------
DisplayString ::= TEXTUAL-CONVENTION
DISPLAY-HINT "255a"
STATUS current
DESCRIPTION
"This is a stub. See http://www.ietf.org/rfc/rfc1903.txt for
the actual definition.
"
SYNTAX OCTET STRING (SIZE (0..255))
PhysAddress ::= TEXTUAL-CONVENTION
DISPLAY-HINT "1x:"
STATUS current
DESCRIPTION
"This is a stub. See http://www.ietf.org/rfc/rfc1903.txt for
the actual definition.
"
SYNTAX OCTET STRING
MacAddress ::= TEXTUAL-CONVENTION
DISPLAY-HINT "1x:"
STATUS current
DESCRIPTION
"This is a stub. See http://www.ietf.org/rfc/rfc1903.txt for
the actual definition.
"
SYNTAX OCTET STRING (SIZE (6))
TruthValue ::= TEXTUAL-CONVENTION
STATUS current
DESCRIPTION
"This is a stub. See http://www.ietf.org/rfc/rfc1903.txt for
the actual definition.
"
SYNTAX INTEGER { true(1), false(2) }
TestAndIncr ::= TEXTUAL-CONVENTION
STATUS current
DESCRIPTION
"This is a stub. See http://www.ietf.org/rfc/rfc1903.txt for
the actual definition.
"
SYNTAX INTEGER (0..2147483647)
AutonomousType ::= TEXTUAL-CONVENTION
STATUS current
DESCRIPTION
"This is a stub. See http://www.ietf.org/rfc/rfc1903.txt for
the actual definition.
"
SYNTAX OBJECT IDENTIFIER
InstancePointer ::= TEXTUAL-CONVENTION
STATUS obsolete
DESCRIPTION
"This is a stub. See http://www.ietf.org/rfc/rfc1903.txt for
the actual definition.
"
SYNTAX OBJECT IDENTIFIER
VariablePointer ::= TEXTUAL-CONVENTION
STATUS current
DESCRIPTION
"This is a stub. See http://www.ietf.org/rfc/rfc1903.txt for
the actual definition.
"
SYNTAX OBJECT IDENTIFIER
RowPointer ::= TEXTUAL-CONVENTION
STATUS current
DESCRIPTION
"This is a stub. See http://www.ietf.org/rfc/rfc1903.txt for
the actual definition.
"
SYNTAX OBJECT IDENTIFIER
RowStatus ::= TEXTUAL-CONVENTION
STATUS current
DESCRIPTION
"This is a stub. See http://www.ietf.org/rfc/rfc1903.txt for
the actual definition.
"
SYNTAX INTEGER {
active(1),
notInService(2),
notReady(3),
createAndGo(4),
createAndWait(5),
destroy(6)
}
TimeStamp ::= TEXTUAL-CONVENTION
STATUS current
DESCRIPTION
"This is a stub. See http://www.ietf.org/rfc/rfc1903.txt for
the actual definition.
"
SYNTAX TimeTicks
TimeInterval ::= TEXTUAL-CONVENTION
STATUS current
DESCRIPTION
"This is a stub. See http://www.ietf.org/rfc/rfc1903.txt for
the actual definition.
"
SYNTAX INTEGER (0..2147483647)
DateAndTime ::= TEXTUAL-CONVENTION
DISPLAY-HINT "2d-1d-1d,1d:1d:1d.1d,1a1d:1d"
STATUS current
DESCRIPTION
"This is a stub. See http://www.ietf.org/rfc/rfc1903.txt for
the actual definition.
"
SYNTAX OCTET STRING (SIZE (8 | 11))
StorageType ::= TEXTUAL-CONVENTION
STATUS current
DESCRIPTION
"This is a stub. See http://www.ietf.org/rfc/rfc1903.txt for
the actual definition.
"
SYNTAX INTEGER {
other(1), -- eh?
volatile(2), -- e.g., in RAM
nonVolatile(3), -- e.g., in NVRAM
permanent(4), -- e.g., partially in ROM
readOnly(5) -- e.g., completely in ROM
}
TDomain ::= TEXTUAL-CONVENTION
STATUS current
DESCRIPTION
"This is a stub. See http://www.ietf.org/rfc/rfc1903.txt for
the actual definition.
"
SYNTAX OBJECT IDENTIFIER
TAddress ::= TEXTUAL-CONVENTION
STATUS current
DESCRIPTION
"This is a stub. See http://www.ietf.org/rfc/rfc1903.txt for
the actual definition.
"
SYNTAX OCTET STRING (SIZE (1..255))
------------------------------------------------------------------------
-- Stubs for standard SNMPv3 Textual Conventions defined in RFC 2571 --
-- See http://www.ietf.org/rfc/rfc2571.txt for the actual definition. --
------------------------------------------------------------------------
SnmpEngineID ::= TEXTUAL-CONVENTION
STATUS current
DESCRIPTION
"This is a stub. See http://www.ietf.org/rfc/rfc2571.txt for
the actual definition.
"
SYNTAX OCTET STRING (SIZE(5..32))
SnmpSecurityModel ::= TEXTUAL-CONVENTION
STATUS current
DESCRIPTION
"This is a stub. See http://www.ietf.org/rfc/rfc2571.txt for
the actual definition.
"
SYNTAX INTEGER(0 .. 2147483647)
SnmpMessageProcessingModel ::= TEXTUAL-CONVENTION
STATUS current
DESCRIPTION
"This is a stub. See http://www.ietf.org/rfc/rfc2571.txt for
the actual definition.
"
SYNTAX INTEGER(0 .. 2147483647)
SnmpSecurityLevel ::= TEXTUAL-CONVENTION
STATUS current
DESCRIPTION
"This is a stub. See http://www.ietf.org/rfc/rfc2571.txt for
the actual definition.
"
SYNTAX INTEGER { noAuthNoPriv(1),
authNoPriv(2),
authPriv(3)
}
SnmpAdminString ::= TEXTUAL-CONVENTION
DISPLAY-HINT "255a"
STATUS current
DESCRIPTION
"This is a stub. See http://www.ietf.org/rfc/rfc2571.txt for
the actual definition.
"
SYNTAX DisplayString (SIZE (0..255))
------------------------------------------------------------------------
-- Stubs for standard SNMPv3 Textual Conventions defined in RFC 2574 --
-- See http://www.ietf.org/rfc/rfc2574.txt for the actual definition. --
------------------------------------------------------------------------
KeyChange ::= TEXTUAL-CONVENTION
STATUS current
DESCRIPTION
"This is a stub. See http://www.ietf.org/rfc/rfc2574.txt for
the actual definition.
"
SYNTAX OCTET STRING
END

315
snmp/xtreemfs-mib.txt Normal file
View File

@@ -0,0 +1,315 @@
XTREEMFS-MIB DEFINITIONS ::= BEGIN
IMPORTS
OBJECT-TYPE, MODULE-IDENTITY, NOTIFICATION-TYPE, Integer32, Counter64 FROM SNMPv2-SMI
private FROM RFC1155-SMI;
xtreemfs MODULE-IDENTITY
LAST-UPDATED "201107251000Z"
ORGANIZATION "XtreemFS project"
CONTACT-INFO
"
Name: Michael Berlin
Address: Konrad-Zuse-Zentrum fuer Informationstechnik Berlin
Takustrasse 7
D-14195 Berlin
Email: berlin@zib.de
"
DESCRIPTION
"The MIB module for information regarding to the monitoring
of the XtreemFS Filesystem. See: http://xtreemfs.com for more
information."
REVISION
"201107251000Z"
DESCRIPTION
"This revision of this MIB module is intend to be a first
draft."
::= { enterprises 38350 }
-- groups under xtreemfs
general OBJECT IDENTIFIER ::= { xtreemfs 1 }
dir OBJECT IDENTIFIER ::= { xtreemfs 2 }
mrc OBJECT IDENTIFIER ::= { xtreemfs 3 }
osd OBJECT IDENTIFIER ::= { xtreemfs 4 }
-- own declartions
-- This datatype is used to model textual information
DisplayString ::=
OCTET STRING
-- This datatype is used to force the code generating tool
-- to create long values instead of integer within java
Long ::=
--INTEGER (0..922337203685477580)
Counter64
-- a truth value
Boolean ::= INTEGER { true(1), false(2) }
-- GROUP general: It represents information that
-- all services (DIR, MRC, OSD) have in common.
jvmUsedMemory OBJECT-TYPE
SYNTAX Long
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The amount of memory that is used by the JVM this service is
running into."
::= { general 1 }
jvmMaxMemory OBJECT-TYPE
SYNTAX Long
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The maximum amount of memory the JVM can use."
::= { general 2 }
jvmFreeMemory OBJECT-TYPE
SYNTAX Long
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The amount of free memory the JVM can still use."
::= { general 3 }
rpcInterface OBJECT-TYPE
SYNTAX Integer32
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The interface number associated with Google Protocolbuffers RPC
Infrastrukture."
::= { general 4 }
databaseVersion OBJECT-TYPE
SYNTAX DisplayString
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The version of the BabuDB Database which the service is using."
::= { general 5 }
tcpPort OBJECT-TYPE
SYNTAX Integer32
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The TCP port on which the service is listening for incomming client
connections."
::= { general 6 }
debugLevel OBJECT-TYPE
SYNTAX INTEGER (0..9)
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The current Debug Level the service has."
::= { general 7 }
numClientConnections OBJECT-TYPE
SYNTAX Integer32
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"Number of active client connections. This is a indication for the
load on the service."
::= { general 8 }
numPendingRequests OBJECT-TYPE
SYNTAX Long
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The number of currently pending requests."
::= { general 9 }
currentTime OBJECT-TYPE
SYNTAX Long
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The global time in this XtreemFS installation."
::= { general 10 }
isRunning OBJECT-TYPE
SYNTAX DisplayString
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"Returns whether or not the service is running."
::= { general 11 }
serviceType OBJECT-TYPE
SYNTAX DisplayString
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"Returns which kind of service this is
(DIR, MRC, OSD)."
::= { general 12 }
serviceUUID OBJECT-TYPE
SYNTAX DisplayString
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"Returns the UUID of the service."
::= { general 13 }
-- GROUP dir: It represents information that
-- related to the DIR.
addressMappingCount OBJECT-TYPE
SYNTAX INTEGER
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The number of address mappings currently registered at the
DIR"
::= { dir 1 }
serviceCount OBJECT-TYPE
SYNTAX INTEGER
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The number of services currently registered at the DIR"
::= { dir 2 }
volumeCount OBJECT-TYPE
SYNTAX INTEGER
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The number of volumes currently registered
at this MRC."
::= { mrc 1 }
-------------------
--BEGIN OSD Group
------------------
numObjsRX OBJECT-TYPE
SYNTAX Long
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The number of objects this
OSD has received."
::= { osd 1 }
numReplObjsRX OBJECT-TYPE
SYNTAX Long
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The number of replicated objects
this OSD has received."
::= { osd 2 }
numObjsTX OBJECT-TYPE
SYNTAX Long
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The number of objects
this OSD has transmitted."
::= { osd 3 }
numReplBytesRX OBJECT-TYPE
SYNTAX Long
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The number of bytes belonging
to file replication this OSD has received."
::= { osd 4 }
numBytesRX OBJECT-TYPE
SYNTAX Long
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The number of bytes this
OSD has received."
::= { osd 5 }
numBytesTX OBJECT-TYPE
SYNTAX Long
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The number of bytes this
OSD has transmitted."
::= { osd 6 }
preprocStageQueueLength OBJECT-TYPE
SYNTAX INTEGER
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The current length of the
preprocessing stage of this OSD."
::= { osd 7 }
storageStageQueueLength OBJECT-TYPE
SYNTAX INTEGER
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The current length of the
storage stage of this OSD."
::= { osd 8 }
deletionStageQueueLength OBJECT-TYPE
SYNTAX INTEGER
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The current length of the
deletion stage of this OSD."
::= { osd 9 }
numOpenFiles OBJECT-TYPE
SYNTAX INTEGER
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The number of files this OSD
currently has opened."
::= { osd 10 }
numDeletedFiles OBJECT-TYPE
SYNTAX Long
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The number of deleted
files on this OSD."
::= { osd 11 }
freeSpace OBJECT-TYPE
SYNTAX Long
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The free disc space
on the partition this OSD
stores the object files."
::= { osd 12 }
-- traps (don't work yet)
-- generalNotifis OBJECT IDENTIFIER ::= { general 10 }
--
-- jvmOutOfMemoryNotif NOTIFICATION-TYPE
-- STATUS current
-- DESCRIPTION
-- "Just a test notification"
-- OBJECTS { sysLocation }
-- ::= { generalNotifis 1 }
--
END