logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

catalog_update - send update to catalog server

Description

       The catalog_update tool allows users to manually send an update to a catalog server via TCP or UDP.

Environment Variables

       •   CATALOG_HOST Hostname of catalog server (same as -c).

Examples

       The following example sends an update to the catalog server  located  at  catalog.cse.nd.edu  with  three
       custom fields.

               % cat > test.json << EOF
               {
                   "type" : "node",
                   "has_java" : true,
                   "mode" : 3
               }
               EOF
               % catalog_update -c catalog.cse.nd.edu -f test.json

Exit Status

       On success, returns zero.  On failure, returns non-zero.

Name

catalog_update - send update to catalog server

Options

-c,--catalog=<host>
              Send update to this catalog host.

        -f,--file=<json-file>
               Send additional JSON attributes in this file.

        -d,--debug=<flags>
               Enable debug flags.

        -o,--debug-file=<file>
               Send debug output to this file.

        -v<version>
               Show software version.

        -h<help>
               Show all options.

       The  catalog_update  tool  sends a custom message to the catalog server in the from of a JSON object with
       various properties describing the host.  By default,  the  catalog_update  tool  includes  the  following
       fields in the update:

       •   type This describes the node type (default is "node").

       •   version This is the version of CCTools.

       •   cpu This is CPU architecture of the machine.

       •   opsys This is operating system of the machine.

       •   opsysversion This is operating system version of the machine.

       •   load1 This is 1-minute load of the machine.

       •   load5 This is 5-minute load of the machine.

       •   load15 This is 15-minute load of the machine.

       •   memory_total This is total amount of memory on the machine

       •   memory_avail This is amount of available memory on the machine

       •   cpus This is number of detected CPUs on the machine.

       •   uptime This how long the machine has been running.

       •   owner This is user who sent the update.

           The  field  name  is intended to give a human-readable name to a service or application which accepts
           incoming connections at port.

See Also

CooperativeComputingToolsDocumentationcatalog_server(1)catalog_update(1)catalog_query(1)chirp_status(1)work_queue_status(1)deltadb_query(1)

CCTools 7.14.5 FINAL                                                                           catalog_update(1)

Synopsis

       catalog_update [options] [name=value] ..

See Also