Windows IT Pro is the authoritative and independent resource for windows nt, windows 2000, windows 2003, windows xp. Features a collection of resources and magazines for windows IT professionals.
  
  
  Advanced Search 


May 2001

Cachemov and Uptime


RSS
Subscribe to Windows IT Pro | See More Resource Kit Articles Here | Reprints | Or get the Monthly Online Pass—only $5.95 a month!

One tidbit for Win2K Pro and another for Win2K Server

In this column, I want to tell you about two tools I found in the Microsoft Windows 2000 Server Resource Kit Supplement One. Cachemov works with Win2K's helpful Offline Files feature. Offline Files lets you cache network files on your local hard disk. When you want to work with a cached network file, Offline Files quickly checks whether the server's copy of the file has changed. If it hasn't, your system delivers the file from the local cache, which is far faster than retrieving the file from the network. (For more information about Offline Files, see Todd Logan, "The Ins and Outs of Offline Files," page 69, and "Related Articles in Previous Issues.")

I locally cache all the files that I frequently use. But those files are numerous and contain a lot of data, and Offline Files keeps all of it on the same hard disk that contains the OS. On my system, that hard disk is fairly full, so I added a hard disk to hold the cached files and called the new hard disk drive D.

But how did I tell Offline Files to cache my files on the new drive? I simply typed Cachemov at a command line, and a prompt asked me what drive I wanted Offline Files to use. I could have typed

cachemov -unattend d:\

to use the command in unattended mode.

Now, my data is on a physically secure server, which I regularly back up, and my server's battery backup protects the data. But I also have local copies of the data—just in case the server is temporarily unavailable—and plenty of space for those copies.

Uptime is a Win2K Professional command-line tool that reads a local or remote server's System event log and produces reports about the system's uptime. Type Uptime on a command line to get a report about the local machine, or type a machine name after the command to produce a report about a remote server. A summary like the one that Figure 1 shows will tell you exactly how long your system has been up.

If you append the /v and /s switches to the command, you'll get a verbose listing of every instance in which the server has gone down, been booted up, or suffered a blue screen. You'll also get an availability percentage, so you can wave a five-nines (99.999 percent) availability report at your boss if your system has been up long enough.

Uptime interrogates the System log and extracts the shutdown, startup, and blue screen messages (if you haven't disabled the blue screen messages in Control Panel). Uptime uses the machine's heartbeat to return the statistics. Introduced in Windows NT 4.0 Service Pack 4 (SP4), the heartbeat is a last-alive timestamp that Windows writes to the registry at 5-minute intervals. The OS uses the heartbeat in conjunction with the dirty shutdown event (System log event ID 6008) to estimate how long the system has been down. Although Uptime's ability to report availability statistics depends on the heartbeat, you can still use Uptime to interrogate servers whose heartbeat is disabled about how long they've been up.

Related Articles in Previous Issues
You can obtain the following articles from Windows 2000 Magazine's Web site at http://www.win2000mag.com.

SEAN DAILY
Watch Your RAS, "Win2K Pro on the Road, Part 2," July 2000, InstantDoc ID 8961
Watch Your RAS, "Windows 2000 Professional on the Road, Part 1," June 2000, InstantDoc ID 8747
MARK MINASI
Inside Out, "More About Offline Files,"
January 2000, InstantDoc ID 7789
Inside Out, "Offline Files," December 1999, InstantDoc ID 7609

End of Article



Reader Comments

You must log on before posting a comment.

If you don't have a username & password, please register now.




Top Viewed ArticlesView all articles
PsExec

This freeware utility lets you execute processes on a remote system and redirect output to the local system. ...

Command Prompt Tricks

One reader shares his tip for setting up the command prompt to reflect a remote path. ...

How can I stop and start services from the command line?

...


Windows OSs Whitepapers Why SaaS is the Right Solution for Log Management

Related Events Check out our list of Free Email Newsletters!

Windows OSs eBooks Understanding and Leveraging Code Signing Technologies

A Guide to Windows Certification and Public Keys

SQL Server Administration for Oracle DBAs

Related Windows OSs Resources Become a VIP member of the Windows IT Pro community!
Get it all with the VIP CD and VIP access. A $500+ value for only $279!

Subscribe to Windows IT Pro!
Solve your toughest technical problems with our experts and access 10,000 + articles online. 30% off

Monthly Online Pass - Only $5.95!
Get instant access to 10,000+ articles from Windows IT Pro Magazine!

TechNet Virtual Labs
Evaluate and test Microsoft's newest products.


Windows IT Pro Home Register FAQ for Windows WinInfo News
Europe Edition About Us Contact Us/Customer Service Media Kit Affiliates / Licensing  
SQL Server Magazine Office & SharePoint Pro Windows Dev Pro IT Job Hound ITTV
IT Library Technology Resource Directory Connected Home Windows Excavator Windows SuperSite 
 
 Windows IT Pro is a Division of Penton Media Inc.
 Copyright © 2008 Penton Media, Inc., All rights reserved. Terms and Use | Privacy Statement | Reprints and Licensing