#man NSRGRPCOMP

NAME

nsrsgrpcomp − savegrp completion query program

SYNOPSIS

nsrsgrpcomp

[ −s server ] groupname

nsrsgrpcomp

[ −s server ] −L [ groupname ]

nsrsgrpcomp

[ −s server ] [ -HNaior ] [ −b num_bytes | −l num_lines ] [ −c clientname ] [ −n jobname ] [ −t start_time ] groupname

nsrsgrpcomp

[ −s server ] −R jobid

DESCRIPTION

The nsrsgrpcomp command is a command-line based program used to query the NetWorker server’s jobs database and the savegrp log files in order to display a savegrp completion report. The jobs database is maintained by the nsrjobd (1m) daemon and can alternatively be queried using the jobquery (1m) command. The savegrp log files are located on the NetWorker server machine in /nsr/logs/sg/<group_name> directory.

OPTIONS

−H

Print summary headers ie "status:level:name" lines.

−L

List the savegroup job records currently present in the jobs database. This is useful if one desires to query savegrp completion for a previous run of savegrp (see -t option). By default nsrsgrpcomp queries the latest run.

−N

Do not prefix job output or job indications. By default job output and indications are prefixed with <clientname>:<save_set>.

−R jobid

Retrieve output generated by job jobid during group run.

−a

Include information about all the jobs that are linked to the specified group run. By default, only jobs that were created by the savegrp are included.

−b num_bytes

Include at most the last num_bytes bytes of output per job. Do not include truncated lines. A num_bytes value of −1 means include all output.

−c clientname

Include only jobs from client clientname

−i

Include job indications.

−l num_lines

Include at most the last num_lines lines of output per job. A num_lines value of −1 means include all output.

−n jobname

Include only jobs named jobname in the result. Typically save jobs started by savegrp are named after the save set they attempt to save (for example, /bigspace). The savefs, index and bootstrap jobs are named clientname:savefs, clientname:index and clientname:bootstrap respectively.

−o

Include job output. Use −b or −l to modify the amount of output included. Specifying −o alone is equivalent to ’−o −b 2048’.

−r

Include retry attempts for specified jobs. By default only the last attempt is displayed.

−s server

Specify which machine to use as the NetWorker server.

−t start_time

This option is used to specify which instance of a savegrp run to query. See option -L to obtain group start time. By default nsrsgrpcomp queries the latest instance.

EXAMPLES

Display savegrp completion report.

nsrsgrpcomp group1

The above command is equivalent to

nsrsgrpcomp −H −i −o −b 2048 group1

Display savegrp completion report from a specific server.

nsrsgrpcomp -s bar.com group1

List all savegroup records presently in jobs database

nsrsgrpcomp −L

List savegroup records for group ’groupname’ presently in jobs database

nsrsgrpcomp −L groupname

Display savegrp completion report for group ’groupname’ started at time ’start_time’.

nsrsgrpcomp −t start_time groupname

Display only information about a specific client.

nsrsgrpcomp −c foo.com group1

The above command is equivalent to

nsrsgrpcomp −H −i −o −b 2048 -c foo.com group1

Display only information about a specific save set.

nsrsgrpcomp −c bar.com −n "C:\Temp" group1
nsrsgrpcomp −c bar.com −n C:\\Temp group1
nsrsgrpcomp -n foo.com:index group1
nsrsgrpcomp −c foo.com −n /bigspace group1

The above command is equivalent to

nsrsgrpcomp −H −i −o −b 2048 −c foo.com −n /bigspace group1

Display only summary headers.

nsrsgrpcomp −H group1

Display at most last 50 lines of output for a specific save set

nsrsgrpcomp −l 50 −c foo.com −n /bigspace group1

Display at most last 1024 bytes of output for a specific save set

nsrsgrpcomp −b 1024 −c foo.com −n /bigspace group1

NOTE:

−b option does not include partial lines so this will likely result in less than 1024 bytes of output from the job.

Display output from a specific save set without prefix

nsrsgrpcomp −N −l 50 −c foo.com −n /bigspace group1

SEE ALSO

nsrjobd(1m), savegrp(1m), jobquery(1m).