X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-remote.git/blobdiff_plain/d9bf37acde985cbe8366c52a528809a0ae078a3f..967a3566b99b42fe71a52c2b6e5be99bfb24718f:/host/usr/sbin/invirt-remote diff --git a/host/usr/sbin/invirt-remote b/host/usr/sbin/invirt-remote index dcac451..5168da8 100755 --- a/host/usr/sbin/invirt-remote +++ b/host/usr/sbin/invirt-remote @@ -11,31 +11,34 @@ case "$TYPE" in control) # $SERVICE is hostname COMMAND=/usr/sbin/invirt-vmcontrol - ;; + ;; web) case "$SERVICE" in - lvcreate|lvremove|lvrename|lvresize) + lvcreate|lvremove|lvrename|lvresize|vgcapacity) COMMAND=/usr/sbin/invirt-lvm - ;; + ;; listvms) COMMAND=/usr/sbin/invirt-listvms - ;; - info) - exec /usr/sbin/xm info - ;; + ;; + availability|avail) + COMMAND=/usr/sbin/invirt-availability + ;; vnccert) COMMAND=/usr/bin/invirt-vnc-getcert ;; + checkdisks) + COMMAND=/usr/sbin/invirt-check-disks + ;; *) echo "ERROR: invalid subcommand" exit 34 ;; esac - ;; + ;; *) echo "ERROR: invalid command" exit 34 ;; esac -exec "$COMMAND" "$SERVICE" "$@" +$COMMAND "$SERVICE" "$@"