Chinaunix首页 | 论坛 | 博客
  • 博客访问: 245313
  • 博文数量: 41
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 441
  • 用 户 组: 普通用户
  • 注册时间: 2015-04-11 11:05
个人简介

123

文章分类

全部博文(41)

文章存档

2019年(2)

2018年(3)

2017年(2)

2016年(11)

2015年(23)

我的朋友

分类: WINDOWS

2015-10-17 10:10:44

序号 巡检内容 巡检命令
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) |
0

上一篇:windwos倒计时命令

下一篇:windows echo转义符

给主人留下些什么吧!~~