Code Monkey home page Code Monkey logo

Comments (3)

fpizzano avatar fpizzano commented on August 17, 2024

Build the pull requested and tested. Looks good.

# /opt/ibm/csm/bin/csm_allocation_create -h
_____CSM_ALLOCATION_CREATE_CMD_HELP_____
USAGE:
  csm_allocation_create ARGUMENTS [OPTIONS]
  csm_allocation_create -j primary_job_id -n "node01,node02" [-J secondary_job_id] [-s state] [-t type] [-u user_name] [-U user_id] [-h] [-v verbose_level] [--create_cgroup] [-l launch_node_name]

SUMMARY: Used to create an allocation.

EXIT STATUS:
  0  if OK,
  1  if ERROR.

ARGUMENTS:
  MANDATORY:
    csm_allocation_create expects 2 mandatory arguments
    Argument                | Example value      | Description
    ------------------------|--------------------|--------------
    -j, --primary_job_id    | 1                  | (LONG INTEGER) Primary job id [>0] (for lsf this will be the lsf job id).
                            |                    |
    -n, --node_range        | "node01,node02"    | (STRING) The node_names to be allocated. Separated by comma.
                            |                    | (at least 1 node (node01,node02,...) is required)
                            |                    |
  OPTIONAL:
    csm_allocation_create can have 5 optional arguments
    Argument               | Example value   | Description
    -----------------------|-----------------|--------------
    -J, --secondary_job_id | 0               | (INTEGER) Secondary job id (for lsf this will be the lsf job index for job arrays) [>=0].
                           |                 | (default = '0')
                           |                 |
    -s, --state            | "running"       | (STRING) The state of the allocation.
                           |                 | (default = "running")
                           |                 | Valid values: "staging-in", "running"
                           |                 |
    -t, --type             | "user-managed"  | (STRING) The type of allocation.
                           |                 | (default = "user-managed")
                           |                 | Valid values: "user-managed","jsm","jsm-cgroup-step", or "diagnostics"
                           |                 |
    -u, --user_name        |                 | (STRING) The owner of this allocation's Linux user name.
                           |                 | (default is invoking user)
                           |                 |
    -l, --launch_node_name | "some_host"     | (STRING) The hostname of the launch node for the allocation.
    -U, --user_id          | 0               | (INTEGER) The owner of this allocation's Linux user id.
                           |                 |
    --isolated_cores       | 0               | (INTEGER) Specifies the number of cores ot isolate in the system cgroup ( if 0 the system cgroup will not be created ).
                           |                 | Valid values: [0 - 4]

GENERAL OPTIONS:
[-h, --help]                  | Help.
[-v, --verbose verbose_level] | Set verbose level. Valid verbose levels: {off, trace, debug, info, warning, error, critical, always, disable}

EXAMPLE OF USING THIS COMMAND:
  csm_allocation_create -j 1 -n "node01"
____________________
#
# /opt/ibm/csm/bin/csm_allocation_create -j 1 -u pizzano -l c650f07p09 -n c650f08p25
---
allocation_id: 1
num_nodes: 1
- compute_nodes: c650f08p25
user_name: pizzano
user_id: 378481
state: running
type: user-managed
job_submit_time: 2018-05-10 14:41:02
...
#
# /opt/ibm/csm/bin/csm_allocation_query -a 1
---
allocation_id:                  1
primary_job_id:                 1
secondary_job_id:               0
num_nodes:                      1
compute_nodes:
 - c650f08p25
ssd_file_system_name:
launch_node_name:               c650f07p09
user_flags:
system_flags:
ssd_min:                        0
ssd_max:                        0
num_processors:                 0
num_gpus:                       0
projected_memory:               0
state:                          running
type:                           user-managed
job_type:                       batch
user_name:                      pizzano
user_id:                        378481
user_group_id:                  100
user_script:
begin_time:                     2018-05-10 14:38:53.752507
account:
comment:
job_name:
job_submit_time:                2018-05-10 14:41:02
queue:
requeue:
time_limit:                     0
wc_key:
isolated_cores:                 0
...
#

from cast.

pdlun92 avatar pdlun92 commented on August 17, 2024

@mew2057 @fpizzano are we ok to close this?

from cast.

fpizzano avatar fpizzano commented on August 17, 2024

Looks good. Running with:

# rpm -qa | grep ibm-csm
ibm-csm-hcdiag-1.1.0-114.noarch
ibm-csm-core-1.1.0-114.ppc64le
ibm-csm-api-1.1.0-114.ppc64le
# /opt/ibm/csm/bin/csm_allocation_create -j 1 -u pizzano -l c650f07p09 -n c650f07p15,c650f07p17,c650f07p19,c650f07p21,c650f08p09,c650f08p11,c650f08p13,c650f08p15,c650f08p17,c650f08p19,c650f08p21,c650f08p23,c650f08p25,c650f08p27
---
allocation_id: 1
num_nodes: 14
- compute_nodes: c650f07p15
- compute_nodes: c650f07p17
- compute_nodes: c650f07p19
- compute_nodes: c650f07p21
- compute_nodes: c650f08p09
- compute_nodes: c650f08p11
- compute_nodes: c650f08p13
- compute_nodes: c650f08p15
- compute_nodes: c650f08p17
- compute_nodes: c650f08p19
- compute_nodes: c650f08p21
- compute_nodes: c650f08p23
- compute_nodes: c650f08p25
- compute_nodes: c650f08p27
user_name: pizzano
user_id: 378481
state: running
type: user-managed
job_submit_time: 2018-05-15 10:34:17
...
# 
# /opt/ibm/csm/bin/csm_allocation_query_active_all
---
 num_allocations: 1
 allocations:
    allocation_id: 1
    primary_job_id: 1
    begin_time: 2018-05-15 10:31:50.259812
    state: running
    user_name: pizzano
    num_nodes: 14
    launch_node_name: c650f07p09

...
#

from cast.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.