中文VNXE 命令

Download as pdf or txt
Download as pdf or txt
You are on page 1of 69

VNXe3200 服务命令

技术说明

302-000-197
修订版 03

2015 年 2 月
版权所有 © 2015 EMC Corporation。保留所有权利。中国印刷。

2015 年 2 月出版

EMC 确信本出版物在发布之日内容准确无误。本出版物中的信息可随时更改
而不另行通知。

本出版物的内容按“原样”提供。EMC Corporation 对本出版物的内容不提供


任何形式的陈述或担保,明确拒绝对有特定目的的适销性或适用性进行默示
担保。使用、复制或分发本出版物所描述的任何 EMC 软件都要有相应的软件
许可证。

EMC2、EMC 和 EMC 徽标是 EMC Corporation 在美国和其他国家/地区的注册


商标或商标。此处使用的所有其他商标均为其各自所有者的资产。

有关您的产品系列的最新法规文档,请访问 EMC 在线支持网站上的“技术文


档和咨询”部分。

部件号:302-000-197

VNXe 服务命令 2
目录
执行摘要 .............................................................................................................................. 8
业务案例 ......................................................................................................................................... 8
解决方案概述 .................................................................................................................................. 8
关键结果/建议 ................................................................................................................................ 8

简介 ..................................................................................................................................... 9
用途 ................................................................................................................................................. 9
范围 ................................................................................................................................................. 9
用法 ................................................................................................................................................. 9
目标受众 ....................................................................................................................................... 10
术语 ............................................................................................................................................... 10

可维护性命令类别 .............................................................................................................. 12

可维护性命令 ..................................................................................................................... 18
ACL Database Dump (svc_acldb_dump) ......................................................................................... 18
说明 .......................................................................................................................................... 18
使用情形 ................................................................................................................................... 18
用法示例 ................................................................................................................................... 18
相关命令 ................................................................................................................................... 18
Array Configuration (svc_arrayconfig) ............................................................................................. 19
说明 .......................................................................................................................................... 19
使用情形 ................................................................................................................................... 19
相关命令 ................................................................................................................................... 19
Apply Custom Log-on Banners (svc_banner) .................................................................................. 20
说明 .......................................................................................................................................... 20
使用情形 ................................................................................................................................... 21
用法示例 ................................................................................................................................... 21
相关命令 ................................................................................................................................... 21
Boot Control (svc_boot_control) ..................................................................................................... 22
说明 .......................................................................................................................................... 22
使用情形 ................................................................................................................................... 22
相关命令 ................................................................................................................................... 22
Cache (svc_cache) ......................................................................................................................... 23
说明 .......................................................................................................................................... 23
使用情形 ................................................................................................................................... 23
相关命令 ................................................................................................................................... 23

VNXe 服务命令 3
Antivirus Configuration (svc_cava) ................................................................................................. 24
说明 .......................................................................................................................................... 24
使用情形 ................................................................................................................................... 24
用法示例 ................................................................................................................................... 24
相关命令 ................................................................................................................................... 25
Configure Backup and Recovery (svc_cbr) ...................................................................................... 26
说明 .......................................................................................................................................... 26
使用情形 ................................................................................................................................... 26
相关命令 ................................................................................................................................... 26
Change Hardware Configuration (svc_change_hw_config).............................................................. 27
说明 .......................................................................................................................................... 27
使用情形 ................................................................................................................................... 27
相关命令 ................................................................................................................................... 28
CIFS Support (svc_cifssupport) ...................................................................................................... 29
说明 .......................................................................................................................................... 29
使用情形 ................................................................................................................................... 29
相关命令 ................................................................................................................................... 30
Upload SSL Certificates (svc_custom_cert)..................................................................................... 31
说明 .......................................................................................................................................... 31
使用情形 ................................................................................................................................... 31
相关命令 ................................................................................................................................... 31
Data Collection (svc_dc) ................................................................................................................. 32
说明 .......................................................................................................................................... 32
使用情形 ................................................................................................................................... 32
用法示例 ................................................................................................................................... 33
相关命令 ................................................................................................................................... 34
System Diagnostics (svc_diag) ....................................................................................................... 35
说明 .......................................................................................................................................... 35
使用情形 ................................................................................................................................... 36
用法示例 ................................................................................................................................... 36
相关命令 ................................................................................................................................... 36
ESRS Setup (svc_esrs) ................................................................................................................... 37
说明 .......................................................................................................................................... 37
使用情形 ................................................................................................................................... 37
用法示例 ................................................................................................................................... 37
相关命令 ................................................................................................................................... 37
Help (svc_help) .............................................................................................................................. 38
说明 .......................................................................................................................................... 38
使用情形 ................................................................................................................................... 38

VNXe 服务命令 4
相关命令 ................................................................................................................................... 39
Initial Configuration (svc_initial_config) ......................................................................................... 40
说明 .......................................................................................................................................... 40
使用情形 ................................................................................................................................... 40
用法示例 ................................................................................................................................... 41
相关命令 ................................................................................................................................... 41
Inject Troubleshooting Software Tool (svc_inject) ........................................................................... 42
说明 .......................................................................................................................................... 42
使用情形 ................................................................................................................................... 42
用法示例 ................................................................................................................................... 43
相关命令 ................................................................................................................................... 43
Base Management Controller (BMC) Interface (svc_ipmi) ............................................................... 44
说明 .......................................................................................................................................... 44
使用情形 ................................................................................................................................... 44
相关命令 ................................................................................................................................... 44
View Locks (svc_lockd) .................................................................................................................. 45
说明 .......................................................................................................................................... 45
使用情形 ................................................................................................................................... 45
用法示例 ................................................................................................................................... 45
相关命令 ................................................................................................................................... 45
Mount Storage (svc_mount) ........................................................................................................... 46
说明 .......................................................................................................................................... 46
使用情形 ................................................................................................................................... 46
相关命令 ................................................................................................................................... 46
Create Management Interface (svc_network) .................................................................................. 47
说明 .......................................................................................................................................... 47
使用情形 ................................................................................................................................... 47
相关命令 ................................................................................................................................... 47
Network Configuration Information (svc_networkcheck) ................................................................. 48
说明 .......................................................................................................................................... 48
使用情形 ................................................................................................................................... 48
用法示例 ................................................................................................................................... 50
相关命令 ................................................................................................................................... 50
Synchronize Time (svc_ntp) ........................................................................................................... 51
说明 .......................................................................................................................................... 51
使用情形 ................................................................................................................................... 51
用法示例 ................................................................................................................................... 51
相关命令 ................................................................................................................................... 51

VNXe 服务命令 5
Operating System Information (svc_oscheck) ................................................................................. 52
说明 .......................................................................................................................................... 52
使用情形 ................................................................................................................................... 52
用法示例 ................................................................................................................................... 52
相关命令 ................................................................................................................................... 52
Collect Performance Information (svc_perfcheck) ........................................................................... 53
说明 .......................................................................................................................................... 53
使用情形 ................................................................................................................................... 53
用法示例 ................................................................................................................................... 54
相关命令 ................................................................................................................................... 54
Purge Logs (svc_purge_logs) .......................................................................................................... 55
说明 .......................................................................................................................................... 55
使用情形 ................................................................................................................................... 55
相关命令 ................................................................................................................................... 55
Restore VNXe OE (svc_reimage) ..................................................................................................... 56
说明 .......................................................................................................................................... 56
使用情形 ................................................................................................................................... 56
相关命令 ................................................................................................................................... 56
Reinitialize VNXe to Factory Settings (svc_reinit) ............................................................................ 57
说明 .......................................................................................................................................... 57
使用情形 ................................................................................................................................... 57
相关命令 ................................................................................................................................... 57
Service Mode Information (svc_rescue_state) ................................................................................ 58
说明 .......................................................................................................................................... 58
使用情形 ................................................................................................................................... 58
相关命令 ................................................................................................................................... 58
Management Stack Controls (svc_restart_service) ......................................................................... 59
说明 .......................................................................................................................................... 59
使用情形 ................................................................................................................................... 59
相关命令 ................................................................................................................................... 59
Service User Password Configuration (svc_service_password) ....................................................... 60
说明 .......................................................................................................................................... 60
使用情形 ................................................................................................................................... 60
用法示例 ................................................................................................................................... 60
相关命令 ................................................................................................................................... 60
Service Shell (svc_service_shell).................................................................................................... 61
说明 .......................................................................................................................................... 61
使用情形 ................................................................................................................................... 61
相关命令 ................................................................................................................................... 61

VNXe 服务命令 6
Shutdown (svc_shutdown) ............................................................................................................. 62
说明 .......................................................................................................................................... 62
使用情形 ................................................................................................................................... 62
用法示例 ................................................................................................................................... 62
相关命令 ................................................................................................................................... 63
Enable Secure Shell (svc_ssh)........................................................................................................ 64
说明 .......................................................................................................................................... 64
使用情形 ................................................................................................................................... 64
用法示例 ................................................................................................................................... 64
相关命令 ................................................................................................................................... 64
Run FSCK on Storage (svc_storage_integritycheck) ........................................................................ 65
说明 .......................................................................................................................................... 65
使用情形 ................................................................................................................................... 65
相关命令 ................................................................................................................................... 65
Output Storage Information (svc_storagecheck) ............................................................................. 66
说明 .......................................................................................................................................... 66
使用情形 ................................................................................................................................... 66
相关命令 ................................................................................................................................... 66
Display storage mappings (svc_storage_map) ............................................................................... 67
说明 .......................................................................................................................................... 67
使用情形 ................................................................................................................................... 67
用法示例 ................................................................................................................................... 67
相关命令 ................................................................................................................................... 67
Redirect Output (svc_tcpdump) ...................................................................................................... 68
说明 .......................................................................................................................................... 68
使用情形 ................................................................................................................................... 68
用法示例 ................................................................................................................................... 69
相关命令 ................................................................................................................................... 69

VNXe 服务命令 7
执行摘要


业务案例 VNXe3200 系列设计为由用户维护。您可以解决 Unisphere“服务页”中的常见系统
问题。但是,可能会出现不能通过“服务页”上的选项找到诊断或解决方法的问题。

