Get Detailed Information about a Job

The command nc displays information about a job.

Get Detailed Information About a Job

The command nc getfield also gives information about a job, but in an undecorated form that is in scripts.

nc: Usage Message

NC GETFIELD:
    Get one or all fields of one or more Accelerator jobs.  Specify the jobID
    or use '!' for the most recent job in the current working directory.

    If the -J jobName option is given, only the first match
    is reported.  If there is no match, an error is reported.

OPTIONS:
    -f field     -- Specify field when giving multiple jobIDs.
    -h           -- Help usage message. You can also get the usage message by 
                    specifying no option at all.
    -J JOBNAME   -- Find first job with given JOBNAME. The search is restricted 
                    to the jobs that belong to the current user. This is 
                    significantly more expensive than using jobIds. Use 
                    sparingly.                
    -s           -- Same as -showid.
    -sep STRING  -- Use STRING as separator (default is a single space).
    -showid      -- Show jobId.
    -tab         -- Use a TAB character as separator.
    -v           -- Increase verbosity.

EXAMPLES:
    % nc getfield -h
    % nc getfield 01234455
    % nc getfield 00123445 jobclass
    % nc getfield ! status
    % nc getfield -J JOBNAME
    % nc getfield 01234455 0123458 -f jobclass
    % nc getfield -s 01234455 0123458 -f jobclass
    

Examples:
% nc getfield 00012345 jobclass
normal
% nc getfield 00012345 cputime
7.125
% nc getfield 00012345 
... get list of all known fields (more than 100 of them)...