存储 频道

学习使用TSM帮助命令“HELP”

  【IT168 资讯】不管是tsm的新手还有有经验的tsm管理员help命令都是非常有用而且实用的不可缺少的帮手。

学习使用TSM的帮助命令

  我们在装有TSM Command Line Administrative Interface的机器上运行Dsmadmc命令就可以进入IBM Tivoli Storage Manager Command Line Administrative Interface。

  这里需要注意的是:dsmadmc不可以在根目录下面执行

  在IBM Tivoli Storage Manager Command Line Administrative Interface中运行帮助如果篇幅超过一篇,按<ENTER>看下一篇,输入‘C’取消查看。
输入‘quit’退出Command Line Administrative Interface。

  通过TSM Command Line Administrative Interface我们可以进行的操作包括:

  1. 管理tsm server(启动、停止、监控、格式化输出等等)。
  2. 分配额外的server存储器。
  3. 发布管理命令
  4. server选项相关(修改server option等)。
  5. Utilities相关。

  在IBM Tivoli Storage Manager Command Line Administrative Interface中所有支持功能都可以通过输入‘help’就可以查看。例如

tsm: BABU>help
IBM Tivoli Storage Manager for AIX #安装的tsm是支持的那个操作系统
Administrative commands and options

  Version 5.5.0 #安装的tsm是那个版本。值得注意的是这里的版本指的是tsm帮助文档的版本,不一定与实际的tsm版本一致。因为tsm文档可以单独安装。

  相关TSM文档目录就不在下面详细列出了。

举例说明Help命令的用法

  Help后跟随我们想查找的命令。比如我想查找一个policy domain但我不知道具体的命令是什么那么就可以用help q取得帮助。

tsm: BABU>help q

  3.41 QUERY commands #3.41是命令按照功能的的编号。管理tsm server以1打头,分配额外的server存储器以2打头,发布管理命令以3打头,server选项相关以4打头,前面已经提到过。

  Use the QUERY command to request or display information about an IBM #对query命令的解释

  Tivoli Storage Manager object.
  The following is a list of QUERY commands for Tivoli Storage Manager: #列举所有与query相关的命令

  3.41.1, "QUERY ACTLOG (Query the activity log)"
  3.41.2, "QUERY ADMIN (Display administrator information)"
  3.41.3, "QUERY ASSOCIATION (Query client node associations with aschedule)"
  3.41.4, "QUERY AUDITOCCUPANCY (Query client node storageutilization)"
  3.41.5, "QUERY BACKUPSET (Query a backup set)"
  3.41.6, "QUERY BACKUPSETCONTENTS (Query contents of a backup set)"
  3.41.7, "QUERY CLOPTSET (Query a client option set)"
  3.41.8, "QUERY COLLOCGROUP (Query a collocation group)"
  3.41.9, "QUERY CONTENT (Query the contents of a storage pool volume)"
  3.41.10, "QUERY COPYGROUP (Query copy groups)"
  3.41.11, "QUERY DATAMOVER (Display data mover definitions)"
  3.41.12, "QUERY DB (Display information on the database)"
   3.41.13, "QUERY DBBACKUPTRIGGER (Query the database backup trigger)"
  3.41.14, "QUERY DBVOLUME (Display information on one or more databasevolumes)"
  3.41.15, "QUERY DEVCLASS (Display information on one or more deviceclasses)"
  3.41.16, "QUERY DIRSPACE (Query storage utilization of FILEdirectories)"
  3.41.17, "QUERY DOMAIN (Query a policy domain)"
  3.41.18, "QUERY DRIVE(Query information about a drive)
  ……

  这时我们就查找的QUERY DOMAIN命令可以查找policy domain。

具体help命令用法

  如果想要具体的QUERY DOMAIN命令的用法我们同样可以用help命令。通常help命令会给出分类号,命令用途,谁可以使用该命令,命令语法,参数解释,举例,命令任务,命令输出,输出解释,相关命令。

tsm: BABU>help q domain
3.41.17 QUERY DOMAIN (Query a policy domain) #分类号
Use this command to display information on one or more policy domains. #命令用途
Privilege class
Any administrator can issue this command. #谁可以使用该命令
Syntax
.-*-----------. .-Format--=--Standard-----.
>>-Query DOmain--+-------------+--+-------------------------+-->< #命令语法
'-domain_name-' '-Format--=--+-Standard-+-'
'-Detailed-'
Parameters #参数解释
domain_name
Specifies the policy domain to query. This parameter is optional. Youcan use wildcard characters to specify names. If you do not specify avalue for this parameter, all policy domains are displayed.
Format
Specifies how the information is displayed. This parameter isoptional. The default value is STANDARD. Possible values are:
Standard
Specifies that partial information is displayed.
Detailed
Specifies that complete information is displayed.
Examples
Task
Display partial information for all policy domains on the server.
Command query domain
Output
Examples #举例
Task
Display partial information for all policy domains on the server. #命令任务
Command query domain
Output #命令输出
+----------------------------------------------------------------------+
|Policy Activated Activated Number of Description |
|Domain Policy Default Registered |
|Name Set Mgmt Nodes |
| Class |
|--------- --------- --------- ---------- -----------------|
|EMPLOYEE- VACATION ACTIVEFI- 6 Employee Records |
| _RECORDS LES Domain |
|PROG1 0 Programming Group|
more... (<ENTER> to continue, 'C' to cancel)

| Test Domain |
|PROG2 0 Programming Group|
| Test Domain |
|STANDARD STANDARD STANDARD 1 Installed default|
| policy domain |
+----------------------------------------------------------------------+

Policy Domain Name #输出解释
The name of the policy domain.
Activated Policy Set
The name of the policy set that was last activated in the domain.
……
Related commands #相关命令

Table 213. Commands related to QUERY DOMAIN
+----------------------------------+----------------------------------+
| Command | Description |
+----------------------------------+----------------------------------+
| COPY DOMAIN | Creates a copy of a policy |
| | domain. |
+----------------------------------+----------------------------------+
| DEFINE DOMAIN | Defines a policy domain that |
| | clients can be assigned to. |
+----------------------------------+----------------------------------+
| DELETE DOMAIN | Deletes a policy domain along |
| | with any policy objects in the |
| | policy domain. |
+----------------------------------+----------------------------------+
| UPDATE DOMAIN | Changes the attributes of a |
| | policy domain.

  做某些操作会返回一个message,尤其是出错的时候我们想进一步查看这个错误信息是什么,同样可以通过help命令来实现。Message以I结尾的提示信息(INFORMATION),以E结尾的是错误信息(ERROR)。

tsm: TSM>h ANS0106E
ANS0106E: Message index not found for message number.
Explanation #对信息的解释

The message repository file does not contain the message text for the message number.
System action #系统行为

TSM is unable to complete the requested operation.
User response #用户可以进行操作

  确认DSM_DIR被正确配置,并指向正确的版本,如果问题仍然继续,请找系统管理员寻求更多帮助。

0
相关文章