Article Number: 000150790
Windows 操作系统有许多日志,在客户位置分析无线问题时,这些日志会有益。特别是当这些问题无法在其他网络环境中复制时。
先前测试中已存在的日志:
WLANAutoconfig.log
可以在 Windows 事件查看器中手动找到并保存事件查看器中的文件(如果尚未编译到 CAB 文件中):
Wlan-autoconfig
文件夹。NETSH
脚本输出到 C:\wlogs 文件夹:WLAN-autoconfig
诊断日志记录
您可以在将来测试之前在正在测试的系统 (SUT) 上启用 WLAN-autoconfig
诊断日志。这可能有助于一些更详细的日志消息。请使用以下说明。
要启用诊断日志:
Wlan-Autoconfig
Wlan-Autoconfig
文件夹。NETSH
。
Netsh
脚本文本供参考:(复制下面的文本并粘贴到记事本中并将文件另存为 ETL.BAT
)
@echo off rem PASTE THIS SCRIPT INTO NOTEPAD AND SAVE AS A .BAT FILE. RT CLICK THE FILE AND RUN AS ADMINISTRATOR. rem DO NOT CREATE DIRECTORY IF IT ALREADY EXISTS if exist c:\wlogs goto SKIPMKDIR mkdir c:\wlogs :SKIPMKDIR rem BEGIN TRACE netsh ras set tracing * enable rem BUNDY, I WOULD LIKE TO DYNAMICALLY GENERATE THE FILENAME wlan001.etl TO AVOID WRITING OVER PREVIOUS LOGS SET file1=1 IF EXIST c:\wlogs\wlan%file1%.etl GOTO nextlog netsh trace start scenario=wlan tracefile=c:\wlogs\wlan1.etl capture=yes persistent=yes maxsize=250 report=yes filemode=append GOTO filedone :nextlog SET /A "file1+=1" IF EXIST c:\wlogs\wlan%file1%.etl GOTO nextlog netsh trace start scenario=wlan tracefile=c:\wlogs\wlan%file1%.etl capture=yes persistent=yes maxsize=250 report=yes filemode=append :filedone rem DISPLAY PROMPT TO PRESS ANY KEY TO STOP THE CAPTURE set /p =Press any key to stop the capture. < nul pause > nul rem STOP TRACE netsh trace stop rem DISPLAY RESULTS AND PROMPT TO HIT ANY KEY BEFORE ENDING pause
Desktops & All-in-Ones, Laptops
10 Oct 2023
5
Solution