0% found this document useful (0 votes)
11 views4 pages

Commands 742

Uploaded by

sp163
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views4 pages

Commands 742

Uploaded by

sp163
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

NetWorker - Commands Release 7.4.

2 , page 1/4

04/30/08 / cr

The Most Important NetWorker 7.4.2 Commands

1. General Commands
Function UNIX / Linux Windows
Starting the daemons
- all .../init.d/networker start net start nsrd
- only the server daemons
- only the client daemon nsrexecd [-s server] net start nsrexecd
Stopping the daemons .../init.d/networker stop
net stop nsrexecd
nsr_shutdown [-a] [-q]

Starting the NMC server .../init.d/gstd start net start gstd


Stopping the NMC Server .../init.d/gstd stop net stop gstd

Starting the Administrator GUI


- new (NMC) http://gst_server:9000 http://gst_server:9000
- old (if available) nwadmin [-s server] & nwadmin [-s server]
Starting the command line nsradmin [-s server] nsradmin [-s server]
administrator interface
Starting the command line nsrwatch [-s server]
monitoring tool

Searching all SCSI devices,


(OS dependant)
- all /etc/LGTOuscsi/inquire inquire
- only tape drives tapes
- only autochangers changers changers
Installing a jukebox or a silo
library jbconfig jbconfig
(to be executed at the host
which controls the robot)
NetWorker - Commands Release 7.4.2 , page 2/4

04/30/08 / cr

2. Save and Recovery of Client Data


Function UNIX / Linux Windows
Starting a client-initiiated
backup
- preview save [-s server] -n path save [-s server] -n path
- "hot" run save [-s server] path save [-s server] path
- "hot" run using a certain save [-s server] -b pool save [-s server] -b pool
pool path path
- "hot" run and setting the save [-s server] save [-s server]
browse- & retention- -w "browse_date" -w "browse_date"
policies -e "retention_date" -e "retention_date"
pfad pfad
Starting the backup GUI winworkr [-s server]
Backup
Starting the recover GUI winworkr [-s server]
nwrecover [-s server] &
Recover

Start of a server-initiiated
backup
- preview savegrp -p -G group savegrp -p -G group
- "hot" run savegrp -G group savegrp -G group
- "hot" run with a certain savegrp -l level -G group savegrp -l level -G group
level
- "hot" restart of a group savegrp -R group savegrp -R group
Start the backup GUI nwadmin [-s server] & nwadmin [-s server]
- start a group Group Control - Start Manage Groups - Start
- restart a group Group Control - Restart Manage Groups - Restart

Start the command line


recovery
- interactive mode recover [-s server] recover [-s server]
- a whole save set recover [-s server] recover [-s server]
-S ssid[/cloneid] -S ssid[/cloneid]
- certain files of a save set recover [-s server] recover [-s server]
recovery -S ssid[/cloneid] -S ssid[/cloneid]
-a path -a path
- directed recovery recover [-s server] recover [-s server]
-c source_client -c source_client
-R dest_client -R dest_client
-i [yYnNrR]
Start the GUI recovery
- single files nwrecover [-s server] & winworkr [-s server]
Options – Recover Files Recover
- a whole save set nwrecover [-s server] & winworkr [-s server]
Options – Recover Save Sets Operation - Save Set Recover
- directed recovery nwrecover [-s server] & winworkr [-s server]
Options – Recover Files Operation - Directed Recover
NetWorker - Commands Release 7.4.2 , page 3/4

04/30/08 / cr

