您可以使用 Python 指令碼對 App Volumes 功能進行疑難排解。
下述的指令碼需要 Python 2.7.9 或更新版本。
擷取應用程式指派的對應詳細資料
下列指令碼會在您的環境中擷取指派的詳細資料。
用途:
usage: mapping_details.py [-h] [-t TYPE] [-p XMP_PORT] [-o CSV_PATH] [-u SEARCH_USER] [-g SEARCH_GROUP] [-d SEARCH_DOMAIN] xmp_host xmp_domain xmp_user xmp_password positional arguments: xmp_host XMP host url xmp_domain XMP user domain xmp_user XMP user name xmp_password XMP user password optional arguments: -h, --help show this help message and exit -t TYPE, --type TYPE All, AppVolumes, DaaS -p XMP_PORT, --port XMP_PORT XMP host port -o CSV_PATH, --output CSV_PATH Output csv file path -u SEARCH_USER, --user SEARCH_USER Search user name -g SEARCH_GROUP, --group SEARCH_GROUP Search group name -d SEARCH_DOMAIN, --domain SEARCH_DOMAIN Search domain name
指令碼格式:
mapping_details.py <IP/FQDN> <domain> <username> '<password>' -p 8443
程式碼範例 (擷取所有指派):
qbi@qbi-vm ~ # mapping_details.py qbi-ubuntu.eng.vmware.com falcon administrator '<password>' -p 8443 Get assignments successfully. qbi@qbi-vm ~ # cat assignments.csv key,user name,assignment,application name,bundle name,package name,assignment type,Os type MIRAGEDOMAIN\qbi only||Mozilla Firefox (3.0.3),MIRAGEDOMAIN\qbi only,qbi-only-win10-x64,Mozilla Firefox (3.0.3),,,Native,Windows 10 (x64) MIRAGEDOMAIN\qbi only||Adobe Flash Player 21 NPAPI,MIRAGEDOMAIN\qbi only,qbi-only-win10-x64,Adobe Flash Player 21 NPAPI,,,Native,Windows 10 (x64) MIRAGEDOMAIN\qbi only||Mozilla Maintenance Service,MIRAGEDOMAIN\qbi only,qbi-only-win10-x64,Mozilla Maintenance Service,,,Native,Windows 10 (x64) MIRAGEDOMAIN\qbi only||Mozilla Firefox 45.0.1 (x86 en-US),MIRAGEDOMAIN\qbi only,qbi-only-win10-x64,Mozilla Firefox 45.0.1 (x86 en-US),,,Native,Windows 10 (x64) MIRAGEDOMAIN\qbi only||Python 2.6.6,MIRAGEDOMAIN\qbi only,qbi-only-win10-x64,Python 2.6.6,,,Native,Windows 10 (x64) FALCON\qbi||Adobe Flash Player 21 NPAPI,FALCON\qbi,qbi-win10-x64,Adobe Flash Player 21 NPAPI,,,Native,Windows 10 (x64) FALCON\qbi||Mozilla Maintenance Service,FALCON\qbi,qbi-win10-x64,Mozilla Maintenance Service,,,Native,Windows 10 (x64) FALCON\qbi||Mozilla Firefox 45.0.1 (x86 en-US),FALCON\qbi,qbi-win10-x64,Mozilla Firefox 45.0.1 (x86 en-US),,,Native,Windows 10 (x64) MIRAGEDOMAIN\qbi||Adobe Flash Player 21 NPAPI,MIRAGEDOMAIN\qbi,qbi-win10-x64,Adobe Flash Player 21 NPAPI,,,Native,Windows 10 (x64) MIRAGEDOMAIN\qbi||Mozilla Maintenance Service,MIRAGEDOMAIN\qbi,qbi-win10-x64,Mozilla Maintenance Service,,,Native,Windows 10 (x64) MIRAGEDOMAIN\qbi||Mozilla Firefox 45.0.1 (x86 en-US),MIRAGEDOMAIN\qbi,qbi-win10-x64,Mozilla Firefox 45.0.1 (x86 en-US),,,Native,Windows 10 (x64) FALCON\Users||FirefoxWin10x64,FALCON\Users,app-bundle-assignment,Mozilla Firefox (3.0.3),FirefoxWin10x64,,Native,Windows 10 (x64) FALCON\Users||CutePDF Professional 3.7 (Evaluation),FALCON\Users,users-win7,CutePDF Professional 3.7 (Evaluation),,,Native,Windows 7 (x64) FALCON\Users||FileZilla Client 3.9.0.6,FALCON\Users,users-win7,FileZilla Client 3.9.0.6,,,Native,Windows 7 (x64) MIRAGEDOMAIN\Users||CutePDF Professional 3.7 (Evaluation),MIRAGEDOMAIN\Users,users-win7,CutePDF Professional 3.7 (Evaluation),,,Native,Windows 7 (x64) MIRAGEDOMAIN\Users||FileZilla Client 3.9.0.6,MIRAGEDOMAIN\Users,users-win7,FileZilla Client 3.9.0.6,,,Native,Windows 7 (x64)
擷取連結和中斷連結失敗的詳細資料
下列指令碼會擷取連結和中斷連結失敗的詳細資料,包括涉及 AppStack 的部分。
用途:
usage: fetch_volume_failures.py [-h] [-t SEARCH_DURATION] [-u SEARCH_USER] [-d SEARCH_DOMAIN] [-s PAGE_SIZE] [-c | -v | -o CSV_PATH] login_host login_domain login_user login_password positional arguments: login_host Login host url in format hostname<:port> login_domain Login user domain login_user Login user name login_password Login user password optional arguments: -h, --help show this help message and exit -t SEARCH_DURATION, --time SEARCH_DURATION Last1Hour, Last12Hour, Last24Hour, Last72Hour, All -u SEARCH_USER, --user SEARCH_USER Search user name -d SEARCH_DOMAIN, --domain SEARCH_DOMAIN Search domain name -s PAGE_SIZE, --size PAGE_SIZE Size of each page of the results -c, --concise Print results in concise view -v, --verbose Print results in itemed view -o CSV_PATH, --output CSV_PATH Output to csv file in given path (default)
指令碼格式:
python fetch_volume_failures.py <IP/FQDN> <domain> <username> '<password>'
程式碼範例:
python fetch_volume_failures.py 10.111.24.65 falcon administrator '<password>' # output as volume_failures.csv for last 1 hour python fetch_volume_failures.py 10.111.24.65 falcon administrator '<password>' -v # show results of last 1 hour in screen python fetch_volume_failures.py 10.111.24.65 falcon administrator '<password>' -t Last24Hour # show last 24 hour result python fetch_volume_failures.py 10.111.24.65 falcon administrator '<password>' -t All -u hez -d vmwarem # show all results of hez@vmwarem for last 1 hour
每個失敗記錄皆包含下列資訊:
時間戳記
可寫入?- 表示這是可寫入的磁碟區 (Y) 或 AppStack (N)。
備註︰可寫入的磁碟區為測試版功能。如需詳細資訊,請連絡您的 VMware 代表。
連結/中斷連結 - 表示這是連結失敗或中斷連結失敗。
使用者/網域 - 發生失敗的使用者名稱和網域。
檔案位置 - 檔案位置。格式為 <datacenter>/<node>/<vcenter>/<datastore>/<vmdk path>
虛擬機器位置 - 檔案位置。格式為 <datacenter>/<node>/<vcenter>/<vm name>
當您發現連結/中斷連結失敗時,建議您確認下列事項:
使用者是否為適當群組的成員?
代理程式是否已安裝於桌面上且為最新版本?
您也可以記錄失敗資訊以納入支援要求中。
備註︰您也會在使用者介面上看見通知,其中包含這些失敗的基本資訊 (例如失敗次數和受影響的使用者數目)。如需通知的詳細資訊,請參閱通知頁面。