I hereby claim:
- I am oldpatricka on github.
- I am oldpatricka (https://keybase.io/oldpatricka) on keybase.
- I have a public key whose fingerprint is 7ABE 4191 5190 39DB D4A6 470A D032 3A95 D929 514E
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
#!/bin/bash | |
CHANNEL=$1 | |
MESSAGE=$2 | |
USERNAME=beepboop # set to whatever | |
APITOKEN="" # generate on https://api.slack.com | |
# urlencode message | |
MESSAGE=`python -c "import sys, urllib as ul; print ul.quote_plus(sys.argv[1])" "${MESSAGE}"` |
$customdata = Get-Content C:\AzureData\CustomData.bin | |
$customdataxml = [xml]$customdata | |
$powershell = $customdataxml.powershell | |
Invoke-Expression $powershell |
## Wait for a number of seconds | |
#log_with_line("Waiting") | |
#log.debug("Scheduler - Waiting...") | |
#time.sleep(3) |
[patricka@canfarpool ~]$ ./get_frequencies *.out | |
canfardev1 14 | |
canfardev2 14 | |
canfardev3 14 | |
canfardev4 12 | |
canfardev5 11 | |
canfardev6 12 | |
canfardev8 11 | |
canfardev9 12 |
[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" |
MyType = "Job" | |
TargetType = "Machine" | |
ClusterId = 40 | |
QDate = 1263491958 | |
CompletionDate = 0 | |
Owner = "dev04" | |
RemoteWallClockTime = 0.000000 | |
LocalUserCpu = 0.000000 | |
LocalSysCpu = 0.000000 | |
RemoteUserCpu = 0.000000 |
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) |
[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 |
#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 |