解决方案概述 系统的操作环境上安装了一组问题诊断、系统配置和系统恢复命令。这些命令可提
供深层次的信息,还可提供比 Unisphere 所提供级别更低的系统控制。本文档介绍
这些命令及其常见使用案例。

关键结果/建议 本文档中列出的 Service (svc) 命令是用于维护 VNXe 系统的操作环境软件工具的子


集。您可以使用可编写脚本的 UEMCLI 系统配置来实现其他功能。UEMCLI 不在本文
档中讨论。

VNXe 服务命令 8
简介
本文档介绍用于诊断和解决 VNXe 系统问题的一组操作环境命令。

用途 本文档介绍可用于诊断和解决不能通过 Unisphere 改正的系统问题的命令。本文档


还讨论了服务命令的常见使用情形。

范围 本文档提供 VNXe 的安全外壳 (SSH) 内可用的软件工具列表,这些工具结合适当的


方法,可以对 VNXe 系统问题进行故障排除。

本文档中列出的服务命令在运行 2.0.0.X 到 3.0.X.X 版本 OE 的 VNXe 系统上可用。

注意:不同修订版之间存在着某些差异。输入“svc_help”命令可以查看特定版本
操作环境 (OE) 中可用的命令。

授权技术支持人员可能出于故障排除目的在系统上安装了其他服务命令(在本文档
中未介绍)。请勿在未获得授权服务代表批准的情况下运行其他的命令。

这些命令可提供以下高级问题解决功能:

• 配置 — 设置或重置各个 VNXe 系统硬件或软件组件的状态。

• 诊断 — 测试或报告系统硬件或软件的状态。

• 操作 — 支持用于高级故障排除的命令。这些工具仅供授权支持代表使用。

• 恢复 — 将系统硬件或软件组件恢复到某个已知状态。

用法 使用服务用户帐户登录 VNXe 存储处理器 (SP) 后可运行命令。登录时可以借助于控


制台的 SSH 或连接到平台串行接口的终端。使用这些命令前,

1. 申请服务帐户密码。
2. 启用 SSH。
3. 使所有终端硬件准备就绪。
4. 安装支持软件应用程序。

VNXe SP 可以采用以下两种操作模式之一运行: 正常模式或服务模式。某些服务命


令在这两种模式中都能运行。不同服务命令在不同 SP 模式中运行:

• 正常模式 — 有些命令仅在标准操作模式中运行。
• 服务模式 — 有些命令仅在维护和故障排除模式中运行。
• 两种模式 — 有些命令在两种模式中均可运行。

VNXe 服务命令 9
目标受众 VNXe 存储系统管理员、EMC 及 EMC 合作伙伴现场服务人员和支持人员。

服务命令在 VNXe 的 Linux 操作环境中运行。您需要熟悉 Linux Shell、VNXe 上已安


装硬件和 VNXe 操作环境,才能使用这些命令。

可以在 www.emc.com/vnxesupport 上找到使用这些命令时可能有帮助的其他信息。

术语 本技术说明包括以下术语。

表 1. 术语
术语 定义
管理员用户 “管理员”帐户可以管理和配置服务器,并能够对存储
系统进行资源调配。此帐户是唯一能够在正常模式下登
录 Unisphere 的默认用户。

后端存储库 DPE 中的前四个驱动器中部分专用于 VNXe 系统空间。此


空间的一部分是后端存储库,该存储库为保留存储库,
用于维护 VNXe 软件的已知的完好映像。

启动计数器 启动计数器是设计到 VNXe 体系结构中的故障排除机


制,可帮助查明启动序列中的软件或硬件事件的特定原
因。如果 VNXe 系统检测到软件或硬件组件问题,其对
应的启动计数器将递增。如果计数器达到预定义的阈
值,SP 将在下个启动周期中启动到服务模式。请参见
System Diagnostics (svc_diag)了解故障排除步骤。

ConnectEMC 经全球服务批准的 EMC 内部标准解决方案的一项功能,


用于将事件数据从 EMC 产品传输到 EMC 支持部门。
ConnectEMC 提供一个简化和标准化方法,可供 EMC 产
品用来将事件文件(错误、信息、配置及其他)从服务
工作站传输到 EMC 支持系统。

磁盘处理器存储模块 (DPE) DPE 是机架安装的物理机柜,其中包括一个或两个 SP、


多个电源和至少四个驱动器。

EMC Secure Remote Support ESRS IP 解决方案 (ESRS IP) 提供安全的基于 IP 的分布式
(ESRS) 支持解决方案,供授权远程支持代表对系统执行命令、
控制和查看。

正常模式 VNXe 系统的标准操作模式。您可以管理和配置服务器,


并能够调配存储资源。系统在正常模式下时,可以访问
用户数据。

服务模式 VNXe 系统的简化操作模式可用于进行维护和故障排除。


在此模式中,可以通过 Unisphere 的有限界面或命令行界
面 (CLI) 进行问题解决。处于服务模式的 SP 并不处理数据
请求。当 SP 处于服务模式时,无法访问用户数据。您无
法对新服务器进行管理或资源调配。在服务模式中执行的
特定操作 — 如更改服务帐户密码或插入服务工具 — 在重
新启动后不会保存,其效果将不会出现在正常模式中。

VNXe 服务命令 10
术语 定义
服务用户帐户 服务用户帐户拥有在 VNXe 系统上执行维护和故障排除
的权限。此帐户是唯一能登录到 VNXe CLI(通过 SSH 或
串行连接)和 Unisphere 中的“服务页”的帐户。

存储处理器 (SP) 承载文件和数据块级别的虚拟化存储并管理这些服务的


独立高可用性服务器。SP 的物理位置在 DPE 内,具有
CPU、内存、板载 SSD 和电池备份单元 (BBU)。

VNXe 服务命令 11
可维护性命令类别
命令可按以下类别分类:
• 功能 — 故障排除过程中最适合使用该命令的步骤。
• 模式 — 启用该命令时所处的系统操作模式。
• 用法 — 请参见“范围”部分查看可用的“功能”和“模式”类别的定义。
此外,“目标用户”包括在“用法”类别中。这些类别包括:

• 通用 — 无需专门知识即可运行命令或理解结果。
• 技术服务 — 运行命令或理解结果需要经过高级培训。请勿在未获得授权服
务代表批准的情况下运行这些命令。
以下表格按功能、模式和用法描述了命令的用法。
表 2. 按功能分类的服务命令
功能 名称
配置
Apply Custom Log-on Banners (svc_banner)

Antivirus Configuration (svc_cava)

Upload SSL Certificates (svc_custom_cert)

ESRS Setup (svc_esrs)

Initial Configuration (svc_initial_config)

Service User Password Configuration


(svc_service_password)
诊断
ACL Database Dump (svc_acldb_dump)

Array Configuration (svc_arrayconfig)

Data Collection (svc_dc)

System Diagnostics (svc_diag)

View Locks (svc_lockd)

Network Configuration Information


(svc_networkcheck)

VNXe 服务命令 12
功能 名称

Operating System Information (svc_oscheck)

Collect Performance Information (svc_perfcheck)

Output Storage Information (svc_storagecheck)

Redirect Output (svc_tcpdump)

Configure Backup and Recovery (svc_cbr)

Create Management Interface (svc_network)

Restore VNXe OE (svc_reimage)

Reinitialize VNXe to Factory Settings (svc_reinit)

Service Shell (svc_service_shell)

Run FSCK on Storage (svc_storage_integritycheck)


恢复
Run FSCK on Storage (svc_storage_integritycheck)

Service Mode Information (svc_rescue_state)

Purge Logs (svc_purge_logs)


系统操作
Boot Control (svc_boot_control)

Cache (svc_cache)

Help (svc_help)

Inject Troubleshooting Software Tool (svc_inject)

Mount Storage (svc_mount)

Synchronize Time (svc_ntp)

Enable Secure Shell (svc_ssh)

VNXe 服务命令 13
表 3. 按模式分类的服务命令

模式 名称
仅用于正常
模式 ACL Database Dump (svc_acldb_dump)

Array Configuration (svc_arrayconfig)

Apply Custom Log-on Banners (svc_banner)

Antivirus Configuration (svc_cava)

Change Hardware Configuration


(svc_change_hw_config)

Configure Backup and Recovery (svc_cbr)

CIFS Support (svc_cifssupport)

Upload SSL Certificates (svc_custom_cert)

ESRS Setup (svc_esrs)

Initial Configuration (svc_initial_config)

Base Management Controller (BMC) Interface


(svc_ipmi)

View Locks (svc_lockd)

Network Configuration Information


(svc_networkcheck)

Synchronize Time (svc_ntp)

Collect Performance Information (svc_perfcheck)

Management Stack Controls (svc_restart_service)

Run FSCK on Storage (svc_storage_integritycheck)

VNXe 服务命令 14
Service User Password Configuration
(svc_service_password)

Run FSCK on Storage (svc_storage_integritycheck)

Output Storage Information (svc_storagecheck)

Boot Control (svc_boot_control)

Create Management Interface (svc_network)

Restore VNXe OE (svc_reimage)

Data Collection (svc_dc)

System Diagnostics (svc_diag)

Help (svc_help)

Inject Troubleshooting Software Tool (svc_inject)

Service Shell (svc_service_shell)

Shutdown (svc_shutdown)

Redirect Output (svc_tcpdump)

仅用于服务
模式 Operating System Information (svc_oscheck)

Purge Logs (svc_purge_logs)

Reinitialize VNXe to Factory Settings (svc_reinit)

Service Mode Information (svc_rescue_state)

Mount Storage (svc_mount)

VNXe 服务命令 15
表 4. 按用法分类的服务命令
用法 名称
通用
Apply Custom Log-on Banners (svc_banner)

Antivirus Configuration (svc_cava)

Upload SSL Certificates (svc_custom_cert)

Data Collection (svc_dc)

System Diagnostics (svc_diag)

Help (svc_help)

View Locks (svc_lockd)

Network Configuration Information


(svc_networkcheck)

Synchronize Time (svc_ntp)

