Skip to main content
SnapManager for SAP
简体中文版经机器翻译而成,仅供参考。如与英语版出现任何冲突,应以英语版为准。

smsap plugin check命令

贡献者

通过 SnapManager ,您可以为各种操作安装和使用自定义脚本。SnapManager 提供了备份,还原和克隆插件,可在备份,还原和克隆操作前后自动执行自定义脚本。在使用备份,还原和克隆插件之前,您可以运行 plugin check 命令来验证插件脚本的安装情况。自定义脚本存储在三个目录中: policy (适用于在执行备份,还原或克隆操作之前应始终运行的脚本), PRE (适用于预处理脚本)和 POST (适用于后处理脚本)。

语法

 smsap plugin check
-osaccount os_db_user_name

参数

  • -osaccount

    指定操作系统( OS )数据库用户名。如果不输入 -osaccount 选项, SnapManager 将以 root 用户身份检查插件脚本,而不是检查特定用户。


示例

以下示例显示, plugin check 命令发现策略目录中存储的 policy1 自定义脚本是可执行文件。此示例还显示,存储在 PRE 目录中的另外两个自定义脚本不会返回任何错误消息(显示状态为 0 );但是, POST 目录中的第四个自定义脚本( POST/plug-in1 )包含错误(显示状态为 3 )。

smsap plugin check
Checking plugin directory structure ...
<installdir>/plugins/clone/policy
OK: 'policy1' is executable
<installdir>/plugins/clone/pre
OK: 'pre-plugin1' is executable and returned status 0
OK: 'pre-plugin2' is executable and returned status 0
<installdir>/plugins/clone/post
ERROR: 'post-plugin1' is executable and returned status 3
<installdir>/plugins/backup/policy
OK: 'policy1' is executable
<installdir>/plugins/backup/pre
OK: 'pre-plugin1' is executable and returned status 0
OK: 'pre-plugin2' is executable and returned status 0
<installdir>/plugins/backup/post
ERROR: 'post-plugin1' is executable and returned status 3
<installdir>/plugins/restore/policy
OK: 'policy1' is executable
<installdir>/plugins/restore/pre
OK: 'pre-plugin1' is executable and returned status 0
OK: 'pre-plugin2' is executable and returned status 0
<installdir>/plugins/restore/post
ERROR: 'post-plugin1' is executable and returned status 3
Command complete.