Added client work scripts
[clearscm.git] / clients / HP / bin / mount_project_lvm
diff --git a/clients/HP/bin/mount_project_lvm b/clients/HP/bin/mount_project_lvm
new file mode 100644 (file)
index 0000000..6fd51d8
--- /dev/null
@@ -0,0 +1,31 @@
+#!/bin/ksh
+################################################################################
+#
+# File:         mount_project_lvm
+# Description:  This script will mount all project's logical volumes
+# Author:       Andrew DeFaria (defaria@cup.hp.com)
+# Language:     Korn Shell
+# Modifications:
+#
+# (c) Copyright 2001, Andrew@DeFaria.com, all rights reserved
+#
+################################################################################
+me=$(basename $0)
+if [ $(id -u) -ne 0 ]; then
+  print -u2 "$me: Error: You must be root to execute this command!"
+  exit 1
+fi
+
+if [ $# -ne 2 ]; then
+  print -u2 "Usage: $me projectID fileserver"
+  exit 1
+fi
+
+projectID=$1
+fileserver=$2
+
+print Mounting $projectID LVMs on $fileserver and build servers...
+/app/admin/bin/buildservers "/app/admin/bin/mountlvm $projectID $fileserver"
+
+print Mounting $projectID and $fileserver on virtual workstations...
+/app/admin/bin/wrkservers "/app/admin/bin/mountlvm $projectID $fileserver"