Você está na página 1de 4

NetWorker Command Overview

Release 7.5 , page 1/4

07.03.09 / cr

The Most Important NetWorker 7.5 Commands


1. General Commands
Function
Starting the daemons - all - only the server daemons - only the client daemon Stopping the daemons

UNIX / Linux
.../init.d/networker start nsrexecd [-s server] .../init.d/networker stop nsr_shutdown [-a] [-q]

Windows
net start nsrd net start nsrexecd net stop nsrexecd

Starting the NMC server Stopping the NMC Server

.../init.d/gstd start .../init.d/gstd stop

net start gstd net stop gstd

Starting the Administrator GUI - new (NMC) - old (if available) Starting the command line administration tool Starting the command line monitoring tool

http://gst_server:9000 nwadmin [-s server] & nsradmin [-s server] nsrwatch [-s server]

http://gst_server:9000 nwadmin [-s server] nsradmin [-s server]

Searching all SCSI devices, (OS dependant) - all - only tape drives - only autochangers Installing a jukebox or a silo library (to be executed at the host which controls the robot)

/etc/LGTOuscsi/inquire changers jbconfig

inquire tapes changers jbconfig

NetWorker Command Overview

Release 7.5 , page 2/4

07.03.09 / cr

2. Backup and Recovery of Client Data


Function
Starting a client-initiiated backup - preview - "hot" run - "hot" run using a certain pool - "hot" run and setting the browse- & retentionpolicies Starting the backup GUI Starting the recover GUI nwrecover [-s server] &

UNIX / Linux
save [-s server] -n path save [-s server] path save [-s server] -b pool path save [-s server] -w "browse_date" -e "retention_date" pfad

Windows
save [-s server] -n path save [-s server] path save [-s server] -b pool path save [-s server] -w "browse_date" -e "retention_date" pfad winworkr [-s server] Backup winworkr [-s server] Recover

Start of a server-initiiated backup - preview - "hot" run - "hot" run with a certain level - "hot" restart of a group In the NMC/Admin GUI - start a group - restart a group

savegrp -p -G group savegrp -G group savegrp -l level -G group savegrp -R group Monitoring - Groups - Start Monitoring - Groups - Start

savegrp -p -G group savegrp -G group savegrp -l level -G group savegrp -R group Monitoring - Groups - Start Monitoring - Groups - Start

Start the command line recovery - interactive mode - a whole save set - certain files of a save set recovery - directed file recovery

recover [-s server] recover [-s server] -S ssid[/cloneid] recover [-s server] -S ssid[/cloneid] -a path recover [-s server] -c source_client -R dest_client recover [-s -R -i -S server] dest_client [yYnNrR] ssid

- directed save set recovery

recover [-s server] recover [-s server] -S ssid[/cloneid] recover [-s server] -S ssid[/cloneid] -a path recover [-s server] -c source_client -R dest_client -i [yYnNrR] recover [-s server] -R dest_client -i [yYnNrR] -S ssid winworkr Recover winworkr Operation winworkr Operation [-s server] [-s server] - Save Set Recover [-s server] - Directed Recover

Start the GUI recovery - single files - a whole save set - directed recovery

nwrecover [-s server] & Options Recover Files nwrecover [-s server] & Options Recover Save Sets nwrecover [-s server] & Options Recover Files

NetWorker Command Overview

Release 7.5 , page 3/4

07.03.09 / cr

3. Database Manipulations
Function
Query the size Query the contents

File Index
nsrls nsrinfo nsrinfo client_name

Media Index
nsrls -m mminfo -q "query" -r "report"

The most important mminfo reports - all browsable backups since the last 24 hours... - ...with added verbosity - all save sets - media report - bootstrap report - summary nsrck Check the databases nsrck Delete information from... nsrmm a save set nsrmm a volume id nsrmm a volume Adjusting the browse/retention policies after a backup Synchronizing AFTD with AFTD/VTL volumes Clone - a save set - a volume id - a volume Stage - a save set - a volume Change the status of - a save set - a volume id - a volume Adding older database entries - whole volumes - certain save sets (and all clones, if such exist)

