VMware 中收集診斷信息,可能包含來(lái)自 ESXi 主機(jī)和 vCenter Server 的支持包。在主機(jī)支持包中收集的數(shù)據(jù)可能被視為敏感數(shù)據(jù)。另外,從 vSphere 6.5 起,支持包中還會(huì)包含來(lái)自 ESXi 主機(jī)的加密信息。
和碩ssl適用于網(wǎng)站、小程序/APP、API接口等需要進(jìn)行數(shù)據(jù)傳輸應(yīng)用場(chǎng)景,ssl證書(shū)未來(lái)市場(chǎng)廣闊!成為創(chuàng)新互聯(lián)建站的ssl證書(shū)銷(xiāo)售渠道,可以享受市場(chǎng)價(jià)格4-6折優(yōu)惠!如果有意向歡迎電話(huà)聯(lián)系或者加微信:028-86922220(備注:SSL證書(shū)合作)期待與您的合作!
1、在 ESXi/ESX 主機(jī)上的控制臺(tái)會(huì)話(huà)中運(yùn)行 vm-support
將控制臺(tái)打開(kāi)到 ESX 或 ESXi 主機(jī)
運(yùn)行vm-support
#vm-support --version
vm-support v2.0
生成壓縮的日志包,并將其存儲(chǔ)在擴(kuò)展名為.tgz的文件中,放在以下位置之一:
/var/tmp/
/var/log/
當(dāng)前的工作目錄
要將日志包導(dǎo)出到共享 vmfs 數(shù)據(jù)存儲(chǔ),請(qǐng)使用此命令:vm-support -f -w /vmfs/volumes/DATASTORE_NAME
注意:-f選項(xiàng)在 ESXi 5.x、ESXi/ESX 4.1 Update 3 及更高版本中不可用。
也可將日志包收集并下載到客戶(hù)端后,將日志上載到 SFTP/FTP 站點(diǎn)。
2、通過(guò)流的方式傳輸 ESXi 5.x 和 6.0 主機(jī)中的 vm-support 輸出
啟用通過(guò) SSH 訪(fǎng)問(wèn) ESXi Shell
運(yùn)行以下命令
ssh root@ESXHostnameOrIPAddressvm-support -s >vm-support-Hostname.tgz
# vm-support -s >/vmfs/volumes/OCS01_SY18_CP05PV2C16/vmsupport.tgz
也可以使用同一個(gè)命令將支持日志包定向到所需的數(shù)據(jù)存儲(chǔ)位置(提到目標(biāo)路徑)。例如:
ssh root@ESXHostnameOrIPAddress'vm-support -s >/vmfs/volumes/datastorexxx/vm-support-Hostname.tgz'
3、從 ESXi 5.x 和 6.0 主機(jī)中基于 HTTP 下載 vm-support 輸出
從 ESXi 5.0 開(kāi)始,可通過(guò) HTTP 調(diào)用vm-support命令行實(shí)用程序。這允許使用 Web 瀏覽器或命令行工具(如wget或curl)下載內(nèi)容。
使用任何 HTTP 客戶(hù)端,從以下位置下載資源:https://ESXHostnameOrIPAddress/cgi-bin/vm-support.cgi
例如,在 Linux 或其他 Posix 客戶(hù)端(如 vSphere Management Assistant 設(shè)備)上使用wget實(shí)用程序下載資源。將在客戶(hù)端上的以下指定位置生成壓縮日志包:wget https://10.11.12.13/cgi-bin/vm-support.cgi
在收集日志包并將其下載到客戶(hù)端后,將日志上載到 SFTP/FTP 站點(diǎn)。
vc中的信息收集
要從 vCenter 5.x Server Appliance 收集診斷信息,請(qǐng)執(zhí)行以下操作:
打開(kāi)控制臺(tái)會(huì)話(huà)以進(jìn)入 vCenter Server Appliance。
以管理用戶(hù)身份(如root)登錄。
運(yùn)行以下命令:/usr/sbin/vc-support.sh
該命令列出要包括在支持包中的每個(gè)文件以及所生成的日志包的路徑和文件名。日志包在發(fā)出此命令的目錄中以當(dāng)前日期命名。例如:/root/vcsupport-yyyy-mm-dd.pid.zip
打開(kāi)控制臺(tái)會(huì)話(huà)以進(jìn)入 vCenter Server Appliance。
以管理用戶(hù)身份(如 root)登錄。
鍵入 shell.set --enabled true,然后按Enter。
鍵入 shell,然后按 Enter。
運(yùn)行以下命令以將日志導(dǎo)出到 /storage/log/:
vc-support -l
打開(kāi) Web 瀏覽器并導(dǎo)航到 https://vCenter_server_FQDN:443/appliance/support-bundle
出現(xiàn)提示時(shí),輸入 root 憑據(jù),然后單擊Enter。
將自動(dòng)開(kāi)始下載為 vm-support.tgz。
打開(kāi) Web 瀏覽器并導(dǎo)航到:https://vCenter_Server_IP_address:5480
使用您的憑據(jù)或以本地管理員身份登錄。
單擊 vCenter Server 選項(xiàng)卡。
單擊狀態(tài)選項(xiàng)卡。
單擊下載 vCenter Server 支持包鏈接。
完成后,該支持包位于 VCSA 上的以下位置:/tmp/vc-support-bundle/
To download a vc-support diagnostic log bundle from vCenter Server:
Enter the command:Get-Log -Bundle -DestinationPath c:\Storage\Location\
You see output similar to: Data
----
C:\Storage\Location\vc-support-nnnnnnnn-nnnn-nnnn-nnnn-nnnnnnnnnnnn.tgz
No progress bar is provided for the command. When completed, upload the logs to the FTP site. For more information, see Uploading diagnostic information to VMware (1008525).
To download a vm-support diagnostic log bundle from an ESX/ESXi host managed by vCenter Server:
Enter the command:Get-VMHost HostNameOrIP | Get-Log -Bundle -DestinationPath c:\Storage\Location\
You see output similar to: Data
----
C:\Storage\Location\vm-support-nnnnnnnn-nnnn-nnnn-nnnn-nnnnnnnnnnnn.tgz
No progress bar is provided for the command. When completed, upload the logs to the FTP Site. For more information, see Uploading diagnostic information to VMware (1008525).
vc中的界面導(dǎo)出日志


還有一些/var/log下的日志,比如vmkernel.log vpxa.log hostd.log等需要關(guān)注。

                分享名稱(chēng):vmware收集日志相關(guān)
                
                瀏覽地址:http://www.yijiale78.com/article44/jooiee.html
            
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供軟件開(kāi)發(fā)、做網(wǎng)站、響應(yīng)式網(wǎng)站、品牌網(wǎng)站設(shè)計(jì)、云服務(wù)器、
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶(hù)投稿、用戶(hù)轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話(huà):028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來(lái)源: 創(chuàng)新互聯(lián)