Collect Performance Information (svc_perfcheck)

Shutdown (svc_shutdown)

Enable Secure Shell (svc_ssh)

Output Storage Information (svc_storagecheck)

Boot Control (svc_boot_control)

技术服务
ACL Database Dump (svc_acldb_dump)

Configure Backup and Recovery (svc_cbr)

ESRS Setup (svc_esrs)

VNXe 服务命令 16
用法 名称

Initial Configuration (svc_initial_config)

Inject Troubleshooting Software Tool (svc_inject)

Mount Storage (svc_mount)

Create Management Interface (svc_network)

Restore VNXe OE (svc_reimage)

Reinitialize VNXe to Factory Settings (svc_reinit)

Management Stack Controls (svc_restart_service)

Service Shell (svc_service_shell)

Redirect Output (svc_tcpdump)

VNXe 服务命令 17
可维护性命令
此部分介绍可用的服务命令,并提供相应的用法示例和使用情形。

请注意,许多服务命令都支持 help 选项。运行此选项时可使用“--help”、


“- h”或“- ?”开关(无引号)。Help 会列出与命令用法相关的使用语法、用法示
例和其他信息。例如,如需查看 svc_ssh 的帮助选项,请运行:svc_ssh –help

ACL Database Dump 此命令将某个文件系统的 ACL 数据库项转储至指定目录,以供进一步调查。


(svc_acldb_dump)
功能:诊断

模式:正常

使用情形:技术服务

说明
使用此命令对在线文件系统中的 ACL 数据库问题进行故障排除。请仅在主 SP 上运
行此命令。

使用情形
Usage: svc_acldb_dump [-help | -h] { <NAS_Server_Name>
options }
Options:
--help [-h]: display this help message
-dump -fs <file system name> -outpath <output directory
name> : dump the ACL database of specified file system to
the specific directory.

用法示例
spa:~> ./svc_acldb_dump NASServer00 -dump -fs FileSystem00 -
outpath ./acl1/
/nas/bin/.server_config NASServer00 -v "dumpAllAclRecords
FileSystem00 /AclRecordsDB" success
/nas/bin/.server_config NASServer00 -v "dumpAclDedupDir
FileSystem00 /AclDedupDB" success
mount_vdm.sh NASServer00 success
Running on a single-SP system
Owning sysVDM=SVDM_A, vdmname: NASServer00, vdmid: 2

cp /mnt/NASServer00/AclRecordsDB ./acl1/ success


cp /mnt/NASServer00/AclDedupDB ./acl1/ success
Command done with sucess

相关命令
svc_storage_map –list-fs(第 66 页)将列出所有已配置的文件系统。

VNXe 服务命令 18
Array Configuration 此命令捕获存储系统上的配置快照。
(svc_arrayconfig)
功能:诊断

模式:正常

使用情形:通用

说明
此命令捕获当前的系统配置并返回捕获文件的位置。

使用情形
Usage: svc_arrayconfig [-s][-H][-g <group1, group2>][-v][-h]

Captures the system configuration. Script returns the


location of the capture file.

Options:
No options: Capture full configuration without sensitive
information.

-s, --showPrivateData: By default, sensitive information is


excluded from the capture. This includes items like
IP addresses. When this option is set, all
data is returned.

-H, --HTML: Data is returned in an HTML format that can be


viewed in any web browser.

-g, --group: By default, all available groups will be


captured. If only specific groups are required, they can be
entered in a comma separated list. The possible groups
include:
system General system data
hardware Physical inventory data
storage Storage related data
network Network related data
host Host related data
service Remote support related data
application Application related data
protection Protection related data

-v, --version: Display script version number


-h, --help: Display help and exit

相关命令
无。

VNXe 服务命令 19
Apply Custom 此命令为 Linux 和 Unisphere 配置登录横标类型。
Log-on Banners
(svc_banner) 功能:配置

模式:两者均可

使用情形:通用

说明
此命令还使普通用户可以指定在使用 SSH 或串行终端连接登录 Linux 时显示的横标
类型。svc_banner 操作只需在一个 SP 上运行,更改将会在所有 SP 之间同步。

可以配置自定义横标以在作为服务用户通过 Unisphere 进行身份验证时显示。

登录横标可以是以下三种不同类型之一:

• 简单 — 显示一条包含以下内容的消息:

o VNXe 系统类型

o 系统主机名

o 系统软件版本

• 复杂 — 除了显示与简单横标相同的信息外,还显示:

o 系统序列号

o Unisphere IP 地址

• 自定义 — 包含任何消息,包括对本地化横标的支持

o 如果将自定义横标文件命名为“en_US.txt”,则该横标的内容还会
在向 Linux 验证身份时显示

设置任何横标类型都会覆盖系统上存在的所有当前横标信息。例如,设置“复杂”
横标将会覆盖存在的所有自定义横标文件。

自定义或本地化横标只能在服务模式下设置。以服务用户身份在 /home/service 中
创建纯文本文件,文件名称遵循以下约定:

• 两个字母的小写语言代码 (ISO 639-2)

• 下划线 (_)

• 两个字母的大写国家/地区代码 (ISO 3166)

• “.txt”

o 示例:美国英语横标将命名为:en_US.txt

创建这些文件之后,运行 svc_banner --put <list of files> 以将它们应用与系统。

VNXe 服务命令 20
使用情形
Usage: svc_banner [-q] [-s] [action] [parameter]
Actions:
-q Quiet mode - Suppressed all output. This must be first
parameter.
-s Single SP mode - Must be specified before action and
after quiet (if applicable)
--set-simple: Sets system banner to default simple -
destroys any custom banner installed on the system.
--set-complex: Sets system banner to include more system
information, like hostname, software version, IP address.
Destroys any custom banner installed on the system.
-a|--activate: Activates custom login banner if already in
non-volatile memory
-p|--put: Puts files into OEM Customization directory &
activates file as banner if it is named "en_US.txt"
-d|--delete: Clears the login banner text from non-volatile
memory and restores default system banner
--dump: Dumps the contents of the system banner as plain
text to stdout

用法示例
要激活美国英语、白俄罗斯语和中文横标文件,

1. 创建包含本地化内容的文件,并将其分别命名为:

a. en_US.txt

b. be_BY.txt

c. zh_CN.txt

2. 要应用这些文件,请以服务用户身份运行以下命令:

service@spa spa:~> svc_banner --put en_US.txt be_BY.txt


zh_CN.txt

要恢复默认样式的横标,请以服务用户身份运行以下命令:

service@spa spa:~> svc_banner --set-simple

相关命令
无。

VNXe 服务命令 21
Boot Control 此命令列出或设置启动控制块。
(svc_boot_control)
功能:系统操作

模式:两者均可

使用情形:技术服务

说明
此命令在加载特定于 VNXe 的软件前设置、清除或列出启动控制块计数和断点。借
助它,您可以直接启动到 Linux 操作环境中进行故障排除。
如果您将“net”选项与“set”或“clear”命令结合使用,则会改变断点的设置方
式。如果未使用“net”选项,则会将断点设置在存储系统软件启动之前。如果使
用“net”选项,则会将断点设置为启用内部网络接口并停止系统软件。

您还可以列出 boot_control 的当前设置。此命令显示并清除该系统上的脏缓存或丢


失 LUN 的缓存 (CDCA)。

警告:此应用工具仅供受过培训的服务人员使用。

使用情形
Usage: svc_boot_control [<qualifiers>] <param>
Where the qualifiers are:
-h| --help: Display this message
-s| --set [net]: Request stop before the storage system
software starts up
-c| --clear [net]: Clear request to stop before the storage
system starts up
-l --list: Lists boot_control current settings.
相关命令
无。

VNXe 服务命令 22
Cache (svc_cache) 使用此命令找到并清除脏缓存。
功能:系统操作

模式:两者均可

使用情形:技术服务

说明
有关清除丢失缓存/脏缓存的完整说明,请参见知识库文章 emc263713。如果尚未
阅读该知识库文章,请勿尝试使用这些命令清除丢失缓存或脏缓存。不当使用此工
具可能会导致数据丢失。

使用情形
Usage: svc_cache [<qualifiers>]
Qualifiers:
-h --help: display this message
-r --force-lost: force cache lost on all SPs.
-c --clear-lost: clear all the cache lost LUNs for current
SP, prepares system LUNs for auto fsck.
-q --query: Search for all the LUNs disabled due to SP Cache
Lost or Fast Cache Faulted.
-z --clear-fc-dirty: clear Fast cache dirty on all LUNs.
-f --fsck-list: re-do the auto fsck pre-processing, based on
last --clear processing.
-d --done: clean up all crumbs related to CDCA script. Can’t
use --fsck-list or --user-fs-list until next --clear-lost.
-s --show-all: show all LUN information for both SPs.
--boot-control-stop: Set system to halt boot when we can
clear Cache Dirty or Cache Lost LUNs (CDCA).
--boot-control-continue: Continues the storage system
software startup that is currently halted.
--cache-fix: Sets the boot control flag "cachefix".

相关命令
无。

VNXe 服务命令 23
Antivirus 此命令使用 EMC Celerra AntiVirus Agent (CAVA) 设置和管理 CIFS(通用 Internet 文件
Configuration 系统)文件系统的防病毒保护。
(svc_cava)
功能:诊断

模式:正常

使用情形:通用

说明
具有相关知识的用户可使用此命令从 CLI 执行防病毒活动。CAVA 是一种防病毒解决
®
方案,面向在 Microsoft Windows 服务器中使用行业标准 CIFS 协议的客户。CAVA 还
使用第三方防病毒软件在已知的病毒影响存储系统上的文件之前,识别并消除它们。

使用情形
Usage: svc_cava { <NAS_Server_Name> | ALL }

[ -audit | -update | -start]


| [-set accesstime={ now | none |
[[[[yy]mm]dd]hh]mm[.ss] }]
| [ -fsscan [ <fs_mountpath> { -list | -create | -
delete } ] ]
| [ -serverlist { override }{ -set
{ addr=[<ip1>][,<ip2>][,<FQDN1>][,...]} | file=<filename> }
| -clear | -list ]

