The bpstudel command deletes a NetBackup storage unit or storage unit group. The command must include either a label name for the storage unit or a group name for the storage unit group, but not both.
If bpstudel cannot delete the storage unit (for example, the storage unit label is mistyped), it does not return an error message. You can run bpstulist to verify that the storage unit was deleted.
Errors are sent to
stderr
. A log of the command's
activity is sent to the NetBackup admin log file for the current
day.
See the NetBackup Administrator's Guide for additional information on storage units.
Any authorized user can run this command.
For more information about NetBackup authorization, refer to the NetBackup Security and Encryption Guide.
The name of the storage unit. This option is required. The maximum length for a storage-unit label is 128 characters.
Deletes the specified storage unit group the name. If this option is present, the named storage unit group is deleted.
Runs this command on each of the master servers in this list. This list is a comma-separated list of master servers. The master servers must allow access by the system that issued the command. If an error occurs for any master server, the process stops at that point. The default is the master server for the system where the command is entered.
Selects the verbose mode for logging. This mode is meaningful only when you run with the debug log function on (that is, when the following directory is defined):
Windows systems: install_path\NetBackup\logs\admin
Delete the storage unit named tst.dsk and list the existing storage units before and after the deletion:
# bpstulist
Windows systems: stuunit 0 mango 0 -1 -1 1 0 C:\tmp\stuunit 1 1 2000 *NULL* tst.dsk 0 mango 0 -1 -1 3 0 C:\hsm3\dsk/ 1 1 2000 *NULL*
# bpstudel -label tst.dsk # bpstulist
Windows systems: stuunit 0 mango 0 -1 -1 1 0 C:\tmp\stuunit 1 1 2000 *NULL*