Chat now with support
지원 담당자와 채팅

NetVault Backup 12.4 - CLI Reference Guide

Introduction Getting started Using the command-line utilities Using the nvreport utility

nvresetdrivestats

Resets the statistics for a drive.

-servername

Specifies the name of the NetVault Backup Server that administers the job.

This option is required when a remote server administers the job. It can be omitted when a local server administers the job. The server name is case‑sensitive.

-libraryname

Specifies the name of the target library.

-drivename

Specifies the name of the target drive.

-drivenumber

Specifies the drive number of the target drive.

-action

Specifies the action that you want to perform. It can be:

drive: Resets only drive statistics.
clean: Resets only drive cleaning statistics.
all: Resets all statistics for the specified drive.
The option -drivename or -drivenumber must be used with ‑libraryname to specify the target drive.

nvscandrives

Displays drives that are available on a local or remote NetVault Backup Server or Client. The output does not include drives that are added as shared devices.

The output of this command provides the drive path as it appears on the WebUI. It can be used to add a drive to an existing library configuration using the nvlibrarymodify utility. For more information about this utility, see nvlibrarymodify.

Table 29. nvscandrives

-servername

Specifies the name of the NetVault Backup Server that administers the job.

This option is required when a remote server administers the job. It can be omitted when a local server administers the job. The server name is case‑sensitive.

-clientname

Use this option to view the drives attached to a NetVault Backup Client. If you do not provide the client name, the drives available on the server are displayed.

-filername

Use this option view the drives attached to an NDMP filer.

nvsetcleaninglives

Sets the number of lives for a cleaning tape in the specified library.

Before running the nvsetcleaninglives command, verify that the slot that you want to use is configured as a Cleaning Slot and a cleaning tape is placed in the slot. For more information about setting a cleaning slot, see the Quest NetVault Backup Administrator's Guide.

-servername

Specifies the name of the NetVault Backup Server that administers the job.

This option is required when a remote server administers the job. It can be omitted when a local server administers the job. The server name is case‑sensitive.

-libraryname

Specifies the name of the target library.

-slotnumber

Specifies the cleaning slot number in the library.

-lives

Specifies the number of lives for the cleaning tape.

nvsetdrivecleaning

Sets cleaning cycle for the specified library.

-libraryname

Specifies the name of the target library.

-librarydrivenumber

Specifies the drive number of the drive for which the cleaning cycle has to be set.

-days

Specifies the maximum number of days the drive can be used before a clean cycle.

-dataxfersize

Specifies the maximum amount of data that be transferred before a clean cycle.

-hours

Specifies the maximum number of hours that the drive can be used until a clean cycle.

-rwerrors

Specifies the maximum number of read/write errors that can occur before a clean cycle.

-displayonly

Displays the current settings for the specified drive.

Without the -selectionstate option, the -displayonly option does not show if the settings are being used.

Example:

nvsetdrivecleaning -libraryname “LIB1” -librarydrivenumber 2 ‑displayonly

Output:

Days = 22

Data Transferred (Gb) = 22

Hours of Use = 40

Soft Read/Write Errors (x100) = 1

-selectionstate

Displays selection state of the options (that is, TRUE or FALSE depending on if the option is selected in the WebUI). This option must be used with -displayonly.

Example:

nvsetdrivecleaning -libraryname “LIB1” -librarydrivenumber 2 ‑displayonly -selectionstate

Output:

TRUE Days = 22

FALSE Data Transferred (Gb) = 22

TRUE Hours of Use = 40

FALSE Soft Read/Write Errors (x100) = 1

관련 문서