{"id":925,"date":"2015-05-20T10:48:00","date_gmt":"2015-05-20T14:48:00","guid":{"rendered":"http:\/\/localhost:8280\/?p=925"},"modified":"2024-04-16T09:59:57","modified_gmt":"2024-04-16T13:59:57","slug":"assigning-job-attributes-for-accounting-and-tracking","status":"publish","type":"post","link":"https:\/\/knowledgebasev.kinsta.cloud\/?p=925","title":{"rendered":"Assigning Job Attributes for Accounting and Tracking"},"content":{"rendered":"<p>In this article, you will learn how to assign unique attributes to a job that can later be used for accounting purposes. \u00a0Also see &#8220;<a title=\"3) Getting Information About Your core-hour Usage and Account Balance\" href=\"\/?p=197\">myusage<\/a>&#8221; and &#8220;<a title=\"The clui Command\" href=\"\/?p=205\">clui<\/a>&#8221;<\/p>\n<p>Certain optional unique Job Attributes can be specified to the job. They are intended to be used for accounting and job tracking by the user. Later, this information can be used to generate reports using &#8220;<a title=\"3) Getting Information About Your core-hour Usage and Account Balance\" href=\"\/?p=197\">myusag<\/a>e&#8221; and the <a title=\"The clui Command\" href=\"\/?p=205\">clui too<\/a>l.<\/p>\n<p>The special Job Attributes are:<\/p>\n<ul>\n<li>JobSet &#8211; can be any alpha-numeric text (no spaces)<\/li>\n<li>Customer &#8211;\u00a0can be any alpha-numeric text (no spaces)<\/li>\n<li>Application &#8211;\u00a0can be any alpha-numeric text (no spaces)<\/li>\n<li>Project &#8211;\u00a0can be any alpha-numeric text (no spaces)<\/li>\n<li>Label\u00a0&#8211;\u00a0can be any alpha-numeric text (no spaces)<\/li>\n<li>Tag\u00a0&#8211;\u00a0can be any alpha-numeric text (no spaces)<\/li>\n<li>Category\u00a0&#8211;\u00a0can be any alpha-numeric text (no spaces)<\/li>\n<li>Status\u00a0&#8211;\u00a0can be any alpha-numeric text (no spaces)<\/li>\n<li>Score\u00a0\u00a0&#8211;\u00a0can be any alpha-numeric text (no spaces)<\/li>\n<li>Flagged &#8211; only numeric\n<p style=\"display: inline !important;\">\u00a00|1<\/p>\n<\/li>\n<\/ul>\n<p>Special Job Attributes are specified in the .pbs file using \u00a0the #PBS -A ATTRIBUTE=VALUE \u00a0and VALUE is any alpha-numeric string. For example:<\/p>\n<pre>#PBS -A Customer=ABC:Project=abc1:JobSet=xyz<\/pre>\n<p>or<\/p>\n<pre>#PBS -A Customer=ABC\r\n#PBS -A Project=abc1\r\n#PBS -A JobSet=xyz<\/pre>\n<p>In this example.pbs file below, the user is defining the Customer, Project, and JobSet attributes to the job:<\/p>\n<pre>#PBS -l nodes=2:ppn=8:green\r\n#PBS -l nodes+=1:ppn=24:copper\r\n#PBS -l nodes++=2:ppn=8:cobalt\r\n\r\n#PBS -A Customer=AcmeAAA:Project=lowerlevel:JobSet=43b21\r\n\r\n# add the latest version of FDS module to your environment\r\nmodule add fds\r\n# change to the working directory\r\ncd $PBS_O_WORKDIR\r\n# run in parallel on 16 cores\r\nmpirun fds_mpi fire_whirl_pool.fds<\/pre>\n<p>Special Job Attributes may be specified with the -A option to qsub command. Each attribute must be seperated by a colon (:). If multiple -A options are specified, the last value is used. For example:<\/p>\n<pre>qsub -A Customer=ABC:JobSet=123:Application=a.out:Project=XYZ \u00a0myfile.pbs<\/pre>\n<h3>Generate a Report<\/h3>\n<p>The &#8220;mysuage&#8221; command \u00a0can later be used to generate a usage report containing the special job attributes. First run &#8220;<a title=\"3) Usage and Account Balance\" href=\"\/?p=197\">mybalance<\/a>&#8221; to get the allocation ID. Then use it to generate the report. For example:<\/p>\n<pre>myusage --allocation [id] --display _default,attributes --csv -E name@youremail.com<\/pre>\n<p>will generate a csv report all jobs charged to a particular allocation and email it to the email address. The CVS file can then be imported into a spread sheet such as MS Excel.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this article, you will learn how to assign unique attributes to a job that can later be used for accounting purposes. \u00a0Also see &#8220;myusage&#8221; and &#8220;clui&#8221; Certain optional unique Job Attributes can be specified to the job. They are intended to be used for accounting and job tracking by the user. Later, this information [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[50],"tags":[132,133,58,59,24,134],"class_list":["post-925","post","type-post","status-publish","format-standard","hentry","category-userguideadvanced","tag-accounting","tag-attributes","tag-clui","tag-myusage","tag-reporting","tag-tracking"],"_links":{"self":[{"href":"https:\/\/knowledgebasev.kinsta.cloud\/index.php?rest_route=\/wp\/v2\/posts\/925","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/knowledgebasev.kinsta.cloud\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/knowledgebasev.kinsta.cloud\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/knowledgebasev.kinsta.cloud\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/knowledgebasev.kinsta.cloud\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=925"}],"version-history":[{"count":20,"href":"https:\/\/knowledgebasev.kinsta.cloud\/index.php?rest_route=\/wp\/v2\/posts\/925\/revisions"}],"predecessor-version":[{"id":2018,"href":"https:\/\/knowledgebasev.kinsta.cloud\/index.php?rest_route=\/wp\/v2\/posts\/925\/revisions\/2018"}],"wp:attachment":[{"href":"https:\/\/knowledgebasev.kinsta.cloud\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=925"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/knowledgebasev.kinsta.cloud\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=925"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/knowledgebasev.kinsta.cloud\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=925"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}