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
# Ed Morgan [ed.morgan@ansgroup.co.uk] | |
# v 0.1 - DIRTY HACKS | |
FROMDIR="/Volumes/HITACHI" | |
TODIR="/Volumes/HITACHI/archive" | |
tmp="~/movelist.$$" | |
cd "$FROMDIR" | |
find . -depth -mtime +730 -printf "%Y %p\n" >$tmp | |
sed 's/^. //' < $tmp | cpio --quiet -pdm "$TODIR" |
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
###################################################################################################################################### | |
#VMware config checking script, originally written by http://www.peetersonline.nl/2009/01/check-vmware-configuration-with-powershell/ | |
#Updates by CH September 2012. | |
#Updates by Ed Morgan [ed.morgan@ansgroup.co.uk] - September 2013 | |
# | |
#Use this script to check VMware deployments that all datastores and all networking is the same across all hosts in a cluster. | |
#Uses VMware PowerCLI to use which is available on VMware website. | |
###################################################################################################################################### | |
#Change this variable to the output location. | |
$outputFile = 'C:\output.html' |
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
<# | |
.DESCRIPTION | |
To be run from UPS monitoring server via Windows NT triggers | |
.EXAMPLE | |
.\halt_on_power_fail.ps1 | |
.DATE | |
08-08-2013 | |
.VERSION | |
0.1 | |
.AUTHOR |
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
'#----- Check_LUN_Clone.vbs ----- | |
'#----- ----- | |
'# author: Ed Morgan [ed.morgan@hp.com] ----- | |
'# version: 0.1 - 19/09/2011 ----- | |
'# changelog: 0.1 - First Draft ----- | |
'# ----- | |
'# requires: ontapi.exe & vLAN access to SAN ----- | |
'#----------------------------------------------------------- | |
'# Next functionality - check for locked snapshots |
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 | |
# finds clonebases without flexclone dependencies | |
# replace orahome/appltop with what makes sense for you | |
FILER="YOURFILER" | |
for vol in $(ssh root@$FILER df -h | grep clonebase | egrep -v '(snapshot|orahome|appltop)' | awk -F'/' '{print $3}'); do | |
ssh root@YOURFILER vol status $vol | \ | |
awk ' | |
/^clonebase/ {printf "%s: ",$1} | |
/Volume has clones/ {gsub(/,/, ""); for(i=4;i<=NF;i++){printf "%s ", $i}} |
NewerOlder