用法示例
root@VNXe-spa spa:/nas/bin> svc_cava server_2
server_2 :
10 threads started.
2 Checker IP Address(es):
10.x.x.216 OFFLINE at Tue Feb 21 18:45:41 2012 (GMT-00:00)
MS-RPC over SMB, CAVA version: 4.6.8, ntStatus:
CONNECTION_DISCONNECTED
AV Engine: Network Associates
Server Name: win2008-srv-01.pedomain.local.116.245.10.in-
addr.arpa
Last time signature updated: Mon Feb 20 22:19:42 2012 (GMT-
00:00)
10.x.x.171 ONLINE at Tue Feb 21 18:45:41 2012 (GMT
00:00)
MS-RPC over SMB, CAVA version: 4.6.8,ntStatus: SUCCESS
AV Engine: Network Associates
Server Name: win-95j4fp0i27r.pedomain.local
Last time signature updated: Mon Feb 6 22:57:08 2012 (GMT-
00:00)

VNXe 服务命令 24
31 File Mask(s):
*.EXE *.COM *.DOC? *.DOT *.XL? *.MD? *.VXD *.386 *.SYS *.BIN
*.RTF *.OBD
*.DLL *.SCR *.OBT *.PP? *.POT *.OLE *.SHS *.MPP *.MPT *.XTP
*.XLB *.CMD *.OVL
*.DEV *.ZIP *.TAR *.ARJ *.ARC *.Z
No file excluded.
Share \\foo675.pedomain.local\CHECK$.
RPC request timeout=25000 milliseconds.
RPC retry timeout=5000 milliseconds.
High water mark=200.
Low water mark=50.
Scan all virus checkers every 10 seconds.
When all virus checkers are offline:
Shutdown CIFS.
Scan on read disable.
Panic handler registered for 65 chunks.
MS-RPC User: FOO675$
MS-RPC ClientName: foo675.PEDOMAIN.LOCAL

相关命令
无。

VNXe 服务命令 25
Configure Backup 此命令收集元数据信息,以便在需要时恢复系统。
and Recovery
(svc_cbr) 功能:恢复

模式:正常

使用情形:技术服务

说明
可以使用“-b”选项每天自动运行此命令,也可以随时运行此命令。只有授权服务
人员才能使用“-r”选项。

使用情形
Usage: svc_cbr [<options>]
Options:
-h, --help: print help message
-b, --backup: Back up config data (default action)
-np: NO Partial configuration is allowed (default: partial
configuration is allowed)
-n, --name-prefix <name prefix>: <name prefix> is used to
rename the resulting config archive
--cleanup: perform config archive cleanup
-l, --list: list configurations available for restore
-q, --query: <plugin name>
Query if the restore is allowed for the plugin
-r, --restore <config name> : <config name> Is the name of
the config to be restored.
NOTE: Service Mode is required, and only qualified service
personnel should attempt this operation.
--restore-complete: clears flags that indicate the CBR
process is in progress. It can be used when the restore is
complete or if the restore is cancelled.

相关命令
无。

VNXe 服务命令 26
Change Hardware 此命令更改系统的硬件配置信息。
Configuration
(svc_change_hw_ 功能:配置
config)
模式:正常

使用情形:通用

说明
有关此命令的升级和使用的完整说明,请参阅系统文档。

使用情形
Usage: svc_change_hw_config [<qualifiers>] where the
qualifiers are:

-h|--help: Display this message


-e|--eSLIC: Commit a new eSLIC / IO Module
-n|--net: Remove network interfaces found on non-existent
ports.
-u|--upgrade [options]: Perform a system upgrade (see below).

This script changes hardware configuration information for


the system. See the help text below for more information on
specific qualifiers.

Refer to the system documentation for a complete description


of upgrades and uses for this script.

-e|--eSLIC: Used to commit a new eSLIC/IO Module. Run while


installing a new eSLIC or IO Module.
-n|--net: Used to remove network interfaces found on non-
existent ports. For example, run this after an eSLIC has
been removed to purge this configuration from the system.
-u|--upgrade: Used ONLY as part of the approved, official
process to upgrade system memory.
Options:

--begin [-b]: valid in Normal Mode to begin an upgrade


--commit [-c]: valid in Service Mode to commit an upgrade
--abort [-a]: valid in Service Mode to abort an upgrade

See system documentation for more information before


attempting an upgrade as this is only valid using the
approved method of system memory upgrades.

VNXe 服务命令 27
Note: An upgrade involves running this script twice.
1. Run this script using the "-b" or "--begin" option
to start the upgrade.
2. Perform whatever steps are necessary for the
upgrade.
3. Rerun the script using the "-c" or "--commit"
option to commit the upgrade.

相关命令
无。

VNXe 服务命令 28
CIFS Support 此命令对与 CIFS 相关的问题进行故障排除。
(svc_cifssupport)
功能:配置

模式:正常

使用情形:通用

说明
此命令还可提供有关到域控制器的网络连接、访问权限、凭据、访问日志等的信息。

注意:此命令必须在主 SP 上运行。

使用情形
Usage: svc_cifssupport {<NAS_Server_Name>|ALL}

Options:

-accessright
{-name<name>[-domain<domain_name>]
|-sid<SID>
|-uname<unix_name>|-uid<user_id>}
{{-path<pathname>[-stop_on_symlink]}|-share<sharename>}
[-build[-admin<admin_name>]]
{-netbios<netbios_servername>|-compname<comp_name>|-
standalone <netbios_name>]}
|-acl{{-path<pathname>[-stop_on_symplink]}|-
share<sharename>}[-verbose]
|-logontrace {-enable<ip_address>|-disable| -list}
| -cred
{-name<name>[-domain<domain_name>]
|-sid<SID>
|-uname<unix_name>
|-uid<user_id>}
[-build[-ldap][-admin<admin_name>]]
[-netbios<netbios_servername>|-compname<comp_name>|-
standalone<netbios_name>]

