序号 巡检内容 巡检命令
1 CPU使用率 wmic CPU get loadpercentage /value|findstr [1-9]或wmic path win32_perfformatteddata_perfos_processor get name,PercentIdleTime
2 可用内存数(byte) wmic path win32_perfformatteddata_perfos_memory get AvailableBytes
3 内存总容量(byte) wmic MEMORYCHIP get Capacity
3 磁盘使用情况 wmic VOLUME get name,Capacity,FreeSpace
4 防火墙情况 netsh firewall show config
5 端口监听情况 netstat -an |findstr /i tcp|findstr /i listen
6 进程运行情况 tasklist
7 超时等待 timeout 等待的秒数
8 系统错误日志(大于某1天) wmic ntevent where "EventType=1 and Logfile='System' and TimeGenerated>=20151010 " get Logfile, SourceName, Eventtype, Message, TimeGenerated /FORMAT:htable:"sortby=TimeGenerated"TimeGenerated /FORMAT:htable:"sortby=TimeGenerated"
9 系统警告日志(大于某1天) wmic ntevent where "EventType=2 and Logfile='System' and TimeGenerated>=20151010 " get Logfile, SourceName, Eventtype, Message, TimeGenerated /FORMAT:htable:"sortby=TimeGenerated"TimeGenerated /FORMAT:htable:"sortby=TimeGenerated"
10 应用错误日志(大于某1天) wmic ntevent where "EventType=1 and Logfile='Application' and TimeGenerated>=20151010 " get Logfile, SourceName, Eventtype, Message, TimeGenerated /FORMAT:htable:"sortby=TimeGenerated"TimeGenerated /FORMAT:htable:"sortby=TimeGenerated"
11 应用警告日志(大于某1天) wmic ntevent where "EventType=2 and Logfile='Application' and TimeGenerated>=20151010 " get Logfile, SourceName, Eventtype, Message, TimeGenerated /FORMAT:htable:"sortby=TimeGenerated"TimeGenerated /FORMAT:htable:"sortby=TimeGenerated"
12 获取所有wmic类名 powershell Get-WMIObject -List
阅读(5077) | 评论(0) | 转发(0) |