3. Database Manipulations
Function File Index Media Index
Query the size nsrls nsrls -m
Query the contents nsrinfo mminfo -q "query"
nsrinfo client_name -r "report"
The most important mminfo
reports
- all browsable backups since mminfo
the last 24 hours...
- ...with added verbosity mminfo -v
- all save sets mminfo -a [-v]
- media report mminfo -m [-v]
- bootstrap report mminfo -B [-v]
- summary mminfo -X
Check the databases nsrck
nsrck -X
nsrck -L#
Delete information from...
a save set nsrmm -dP -S ssid[/cloneid] nsrmm -d -S ssid[/cloneid]
a volume id nsrmm -dP -V volid nsrmm -d -V volid
a volume nsrmm -dP volume nsrmm -d volume
Adjusting the browse/retention nsrmm -w "browse_date"
policies after a backup -e "retention_date"
-S ssid
Clone
- a save set nsrclone -S ssid[/cloneid]
- a volume id nsrclone -V volid
- a volume nsrclone volume
Stage
- a save set nsrstage -S ssid[/cloneid]
- a volume nsrstage -V volume
Change the status of
- a save set nsrmm -o mode
-S ssid[/cloneid]
- a volume id nsrmm -o mode -V volid
- a volume nsrmm -o mode volume
Adding older database entries
- whole volumes scanner -i device scanner -m device
- certain save sets nsrmm –e new_retention_time useless
(and all clones, if such -S ssid/cloneid
exist) nsrmm –o notrecyclable
‹ -S ssid/cloneid
scanner -i -S ssid device

Search and report the last scanner -B device


bootstrap on this media
Search and report all scanner -Bv device [>file]
bootstraps on this media [2>&1]

Recover an expired file index first prepare the save set (see above ‹)
for a client nsrck –t time client
Recover a whole file index
- for a specific client nsrck -L7 client
- for all clients nsrck -L7
Recover the media dabase mmrecov [-N] [–NF]
NetWorker - Commands Release 7.4.2 , page 4/4

04/30/08 / cr

4. Jukebox Commands
To be executed at the host which controls the robot!

Function UNIX / Linux Windows


Initialize the jukebox nsrjb -HE nsrjb -HE
Query the jukebox database nsrjb -C nsrjb -C
Show the last 100 commands nsrjb -h nsrjb -h
Inventory all slots nsrjb -I nsrjb -I
Inventory certain slots nsrjb -I -S from#-to# nsrjb -I -S from#-to#
Load a media
- by volume name nsrjb -l volume nsrjb -l volume
- by slot number nsrjb -l -S slot# nsrjb -l -S slot#
- into a certain drive nsrjb -l -S slot# -f device nsrjb -l -S slot# -f device
Label a media
- into a certain pool nsrjb -L -S slot# -b pool nsrjb -L -S slot# -b pool
- into a certain pool with nsrjb -L -S slot# -b pool nsrjb -L -S slot# -b pool
another name volume_name volume_name
Label multiple media
- into a certain pool nsrjb -L -S from#-to# nsrjb -L -S from#-to#
-b pool -b pool
Recycle
- a single media nsrjb -R -S slot# nsrjb -R
-S slot#
nsrjb -R volume nsrjb -R
volume
- certain slots nsrjb -R -S from#-to# nsrjb -R
-S from#-to#
Deposit media from a CAP into nsrjb -d -S from#-to# nsrjb -d
-S from#-to#
the jukebox -P from#-to# -P from#-to#
Withdraw media from the nsrjb -w -S from#-to# nsrjb -w -S from#-to#
jukebox into the CAP -P from#-to# -P from#-to#

5. nsr_render_log parameters

Filter Parameter Output Parameter


-A activityID Output messages matching this activityID(s) -a Do not output the activity ID
-B startline Output m. only starting with this number -c Do not output the category
-C category Output m. matching this category(s) (e.g. -d Do not output the timestamp
RAP, RPC)
-E endtime Do not output messages later than endtime -e Do not output the error number
-F devicename Output m. only if they reference to device(s) -h Do not output the hostname
-G groupname Output messages only if they reference to -l Output the header information line
groupname(s) before the log output
-H hostname Output m. only if originated by hostname(s) -m Do not output the messageID
-J hostname Output m. only if referenced to hostname(s) -o Do not output the program name
-L locale Output messages in the specified locale -p Do not output the processID
-M messageID Output messages matching this messageID -r Do a catalog look up on a remote host
-N lines Output messages up to the number of lines (needs to be specified along with -R)
-O program Output m. only if referenced to program(s) -t Do not output the threadID
-P processID Output messages matching this process(es) -y Do not output the severity
-R hostname Reads *.raw file from remote hostname -z Obfuscate secure information
-S starttime Do not output messages earlier than starttime Hostnames, usernames and network
-T threadID Output messages matching this threadID(s) addresses shall be aliased
-Y severity Output messages with at least this severity

You might also like