vm-support - Script for gathering information

vm-support 是一个用于搜集 ESX 信息的工具,同时还可以用来保存 ESX 的配置信息,最简单的用法是不带任何选项。
建议在 /tmp 下运行此脚本,生成的文件格式为 esx-{date}.{PID}.tgz
一个典型的 vm-support 运行过程为:
[root@BI-ESX1 xiaoyu]# time vm-support
 
VMware ESX Server Support Script 1.27
 
Preparing files: -
 
Error running /usr/sbin/esxcfg-info -a or writing to /tmp/esxcfg-info.27960.txt
(err 1).
Do you have a full disk?
Continuing...
 
Preparing files: -
Waiting up to 300 seconds for background commands to complete:
 
Waiting for background commands: |
Creating tar archive ...
 
 
File: /tmp/xiaoyu/esx-2006-10-24--14.47.27960.tgz
NOTE: esx-2006-10-24--14.47.27960.tgz is greater than 10 MB.
Please do not attach this file when submitting an incident report.
Please contact VMware support for an ftp site.
To file a support incident, go to http://www.vmware.com/support/sr/sr_login.jsp
 
 
To see the files collected, run: tar -tzf /tmp/xiaoyu/esx-2006-10-24--14.47.27960.tgz
 
Done
 
real    9m27.147s
user    0m56.290s
sys     1m3.770s
 
然后你可以用 tar -tzvf esx-2006-10-24--14.47.27960.tgz 显示搜集了那些文件
搜集的主要信息为:
/tmp/aamSupport.PID HA 的信息 (VMware HA 使用的是 Legato AAM 的模块 )
/proc/vmware 统计信息
/proc/vmware/config 配置信息
/etc
/etc/sysconfig 系统配置信息
/vmfs/volumes VMFS 信息
/var/log 日志信息
另外的一些命令的输出全部都在解压目录下的 tmp 目录中,如 fdisk, uptime, ifconfig,chkconfig 以及一些 esxcfg 命令。
常用的几种方式还包括:
-x: 列出正在运行的 VM, 实际上是通过 ls /proc/vmware/vm/*/names 命令得到信息
[root@BI-ESX1 root]# vm-support -x
 
VMware ESX Server Support Script 1.27
Available worlds to debug:
 
vmid=1062   Prod-LotteryWeb
vmid=1063   Prod-DWIQ
vmid=1081   Prod-AppServer
vmid=1086   Prod-P2VHelper-CN
-X world ID: 搜集某一 VM 的信息 (world id 可以有 -x 得到 )
不过搜集 VM 的信息的过程较长,而且信息较多。因此除非有特殊情况,一般也不会用。
 
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值