The following examples illustrate different ways to construct the account file used by issadmin.sh --accountlist file commands. Each non-comment line in the --accountlist file must conform to the following syntax:
where some of the fields may be omitted.
The following command bootstraps two accounts:
where the file twoaccounts contains the following information:
If the accounts were not created previously, then the previous command using the twoaccounts file creates them in the next available groups by using the default allocation policy. After the bootstrap, the same file can be used to check the accounts with the following commands:
Assume that the file fiveaccounts contains the following information:
Assuming none of these accounts have been created beforehand, the following command bootstraps them all, placing the first two and last accounts according to the default allocation policy, and the third and fourth in the specific groups as specified.
The order in which the accounts are bootstrapped is the order in the file in this example because no --threads N option was specified (meaning use a single thread). The order is not always this if the command uses multiple threads. This may mean the groups selected by the default allocation policy do not correspond to the order of the accounts in the file.
Assume the the file fiveaccounts contains the following information:
Assuming that all of these accounts have been created beforehand, the following command changes the state of all but the account bill to be set to Active.
The --setstate command does not use the group number, and the "state" value in the file overrides the value specified on the command line for account bill.
This file could also be used in the previous example, because the "state" field does not effect the behavior of the --boootstrap command.