签到成功

知道了

CNDBA社区CNDBA社区

关于windows收集日志

2021-09-16 11:30 2474 0 原创 windows
作者: hbhe0316

1.最近在处理windows远程登陆发生【出现了内部错误】。

2.开case跟microsoft,给出如下收集trace的步骤,记录一下

http://www.cndba.cn/hbhe0316/article/4725

一:Netmon trace安装和使用

您可以从以下站点下载 Network Monitor 3.4 (NetMon),然后以管理员身份运行以安装 netmon 工具:
http://www.microsoft.com/downloads/details.aspx?FamilyID=983b941d-06cb-4658-b7f6-3088333d062f&displaylang=en

CAPI2 log:
您需要在客户端和故障服务器捕获数据之前都启用 CAPI2 日志,因为默认情况下 CAPI2 事件日志是禁用的。
Open Event Viewer, expand Application and Services Logs – Microsoft – Windows – CAPI2. Right click Operational and select Properties. Then enable logging

http://www.cndba.cn/hbhe0316/article/4725

Steps:

  1. 开启netmon capture(需要参考network monitor caputer) 和右击以管理员身份运行RDS tracing工具 在客户端和服务器端(需要添加截图)
    客户端:

服务器端:http://www.cndba.cn/hbhe0316/article/4725

http://www.cndba.cn/hbhe0316/article/4725http://www.cndba.cn/hbhe0316/article/4725

  1. 运行 Schannel etl trace 分别在客户端和服务器端:
    以管理员身份打开CMD,运行以下命令启动schannel etl trace:

logman create trace “ds_security” -ow -o c:/ds_security.etl -p {37D2C3CD-C5D4-4587-8531-4696C44244C8} 0xffffffffffffffff 0xff -nb 16 16 -bs 1024 -mode Circular -f bincirc -max 40960 -ets
logman update trace “ds_security” -p {1F678132-5938-4686-9FDC-C8FF68F15C85} 0xffffffffffffffff 0xff -ets
logman update trace “ds_security” -p {44492B72-A8E2-4F20-B0AE-F1D437657C92} 0xffffffffffffffff 0xff -ets
logman update trace “ds_security” -p “Schannel” 0xffffffffffffffff 0xff -ets

http://www.cndba.cn/hbhe0316/article/4725
http://www.cndba.cn/hbhe0316/article/4725

  1. 从客户端远程故障2019 VM复现远程失败问题。

  2. 运行以下命令在客户端和服务器上停止 schannel etl trace:
    logman stop “ds_security” -ets

Schannel etl trace will be saved as c:/ds_security.etl

  1. 停止的RDS tracing 和network monitor在客户端和服务器端。

然后请将以下日志上传到工作区:
日志摘要:
客户端:
• netmon trace;
• CAPI2 Event log;
• Schannel etl
• RDS tracing logs
这个目录下所有日志
C:/Windows/System32/winevt/Logs

http://www.cndba.cn/hbhe0316/article/4725
http://www.cndba.cn/hbhe0316/article/4725

故障w2019 VM端:
• netmon trace;
• CAPI2 Event log;
• Schannel etl
• RDS tracing logs
这个目录下所有日志
• C:/Windows/System32/winevt/Logs

二.network monitor capture安装和使用

About how to capture network monitor traffic:
1.Choose the version for your system to download, install it as typical: https://www.microsoft.com/en-US/download/details.aspx?id=4865
2.Run Network Monitor as administrator.

http://www.cndba.cn/hbhe0316/article/4725

3.In the bottom left-hand, choose the NIC or NICs you want to capture.

4.Run command: ipconfig /flushdns to clean DNS cache.

5.Then start capture when the issue reoccurs. After the necessary information is collected, click Stop.

6.Save the captured files, please upload them in the case link below.

版权声明:本文为博主原创文章,未经博主允许不得转载。

windows

用户评论
* 以下用户言论只代表其个人观点,不代表CNDBA社区的观点或立场
hbhe0316

hbhe0316

关注

1.只有承认无知,才能装下新的东西; 2.进步来自一点点滴滴的积累; 3.广博让你更优秀,而专业让你无法替代; 4.挫折和失败能够转换为一种财富。

  • 889
    原创
  • 1
    翻译
  • 13
    转载
  • 24
    评论
  • 访问:2583245次
  • 积分:1523
  • 等级:核心会员
  • 排名:第6名
精华文章
    最新问题
    查看更多+
    热门文章
      热门用户
      推荐用户
        Copyright © 2016 All Rights Reserved. Powered by CNDBA · 皖ICP备2022006297号-1·

        QQ交流群

        注册联系QQ