This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Wait for a number of seconds | |
#log_with_line("Waiting") | |
#log.debug("Scheduler - Waiting...") | |
#time.sleep(3) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[patricka@canfarpool ~]$ ./get_frequencies *.out | |
canfardev1 14 | |
canfardev2 14 | |
canfardev3 14 | |
canfardev4 12 | |
canfardev5 11 | |
canfardev6 12 | |
canfardev8 11 | |
canfardev9 12 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[root@ms-gavia ~]# condor_q -l | |
-- Submitter: ms-gavia.phys.UVic.CA : <142.104.63.12:37532> : ms-gavia.phys.UVic.CA | |
MyType = "Job" | |
TargetType = "Machine" | |
ClusterId = 2 | |
QDate = 1260911808 | |
CompletionDate = 0 | |
Owner = "dev04" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MyType = "Job" | |
TargetType = "Machine" | |
ClusterId = 40 | |
QDate = 1263491958 | |
CompletionDate = 0 | |
Owner = "dev04" | |
RemoteWallClockTime = 0.000000 | |
LocalUserCpu = 0.000000 | |
LocalSysCpu = 0.000000 | |
RemoteUserCpu = 0.000000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if cli_options.all_cluster: | |
print s.get_cluster_resources() | |
elif cli_options.vms: | |
print s.get_cluster_vm_resources() | |
elif cli_options.vm_id and cli_options.cluster_name: | |
print s.get_vm_info(cli_options.cluster_name, cli_options.vm_id) | |
elif cli_options.vm_id and not cli_options.cluster_name: | |
print "Please provide -c cluster_name with vm ID" | |
elif cli_options.cluster_name and not cli_options.vm_id: | |
print s.get_cluster_info(cli_options.cluster_name) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[root@vmcgs29 ~]# cat /etc/cloudscheduler/cloud_scheduler.conf | |
[global] | |
# condor_webservice_url must point to the URL of your Condor pool, and the | |
# port on which it is running (usually 8080). | |
# | |
# The default value is http://localhost:8080 | |
condor_webservice_url: http://localhost:8080 | |
# cloud_resource_config is the path to the default list of resources you want |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#script to get central manager from EC2 metadata server | |
USER_DATA=`curl -s http://169.254.169.254/2009-04-04/user-data` | |
SPLIT_DATA=`echo $USER_DATA | awk -F"," '{print $1}'` | |
for item in ${SPLIT_DATA}; do | |
key=`echo $item | sed s/=.*//` | |
value=`echo $item | sed s/.*=//` | |
if [ $key == "central_manager" ]; then | |
CENTRAL_MANAGER=$value | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# | |
# script to migrate Nimbus 2.2/2.3 accounting db to 2.4 db | |
import os | |
import re | |
import sys | |
import time | |
import shutil | |
import tempfile | |
from subprocess import Popen, PIPE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# usage: flattar.sh tarfile.tar | |
# | |
# doesn't gunzip files. You'll need to do that yourself first | |
tarfile=$1 | |
shift | |
tar -tvf $tarfile | grep -v "^d" | awk {'print $6'} | while read filename | |
do | |
tar "$@" -O -xf $tarfile $filename >${filename##*/} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# update-control.sh - update workspace control with new control | |
# | |
# WARNING: This is quick and dirty and may break your install. | |
usage() { | |
echo usage: $0 newcontroldir installdir | |
} |
OlderNewer