2.7 General functions about the state of the systemlegion_check_system [-v] [-q] [-fix CommandLine | -fix Contexts] [-debug] [-help] Checks the status of the key elements of your Legion system: LegionClass, host objects, root context object, etc. The output will include a summary of any warnings and errors in your system. The following options are supported: You can use a -fix flag to specify that offending command-line and/or context objects be reported and destroyed (you may use both -fix flags to specify that both types of offending objects be removed). The example here uses both flags and shows the discovery and removal of a bad context object:
legion_classof {[-c] <object context name> | -l <object LOID>} [-debug] [-help] Displays the LOID of the class of the object named in <context path> or <object LOID>. The example below displays instance Foo's class LOID.
The following options are supported:
legion_create_stat_tree <base context path> [-debug] [-help] Creates a database of current loads on all host objects in a system. The following options are supported:
legion_host_stats {[-c] <host context path> | -l <host LOID>} [-debug] [-help] Prints the number of objects and current load for the given host object. The following options are supported:
legion_list_objects {[-c] <host context path> | -l <host LOID>} [-debug] [-help] Lists the Legion objects currently managed by (i.e., running on) the host object named in <host context path> or <host LOID>. This may include each object's LOID, status, and its owner's LOID and OA. The following options are supported:
legion_version [-debug] [-help] Prints your Legion version number. For example, the output below indicates that the current system is University of Virginia Legion version 1.5.9. The following options are supported:
legion_wellknown_class <wellknown class name> [-debug] [-help] Gets the class LOID of a Legion "well-known" class. Possible values for <wellknown class> are:
The following options are supported:
legion_whereis {[-c] <object context name> | -l <object LOID>} [-debug] [-help] This command returns a specified object's host and vault object. That is, the output gives the context path of the host and vault objects where the object and the object's persistent state are located. If the host or vault objects have been assigned aliases Legion will randomly return one of the context paths. Your output will look something like this: This example looks up the location of object Foo. The output shows that the object is located on BootstrapHost and its persistent state is on BootstrapVault. The following options are supported:
legion_whoami [-debug] [-help] You can use this command to find out which user id you are currently logged in with. If you are logged in as user nemo, your output will be: The following options are supported:
legion@Virginia.edu
|