Professional Documents
Culture Documents
Comandos para Nuevo Networker
Comandos para Nuevo Networker
Anexo unos ejemplos de comandos para reiniciar los workflows, en caso de que fallen
<options>:
[-y retention time] [-t date] [-o destination pool] [-r retries] [-c
client ...]
Salu2
Notes
The first step is to login to the NetWorker server on the command line using the
nsrlogin command with the same credentials as you use to login to the NetWorker
Management Console.When you run the nsrlogin command, the NetWorker host contacts
the NetWorker AuthenticationService to validate the user log in credentials.
The nsrpolicy command has a number of different options available at each level.
Hitting the enter key at each step will give you the full list of available options
for the next part of your command:
nsrpolicy
policy
create | delete | display | update | list
workflow
create | delete | display | update | list
action
create | delete | display | update | list
group
create | delete | display | update
start
Must have: -p [policy] -w [workflow]
Other options (NetWorker 9.2 and above for -c option): -c
{ <client_name1:[save_set_path_1;save_set_path_2],client_name2...> -s [NetWorker
server] -D [debug level] -h
stop
Must have: Either -j [jobid] or -p [policy] -w [workflow]
Other options: -s [NetWorker server] -D [debug level] -h
monitor
Must have: -p [policy]
Other options: -w [workflow] -c [client] -g [group] -d [details] -n
[non-tabular] -j [jobid] -s [NetWorker server] -D [debug level] -h
input-file
Must have: -f [file name]
Other options: [--stop_on_error -S <0/1; default:0 (Do not stop)>]
[--stop_on_error -S <0/1; default:0 (Do not stop)>] -D [debug level] -h
restart
Must have: Either -j [jobid] or -p [policy] -w [workflow]
Other options: -s [NetWorker server] -D [debug level] -h
migrate
Must have what is to be migrated: group | schedule_clone | nas_device
| vmware_policy
Other options: -s [NetWorker server] -D [debug level] -h
help
Disable an action:
nsrpolicy action update [action type backup subtype] -p [policy] -w [workflow] -
A [action] -e no
nsrpolicy action update backup traditional -p FrankHoenikker -w FrankH -A backup
-e no
Add a client to a group using an input file (client instance must already exist):
Create an input file with the text: group update client -g [group] --
add_clnt_list [client]:[saveset]
cat AddAlicetoTheHook.input
group update client -g TheHook --add_clnt_list vm-lego-231:/alice
Create a new workflow with non-default values for comment, start-time and group:
nsrpolicy workflow create -p [policy] -w [workflow] -c [comment] -g [group] -S
[start time]
nsrpolicy workflow create -p Mona -w Papa -c "Workflow for RedHat 6 clients" -g
PapaMgroup -S "10:00"
Create a new action with non-default values for the target pool and success
threshold
nsrpolicy action create [action type backup subtype] -p [policy] -w [workflow] -
A [action] -o [target pool] -u [success threshold]
nsrpolicy action create backup traditional -p Mona -w Papa -A papabackup -o
SanLorenzoDDPool -u success
Start a workflow (Note that you cannot start an action in this way. You must start
the entire workflow).
nsrpolicy start -p [policy] -w [workflow]
nsrpolicy start -p Mona -w Mona_wf
Stop a workflow (you can get relevant jobid using the 'nsrpolicy monitor' comand -
see below):
nsrpolicy stop -j [jobid]
nsrpolicy stop -j 320819