猿代码 — 科研/AI模型/高性能计算
0

slurm sreport 命令

摘要: sreport --helpsreport Valid OPTION values are: -a or --all_clusters: Use all clusters instead of current --federation: Generate reports for the federation if a member of one -h or --help: equiva ...
sreport --help
sreport [<OPTION>] [<COMMAND>]
    Valid <OPTION> values are:
     -a or --all_clusters: Use all clusters instead of current
     --federation: Generate reports for the federation if a member of one
     -h or --help: equivalent to "help" command
     --local: Report local cluster, even when in federation of clusters
     -n or --noheader: equivalent to "noheader" command
     -p or --parsable: output will be '|' delimited with a '|' at the end
     -P or --parsable2: output will be '|' delimited without a '|' at the end
     -Q or --quiet: equivalent to "quiet" command
     -t <time_format>: Second, Minute, Hour, Percent, SecPer, MinPer, HourPer
     -T or --tres: comma separated list of TRES, or 'ALL' for all TRES
     -v or --verbose: equivalent to "verbose" command
     -V or --version: equivalent to "version" command

  <keyword> may be omitted from the execute line and sreport will execute
  in interactive mode. It will process commands as entered until explicitly
  terminated.

    Valid <COMMAND> values are:
     exit                Terminate sreport
     help                Print this description of use.
     nonparsable         Return output to normal
     parsable            Output will be | delimited with an ending '|'
     parsable2           Output will be | delimited without an ending '|'
     quiet               Print no messages other than error messages.
     quit                Terminate this command.
     time <time_format>  Second, Minute, Hour, Percent, SecPer, MinPer, HourPer
     verbose             Enable detailed logging.
     version             Display tool version number.
     !!                  Repeat the last command entered.

    Valid report types are:
     cluster <REPORT> <OPTIONS>
     job <REPORT> <OPTIONS>
     user <REPORT> <OPTIONS>

  <REPORT> is different for each report type.
     cluster - AccountUtilizationByUser, UserUtilizationByAccount,
               UserUtilizationByWckey, Utilization, WCKeyUtilizationByUser
     job     - SizesByAccount, SizesByAccountAndWckey, SizesByWckey
     reservation
             - Utilization
     user    - TopUsage

  <OPTIONS> are different for each report type.

     COMMON FOR ALL TYPES
             - All_Clusters     - Use all monitored clusters default is
                                  local cluster.
             - Clusters=<OPT>   - List of clusters to include in report
                                  Default is local cluster.
             - End=<OPT>        - Period ending for report.
                                  Default is 23:59:59 of previous day.
             - Format=<OPT>     - Comma separated list of fields to display
                                  in report.
             - Start=<OPT>      - Period start for report.
                                  Default is 00:00:00 of previous day.

     cluster - Accounts=<OPT>   - When used with the UserUtilizationByAccount,
                                  or AccountUtilizationByUser, List of accounts
                                  to include in report.  Default is all.
             - Tree             - When used with the AccountUtilizationByUser
                                  report will span the accounts as they
                                  in the hierarchy.
             - Users=<OPT>      - When used with any report other than
                                  Utilization, List of users to include in
                                  report.  Default is all.
             - Wckeys=<OPT>     - When used with the UserUtilizationByWckey
                                  or WCKeyUtilizationByUser, List of wckeys
                                  to include in report.  Default is all.

     job     - Accounts=<OPT>   - List of accounts to use for the report.
                                  Default is all, which will show only
                                  one line corresponding to the totals of
                                  all accounts in the hierarchy.
                                  This explanation does not apply when ran
                                  with the FlatView or AcctAsParent option.
             - AcctAsParent     - When used with the SizesbyAccount(*)
                                  will take specified accounts as parents
                                  and the next layer of accounts under
                                  those specified will be displayed.
                                  Default is root if no Accounts specified.
                                  When FlatView is used, this option is
                                  ignored.
             - FlatView         - When used with the SizesbyAccount(*)
                                  will not group accounts in a
                                  hierarchical level, but print each
                                  account where jobs ran on a separate
                                  line without any hierarchy.
             - GID=<OPT>        - List of group ids to include in report.
                                  Default is all.
             - Grouping=<OPT>   - Comma separated list of size groupings.
                                  (i.e. 50,100,150 would group job cpu count
                                   1-49, 50-99, 100-149, > 150).
                                  grouping=individual will result in a
                                  single column for each job size found.
             - Jobs=<OPT>       - List of jobs/steps to include in report.
                                  Default is all.
             - Nodes=<OPT>      - Only show jobs that ran on these nodes.
                                  Default is all.
             - Partitions=<OPT> - List of partitions jobs ran on to include
                                  in report.  Default is all.
             - PrintJobCount    - When used with the any Sizes report
                                  will print number of jobs ran instead of
                                  time used.
             - Users=<OPT>      - List of users jobs to include in report.
                                  Default is all.
             - Wckeys=<OPT>     - List of wckeys to use for the report.
                                  Default is all.  The SizesbyWckey
                                  report all users summed together.  If
                                  you want only certain users specify them
                                  them with the Users= option.

     reservation
             - Names=<OPT>      - List of reservations to use for the report
                                  Default is all.
             - Nodes=<OPT>      - Only show reservations that used these
                                  nodes.  Default is all.

     user    - Accounts=<OPT>   - List of accounts to use for the report
                                  Default is all.
             - Group            - Group all accounts together for each user.
                                  Default is a separate entry for each user
                                  and account reference.
             - TopCount=<OPT>   - Used in the TopUsage report.  Change the
                                  number of users displayed.  Default is 10.
             - Users=<OPT>      - List of users jobs to include in report.
                                  Default is all.

  Below are the format options for each report.

  One can get an number of characters by following the field option with
  a %NUMBER option.  i.e. format=name%30 will print 30 chars of field name.

       Cluster
       - AccountUtilizationByUser
       - UserUtilizationByAccount
             - Accounts, Cluster, Count, Login, Proper, Used
       - UserUtilizationByWckey
       - WCKeyUtilizationByUser
             - Cluster, Count, Login, Proper, Used, Wckey
       - Utilization
             - Allocated, Cluster, Count, Down, Idle, Overcommitted,
               Planned, PlannedDown, Reported

       Job
       - Sizes
             - Account, Cluster

       Reservation
       - Utilization
             - Allocated, Associations, Cluster, Count, CPUTime,
               End, Flags, Idle, Name, Nodes, ReservationId, Start, TotalTime

       User
       - TopUsage
             - Account, Cluster, Login, Proper, Used


  Note, valid start/end time formats are...
       HH:MM[:SS] [AM|PM]
       MMDD[YY] or MM/DD[/YY] or MM.DD[.YY]
       MM/DD[/YY]-HH:MM[:SS]
       YYYY-MM-DD[THH:MM[:SS]]
       now[{+|-}count[seconds(default)|minutes|hours|days|weeks]]


  All commands and options are case-insensitive.

