Chinaunix首页 | 论坛 | 博客
  • 博客访问: 661813
  • 博文数量: 291
  • 博客积分: 10025
  • 博客等级: 上将
  • 技术积分: 2400
  • 用 户 组: 普通用户
  • 注册时间: 2004-12-04 12:04
文章分类

全部博文(291)

文章存档

2008年(102)

2007年(112)

2006年(75)

2004年(2)

我的朋友

分类:

2006-10-24 15:47:23

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

 

 

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的信息(VMwareHA使用的是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的信息的过程较长,而且信息较多。因此除非有特殊情况,一般也不会用。

阅读(4010) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~