[jboss-cvs] JBossAS SVN: r111481 - in branches/snmp4j-int/varia/src/resources/services/snmp: deploy and 1 other directory.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Mon May 30 13:03:51 EDT 2011


Author: thauser at redhat.com
Date: 2011-05-30 13:03:51 -0400 (Mon, 30 May 2011)
New Revision: 111481

Added:
   branches/snmp4j-int/varia/src/resources/services/snmp/config/Attributes.xsd
   branches/snmp4j-int/varia/src/resources/services/snmp/config/Users.xsd
   branches/snmp4j-int/varia/src/resources/services/snmp/deploy/users.xml
Log:
more v3 support stuff

Added: branches/snmp4j-int/varia/src/resources/services/snmp/config/Attributes.xsd
===================================================================
--- branches/snmp4j-int/varia/src/resources/services/snmp/config/Attributes.xsd	                        (rev 0)
+++ branches/snmp4j-int/varia/src/resources/services/snmp/config/Attributes.xsd	2011-05-30 17:03:51 UTC (rev 111481)
@@ -0,0 +1,41 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+   Schema used by the SnmpAgent to define the attributes we want to be monitored.
+   
+   Authors
+      <a href="mailto:tom.hauser at gmail.com">Tom Hauser</a>
+-->
+<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2001/XMLSchema">
+
+<xsd:annotation>
+   <xsd:documentation xml:lang="en">
+      Schema for attributes.xml used by applications.   
+   </xsd:documentation>
+</xsd:annotation>
+
+<xsd:element name="attribute-mappings">
+ <xsd:complexType>
+  <xsd:sequence>
+   <xsd:element name="mbean" maxOccurs="unbounded">
+    <xsd:complexType>
+      <xsd:sequence>
+       <xsd:element name="attribute" maxOccurs="unbounded">
+        <xsd:complexType>
+         <xsd:all/> 
+          <xsd:attribute name="name"/>
+          <xsd:attribute name="oid" use="required" type="xsd:string"/>
+          <xsd:attribute name="mode" use="optional" type="xsd:string"/>
+        </xsd:complexType>
+      </xsd:element>
+      </xsd:sequence> 
+     <xsd:attribute name="name" type="xsd:string" use="required"/>
+     <xsd:attribute name="oid-prefix" type="xsd:string"/>
+    </xsd:complexType>
+   </xsd:element>
+  </xsd:sequence>
+ </xsd:complexType>
+</xsd:element>
+
+</xsd:schema>
+
+

Added: branches/snmp4j-int/varia/src/resources/services/snmp/config/Users.xsd
===================================================================
--- branches/snmp4j-int/varia/src/resources/services/snmp/config/Users.xsd	                        (rev 0)
+++ branches/snmp4j-int/varia/src/resources/services/snmp/config/Users.xsd	2011-05-30 17:03:51 UTC (rev 111481)
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+   XML Schema used by the SnmpAgent to configure users for SNMP v3
+   
+   Authors
+      <a href="mailto:jean.deruelle at gmail.com">Jean Deruelle</a>
+-->
+<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2001/XMLSchema">
+    
+   <xsd:annotation>
+      <xsd:documentation xml:lang="en">
+         Schema describes the users for the SNMP v3 protocol.          
+      </xsd:documentation>
+   </xsd:annotation>
+
+   <xsd:element name="user-list">
+      <xsd:complexType>
+         <xsd:sequence>
+            <xsd:element name="user" maxOccurs="unbounded">
+               <xsd:complexType>
+                  <xsd:sequence>
+                     <xsd:element name="securityName"       		type="xsd:string" />
+                     <xsd:element name="authenticationProtocol"		type="xsd:string" />
+                     <xsd:element name="authenticationPassphrase"   type="xsd:string" />
+                     <xsd:element name="privacyProtocol"		    type="xsd:string" />
+                     <xsd:element name="privacyPassphrase"   		type="xsd:string" />
+                  </xsd:sequence>
+               </xsd:complexType>
+            </xsd:element>
+         </xsd:sequence>
+      </xsd:complexType>
+   </xsd:element>
+</xsd:schema>
\ No newline at end of file

Added: branches/snmp4j-int/varia/src/resources/services/snmp/deploy/users.xml
===================================================================
--- branches/snmp4j-int/varia/src/resources/services/snmp/deploy/users.xml	                        (rev 0)
+++ branches/snmp4j-int/varia/src/resources/services/snmp/deploy/users.xml	2011-05-30 17:03:51 UTC (rev 111481)
@@ -0,0 +1,27 @@
+<?xml version="1.0"?>
+<!-- 
+  This file is used to configure the SNMP users for v3 of the protocol
+  
+  Each entry must specify:
+    - the security name of the user (typically the user name).
+    - the authentication Protocol : the authentication protcol to be associated with this user (MD5 or SHA). If not set, this user only supports unauthenticated messages.
+    - the authentication Passphrase : If present, the authentication Protocol must also be present. RFC3414 §11.2 requires passphrases to have a minimum length of 8 bytes. 
+    If the length of <code>authenticationPassphrase</code> is less than 8 bytes an IllegalArgumentException will be thrown.
+    - the privacy Protocol : the privacy protcol ID to be associated with this user (DES, 3DES, AES128, AES192, AES256). If not set, this user only supports unencrypted messages.
+    - the privacy Passphrase : If present, the privacy Protocol must also be set. RFC3414 §11.2 requires passphrases to have a minimum length of 8 bytes.
+    If the length of <code>authenticationPassphrase</code> is less than 8 bytes an IllegalArgumentException will be thrown.
+    
+  More than one user may be specified.
+-->
+<user-list>
+  <!--
+    A default user.
+  -->
+  <user>
+    <securityName>TEST</securityName>
+    <authenticationProtocol>MD5</authenticationProtocol>
+    <authenticationPassphrase>maplesyrup</authenticationPassphrase>
+    <privacyProtocol>DES</privacyProtocol>
+    <privacyPassphrase>maplesyrup</privacyPassphrase>
+  </user>
+</user-list>



More information about the jboss-cvs-commits mailing list