uss-fix-typo-20020909
[openafs.git] / src / uss / sample.bulkfile
1 # Copyright 2000, International Business Machines Corporation and others.
2 # All Rights Reserved.
3
4 # This software has been released under the terms of the IBM Public
5 # License.  For details, see the LICENSE file in the top-level source
6 # directory or online at http://www.openafs.org/dl/license10.html
7
8 # Test input file for uss bulk processing, doing both adds and deletes.
9 # Note: there are some lines with intentional errors, so that this file
10 # may be used for testing.
11 #
12 # Formats:
13 #
14 #       add <user>:[<real name>]:[<passwd>]:[<expires>]:[<server>]:
15 #               [<partition>]:[<mtpt>]:[<uid>]:[<$1>]:[<$2>]:...:[<$9>]
16 #
17 #       delete <user>:<mtpt>:<restoredir>:[savevolume | delvolume]
18 #
19 #       delvolume
20 #
21 #       exec <string to execute>
22 #
23 #       savevolume
24 #
25 #
26 # Note: Command lines can be ended anywhere after the last required
27 #       argument.  Any arguments not provided will take on their
28 #       default values.  A null argument may appear embedded in the
29 #       command line by still using its leading and trailing colon
30 #       separator.  Null arguments are usually replaced by defaults or
31 #       by switches specified in the uss command invocation.  For
32 #       instance, if you do not specify an "expires" option, the value
33 #       specified to the "-pwexpires" switch will take effect.  If you
34 #       do not use the "-pwexpires" switch, the default will be not to
35 #       expire.  Expiration times specified here are in turn used as
36 #       PWEXPIRES values when processing the template file.  Optional
37 #       arguments appear above surrounded by square brackets [].
38 #
39 #       Anyone running this bulk file must have administrative powers
40 #       within the cell, or you'll be rejected faster
41 #       than politicians deny the truth.
42 #
43 #
44
45 exec echo "This command is being executed at the start of the bulk file"
46
47 add usstst1:::0:ernie:a:/afs/cellname/usr/usstst1
48 add usstst2:USS Test 2::0:ernie:a:/afs/cellname/usr/usstst2
49 add usstst3:USS Test 3:xyzzy:0:ernie:a:/afs/cellname/usr/usstst3
50 add usstst4:USS Test 4:xyzzy:0:ernie:a:/afs/cellname/usr/usstst4
51 add usstst5:USS Test 5:xyzzy:0:ernie:a:/afs/cellname/usr/usstst5
52 add usstst6:USS Test 6:xyzzy:0:ernie:a:/afs/cellname/usr/usstst6
53 add usstst7:USS Test 7:xyzzy:0:ernie:a:/afs/cellname/usr/usstst7
54 add usstst8:USS Test 8:xyzzy:0:ernie:a:/afs/cellname/usr/usstst8
55 add usstst9:USS Test 9:xyzzy:0:ernie:a:/afs/cellname/usr/usstst9
56 add usstst10:USS Test 10:xyzzy:0:ernie:a:/afs/cellname/usr/usstst10
57
58 exec echo "We're now starting the deletions"
59
60 delete usstst1:/afs/cellname/usr/usstst1:/afs/cellname/common/uss
61 delete usstst2:/afs/cellname/usr/usstst2:/afs/cellname/common/uss
62 delete usstst3:/afs/cellname/usr/usstst3:/afs/cellname/common/uss
63 delete usstst4:/afs/cellname/usr/usstst4:/afs/cellname/common/uss
64 delete usstst5:/afs/cellname/usr/usstst5:/afs/cellname/common/uss
65 delete usstst6:/afs/cellname/usr/usstst6:/afs/cellname/common/uss
66 delete usstst7:/afs/cellname/usr/usstst7:/afs/cellname/common/uss
67 delete usstst8:/afs/cellname/usr/usstst8:/afs/cellname/common/uss
68 delete usstst9:/afs/cellname/usr/usstst9:/afs/cellname/common/uss
69 delete usstst10:/afs/cellname/usr/usstst10:/afs/cellname/common/uss
70
71 exec echo "This command being executed at the end of the (normal) bulk file"
72
73 #
74 # Now for some illegal additions
75 #
76 exec echo "The next bulk line has an illegal dot in the user name"
77 add uss.tst:USS Dot Test:xyzzy:0:ernie:a:/afs/cellname/usr/uss.tst
78
79 exec echo "The next lines have a vocabulary error"
80 exec echo "The next bulk line has an illegal ampersand in the user name"
81 add uss@tst:USS Ampersand Test:xyzzy:0:ernie:a:/afs/cellname/usr/uss@tst
82
83 exec echo "This command executed after the end of the (entire) bulk file"