179 | | Confirm that all of the slivers' expiration dates are as expected, and [wiki:JBSsandbox/SliceNotes#Forlotsofslivers renew anything that isn't] using my general slice notes. |
| 179 | Gather up expiration information, and stuff it into a results file: |
| 180 | |
| 181 | {{{ |
| 182 | for slicename in $slices |
| 183 | do |
| 184 | cd |
| 185 | rm -rf ~/tmp/renewsliver/$slicename |
| 186 | mkdir -p ~/tmp/renewsliver/$slicename |
| 187 | cd ~/tmp/renewsliver/$slicename |
| 188 | for rspec in ${rspecs[$slicename]} ; do outfile=$(echo $(basename $rspec) | sed -e 's/.rspec$//') ; somni $slicename $rspec ; omni --usercredfile=$HOME/.gcf/$USER-geni-usercred.xml --slicecredfile=$HOME/.gcf/$slicename-cred.xml -a $am sliverstatus $slicename >& $outfile ; done |
| 189 | cd ~/tmp/renewsliver/$slicename |
| 190 | grep -h _expires * >> results.txt |
| 191 | for i in * ; do grep _expires $i > /dev/null || echo "no 'expires' lines in $i" ; done >> results.txt |
| 192 | done |
| 193 | }}} |
| 194 | |
| 195 | Set some variables to match the dates you expect things to expire on (these are just examples, and may need to be edited): |
| 196 | |
| 197 | {{{ |
| 198 | mm_dd="05-15" |
| 199 | mon_day="Apr 28" |
| 200 | }}} |
| 201 | |
| 202 | Look for anomalies in the results files: |
| 203 | |
| 204 | {{{ |
| 205 | cd ~/tmp/renewsliver |
| 206 | for slicename in $slices ; do echo "==> $slicename" ; grep foam_expires $slicename/results.txt ; done | grep -v "$mm_dd" |
| 207 | for slicename in $slices ; do echo "==> $slicename" ; grep orca_expires $slicename/results.txt ; done | grep -v "$mon_day" |
| 208 | for slicename in $slices ; do echo "==> $slicename" ; grep pg_expires $slicename/results.txt ; done | grep -v "$mm_dd" |
| 209 | for slicename in $slices ; do echo "==> $slicename" ; grep "no 'expires' lines" $slicename/results.txt ; done |
| 210 | }}} |
| 211 | |
| 212 | If you find anomalies, you'll probably need to go back to the original output files to figure out where they came from. |