mminfo mminfo mminfo mminfo mminfo mminfo -L# -dP -S ssid[/cloneid] -dP -V volid -dP volume -v -a [-v] -m [-v] -B [-v] -X

nsrck -X nsrmm nsrmm nsrmm nsrmm -d -d -d -w -e -S nsrmm x nsrmm x -S ssid[/cloneid] -V volid volume "browse_date" "retention_date" ssid source_vol dest_vol V s_volid dest_vol

nsrclone -S ssid[/cloneid] nsrclone -V volid nsrclone volume nsrstage -S ssid[/cloneid] nsrstage -V volume nsrmm -o mode -S ssid[/cloneid] nsrmm -o mode -V volid nsrmm -o mode volume scanner -i device nsrmm e new_retention_time -S ssid/cloneid nsrmm o notrecyclable -S ssid/cloneid scanner -i -S ssid device scanner -m device useless

Search and report the last bootstrap on this media Search and report all bootstraps on this media Recover an expired file index for a client Recover a whole file index - for a specific client - for all clients Recover the media dabase first prepare the save set (see above ) nsrck t time client nsrck -L7 client nsrck -L7

scanner -B device scanner -Bv device [>file] [2>&1]

mmrecov [-N] [NF]

NetWorker Command Overview

Release 7.5 , page 4/4

07.03.09 / cr

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

Function
Initialize the jukebox Query the jukebox database Show the last 100 commands Inventory all slots Inventory certain slots Load a media - by volume name - by slot number - into a certain drive Label a media - into a certain pool - into a certain pool with another name Label multiple media - into a certain pool Recycle - a single media nsrjb nsrjb nsrjb nsrjb nsrjb

UNIX / Linux
-HE -C -h -I -I -S from#-to# nsrjb nsrjb nsrjb nsrjb nsrjb

Windows
-HE -C -h -I -I -S from#-to#

nsrjb -l volume nsrjb -l -S slot# nsrjb -l -S slot# -f device nsrjb -L -S slot# -b pool nsrjb -L -S slot# -b pool volume_name nsrjb -L -S from#-to# -b pool -R -R -R -d -S slot# volume -S from#-to# -S from#-to# -P from#-to# -w -S from#-to# -P from#-to#

nsrjb -l volume nsrjb -l -S slot# nsrjb -l -S slot# -f device nsrjb -L -S slot# -b pool nsrjb -L -S slot# -b pool volume_name nsrjb -L -S from#-to# -b pool nsrjb nsrjb nsrjb nsrjb -S slot# volume -S from#-to# -S from#-to# -P from#-to# nsrjb -w -S from#-to# -P from#-to# -R -R -R -d

nsrjb nsrjb nsrjb - certain slots Deposit media from a CAP into nsrjb the jukebox nsrjb Withdraw media from the jukebox into the CAP

5. nsr_render_log parameters
Filter Parameter
-A activityID -B startline -C category -E endtime -F devicename -G groupname -H -J -L -M -N -O -P -R -S -T -Y hostname hostname locale messageID lines program processID hostname starttime threadID severity Output messages matching this activityID(s) Output m. only starting with this number Output m. matching this category(s) (e.g. RAP, RPC) Do not output messages later than endtime Output m. only if they reference to device(s) Output messages only if they reference to groupname(s) Output m. only if originated by hostname(s) Output m. only if referenced to hostname(s) Output messages in the specified locale Output messages matching this messageID Output messages up to the number of lines Output m. only if referenced to program(s) Output messages matching this process(es) Reads *.raw file from remote hostname Do not output messages earlier than starttime Output messages matching this threadID(s) Output messages with at least this severity -a -c -d -e -h -l -m -o -p -r -t -y -z

Output Parameter
Do not output the activity ID Do not output the category Do not output the timestamp Do not output the error number Do not output the hostname Output the header information line before the log output Do not output the messageID Do not output the program name Do not output the processID Do a catalog look up on a remote host (needs to be specified along with -R) Do not output the threadID Do not output the severity Obfuscate secure information Hostnames, usernames and network addresses shall be aliased

Você também pode gostar