VNXe 服务命令 29
|-pingdc
{-netbios<netbios_servername>|-compname<comp_name>}
[-dc<netbios_Dcname>]
[-verbose]
|-audit[user=<user_name][,client=<client_name>][,full]
|-gpo{-update|-
info}[server=<server_name>|domain=<domain_name>]
|-checkup[-full|-info

相关命令
无。

VNXe 服务命令 30
Upload SSL 此命令安装 SSL 证书。
Certificates
(svc_custom_cert) 功能:配置

模式:正常

使用情形:通用

说明
此命令在正常和服务模式下安装供 GUI Web 服务器使用的自定义 SSL 证书。它查找
分别包含私钥和证书的 <cert file base path>.pk 和 <cert file base
path>.crt 文件。

私钥的强度至少应为 2048 位。

使用情形
Usage: svc_custom_cert [-h|-help] <cert file base path>
Optional Parameters:
--help [-h]: Displays this message

相关命令
无。

VNXe 服务命令 31
Data Collection 此命令生成数据收集捆绑包,以供技术分析之用。
(svc_dc)
功能:诊断

模式:两者均可

使用情形:通用

说明
此命令还可收集系统信息以分类和解决客户问题。收集的数据包括系统配置、日志、
运行时数据等。在不使用任何选项的情况下运行此命令将运行完整的数据收集 (DC)。

使用情形
Usage: svc_dc [<options>]
Options:
-v, --version display version information.
-h, --help, -? Print this message and exit.
-l, --lifetime <maximum time in seconds allowed for DC
execution>
The script is terminated if this time is exceeded.
The default is 5400 seconds.
-csp, --current-sp flag indicates that only current SP
collection is performed.
by default both SPs collection is initiated.
-n, --name-prefix <output file name prefix> <number to keep>
prefix used for resulting archive naming.
number of this kind of files to be preserved in
range [1,99].
-p, --priority <HIGH/NORMAL>
Set IO priority to HIGH or NORMAL.
-lp, --list-profile
List profiles.
-pbc, --profile-based-collection <profile-name>
Specify the profile which defines the specific
subset data to be collected.
-lcd, --list-cdumps list available known core dumps
-dc, --download-core <username>@<destination IP>
<destination folder> <core name>
Packs the available core-dump related information and
transmits it to pointed location
Result naming: <core name>_no_gdb.tar
<core name>_nogdb_nodc.tar
<core name>.tar

VNXe 服务命令 32
The suffix will be omitted if the full processing was
previously performed.
Example:
svc_dc -dc [email protected]
/c4_working/tmp C4Core_dump_...-22_03_35_31_ccsx
-dcn, --download-core-nobins <username>@<destination IP>
<destination folder> <core name>
download core file without adding binaries to archive
Result naming: <core name>_nobins.tar
-dca, --download-core-abstract <username>@<destination IP>
<destination folder> <core name>
Perform unpacking and GDB/crash info extraction (if not
yet performed) and transmission only abstract info download
core abstract and supplementary info
Result naming: <core name>_abstract_only.tar
-dcp, --download-core-processed <username>@<destination IP>
<destination folder> <core name>
perform full core dump analysis if it was not performed
before and transmit all available data.
Result naming: <core name>.tar
-dpp, --download-pre-processed <username>@<destination IP>
<destination folder> <core name>
perform pre-processing (logs gathering) and download
all available data if full analysis was performed before,
core abstracts also added to the resulting archive
-pc, --process-core <core name>
perform full core dump analysis, do not perform
downloading

用法示例
service@VNXe-spb:~> svc_dc
[DC spb]: invoked from 26555 26554 26555 -bash
[DC spb]: Arguments:
[DC spb]: DCPID 26612
[DC spb]: Spawned group 26687
[DC spb]: Destination folder is:
/EMC/backend/service/data_collection
[DC spb]: SP status:
spb -- Normal Mode
Peer -- Normal Mode
[DC spb]: Gathering DC information on peer
[DC spb]: Gathering DC information on spb
[DC spb]: Archiving collected data from spb

VNXe 服务命令 33
[DC spb]: Waiting for peer to finish Data Collection and
files transfer...
[DC spb]: Peer finished...
[DC spb]: moving VNXe3300_service_data_FCNCH095103208_2011-
05-26_20_21_31.tar to
/EMC/backend/service/data_collection/VNXe3300_service_data_F
CNCH095103208_2011-05-26_20_21_31.tar
[DC spb]: moving done...
DC data collected at
/EMC/backend/service/data_collection/VNXe3300_service_data_F
CNCH095103208_2011-05-26_20_21_31.tar
[DC spb]: Elapsed time: 2 minutes 19 seconds

相关命令
无。

VNXe 服务命令 34
System 此命令收集有关系统的信息以对问题进行诊断和分类。
Diagnostics
(svc_diag) 功能:诊断

模式:两者均可

使用情形:通用

说明
此命令收集有关特定系统“状态”的信息。例如,它可以检索有关“基本”系统状
态的概要信息,或者获取有关特定系统组件的状态的详细信息。

If invoked with no options, this command defaults to "--state basic" and runs the
basic state. 如果在列表中给定了无效的状态,则系统将跳过该状态,向您报错并继
续处理后续状态。

您可以运行的诊断包括:

• Basic — 通用诊断。
• Boot control — 系统(重新)启动状态。
• CRU Extended — 硬件的当前状态。
• Dmilog — 转储低级固件日志。此日志包含来自 BMC、BIOS 和 POST 的信息,
在尝试诊断可能阻止系统启动的低级硬件问题时会很有用。
• Extended — 使用其他信息(例如对等 SP 的状态、启动计数器信息等)扩展
“basic”输出。
• Network — 前端端口配置信息,包括 MTU 大小。
• PMP — 永久内存持久性。此功能在电源中断时将数据缓存保存到本地 SSD
驱动器中,在电源恢复后恢复缓存。pmp 日志包含有关电源中断和重新启
动的最新历史记录的详细信息,以及有关保存和恢复的内存范围的详细信息。
• Resume — 提供中间背板部件和序列号。
• SAS — 后端 SAS 端口的高级诊断。
• Software — 系统软件堆栈的状态。
• Spinfo — SP 硬件和软件信息的详细输出。
• Systemcheck — 对整个系统运行快速测试以显示硬件和软件的状态。
在不使用参数的情况下执行此命令将运行基本诊断功能。

VNXe 服务命令 35
使用情形
Usage: svc_diag [options]
Options:
-s | --state [ all | st0 | "st0,...stN" ]
Executes a state or list of states. Lists of states
enclosed in quotations, no spaces, comma-delimited.
Specifies the keyword "all" to run ALL valid states.
"all" must be the only option because it cannot be used
with any other parameters.
-l| --list: Prints all valid states.
-t|--service-tree: Runs the service tree command.
-h|--help: Prints this message.
If invoked with no options, this command defaults to "--
state basic" and runs the basic state.

If an invalid state is given in the list, it is skipped, the


user is notified of the error, and processing of subsequent
states continues.

用法示例
Run ALL states:
svc_diag –-state all
Run specific states:
svc_diag –-state “basic, extended, cru”
Run the service tree command:
svc_diag –-service-tree

相关命令
Service mode Information (svc_rescue_state)

VNXe 服务命令 36
ESRS Setup 此命令提供系统的 EMC Secure Remote Server (ESRS) 配置的输出。
(svc_esrs)
功能:配置

模式:两者均可

使用情形:技术服务

说明
此命令在服务模式中从命令行启用和禁用 EMC Secure Remote Support (ESRS)。
在主存储处理器 (SP) 上运行此命令。所有更改都是对 SP 的本地更改。这些更改在
重新启动后并不会继续保留。

使用情形
Usage: svc_esrs [OPTION]
Options:
-e. --enable: Enables and starts ESRS on the local SP -
Automatically downloads configuration, if required
(reprovision)
--force: Optional argument to --enable, forces a reprovision
-d, --disableDisables ESRS
-s, --status: Displays ESRS state and connection status
-g,--gwext_info: Create the gwext.ini file with the g,
required information and print it to the console. This is
the only option for Normal Mode.
-t, --trshoot_info: Similar to -g/gwext_info, but does not
generate the ini file. Lists some useful fields for ESRS
troubleshooting.
-h,--help [-h]: Display help and exit
Notes:
All options apart from -g/--gwext_info and -t/--trshoot_info
can only be used in Service Mode. This tool only exposes
essential configuration options such as support credentials
and required proxy information. Policy server usage is not
supported.

用法示例
svc_esrs --enable
svc_esrs –s

相关命令

VNXe 服务命令 37
Help (svc_help) 此命令列出 VNXe 服务命令。

功能:系统操作

模式:两者均可

使用情形:通用

说明
使用此命令列出可供 VNXe 系统上的服务用户使用的服务命令。

使用 Inject Troubleshoot Software Tool 命令添加更多命令。在以下使用情形中,列


表中包含了这些额外的命令。

使用情形
The following VNXe serviceability commands are available to
the service user:
svc_arrayconfig
svc_banner
svc_boot_control
svc_cache
svc_cava
svc_cbr
svc_change_hw_config
svc_cifssupport
svc_custom_cert
svc_dc
svc_diag
svc_esrs
svc_help
svc_initial_config
svc_inject
svc_ipmi
svc_lockd
svc_mount
svc_network
svc_networkcheck
svc_ntp
svc_oscheck
svc_perfcheck
svc_purge_logs
svc_reimage
svc_reinit
svc_rescue_state
svc_restart_service
svc_service_password
svc_service_shell
svc_shutdown
svc_ssh
svc_storage_integritycheck
svc_storagecheck
svc_tcpdump

VNXe 服务命令 38
For detailed information on the available service commands,
refer to the "VNXe Service Commands Technical Notes"
document on the EMC Online Support Site
(https://support.emc.com/).
Each VNXe serviceability command supports a "--help" option
which displays a description for the script use and usage
syntax.

For general Linux or Bash help, run the "linux_help" command.

相关命令
Inject Troubleshooting Software Tool (svc_inject)

VNXe 服务命令 39
Initial 此命令设置初始系统配置。
Configuration
(svc_initial_config) 功能:配置

模式:正常

使用情形:技术服务

说明
此命令在网络中没有 Connection Utility (CU) 时配置管理 IP 地址。如果已经设置了地
址,此命令还可以更改管理 IPv4 和 IPv6 配置模式。它尝试使用给定的显示名称和/
或网络参数配置系统。

网络参数适用于 IPv4 和/或 IPv6。

Ex: svc_initial_config [-f <hostname>] -4 "<IPv4 address> <IPv4 netmask> <IPv4 default
gateway>"

svc_initial_config [-f <hostname>] -6 "<IPv6 address> <prefix length> <IPv6 default


gateway>"

此脚本插入 EMC 批准、GPG 签名的服务工具和热修复程序。

使用情形
Usage: svc_initial_config [OPTIONS]
-h or --help: Prints this usage information.
-4, --network: IPv4 address, netmask, and default gateway
for management interface. MUST BE ENCLOSED BY “QUOTES” and
given in that exact order:
“ip net_mask def_gw”.
Use “auto” instead of “ip net_mask def_gw” for DHCP.
Use ‘disable” to disable IPv4 configuration.
-6, --networkv6: IPv6 address, prefix length, and default
gateway for management interface. MUST BE ENCLOSED BY
“QUOTES” and given in that exact order:
“ip prefix_len def_gw”
Use “auto” instead of “ip prefix_len def_gw” to enable IPv6
auto-configuration.
Use “disable” to disable IPv6 configuration.
-f, --friendly_name: New friendly_name for the system Name
must contain only letters, numbers, dot (.) or the hyphen (-)
character. Name must not start nor end with a hyphen and be
limited to a total length of 255 characters.

VNXe 服务命令 40
用法示例
service@VNXe-spb:~> svc_initial_config -a -f NewVNXe -n
"10.2.2.42 255.255.255.0 10.2.2.1"
service@VNXe-spb:~> ifconfig mgmt:0
mgmt:0 Link encap:Ethernet HWaddr 00:60:16:36:XX:XX
inet addr:10.2.2.42 Bcast:10.2.2.255
Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:16
service@VNXe-spb:~> svc_initial_config -a -f Host_Name -n
"10.244.X.X 255.255.255.0 10.244.X.1"
Error: this system has already been initialized with the
following configuration:
ip=10.2.2.42 255.255.255.0 10.2.2.1
friendly_name=NewVNXe

相关命令
无。

VNXe 服务命令 41
Inject 此命令修复软件包并安装已加密且经验证的诊断工具。
Troubleshooting
功能:系统操作
Software Tool
(svc_inject)
模式:两者均可

使用情形:技术服务

说明
此命令在 VNXe 系统上插入其他故障排除工具。VNXe 系统热修复程序还使用此功能
来将工程人员认为有必要的更改插入系统 OS 中。
可插入的工具按以下方式之一打包:

• 采用加密和安全设计的质询密钥(基于密钥的插入)

• 采用加密和安全打包的文件(基于文件的插入)

基于密钥的选项允许用户向授权支持代表提供唯一的字符串来实现 root 访问。使用


基于文件的插入将分散的安全签名文件直接上载到 VNXe SP。

在正常模式下插入软件工具。在 SP 处于服务模式的情况下插入的工具在系统返回
正常模式后不会得到保留,并且也不可用。但是,在某些情况下,基于密钥的插入
机制可能允许插入的服务工具在正常和服务操作模式之间切换后仍然保留。

从软件版本 2.1.x 开始,在对双 SP 执行服务工具插入时,VNXe 将尝试同时在两个


SP 上插入服务工具,而不考虑其操作模式。

注意:VNXe 系统会移除已用于插入的服务工具包文件。插入的工具也具有过期日
期。此日期之后,这些工具将不能运行。在过期日期后,重新插入工具以重
新启用工具。

使用情形
Usage: svc_inject [-s] [-q] [cmd]
Options:
-q: Suppresses extraneous output, useful for scripts
-s: Runs only on local SP, does not attempt to inject on peer SP
-k [serial]: Performs key-based injection- see more info below
-h [-i|-e] [PACKAGE]: Installs or erases a hotfix
-t [-i|-e] [PACKAGE]: Installs or erases a service tool
-l [-h|-t|-a]: Lists currently-installed hotfixes,
service tools, or both hotfixes and service tools
-r [-a|-d|l|p]: Adds, deletes, and lists repositories, or
list package
-p [PACKAGE]: Prints out detailed info about PACKAGE
-? | --help: Displays this usage message

VNXe 服务命令 42
用法示例
Injecting a tool called "svc_foo":
svc_inject -t -i /path/to/svc_foo

Erasing a hotfix called "hotfix_tracker123_artf456":


svc_inject -h -e hotfix_tracker123_artf456

Listing all injected service tools and hotfixes:


svc_inject -l -a

Key-based Injection More Info:


"-k serial" launches the system serial number based module
and "-k" with no option starts the challenge-based module.

相关命令
无。

VNXe 服务命令 43
Base Management 此命令提供相关信息,例如 BMC 的固件版本、身份验证套件、源 IP 地址、IP 地址、
Controller (BMC) 网络掩码和网关。
Interface (svc_ipmi)
功能:配置

模式:正常

使用情形:通用

说明
此命令列出活动的 SOL (Serial Over LAN) 会话并显示 BMC 硬件模块的传感器信息。
此命令还会执行 BMC 冷重置。这一冷重置将仅关闭并重新启动 BMC 和对 BMC 问题
进行故障排除,例如控制台不可访问。此命令还可以从对等 BMC 中检索上面提到
的信息, 它是用于处理 EMC VNXe NFS 锁定的服务命令。

使用情形
Usage: svc_ipmi [<options>]

Options:
-h| --help: Displays this message
--bmc-info: Displays the Base Management Controller (BMC)
firmware information and LAN configuration.
--sensor: Lists the BMC sensor information.
--sol-session-info: Displays the information about the BMC
console session.
--bmc-reset: Resets just the BMC.
--bmc-opmode: States the BMC operation mode.
--peer: Retrieves the information from the peer BMC.
This option is used with the above options.

相关命令
无。

VNXe 服务命令 44
View Locks 此命令用于查看 NFS 锁定信息。
(svc_lockd)
功能:诊断

模式:正常

使用情形:通用

说明
此命令允许服务用户查看当前为调配的 VNXe 存储保留的 NFS 锁定的相关信息。它
只能在正常模式下运行,并且要求系统存储软件处于活动状态。

用户可以在命令行上指定要处理的存储服务器。该工具可使用“list”命令列出所有
活动的锁定。使用“stat”命令列出统计信息。在命令行中,通过在“stat”命令后
指定“reset”来发出统计信息重置。若要查看有关特定锁定的更多信息,请使用
“info”命令。若要删除一个已知过时的 NFS 锁定,请使用“remove”命令。
“remove”和“info”命令在命令行上指定锁定。

使用情形
Usage: svc_lockd [-h|--help] SVDM_[A|B] [command]
Commands:
-h| --help: Prints this message
list: lists current locks info
stat [reset]: shows statistics about current locks
info: shows detailed information about specified lock
remove: removes specified lock

用法示例
Example: Get locks info for SVDM_A
> svc_lockd SVDM_A info

Example: Perform a stat reset for SVDM_B


> svc_lockd SVDM_B stat reset

相关命令
无。

VNXe 服务命令 45
Mount Storage 此命令尝试在服务模式下装载系统分区。
(svc_mount)
功能:系统操作

模式:服务

使用情形:技术服务

说明
除非指定“-w”限定符,否则此命令尝试将以下各项装载为只读:

• SSD,装载到 /mnt/ssdroot

• 后端镜像,装载到 mnt/backend

• 核心分区,装载到 /mnt/cores

只能在服务模式下运行此命令。

如果在尝试运行此命令时发生内核级故障,内核可能会死机并导致重新启动。

使用情形
Usage: svc_mount [<qualifiers>]
Qualifiers:
-h --help: Display this message
-w --write-mode:Mount with read/write permissions
-s --ssd-only: Only mount SSD
-c --cores-only: Only mount cores
-b --backend-only: Only mount the backend
--c4lx-cfg-backend: Only mount the backend c4lx-cfg
partition
--c4lx-cfg-msata: Only mount the msata c4lx-cfg
partition
--c4lx-cfg: Only mount both c4lx-cfg partitions
-m --check: Check if the device is currently mounted
-u --unmount: Unmounts ssd, cores, and backend partitions

相关命令
Boot Control (svc_boot_control)

Create Management Interface (svc_network)

VNXe 服务命令 46
Create 此命令为特定的系统接口设置 IP 地址、网络掩码和网关地址。
Management
Interface 功能:诊断
(svc_network)
模式:正常(在没有活动的管理 IP 时)或服务(2.2.x 及更高版本:两种
模式)

使用情形:技术服务

说明
此命令可以在正常模式或服务模式下运行,在正常模式下运行的条件是 SP 上当前
没有活动的管理 IP。

=== SP 状态:正常模式,主 SP ===

使用情形
Usage: svc_network [-h|--help] [-d] -i <interface> -a <IP
address> -n <netmask> -g <gateway>

where the required parameters are:


-h| --help: Displays usage information
-i <interface>: Ethernet interface to set up (could be
mgmt_vdev or mgmt)
-a <IP address>: IPv4 address the given interface will be
assigned
-n <netmask>: Network mask or prefix length for the
connection
-g <gateway>: Default route (gateway) for the connection
and the optional operators are:
-d --debug: Turns on extra debugging messages

相关命令
Boot Control (svc_boot_control)

Mount Storage (svc_mount)

VNXe 服务命令 47
Network 此命令使用存储服务器和 Linux 网络接口收集网络信息和执行诊断。
Configuration
功能:诊断
Information
(svc_networkcheck)
模式:两者均可

使用情形:通用

说明
此命令收集有关一个或所有 SP 的网络信息。它允许服务用户运行常用网络故障排
除应用工具。这些应用工具包括 netstat、tracert、ping 和 ethtool。它会提供有关管
理 IP 连接的信息。此外,它还会使用存储服务器网络接口以及 Linux 管理接口执行
专门的网络检查。
与可在服务模式下运行的“-m, --management”命令不同,此命令只能在正常模式
下的主 SP 上运行。命令的输出记录到
/home/service/svc_networkcheck.log。
一些命令需要特定的条件:

• 需要正常模式:-i、-r

• 需要主 SP:-i、-r、-m

• 在任意时间运行:-h、-e、-n、-p、-p6、-t

使用情形
Usage: svc_networkcheck [command] <parameters>
Where the required commands are:
-i, --info: Performs network checks
-r, --replication: Performs replication checks
-t, --tracert <ip>: Performs trace route to <ip>, either
IPv4 or IPv6
-p, --ping <ip>|<hostname> [--mtu <1500|9000>] [-I <sip>]|
(--mark <mark>)]
: Performs a ping of the <ip> or <hostname> IPv4
target from default port.
: Optional Args:
:--mtu pings with the given MTU value
:-I <sip> specifies the ping source IP or interface
name.
: --mark <mark> specifies the NAS connection mark used
to find the source IP.
:The names are as listed in the “ip show” output

VNXe 服务命令 48
-p6, -- ping6 <ip>|<hostname> [--mtu <1500|9000>] [-I <sip>]:
Performs a ping of the <ip> or <hostname> IPv6 target from
default ports
: Optional Args:
:--mtu pings with the given MTU value
:-I <sip> specifies the ping source IP or interface
name.
: -mark <mark> specifies the NAS connection mark to be
used to find the source IP.
:The names are listed in the “ip show” output
-e,--ethtool |[<port>|all]: Displays information about the
mgmt port (default) using ethtool
: Optional Args:
: <port> “all” - gives info on <port> or all ports.
-m, --management [--routing | --dhcpclient | --dns | --all]
:Displays the system’s management IP (v4 and v6)
information
: Optional Args:
: --routing displays additional information about
management routing
:--dhcpclient displays additional information for
DHCPv4 or DHCPv6
: --dns displays additional DNS query information for
the mgmt IP
:--all displays all options
-n, --netstat: Perform netstat on this SP
-h, --help: Displays this message

VNXe 服务命令 49
用法示例
service@VNXe-spa:~> svc_networkcheck -e all
======================= [spa][Thu May 19 22:50:38 UTC 2011]
Beginning Run =======================

Settings for eth2:


Supported ports: [ TP ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Supports auto-negotiation: Yes
Advertised link modes: 10baseT/Half 10baseT/Full

[output continues]

相关命令
Collect Performance Information (svc_perfcheck)

Data Collection (svc_dc)

VNXe 服务命令 50
Synchronize Time 此命令与 NTP 服务器同步系统时间。
(svc_ntp)
功能:系统操作

模式:正常

使用情形:通用

说明
此命令允许服务用户与 NTP 服务器同步 VNXe 的时间。此工具可列出有关已配置的
NTP 服务器及其状态的信息。它只能在正常模式下运行。只能在配有管理 IP 的主
SP 上使用此命令。

警告:此应用工具仅供受过培训的服务人员使用。此操作可能会导致存储处理器重
新启动,从而导致“数据不可用”情形。

使用情形
Usage: svc_ntp [OPTION]
Allows users to force an NTP time sync.
Options:
-i, --info: Display NTP information
-s, --sync: restart the NTP server and forces all SPs to
update the time
-h, --help: Display help and exit

用法示例
Example: Synchronize NTP time
> svc_ntp -s
Example: List the status about NTP servers
> svc_ntp –i

相关命令
无。

VNXe 服务命令 51
Operating System 此命令收集与操作系统相关的信息并将其记录到用户指定的文件中。
Information
(svc_oscheck) 功能:恢复

模式:服务

使用情形:技术服务

说明
这些日志用于进行性能分析和对系统问题进行分类。可以通过指定文件名及其路径将
收集的日志重定向到所需的文件。默认的输出文件位置为 /home/services/Oslog。*
默认情况下,输出文件存储在“/home/service”下。默认的输出文件数量为五个。
使用情形
Usage: svc_oscheck [<options>]
where the options are:
-h| --help: Display usage information.
-p| --prefix [name]: Prefix in the file name for output
files
-d|--directory [dir]: Path where the output files will be
stored
-c| --count [num]: Number of output file revisions to be
retained

用法示例
Svc_oscheck –d /var/tmp

相关命令
无。

VNXe 服务命令 52
Collect 此命令输出性能指标。
Performance
Information 功能:诊断
(svc_perfcheck)
模式:正常

使用情形:通用

说明
此命令输出前端及后端设置和性能指标,并提取可能对进行性能故障排除有用的信
息。数据收集捆绑包中提供类似的内容 — 请参见 svc_dc。

您可以监视的性能统计信息可通过 svc_perfcheck 上的选项进行查看。

使用 --sar 选项为 SP 生成与 Linux sar 命令类似的输出。此输出包括 CPU 使用情况


分布。

--ktrace 选项提供每个 IO 操作的底层信息。此选项仅供存储专家使用。

--getconfig 选项提供大量关于前端配置的信息。它以 PerfConfig-<system


name>_<date>.txt 的格式将信息输出到 /EMC/backend/perf_stats/config/。

该命令只能在主 SP 上运行。如果在从属 SP 上运行,将会返回错误。

使用情形
Usage: svc_perfcheck [<options>]
Options:
-h| --help: Displays usage information.
-s| --sar -i <seconds> -n <number intervals>: Capture system
stats using sadc/sar on all SPs.
-k| --ktrace -f <tracefilename> -d <seconds> [-o <rba
types>]: Capture RBA trace on all SPs.
-g| --getconfig: Get Performance related configuration.
-v|--vaai: Get vStorage Performance Stats.

VNXe 服务命令 53
用法示例
Get sadc system stats for 15 interval of 30 seconds on all
SPs.
svc_perfcheck –-sar –i 10 –n 15

Get RBA trace for 30 second interval on all SPs.


svc_perfcheck –-ktrace –f filename –d 30

Get RBA trace for 30 second interval on all SPs overriding


default trace types to RBA. See rba.exe –h to find the valid
RBA types.

Svc_perfcheck –-ktrace –f filename –d 30 –o “-t tcd –t


fbe_lun –t pdo –t mlu_cbfs”

相关命令
Data Collection (svc_dc)

Operating System Information (svc_networkcheck)

Network Configuration Information (svc_networkcheck)

Output Storage Information (svc_storagecheck)

Redirect Output (svc_tcpdump)

VNXe 服务命令 54
Purge Logs 此命令在超过指定的限制时清理根文件系统上的空间或清除日志记录数据库。
(svc_purge_logs)
功能:恢复

模式:服务

使用情形:技术服务

说明
此命令在超过指定的限制时清理根文件系统上的空间或清除日志记录数据库。它还
尝试找到文件系统上的大型文件,并生成报告以分析查找结果。

使用情形
Usage: svc_purge_logs [-s] [-f|-c|-h|-u] or [-d] [-n|-h]
Options:
--singlesp [-s]: Forces Single SP operation. Without this
operation, it clears files on both SPs.
--fsuage [-f]: Generates a filesystem usage report
--clear [-c]: Attempts to clear space on the root filesystem
--skipupgrade [-u]: Skips clearing upgrade files on the root
filesystem
--help [-h]: Displays this message.

相关命令
无。

VNXe 服务命令 55
Restore VNXe OE 此命令是每 SP 操作,用于覆盖 SP 的系统分区。
(svc_reimage)
功能:恢复

模式:服务

使用情形:技术服务

说明
此命令使用存储在后端系统设备上的已知完好的映像覆盖 SP 的系统分区,同时保
留永久配置信息(主机名、主机注册和用户数据)。
此应用工具仅供受过培训的服务人员使用。
注意:默认情况下,此命令不会采取关闭/重新启动操作。需要重新启动 SP,才能
完成重新映像。因此,在重新启动系统前,必须使用 svc_rescue_state
服务工具清除启动计数器,否则系统将重新启动到服务模式,重新映像操作
将不会发生。

使用情形
Usage: svc_reimage [<qualifiers>]
where the qualifiers are:
-h| --help: Display this message
-r| --reboot: Reboot after reimage
-p| --powerdown: Powerdown after reimage
-f|--force: Skips all prompts

相关命令
Service Mode Information (svc_rescue_state)

VNXe 服务命令 56
Reinitialize VNXe 此命令将 VNXe 系统恢复到出厂时的状态,删除所有用户数据和永久配置。
to Factory Settings
(svc_reinit) 功能:恢复

模式:服务

使用情形:技术服务

说明
此命令会将 VNXe 系统重新初始化为出厂设置。后端映像存储库中包含的 EMC 软件
映像将覆盖 VNXe 系统的 OE,所有用户数据和永久配置都会被删除。只有在所有已
安装的 SP 都处于服务模式下时,才能使用此命令。
警告:此命令是最后的故障排除解决方案。应先尝试使用 SP 重新映像
(svc_reimage) 来纠正问题,然后再使用此命令。在决定运行此命令之前,请获得数
据收集内容,并咨询支持提供商。

警告:所有用户数据和存储资源调配信息都将丢失。

警告:系统上的所有永久配置(主机名、存储配置和主机注册)将被永久覆盖。

警告:此应用工具仅供受过培训的服务人员使用。

使用情形
Usage: svc_reinit [<qualifiers>]
where the qualifiers are:
-h --help: Display this message
-f --force: Skip all prompts

相关命令
Restore VNXe OE (svc_reimage)

VNXe 服务命令 57
Service Mode 此命令用于查看、设置或清除软件启动控制计数器,这些计数器决定某个 SP 是否
Information 具备基准功能且可以正常启动,或者是否应进入服务模式进行修复。
(svc_rescue_state)
功能:恢复

模式:服务

使用情形:技术服务

说明
此命令在各种 SP 或系统的关闭过程中或在分类期间使用,用于确定哪个系统组件
负责将 SP 启动到服务模式。
使用情形
Usage: svc_reimage [<qualifiers>]
where the qualifiers are:
--help [-h, -?]: display this message
--list [-l]: list all boot counters
--set [-s]: set the Service-Mode boot counter
--clear [-c]: clear all the boot counters
--clear_degraded: [-d]: Clears all degraded state indicators
* The List option details why the current SP has booted into
Service Mode.
* The Set option manually forces the SP to boot into Service
Mode the next time it is rebooted.
* The Clear option resets all the boot control counters and
instructs the SP to attempt to boot into Normal Mode on the
next reboot. Note that errors or faults may still cause the
system to boot back into Service Mode. In most instances, you
must first address the failure condition which put the SP into
service mode before proceeding with clearing the counters.
* The Clear_Degraded option resets all of the degraded mode
indicators stored in both the nvram and on the local SSD
boot device. Only use this option to clear Degrade Mode
conditions if the reason the system is in service mode was
due to an 'rrchc' code in the Rescue Reason of svc_diag that
indicates that:
1) A driver on the system has decided to put the SP or
system in 'degraded' mode.
2) The fault that landed the system and driver into a
'degraded' state has been cleared or fixed locally in
service mode.
As with the Clear option, errors or faults may still cause
the system to boot back into Service Mode.
相关命令
System Diagnostics (svc_diag)

VNXe 服务命令 58
Management Stack 此命令重新启动系统管理软件。
Controls
功能:系统操作
(svc_restart_service)
模式:正常

使用情形:技术服务

说明
此命令取代 svc_restart_mgmt,且具有扩展功能。
您可以出于故障排除目的运行这些扩展命令来初始化系统软件,具体做法是退出进
程,然后在本地 SP 上将其重新启动。
系统软件部分的重新启动将中断其功能。
可能重新启动的功能包括:
• MGMT — 当 SP 处于正常模式时启动 Unisphere。MGMT 也负责快照计划和后
端存储的扩展。例如,自动文件系统扩展耗尽本地资源池时。管理软件的重
新启动可能会干扰管理活动,如存储资源调配、网络配置和其他活动。仅在
确认没有其他用户正在管理系统之后使用 svc_restart_service MGMT。服务
用户可以运行 Linux 命令 last 以确定是否有其他用户登录到系统中。
• NAS_A — 控制 SPA 文件服务器虚拟化软件。重新启动 NAS_A 将导致通过此
服务访问的所有服务器和共享“数据不可用”。
• NAS_B — 控制 SPB 文件服务器虚拟化软件。重新启动 NAS_B 将导致通过此
服务访问的所有服务器和共享“数据不可用”。
• NASDB — 控制从故障切换到配置等各项 NAS 管理活动中使用的服务。数据
在此重新启动活动期间仍然可访问。
使用情形
Usage: svc_restart_service <qualifiers>
Where "action" is:
-h --help: Display this message

