removed unused scripts
authorThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Thu, 16 Jul 2009 06:53:39 +0000 (06:53 +0000)
committerThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Thu, 16 Jul 2009 06:53:39 +0000 (06:53 +0000)
PlanetLabConf/bwlimit.php [deleted file]
PlanetLabConf/sudoers [deleted file]

diff --git a/PlanetLabConf/bwlimit.php b/PlanetLabConf/bwlimit.php
deleted file mode 100755 (executable)
index a35bdeb..0000000
+++ /dev/null
@@ -1,45 +0,0 @@
-<?php
-//
-// Deprecated. Node Manager manages the node bandwidth limit.
-//
-// Mark Huang <mlhuang@cs.princeton.edu>
-// Copyright (C) 2006 The Trustees of Princeton University
-//
-// $Id$
-//
-
-// Get admin API handle
-require_once 'plc_api.php';
-global $adm;
-
-// Look up the node
-// backwards compatibility with the old 4.2 API
-global $__PLC_API_VERSION;
-if ( ! method_exists ($adm,"GetInterfaces"))
-  $__PLC_API_VERSION = 4.2;
-else
-  $__PLC_API_VERSION = 4.3;
-
-if ($__PLC_API_VERSION==4.2)
-  $interfaces = $adm->GetNodeNetworks(array('ip' => $_SERVER['REMOTE_ADDR']));
-else
-  $interfaces = $adm->GetInterfaces(array('ip' => $_SERVER['REMOTE_ADDR']));
-
-if (!empty($interfaces)) {
-  if ($interfaces[0]['bwlimit'] !== NULL) {
-    $rate = $interfaces[0]['bwlimit'];
-    if ($rate >= 1000000000 && ($rate % 1000000000) == 0) {
-      printf("%.0fgbit", ($rate / 1000000000.));
-    } elseif ($rate >= 1000000 && ($rate % 1000000) == 0) {
-      printf("%.0fmbit", ($rate / 1000000.));
-    } elseif ($rate >= 1000) {
-      printf("%.0fkbit", ($rate / 1000.));
-    } else {
-      printf("%.0fbit", $rate);
-    }
-  } else {
-    print "-1";
-  }
-}
-
-?>
diff --git a/PlanetLabConf/sudoers b/PlanetLabConf/sudoers
deleted file mode 100755 (executable)
index e29525a..0000000
+++ /dev/null
@@ -1,36 +0,0 @@
-# -----------------------------------------------------------------
-# We're assuming that ssh authentication has already been used, this
-# is more risky than I'm comfortable with, but it saves the problem 
-# of managing a separate password file.
-# -----------------------------------------------------------------
-Defaults       !authenticate
-
-# -----------------------------------------------------------------
-# No surpise... root has universal access
-# -----------------------------------------------------------------
-root           ALL = (ALL) ALL
-
-# -----------------------------------------------------------------
-# SITE_CMDS are those available to local site administrators
-# -----------------------------------------------------------------
-Cmnd_Alias     SITE_CMDS =     /usr/sbin/vps, \
-                               /usr/sbin/vpstree, \
-                               /usr/sbin/vtop, \
-                               /bin/ps, \
-                               /usr/bin/pstree, \
-                               /usr/bin/top, \
-                               /usr/sbin/tcpdump, \
-                               /usr/bin/pfgrep, \
-                               /usr/local/planetlab/bin/pl-catlogs, \
-                               /sbin/halt, \
-                               /sbin/reboot, \
-                               /sbin/shutdown, \
-                               /usr/bin/passwd -d site_admin, \
-                               /usr/bin/passwd site_admin, \
-                               /bin/more /var/log/messages, \
-                               /bin/more /var/log/nm
-
-# -----------------------------------------------------------------
-# Site Admins -- accounts with admin privileges on the local nodes
-# -----------------------------------------------------------------
-site_admin     ALL = SITE_CMDS