condor_status (1) - Linux Man Pages
condor_status Display status of the HTCondor pool
Synopsiscondor_status [ -debug ] [ help options ] [ query options ] [ display options ] [ custom options ] [ name ... ]
Descriptioncondor_status is a versatile tool that may be used to monitor and query the HTCondor pool. The condor_status tool can be used to query resource information, submitter information, checkpoint server information, and daemon master information. The specific query sent and the resulting information display is controlled by the query options supplied. Queries and display formats can also be customized.
The options that may be supplied to condor_status belong to five groups:
- * Help options provide information about the condor_status tool.
- * Query options control the content and presentation of status information.
- * Display options control the display of the queried information.
- * Custom options allow the user to customize query and display information.
- * Host options specify specific machines to be queried
At any time, only one help option , one query option and one display option may be specified. Any number of custom options and host options may be specified.
- Causes debugging information to be sent to stderr , based on the value of the configuration variable TOOL_DEBUG
- (Help option) Display usage information.
- (Help option) Print out ClassAd query without performing the query.
- (Query option) Query for and display only absent resources.
- (Query option) Read the set of ClassAds in the file specified by filename , instead of querying the condor_collector .
- (Query option) Query all ClassAds and display their type, target type, and name.
- (Query option) Query condor_startd ClassAds and identify resources which are available.
- (Query option) Query condor_ckpt_server ClassAds and display checkpoint server attributes.
- (Query option) Query condor_startd ClassAds and print information about claimed resources.
- (Query option) Display only machine ClassAds that have COD claims. Information displayed includes the claim ID, the owner of the claim, and the state of the COD claim.
- (Query option) Query condor_collector ClassAds and display attributes.
- (Query option) Query condor_defrag ClassAds.
- (Query option) Go directly to the given host name to get the ClassAds to display. By default, returns the condor_startd ClassAd. If -schedd is also given, return the condor_schedd ClassAd on that host.
- (Query option) Display only Java-capable resources.
- (Query option) Display license attributes.
- (Query option) Query condor_master ClassAds and display daemon master attributes.
- (Query option) Query condor_negotiator ClassAds and display attributes.
- (Query option) Query the specified central manager using an optional port number. condor_status queries the machine specified by the configuration variable COLLECTOR_HOST by default.
- (Query option) Display information about machines currently running jobs.
- (Query option) Query condor_schedd ClassAds and display attributes.
- (Query option) Query condor_startd ClassAds and display resource attributes.
- (Query option) Query condor_startd ClassAds.
- (Query option) Query condor_startd ClassAds and display resource state information.
- (Query option) Can only be used if the -direct option has been specified. Identifies which Statistics attributes to include in the ClassAd. WhichStatistics is specified using the same syntax as defined for STATISTICS_TO_PUBLISH . A definition is in the HTCondor Administrator's manual section on configuration.
- (Query option) Display attributes of machines with network storage resources.
- (Query option) Query ClassAds sent by submitters and display important submitter attributes.
- (Query option) If type is one of collector , negotiator , master , schedd , startd , or quill , then behavior is the same as the query option without the -subsystem option. For example, -subsystem collector is the same as -collector . A value of type of CkptServer , Machine , DaemonMaster , or Scheduler targets that type of ClassAd.
- (Query option) Query condor_startd ClassAds, and display only VM-enabled machines. Information displayed includes the machine name, the virtual machine software version, the state of machine, the virtual machine memory, and the type of networking.
- (Query option) Query condor_startd ClassAds, and display, for each machine with at least one offline universe, which universes are offline for it.
-attributes Attr1[,Attr2 ... ]
- (Display option) Explicitly list the attributes in a comma separated list which should be displayed when using the -xml or -long options. Limiting the number of attributes increases the efficiency of the query.
- (Display option) Display shortened error messages.
- (Display option) Display entire ClassAds (same as -verbose ).
- (Display option) Change the display order to be based on ascending values of an evaluated expression given by expr . Evaluated expressions of a string type are in a case insensitive alphabetical order. If multiple -sort arguments appear on the command line, the primary sort will be on the leftmost one within the command line, and it is numbered 0. A secondary sort will be based on the second expression, and it is numbered 1. For informational or debugging purposes, the ClassAd output to be displayed will appear as if the ClassAd had two additional attributes. CondorStatusSortKeyExpr<N> is the expression, where <N> is replaced by the number of the sort. CondorStatusSortKey<N> gives the result of evaluating the sort expression that is numbered <N> .
- (Display option) Display totals only.
- (Display option) Display entire ClassAds. Implies that totals will not be displayed.
- (Display option) Display entire ClassAds, in XML format. The XML format is fully defined in the reference manual, obtained from the ClassAds web page, with a link at http://research.cs.wisc.edu/htcondor/research.html.
- (Custom option) Add constraint expression.
-format fmt attr
- (Custom option) Display attribute or expression attr in format fmt . To display the attribute or expression the format must contain a single printf(3) -style conversion specifier. Attributes must be from the resource ClassAd. Expressions are ClassAd expressions and may refer to attributes in the resource ClassAd. If the attribute is not present in a given ClassAd and cannot be parsed as an expression, then the format option will be silently skipped. %r prints the unevaluated, or raw values. The conversion specifier must match the type of the attribute or expression. %s is suitable for strings such as Name , %d for integers such as LastHeardFrom , and %f for floating point numbers such as LoadAvg . %v identifies the type of the attribute, and then prints the value in an appropriate format. %V identifies the type of the attribute, and then prints the value in an appropriate format as it would appear in the -long format. As an example, strings used with %V will have quote marks. An incorrect format will result in undefined behavior. Do not use more than one conversion specifier in a given format. More than one conversion specifier will result in undefined behavior. To output multiple attributes repeat the -format option once for each desired attribute. Like printf(3) -style formats, one may include other text that will be reproduced directly. A format without any conversion specifiers may be specified, but an attribute is still required. Include n to specify a line break.
-autoformat[:rtn,lVh] attr1 [attr2 ...]
- (Custom option) Display machine ClassAd attribute values formatted in a default way according to their attribute types. This option takes an arbitrary number of attribute names as arguments, and prints out their values. It is like the -format option, but no format strings are required. It is assumed that no attribute names begin with a dash character, so that the next word that begins with dash is the start of the next option. The autoformat option may be followed by a colon character and formatting qualifiers:
- r print unevaluated, or raw values,
- t add a tab character before each field instead of the default space character,
- n add a newline character after each field,
- , add a comma character after each field,
- l label each field,
- V use %V rather than %v for formatting,
- h print headings before the first line of output.
- The newline and comma characters may not be used together.
- (Custom option) Where evaluation requires a target ClassAd to evaluate against, file filename contains the target ClassAd.
- * The default output from condor_status is formatted to be human readable, not script readable. In an effort to make the output fit within 80 characters, values in some fields might be truncated. Furthermore, the HTCondor Project can (and does) change the formatting of this default output as we see fit. Therefore, any script that is attempting to parse data from condor_status is strongly encouraged to use the -format option (described above).
- * The information obtained from condor_startd and condor_schedd daemons may sometimes appear to be inconsistent. This is normal since condor_startd and condor_schedd daemons update the HTCondor manager at different rates, and since there is a delay as information propagates through the network and the system.
- * Note that the ActivityTime in the Idle state is not the amount of time that the machine has been idle. See the section on condor_startd states in the Administrator's Manual for more information.
- * When using condor_status on a pool with SMP machines, you can either provide the host name, in which case you will get back information about all slots that are represented on that host, or you can list specific slots by name. See the examples below for details.
- * If you specify host names, without domains, HTCondor will automatically try to resolve those host names into fully qualified host names for you. This also works when specifying specific nodes of an SMP machine. In this case, everything after the ``@'' sign is treated as a host name and that is what is resolved.
- * You can use the -direct option in conjunction with almost any other set of options. However, at this time, the only daemon that will allow direct queries for its ad(s) is the condor_startd . So, the only options currently not supported with -direct are -schedd and -master . Most other options use startd ads for their information, so they work seamlessly with -direct . The only other restriction on -direct is that you may only use 1 -direct option at a time. If you want to query information directly from multiple hosts, you must run condor_status multiple times.
- * Unless you use the local host name with -direct , condor_status will still have to contact a collector to find the address where the specified daemon is listening. So, using a -pool option in conjunction with -direct just tells condor_status which collector to query to find the address of the daemon you want. The information actually displayed will still be retrieved directly from the daemon you specified as the argument to -direct .
Example 1 To view information from all nodes of an SMP machine, use only the host name. For example, if you had a 4-CPU machine, named vulture.cs.wisc.edu , you might see
% condor_status vulture
Name OpSys Arch State Activity LoadAv Mem ActvtyTime
slot1 [at] vulture.cs.w LINUX INTEL Claimed Busy 1.050 512 0+01:47:42
slot2 [at] vulture.cs.w LINUX INTEL Claimed Busy 1.000 512 0+01:48:19
slot3 [at] vulture.cs.w LINUX INTEL Unclaimed Idle 0.070 512 1+11:05:32
slot4 [at] vulture.cs.w LINUX INTEL Unclaimed Idle 0.000 512 1+11:05:34
To view information from a specific nodes of an SMP machine, specify the node directly. You do this by providing the name of the slot. This has the form slot#@hostname . For example:
% condor_status slot3 [at] vulture
Name OpSys Arch State Activity LoadAv Mem ActvtyTime
slot3 [at] vulture.cs.w LINUX INTEL Unclaimed Idle 0.070 512 1+11:10:32
Example 2 To view information from a specific nodes of an SMP machine, specify the node directly. You do this by providing the name of the slot. This has the form slot#@hostname . For example: