[Ultrapossum-cvs 247] plugin/snmp/snmppass.d 1.1, 1.2, operations 1.2, 1.3, snmpgen

Back to archive index

Masato Taruishi taru****@sourc*****
2004年 6月 25日 (金) 02:13:03 JST


===================================================================
RCS file: plugin/snmp/snmppass.d/operations,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- plugin/snmp/snmppass.d/operations	2004/06/24 13:03:22	1.1
+++ plugin/snmp/snmppass.d/operations	2004/06/24 17:13:03	1.2
@@ -8,7 +8,7 @@
 if test "x$oid" = "xoid"; then
   for i in 1 2 3 4 5 6 7 8 9 10
   do
-    echo "$SNMP_MIB.2.$i"
+    echo "$SNMP_MIB.2.$i.0"
   done
   exit 0
 fi
@@ -22,35 +22,38 @@
 echo "$oid"
 echo "integer"
 case "$oid" in
-  $SNMP_MIB.2.1)
+  $SNMP_MIB.2.1.0)
     ldap "Bind"
     ;;
-  $SNMP_MIB.2.2)
+  $SNMP_MIB.2.2.0)
     ldap "Unbind"
     ;;
-  $SNMP_MIB.2.3)
+  $SNMP_MIB.2.3.0)
     ldap "Add"
     ;;
-  $SNMP_MIB.2.4)
+  $SNMP_MIB.2.4.0)
     ldap "Delete"
     ;;
-  $SNMP_MIB.2.5)
+  $SNMP_MIB.2.5.0)
     ldap "Modrdn"
     ;;
-  $SNMP_MIB.2.6)
+  $SNMP_MIB.2.6.0)
     ldap "Modify"
     ;;
-  $SNMP_MIB.2.7)
+  $SNMP_MIB.2.7.0)
     ldap "Compare"
     ;;
-  $SNMP_MIB.2.8)
+  $SNMP_MIB.2.8.0)
     ldap "Search"
     ;;
-  $SNMP_MIB.2.9)
+  $SNMP_MIB.2.9.0)
     ldap "Abandon"
     ;;
-  $SNMP_MIB.2.10)
+  $SNMP_MIB.2.10.0)
     ldap "Extended"
+    ;;
+  *)
+    exit 1
     ;;
 esac
 
===================================================================
RCS file: plugin/snmp/snmppass.d/snmpgen,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- plugin/snmp/snmppass.d/snmpgen	2004/06/24 14:15:15	1.2
+++ plugin/snmp/snmppass.d/snmpgen	2004/06/24 17:13:03	1.3
@@ -36,7 +36,7 @@
 fi
 
 case "$cmd" in
-  $SNMP_MIB.1.1)
+  $SNMP_MIB.1.1.0)
     echo "$cmd"
     echo "string"
     case "$TYPE" in
@@ -76,7 +76,7 @@
       ;;
     esac
     ;;
-  $SNMP_MIB.1.2)
+  $SNMP_MIB.1.2.0)
     echo "$cmd"
     echo "string"
     if test -f "$SLAPD_PIDFILE"; then
@@ -85,7 +85,7 @@
       cat $SLAPD_SLAVE_PIDFILE
      fi
     ;;
-  $SNMP_MIB.1.3)
+  $SNMP_MIB.1.3.0)
     echo "$cmd"
     echo "string"
     if test -f "$SLAPD_PIDFILE"; then
@@ -95,9 +95,12 @@
      fi
     ;;
   oid)
-    echo "$SNMP_MIB.1.1"
-    echo "$SNMP_MIB.1.2"
-    echo "$SNMP_MIB.1.3"
+    echo "$SNMP_MIB.1.1.0"
+    echo "$SNMP_MIB.1.2.0"
+    echo "$SNMP_MIB.1.3.0"
+    ;;
+  *)
+    exit 1
     ;;
 esac
 



Ultrapossum-cvs メーリングリストの案内
Back to archive index