设为首页 收藏本站
查看: 597|回复: 0

NT4.0 Migration to Windows 2003: Using DiskMon

[复制链接]

尚未签到

发表于 2015-5-5 07:43:04 | 显示全部楼层 |阅读模式
DISKMON
1.1        Introduction
DiskMon is an application that logs and displays all hard disk activity on a Windows system.  Additionally, Diskmon monitors and displays all hard disk activity on a system in real time.
You can also minimize DiskMon to your system tray where it acts as a disk light, presenting a green icon when there is disk-read activity and a red icon when there is disk-write activity.  
Diskmon works on Windows 2000 and higher.  If you are running Windows NT 4 download a version of Diskmon for that operating system from Sysinternals.
1.1.1           System Requirements
DiskMon works on NT 4.0 and higher.  
1.2        Installation and Use
  Install DiskMon by unzipping it and type diskmon.
  ·         On Windows NT, the GUI dynamically loads the driver (based on code from the instdrv sample in the Windows NT DDK), which begins monitoring all hard drives.
  ·         On Windows 2000 and higher there is no driver component: the GUI relies on kernel event tracing to obtain disk activity.  The menus and toolbar buttons can be used to disable event capturing, control the scrolling of the listview, and to save the listview contents to an ASCII file.  
To have DiskMon function as a disk light in your system tray, select the Options > Minimize to Tray menu item, or start DiskMon with a "/l" (lower-case L) command-line switch e.g.  diskmon /l.  When Diskmon detects disk reads, it will present a green disk light; when it detects disk writes, it presents a red disk light.  Note: Diskmon does not capture output to its window while it is in the tray.  To re-enable the Diskmon window double-click on the Diskmon tray disk light.
  To create a shortcut to Diskmon in the tray create a shortcut in your Program Files\Startup folder, edit the properties of the shortcut and set the Target to point at the executable with the path in quotations and the switch outside the quotes:
"C:\Sysinternals Tools\Diskmon.exe" /l


  Read and write offsets are presented in terms of sectors (512 bytes).  Events can be either timed for their duration (in microseconds), or stamped with the absolute time that they were initiated.  The History Depth dialog can be used to specify the maximum number of records that will be kept in the GUI (0 signifies no limit).  
1.2.1           Windows NT 4 Implementation
  Using standard filtering techniques it is not possible for a dynamically loaded driver like DiskMon to attach to hard disk device objects and see requests originating in file systems.  This is because file system drivers open disk devices during system initialization and, unlike the I/O Manager, file system drivers send IRPs directly at these devices.  The I/O Manager allows for file system filter drivers to attach to file system devices after initialization because it checks for attached devices whenever it is going to send an Irp to a file system, and will direct the Irps to them instead.  
  DiskMon overcomes this limitation by driver function interception.  DiskMon locates a disk device's driver object and replaces the driver's dispatch entry points with its own.  The DiskMon filter functions pass Irps it sees onto the hooked driver, and also intercepts completion routines in a similar way so that it can see the results of requests.  
1.2.2           Windows 2000 and Higher Implementation
On Windows 2000 and higher Diskmon uses kernel event tracing.  Event tracing is documented in the Microsoft Platform SDK and the SDK contains source code to TraceDmp, on which Diskmon is based.  
1.3        Using Diskmon
In Diskmon menus, hot-keys, or toolbar buttons can be used to clear the window, save the monitored data to a file, and to search output.  
As events are printed to the output, they are tagged with a sequence number.  If Diskmon’s internal buffers are overflowed during extremely heavy activity, this will be reflected with gaps in the sequence numbers.
Each time you exit Diskmon, it remembers the position of the window and the widths of the output columns.
1.3.1           Limiting Output
The History Depth entry in the History dialog allows you to specify the maximum number of lines that will be remembered in the output window.  A depth of 0 is used to signify no limit.
1.3.2           Searching the Output
You can search the output window for strings using the Find menu item (or the find toolbar button).  Once you have opened a Find dialog and clicked FindNext, you can repeat the search by pressing .
To start a search at a particular line in the output, select the desired line by clicking on the far left column (the index number).  If no line is selected a new search starts at the first entry in searching down, and at the last entry for searching up.
1.4        DiskMon download site
  Download Diskmon for Windows NT 4 (44 KB)
Download Diskmon for Windows 2000/XP/2K3 (55 KB)

运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-63668-1-1.html 上篇帖子: 遭遇Audition 2.0,Windows 2003兼容问题 下篇帖子: Windows 2003+IIS6+PHP5.4+配置PHP支持空间的方法
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表