| 196 | === Compare two slivers === |
| 197 | |
| 198 | This compares two slivers (called "old" and "new" here, since a common use case is to compare a new request from an experimenter to an existing old request). |
| 199 | |
| 200 | {{{ |
| 201 | rm -rf old.txt new.txt |
| 202 | oldsliver=<old sliver URN> |
| 203 | newsliver=<new sliver URN> |
| 204 | foamctl show-sliver -s -u $oldsliver --passwd-file=/opt/foam/etc/foampasswd |
| 205 | foamctl show-sliver -s -u $newsliver --passwd-file=/opt/foam/etc/foampasswd |
| 206 | diff -u old.txt new.txt |
| 207 | }}} |
| 208 | |
| 209 | In the case of someone who deleted and then re-created a sliver, you could get the sliver URNs from the e-mail from FOAM, for example. |
| 210 | |
| 211 | We use 'show-sliver -s' because '-r' doesn't work at all on deleted slivers; and '-f' includes a priority value for approved slivers but not non-approved slivers, which clutters up the diff. |
| 212 | |