restart: Restarts a software component (MGMT)

And "service" is:


MGMT: when used with "restart"

If the first argument is --term, the script kills the MGMT


process using SIGTERM instead of SIGABRT.
相关命令
Restart Management Stack (svc_restart_mgmt)

VNXe 服务命令 59
Service User 此命令用于测试或设置服务用户密码。
Password 功能:配置
Configuration
(svc_service_ 模式:两者均可
password)
使用情形:技术服务

说明
此命令检查服务用户密码是否设置为默认值或是否有效。它还允许您更改服务用户
密码。
默认服务用户密码为“service”(无引号)。当此命令显示使用默认值时,请设置
新密码。isdefault 模式开关返回“yes”或“no”。此命令的 reset 选项可将
服务密码设置回默认值。
要想密码是符合 VNXe 安全策略的有效密码,必须遵循以下指导原则:
• 字符长度为 8-40

• 至少一个大写字符

• 至少一个小写字符

• 至少一个数字

• 至少一个以下集合中的特殊字符:! , @ # $ % ^ * _ ~ ?

• 不包含以下集合中任何不允许的字符:&、'、空格、Tab 符

• 密码必须与之前三个服务模式密码不同。

下面是一个有效密码的示例:m0de_S3rvice。

在服务模式中使用此工具对服务密码所做的更改被视为非永久更改;当系统返回正
常模式时,服务用户的密码仍是使用此命令执行更改之前的密码。
使用情形
Usage: svc_service_password <qualifiers> [<Password>]
where <qualifiers> are:
--help[-h]: Display this message
--set [-s]: Set password with either supplied on command
line or prompt.
--reset [-r]: Reset the default password
--validate [-v]: Validate the supplied password
--isdefault [-d]: Determine if password is factory default
return 0 if factory default, 1 otherwise.
用法示例
svc_service_password –set abcd