sacct -S2020-01-01 -E2020-10-07 -X -oJobID,Elapsed,ReqMem,ReqCPUS,User,Node --parsable

EXAMPLES

Report number of jobs per account according to different job size bins:
$ sreport job sizesbyaccount

Report cluster utilization:
$ sreport cluster utilization

Report top usage:
$ sreport user top

Report number of jobs by user gore1 within the environ account:
$ sreport job sizesbyaccount All_Clusters users=gore1 account=environ PrintJobCount

Report cluster account utilization with the specified fields during the specified 24 hour day of February 23, 2009, by user gore1:
$ sreport cluster AccountUtilizationByUser cluster=zeus user=gore1 start=2/23/09 end=2/24/09 format=Accounts,Cluster,TresCount,Login,Proper,Used

Report cluster account utilization by user in the LC account on cluster zeus:
$ sreport cluster AccountUtilizationByUser cluster=zeus accounts=lc start=2/23/09 end=2/24/09

Report top usage in percent of the lc account during the specified week:
$ sreport user topusage start=2/16/09 end=2/23/09 -t per



说点什么...

已有0条评论

最新评论...

本文作者
2024-1-14 00:12
  • 0
    粉丝
  • 395
    阅读
  • 0
    回复
资讯幻灯片
热门评论
热门专题
排行榜
Copyright   ©2015-2023   猿代码-超算人才智造局 高性能计算|并行计算|人工智能      ( 京ICP备2021026424号-2 )