| -L <$LEGION> |
Specify $LEGION for the new host (default is "/home/xxxx/Legion") | -O <$LEGION_OPR> |
Specify $LEGION_OPR for host (default is current $LEGION_OPR) |
-A <$LEGION_ARCH> |
Specify the architecture type for the host (default is current $LEGION_ARCH) |
-N <context name> |
Specify the context name for the host object (default is "/hosts/<new host name>") |
-U <user id> |
Specify a Unix user id for host (default is current Unix user id) |
-C <host class> |
Specify the context path of the host class (default is "/class/UnixHostClass") |
| <$LEGION_OPA> | = $LEGION_OPR/Host-$HOST.OPA |
| <binary path> | = $LEGION/bin/$LEGION_ARCH/UnixHostObject |
These flags and defaults need to be carefully considered when adding new hosts and vaults to your system. If the new host has a different architecture or a different directory structure, use the -A, -L, or -O flags to specify these parameters. The -U flag allows you to specify a Unix user id for the new object, so that a system administrator can add host objects to another user on the same Unix system. This can be useful should you wish to create a guest user id that has limited access privileges to the new host. The -C flag allows you to start an instance of a different class, so that users can create new host classes and have more flexibility in managing their resources. (Legion currently comes with only one host class, UnixHostClass, but users can add more host classes as necessary, either by creating instances of the UnixHostClass or by writing new classes.)
If the new host object's architecture is not the same as the current host object's architecture, you should run the legion_init_arch tool in order to create implementation objects to match the new architecture (see section 9.0 of the System Administrator Manual, for information about implementations, and section 9.2 of the System Administrator Manual, for information about running legion_init_arch).
| -L <$LEGION> |
Specify $LEGION for the vaults host (default is "/home/Legion") |
| -O <$LEGION_OPR> |
Specify $LEGION_OPR for the vault's host (default is "/home/OPR") |
| -A <$LEGION_ARCH> |
Specify the architecture of the vault's host (default is current $LEGION_ARCH) |
| -N <context name> |
Specify the context name for the vault object (default is "/vaults/vault-<host name>") |
| -U <user id> |
Specify a Unix user id (default is current Unix user id) |
| -C <vault class> |
Specify the context path of the vault class (default is "/class/UnixVaultClass") |
$ legion_host_vault_list -c hosts/BootstrapHost -p ** COMPATIBLE VAULT LISTING: ** 1.01.03.3cb53908.000001fc0bb4fef12ecf6cc... ** 1.01.03.3db53908.000001fc0dd5621fadf70b0... ** 1.01.03.3eb53908.000001fc0d6e9041e262126... $
To view the list of a vault's compatible hosts, use legion_vault_host_list. The example below asks that the list of hosts for BootstrapVault be printed.
$ legion_vault_host_list -c vaults/BootstrapVault -p ** COMPATIBLE HOST LISTING: ** 1.01.07.3cb53908.000001fc0c29636eee98d... ** 1.01.07.3eb53908.000001fc0d9b155044fb5... $
Both of these commands can add and delete hosts or vaults from the list with specific flags (-a and -d, respectively). For example, to remove NewVaultObject2 from BootstrapHost's list of acceptable vaults, you would enter the following:
$ legion_host_vault_list -c hosts/BootstrapHost -d \ vaults/NewVaultObject2 -p Deleted 1 vault(s) to host's compatibility set ** COMPATIBLE VAULT LISTING: ** 1.01.03.3cb53908.000001fc0bb4fef12ecf6cc... ** 1.01.03.3db53908.000001fc0dd5621fadf70b0... $
$ legion_vault_host_list -c vaults/BootstrapVault -a \ hosts/AnotherHost -p Added 1 host(s) to vault's compatibility set ** COMPATIBLE HOST LISTING: ** 1.01.07.3cb53908.000001fc0c29636eee98d... ** 1.01.07.3eb53908.000001fc0d9b155044fb5... ** 1.01.07.3fb53908.000001fc0c96beaba5730... $
The full syntax of this command is:
legion_create_object
{-l <class loid> | -c <legion space path>}
<context path for new object>
[-h <host on which to place new object>]
[-v <vault on which to place new object>]
[-H <context path of preferred host class>]
[-V <context path of preferred vault class>]
[-Ch <context containing list of preferred hosts>]
[-Cv <context containing list of preferred vaults>]The example below creates an instance of the BasicFileClass on the AliasHostObject and assigns it the context name File. The output is the new object's LOID.
$ legion_create_object -c class/BasicFileClass file -h hosts/AliasHostObject 1.01.66000000.01000000.000001fc0b0eec4e02... $
$ legion_get_host -c file 1.01.07.3eb53908.000001fc0d9b155044fb5... $