相关命令
无。

VNXe 服务命令 60
Service Shell 此命令获取对 VNXe 操作系统的超级用户访问权限。
(svc_service_shell)
功能:恢复

模式:两者均可

使用情形:技术服务

说明
此命令允许授权支持实体在正常和服务模式下获取对 VNXe 操作系统的超级用户访
问权限。
此工具必须先由支持实体启用,然后才可以使用。启用后,该工具将在 3 天内有效。
3 天后,它将自动禁用。
使用情形
Usage: svc_service_shell [-h|--help] [cmd]

This is an EMC service tool which opens a service shell or


executes a single command with elevated privileges.

Optional Parameters:

-h| --help: Displays this message


cmd: A single, standalone Linux command to run elevated
privileges.

相关命令
无。

VNXe 服务命令 61
Shutdown 此命令执行某个 SP 的安全重新启动或关闭以及系统的关闭。
(svc_shutdown)
功能:系统操作

模式:两者均可

使用情形:通用

说明
此服务工具可执行某个 VNXe SP 的安全重新启动或断电(挂起)以及系统的关闭。

服务和正常模式下均可执行 SP 重新启动和关闭。仅当至少一个 SP 处于正常模式时,


才能执行系统关闭。

初始化后,重新启动操作将尝试正常地关闭活动的存储软件和所有正在运行的操作
系统进程,然后再执行 SP 的热重新启动。接着,SP 将自动运行其启动过程(假定
运行状况正常且没有需要进入服务模式的故障)并重新联机。挂起操作在执行相同
的系统软件正常关闭方面与重新启动类似,但它不会重新启动 SP。SP 仍处于断电
状态。要使 SP 回到联机状态,必须物理移除它然后再重新插入或者关闭并重新启
动机箱。
警告:如果使用不当,可能会出现“数据不可用”的情形。

使用情形
Usage: svc_shutdown [<qualifier>]
Where <qualifiers> are:
--help | -h: Display this message
--halt <reason code>: Halt the SP
--reboot | [-r] <reason code>: Reboots the system
--quickbook| [-q] <reason code>: Quick reboot the SP (skip
POST)
--system-halt [--force]: Halt the complete system; the force
option suppresses confirmation. Reason codes are optional.

用法示例
Example 1:User wants to reboot SPA
service@VNXe-spa:~/> svc_shutdown –r
service@VNXe-spa spa:~>
Broadcast message from root@spa
(unknown) at 21:22 ...
The system is going down for reboot NOW!

VNXe 服务命令 62
Example 2:User wants to shutdown the system
service@ VNXe-spa:~> svc_shutdown --system-halt
############################################################
##################
WARNING: This action will shut down the system and you will
have to manually power up afterwards.
############################################################
##################Enter "yes" if want to proceed with this
action: yes
Normal Mode
1
1
Peer shutdown now in progress
System shutdown now in progress

相关命令
Service Mode Information (svc_rescue_state)

VNXe 服务命令 63
Enable Secure 此命令打开或关闭安全外壳守护程序 (SSHD)。
Shell (svc_ssh)
功能:系统操作

模式:两者均可

使用情形:技术服务

说明
此命令启用或禁用服务用户通过 SSH 连接利用系统的管理接口连接到 VNXe 的
Linux CLI 的功能。如果 SSH 连接被禁用,或者在 Unisphere 提出请求时未打开,服
务用户可通过与 SP 的串行连接登录 Linux,然后使用此命令手动启用 SSH。
此命令还可禁用到 VNXe 系统的 SSH 连接。如果在用户通过 SSH 连接到 SP 时禁用
了 SSH,该用户的会话将会结束。只能在正常模式中在主 SP 上运行此命令。
使用情形
Usage: svc_ssh [options]
Options:
-e, --enable: Enables sshd on the system
-d, --disable: Disables sshd on the system
-s, --status: Prints status of sshd

用法示例
service@VNXe-spa:~> svc_ssh -d
Disabling sshd ...
Connection to 10.x.x.43 closed by remote host.

相关命令
无。

VNXe 服务命令 64
Run FSCK on 此命令在存储文件系统上运行文件系统检查 (FSCK) 并使这些系统返回到可装载状态。
Storage
(svc_storage_ 功能:恢复
integritycheck)
模式:正常

使用情形:技术服务

说明
此命令自动卸载正在使用的文件系统,对其运行 FSCK,然后在可以安全地重新装
载文件系统时重新装载。

执行此命令是重新装载文件系统的最快方式。

如果文件系统已破坏且未装载,文件系统将仅作为输出列出。此命令提供了一个修
复并重新装载已破坏且未装载的文件系统的选项。

使用情形
Usage: svc_storage_integritycheck [<qualifiers>]
Where the qualifiers are:
--help [-h]: Displays this message

相关命令
无。

VNXe 服务命令 65
Output Storage 此命令收集有关 SP 的存储信息。
Information
(svc_storagecheck) 功能:诊断

模式:正常

使用情形:通用

说明
此命令允许您调查关于系统上的所有虚拟存储内容的具体细节。它可以收集关于特
定共享类型(CIFS 或 NFS)、iSCSI 存储或配置堆栈中的较低层的查询信息。
请仅在正常模式下的主 SP 上运行此命令。输出内容会记录到
/home/service/svc_storagecheck.log 文件。如果运行所有可用检查,此
命令的输出内容将非常冗长。使用 Linux less 应用工具查看上述指定位置的输出
日志。
使用情形
Usage: svc_storagecheck [command] <parameters>
where the commands are:
-d, --dedupe
-s, --sizes
-l, --list
-n, --nfs
-c, --cifs
-m, --ndmp
-a, --all
-h, --help
SRM/SRA Diagnostic commands:
--fs_oid
find FS OID
--fs_list_oids
list all FS OIDs. The OID can be used to find FS

相关命令
Collect Performance Information (svc_perfcheck)

VNXe 服务命令 66
Display storage 此命令显示磁盘映射。
mappings
(svc_storage_map) 功能:诊断

模式:正常

使用情形:通用

说明
借助此命令,可以显示有关用户 LUN、文件系统和 VDM 的磁盘映射的信息。它还
包括中间映射。
使用情形
svc_storage_map -h
Usage: svc_storage_map [<qualifiers>]
where <qualifiers> are:
--help[-h]: Display this message
--lun=<name>[-l=<name>]: Display mappings relative to
specific User LUN
--fs=<name>[-f=<name>: Display mappings relative to
specific User File System
--vdm=<name>[-v=<name>: Display mappings relative to
specific VDM
--list-lun - List User LUNs
--list-fs - List User Filesystems
--list-vdm - List VDM's
This script displays information about the disk mappings for
user LUNs,
Dart FileSystems and VDMs, including intermediate mappings.

用法示例
Example specifying User LUN:
svc_storage_map --lun=lunname or --lun=myLUN00
Example specifying File System:
svc_storage_map --fs=SharedFolder00
Example specifying VDM's
svc_storage_map --vdm=SVDM_A

相关命令
无。

VNXe 服务命令 67
Redirect Output 此命令尝试以安全、可控的方式在指定的系统接口运行 tcpdump 网络诊断。
(svc_tcpdump)
功能:诊断

模式:两者均可

使用情形:技术服务

说明
此命令允许用户出于诊断目的在系统接口上运行 Linux tcpdump。输出内容会保存
在固定大小的循环文件中。输出文件达到 -C 定义的大小或内部定义的最大大小时,
输出内容会重定向至另一个具有相同基本名称但后缀不同的文件。后缀是一个数字,
从 0 一直到 -W 选项定义的数值或内部定义的最大循环数值。循环文件按数字顺序
填充。

此命令生成的输出文件可使用 tcpdump -r 命令读取。

许多选项都与其 tcpdump 对应项类似。

此命令可在任何操作模式下运行。

使用情形
Usage: svc_tcpdump [<options>]
where the options are:
-h| --help: Display usage information.
-i| --interface [name]: Interface for which information will
be captured
-w| --filename [name]: Base file name for output files
-p|--path [path]: Path for the output file storage
-W| --rotations [number]: Number of files for output use
-C| --size [size]: Size of each output file (in MB)
-s| --snaplen [bytes]: Captures this specified number of
byte of data from each packet rather than the default 65535
-t| --timestamp [1-4]: Timestamp commands:
1: Don't print a timestamp on each dump line
2: Print an unformatted timestamp on each dump
line
3: Print a delta (in micro-seconds) between
current and previous line on each dump line
4: Print a timestamp in default format
proceeded by date on each dump line.
-v| --verbosity [1-3]: Specifies verbosity of output, 3
being the most

VNXe 服务命令 68
-D| --dump-intfs: Print the list of the network interfaces
available on the system and on which tcpdump can capture
packets.
-F| --input-expr [file]: Use file as input for the filter
expression
-e| --llheader: Prints the link-level header on each dump
line
-n| --no-addr: Don't convert addresses (host addresses, port
numbers, etc.) to names.
-q| --quiet: Print less protocol information for shorter
output lines
-y| --dlink [type: Set the data link type to use while
capturing packets to datalinktype.
DEFAULTS AND CONSTRAINTS
A prefix of "vnxe-tcpdump-" is added to output file names.
Rotations (-W) and size (-C) must be >= 1. The default file
size is 50MB and the default number of files is 5. The
default interface is mgmt_vdev. By default, the output files
are named "dump.out[0-4]" & stored in /home/service

用法示例
EXAMPLE
Capture mgmt_vdev, save 2 100MB files called vnxe-
tcpdump.out[0-1] to /home/service:
svc_tcpdump -i mgmt_vdev -p /home/service -w tcpdump.out -W
2 -C 100 –s 1000

相关命令
无。

VNXe 服务命令 69

You might also like