NetWorker command: nsrtask
NAME
nsrtask - execute an action based on a NetWorker nsr_task resource
SYNOPSIS
nsrtask [ options ] [ -C ] [ -v ] [ -D debuglevel ] task
DESCRIPTION
The nsrtask program executes actions on a periodic basis. It is nor-
mally run automatically by nsrd(8) as specified by a nsr_task(5)
resource.
The nsrtask program will query the NetWorker server for a nsr_task
resource with the same name as passed on its command line. From that
resource, nsrtask will access the action attribute and the plan
attribute. The value of the plan attribute is used to determine if the
action should be executed or skipped based on the current day of the
period (see nsr_task(5)). The value of the action attribute is used
to determine what actions to take to perform the task.
The nsrtask command will setup an RPC connection to nsrjobd(8) to
request execution of any commands related to the entries in the action
attribute. This attribute contains the type and name of the command
resource to use for task execution and the exact processing of a task
is dependent upon the command resource type.
OPTIONS
-C Causes nsrtask to check the plan attribute to determine if it
should run or not.
-v Increments the verbosity level of the output. This option can be
provided multiple times and its effects are additive.
-D Sets the debug level.
-? Prints the usage statement.
task Specifies the NetWorker task resource to execute.
RESOURCE TYPES
NSR task The attribute plan determines whether the task's actions
are executed or skipped. The attribute action determines
what command resources are to be used for execution.
FILES
/nsr/logs/nsrtask.raw Log file containing messages from running
the nsrtask program.
SEE ALSO
nsr_service(5), nsr_hypervisor(5), nsr_task(5), nsr_resource(5), nsr(8)
nsradmin(8), nsrjobd(8), nsrvim(8).
NetWorker 7.5.1 Mar 21, 09