Hp D2D2503I Smartbuy Backup System Cli Reference Guide StoreOnce Single Node And Multi
Hp-D2D2502I-Backup-System-Cli-Reference-Guide-156507 hp-d2d2502i-backup-system-cli-reference-guide-156507
2015-01-05
: Hp Hp-D2D2503I-Smartbuy-Backup-System-Cli-Reference-Guide-156513 hp-d2d2503i-smartbuy-backup-system-cli-reference-guide-156513 hp pdf
Open the PDF directly: View PDF .
Page Count: 178
HP StoreOnce Backup System Single-node
and Multi-node CLI Reference Guide
Abstract
This document details the set of operations supported by the Common CLI. This command set defines the instructions used to
obtain information about a StoreOnce Backup system appliance or to control the appliance’s activity. It is intended for system
administrators managing a single or multi-node HP StoreOnce Backup System.
IMPORTANT: This guide may have more recent updates. Always check http://www.hp.com/support/manuals for the most
up-to-date documentation for your product.
*BB852-90942*
HP Part Number: BB852-90942
Published: June 2013
Edition: Fifth
© Copyright 2011–2013 Hewlett-Packard Development Company, L.P.
Confidential computer software. Valid license from HP required for possession, use or copying. Consistent with FAR 12.211 and 12.212, Commercial
Computer Software, Computer Software Documentation, and Technical Data for Commercial Items are licensed to the U.S. Government under
vendor's standard commercial license.
The information contained herein is subject to change without notice. The only warranties for HP products and services are set forth in the express
warranty statements accompanying such products and services. Nothing herein should be construed as constituting an additional warranty. HP shall
not be liable for technical or editorial errors or omissions contained herein.
Acknowledgments
Intel®, Itanium®, Pentium®, Intel Inside®, and the Intel Inside logo are trademarks or registered trademarks of Intel Corporation or its subsidiaries
in the United States and other countries.
Microsoft®, Windows®, Windows® XP, and Windows NT® are U.S. registered trademarks of Microsoft Corporation.
Adobe® and Acrobat® are trademarks of Adobe Systems Incorporated.
Java and Oracle are registered trademarks of Oracle and/or its affiliates.
UNIX® is a registered trademark of The Open Group.
Warranty
WARRANTY STATEMENT: To obtain a copy of the warranty for this product, see the warranty information website:
http://www.hp.com/go/storagewarranty
Revision History
Revision 1
October 2012
Single-node version only. Initial release on product CD
Revision 2
December 2012
Single-node version only. Minor text updates for release to the HP website. Part number: BB852-90924
Revision 4
October 2012
Multi-node version only. Part number: EJ022-90969
Revision 5
June 2013
Combined Single and Multi-node versions. Part number: BB852-90942
Contents
1 Using the CLI.............................................................................................6
Introduction..............................................................................................................................6
Accessing the CLI.....................................................................................................................6
Command Entry.......................................................................................................................7
Viewing Help...........................................................................................................................7
Transferring Files.......................................................................................................................7
Scripting..................................................................................................................................7
2 Command Instruction Syntax........................................................................8
Global Defaults........................................................................................................................9
3 Categorical List of Commands....................................................................10
4 Alphabetical List of Commands and Details.................................................13
accounts add.........................................................................................................................13
accounts del..........................................................................................................................15
accounts modify.....................................................................................................................16
accounts show.......................................................................................................................17
alerts show............................................................................................................................18
config delete..........................................................................................................................19
config restore devices..............................................................................................................20
config save devices.................................................................................................................22
config show list......................................................................................................................23
exit.......................................................................................................................................24
hardware add storage.............................................................................................................25
hardware beacon...................................................................................................................26
hardware delete storage..........................................................................................................27
hardware disable failover........................................................................................................29
hardware discover storage.......................................................................................................30
hardware enable failover.........................................................................................................31
hardware failback..................................................................................................................32
hardware failover...................................................................................................................33
hardware poweroff.................................................................................................................34
hardware powerup.................................................................................................................36
hardware prepare storage.......................................................................................................37
hardware reboot....................................................................................................................38
hardware set ports..................................................................................................................39
hardware show net status........................................................................................................40
hardware show node status......................................................................................................42
hardware show problems........................................................................................................43
hardware show status..............................................................................................................44
hardware show storage status..................................................................................................47
help......................................................................................................................................48
license add............................................................................................................................50
license load...........................................................................................................................51
license show..........................................................................................................................52
logs show events....................................................................................................................53
net activate config..................................................................................................................55
net add subnet.......................................................................................................................56
net copy config......................................................................................................................58
net create config.....................................................................................................................59
net delete config.....................................................................................................................61
net delete subnet....................................................................................................................62
Contents
3
net modify config...................................................................................................................63
net modify subnet...................................................................................................................65
net ping................................................................................................................................67
net set config.........................................................................................................................68
net set wizard........................................................................................................................70
net show config......................................................................................................................73
net show config......................................................................................................................75
net show config list.................................................................................................................77
net show ports........................................................................................................................78
net show status.......................................................................................................................79
net validate config..................................................................................................................80
serviceset show status..............................................................................................................81
serviceset start........................................................................................................................82
serviceset stop........................................................................................................................83
snmp add trapsink .................................................................................................................84
snmp add user.......................................................................................................................87
snmp del trapsink ..................................................................................................................89
snmp del user........................................................................................................................90
snmp disable.........................................................................................................................91
snmp enable..........................................................................................................................92
snmp modify trapsink..............................................................................................................93
snmp modify user...................................................................................................................95
snmp reset ro-community.........................................................................................................97
snmp set contact.....................................................................................................................98
snmp set location....................................................................................................................99
snmp set ro-community..........................................................................................................100
snmp show config.................................................................................................................101
snmp show user....................................................................................................................103
support create ticket..............................................................................................................104
support del ticket..................................................................................................................105
support show ticket...............................................................................................................106
system clear packages...........................................................................................................107
system clear repository..........................................................................................................108
system disable failover..........................................................................................................109
system enable failover...........................................................................................................110
system load packages...........................................................................................................111
system reboot.......................................................................................................................112
system set clioutput................................................................................................................113
system set config...................................................................................................................114
system set description............................................................................................................121
system set pagecontrol..........................................................................................................122
system show config...............................................................................................................123
system show packages..........................................................................................................124
system show repository..........................................................................................................125
system show status................................................................................................................126
system shutdown...................................................................................................................128
system update packages........................................................................................................129
time add ntpserver................................................................................................................130
time del ntpserver.................................................................................................................132
time reset timezone...............................................................................................................133
time set timezone..................................................................................................................134
time set UTC........................................................................................................................136
time show config..................................................................................................................137
vtl create cartridge................................................................................................................138
vtl create library...................................................................................................................140
4
Contents
vtl
vtl
vtl
vtl
vtl
vtl
vtl
vtl
vtl
vtl
vtl
vtl
vtl
vtl
delete cartridge................................................................................................................144
delete library...................................................................................................................146
modify cartridge...............................................................................................................148
modify drive....................................................................................................................150
modify library..................................................................................................................152
move cartridge.................................................................................................................156
show capacity..................................................................................................................158
show cartridges................................................................................................................160
show drive info.................................................................................................................162
show drive list..................................................................................................................164
show library info..............................................................................................................166
show library iscsi authentication.........................................................................................169
show library list................................................................................................................170
show ports.......................................................................................................................171
5 Support and other resources....................................................................173
Contacting HP......................................................................................................................173
Related information...............................................................................................................173
Websites........................................................................................................................173
Typographic conventions.......................................................................................................173
Documentation feedback.......................................................................................................174
Glossary..................................................................................................175
Index.......................................................................................................177
Contents
5
1 Using the CLI
Introduction
The Common CLI Command Set provides a method of communication with the StoreOnce appliance
which is intuitive, consistent, and easy to use. The command set is broad in scope so that once
learned, you can use it with the entire StoreOnce portfolio of products.
The commonality of the CLI command set means that some unsupported commands will be present
in the CLI inline help (commands that are not applicable your appliance or are accessible through
a different CLI command). Any unsupported commands that are executed will return the failure
message: Command Failed - This command is not supported on this system.
You control the StoreOnce appliance by entering a command sequence using a specific grammar
and syntax. The operation defined by the command sequence is executed, and any output associated
with the operation is displayed in text or XML output (depending on the configuration settings).
When the operation is complete, the command prompt is displayed and you can enter the next
command sequence.
Command sequences are grouped by function. For example, commands related the network
configuration are in one group. This makes it easy to determine the correct command sequence
for a given operation. See “Categorical List of Commands” (page 10) for details.
Authorization levels are set for each user account to control what commands a user can perform.
This enables users to perform appropriate operations but prevents them from executing actions for
which they are not qualified; see “Accessing the CLI” (page 6).
Accessing the CLI
The CLI software embedded in the appliance enables you to manage and monitor storage-system
operation. For single-node products, you can access the CLI from an SSH terminal using an SSH
client application (freely available on the internet). For multinode products, you can access the CLI
from an SSH terminal connected to the master node using an SSH client application (freely available
on the internet). The CLI is running on the management console:
ssh @
The Common CLI instruction set supports different authorization levels that permit execution of
different subsets of commands. Each authorization level has a unique command prompt. The
accounts in Table 1 (page 6) are created at the time of the StoreOnce system installation, and
the Administrator can create additional users at any time.
Table 1 Login Information
6
Authorization Level
Can Execute
Operator
Administrator
Using the CLI
User Name
Password
Command Prompt
Commands that
Operator
provide information
about the state and
configuration of the
StoreOnce appliance
but no commands that
change the
configuration.
operator
>
Commands that
provide information
about the state and
configuration of the
StoreOnce appliance
plus commands that
configure or change
the configuration of
admin
#
Admin
Table 1 Login Information (continued)
Authorization Level
Can Execute
User Name
Password
Command Prompt
the StoreOnce
appliance.
Command Entry
Upon log in, the cursor appears after the command prompt. Instruction entry elements are placed
after the prompt by entering the appropriate characters and symbols. Pressing the enter key directs
the Common CLI to interpret the instruction entry and perform the defined operation. Once the
operation is completed, the command prompt is displayed and another instruction may be entered.
Prior to pressing the enter key, the text after the command prompt can be edited using the delete,
backspace, right and left arrow keys. In addition, the up and down arrow key are used to scroll
through the previously entered command sequences; you can then edit and enter a previous
command sequence. This speeds the entry when entering multiple instances of similar command
sequences.
Viewing Help
To view brief descriptions of all global commands and commands that are available to the current
user level, enter:
help
You can also include a command or command group after help to see help specific to that
command or command group.
To assist in using the Common CLI, the following help features exist:
•
If you enter a correct command sequence but use incorrect syntax, information on the correct
syntax will be displayed.
•
If you enter an invalid command sequence, information on valid permutations of the command
elements will be displayed.
Transferring Files
Transfer of files to and from the StoreOnce appliance is managed with a repository directory within
the appliance. Access to the directory is controlled via the secure FTP.
Scripting
Scripting is performed via Expect, a UNIX automation and testing tool. To aid in parsing, the
Common CLI can be configured to return XML formatted output.
Command Entry
7
2 Command Instruction Syntax
A StoreOnce appliance is controlled by operations. An operation is one or more of the following
events:
•
Providing configuration information to the appliance
•
Requesting an action
•
Obtaining information about the appliance
The execution of operations is initiated by instructions. The instruction entry consists of three parts:
•
The command sequence — up to four command elements representing groups of related
operations, actions, or subjects of the action. A command sequence is unique and there is a
defined syntax for every command sequence. The command sequence must be present in all
entries to define the instruction.
A typical command sequence consists of a command element defining the group of related
operations to which the given sequence belongs. This element is followed by a command
element describing the action of the operation. Then, depending on the operation, a third and
possibly fourth element may be included to describe the subject of the action. In some cases,
the command sequence may consist of only one command element describing the action of
the operation.
•
Objects — represent an item associated with a StoreOnce appliance. It may be a physical
item, such as a network interface, or a virtual item, such as a virtual tape cartridge. Not all
instructions contain objects, but up to three is possible.
•
Parameters — define additional conditions placed upon the operation. A parameter consists
of a word (or a series of words separated by dashes) followed by a colon; the characters
after the colon define the value of the parameter. Not all instructions contain parameters.
Table 2 A CLI Instruction
Command Sequence
Objects
command
command
command
command
(group)
(action)
(subject)
(clarification)
object
Parameters
object
object
parameter:
value
NOTE: Command entry is case insensitive; command words, objects, and parameters may be
entered in either upper or lower case.
The beginning elements of your entry are compared with the allowed command sequences. If there
is a direct match, this match defines the command syntax. If there is more than one direct match,
the match with the most number of elements is used. If a match does not exist, the help function is
performed to aid you in determining the correct entry.
Once the command sequence has been established, the entry is verified for correct syntax. If the
entry is correct, the operation is performed as defined. If there is a syntax violation, the help function
is performed to aid you in determining the correct entry.
The following convention is used when describing command entry syntax:
8
•
The use of square parenthesis such as [Object] or [parameter] indicates the object or parameter
entry is optional
•
The use of carat parenthesis such as