| < Free Open Study > |
|
|
You are faced with the following scenario:
Your company is about to implement a MetaFrame solution that will allow users at remote offices to run a new application based at the main corporate office. This application is Windows-based and will require that each
All the
What is the best printing solution to implement in this environment that is easy to administer and allows every remote user to print? |
|
Answers
|
|
Import all network print servers into the farm. This will allow you to use the Citrix Management Console to assign printers to users at each remote location. Install print drivers to support these network printers and replicate the drivers to each server in the farm. Next, determine which clients have printers attached locally to their PCs. Identify drivers for each printer and either install the appropriate driver or map it to another print driver.
At first glance, some may want to use
|
| < Free Open Study > |
| < Free Open Study > |
Of all the skills involved in installing, configuring, deploying, and managing servers, the ability to fine-tune and troubleshoot is among the most highly prized. All the rest is similar to following a recipe. If you're careful and follow all the instructions, you can build a server or a server farm. Well, maybe that's oversimplifying it a little, but what happens when things go wrong? No book can possibly list every error message you might receive, or detail each performance problem that might crop up. Every server and server farm is unique (unless they are cloned), and each can have different hardware, installed applications, policies, and even users that will affect how the server
Because
Windows and Citrix both provide tools that can assist you in
| < Free Open Study > |
|
< Free
|
The Event Viewer is the one of the first tools to use for troubleshooting and monitoring your system. It is a front-end feature, used to view the event logs in which information is recorded about the computer and applications. Windows NT 4.0 Terminal Server Edition, has three logs: the Application Log, the Security Log, and the System Log. Windows 2000, meanwhile, has an additional three logs that are available on domain controllers running the associated services; they are the Directory Service Log, the DNS Server Log, and the File Replication Service Log. The Event Viewer is installed by default and located under Administrative Tools on both operating systems, while the logs
|
Log Type |
Log Data |
Windows NT 4
|
Windows 2000
|
|---|---|---|---|
|
System |
|
|
|
|
Security |
Events relating to
|
|
|
|
Application |
Events logged by applications or programs |
|
|
|
Directory Service |
Problems related to Directory Services, Global Catalog, and Active Directory; Windows 2000 domain controllers only |
|
|
|
DNS Server |
Directory
|
|
|
|
File Replication Service |
Events related to replication to other servers; Windows 2000 domain controllers only |
|
With the Event Viewer, you can monitor the events that take place on your systems and detect activities that may require your attention. Analyzing these events can help you resolve issues related to security, resource allocation, and system problems. When saved, log files also provide a historical view of these events. It is a good idea to archive the log files from each of your servers for future reference.
| On The Job |
Remote servers and workstations can also be
|
Three categories of events are generated in the System and Application logs and two additional event categories in the Security logs. It is important to understand what each of the categories pertain to and what they say about the server or application. The System and Application logs include the following event categories:
Information events Provide status information and details about 'good' things such as the successful operation of a service, driver, or application. Typically, there are far more of these than any other type. Information events are represented by a blue 'i'.
Warning events
Provide information on potential problems, such as low disk space, services that have not been configured, and lost or timed-out connections. These may not be significant but should be examined
Error events These are indicative of more serious conditions and logged when there is a failure such as a service failing to start, a duplicate IP address, a malfunctioning hardware device, or system crash. Error events are represented by red circles with white Xs through them, as shown in Figure 13-1.
Figure 13-1:
The Windows 2000 Event Viewer
The Security Log contains events that are generated when auditing has been implemented. Auditing can be enabled on events such as logons, resources, or file access. The two types of Security Log events are
Success Audit events Provide information on successful logins or access.
Failed events Provide information on failed login attempts, failed access to resources, or other security threats.
As you scroll through the log, each event listed provides several pieces of information:
The type of event, whether information, warning, error, success or failure.
The date and time the event was logged.
The source of the event. The event source is the service, driver or application that
The category of event, if
The event ID number that describes the event to Windows 2000.
To learn more about an event, double-click the entry to open its property sheet, as shown in Figure 13-2. The property sheet reiterates the
Figure 13-2:
The Event Properties dialog box
Because the event logs record information on a daily basis, they could become
It even lets you clear the log manually so you can start fresh. If left at the default setting, the log maxes out at 512KB. If you choose to change the default size, however, you have the option to overwrite the events as needed, to overwrite those events older than a specified number of days, or to forego overwriting and clear the log manually. Unless you are
Figure 13-3:
The General tab under System Log Properties
| Exam Watch |
Citrix recommends setting the Event Log's maximum size to 1024KB and to overwrite as needed. |
| On The Job |
If you choose to set the logs to 'Do not overwrite events,' do not forget to archive and clear them on a regular basis. Be
|
The Filter tab (Figure 13-4) allows you to select the type of events displayed in the Event Viewer. By default, the Event Viewer displays all events in a log sorted by most recent date. The Filter tab allows you to select events based on the following criteria shown in Table 13-2.
Figure 13-4:
The Filter tab under System Log Properties
|
Property |
Description |
|---|---|
|
Event Type |
Information, Warning, Error, Success Audit, Failure Audit. |
|
Event Source |
The source is the application or component that logged the event. A source could be a specific application, driver, or system component. |
|
Category |
Category is most useful for security events, because most system events do not belong to categories and application categories are numbered. |
|
Event ID |
Useful when you are looking for all the occurrences of a specific event. |
|
|
This filters on all events associated with a particular user. Can be useful for troubleshooting user complaints. |
|
Computer |
Filtering on Computer will display all events for that computer. |
|
From and To |
Allows filtering on a range of dates. |
Windows 2000 provides a Find utility for searching through event logs. Find can be used to locate related events to determine how frequently the event has occurred. To use Find, open the Event Viewer, click View, and select Find. Under Types, select the type of events you want to find. On both operating systems, events can be sorted by clicking the column heading you wish to
The Event Viewer is typically the tool used in troubleshooting Windows systems. Learning to use it is relatively easy, the hard part is figuring out what the information means and how to resolve the issues it
Exercise 13-1: Changing Event Log Settings
|
|
Choose Start Programs Administrative Tools.
Double-click Event Viewer.
Right-click the System Log and select Properties. This opens up the System Log's Property sheet. At the top, you should see two tabs, the General tab and the Filter tab.
Select the General tab and move down to Log Size. Change Maximum Log Size to 1024 KB.
Below the maximum log size, select Overwrite Events As Needed.
Click once on the Filter tab.
By default, all event types are selected. Deselect all but the Warning and Error event types.
Click OK to finish.
Now, open the System Log. There should be no Information events displayed. If you're very lucky, you will not have any error or warning events, but if you do, double-click them to open their Information Properties sheet. Take note of the information provided, especially the Event ID, Source, and Description.
|
|
Now that you are more familiar with the Event Viewer, it's time for a pop quiz. Test your knowledge by trying to answer the questions that follow. Try not to look at the answers first!
|
What tool should you use in Windows 2000 to monitor System and Application events? |
The Event Viewer is used to view the logs in which the System and Applications report information, warnings, and errors. |
|
What type of information does the System Log provide? |
The System Log provides information, warnings and errors pertaining to system events, such as drivers starting/stopping, and low disk space. |
|
What type of information does the Application Log provide? |
The Application Log provides information, warning, and errors pertaining to applications and programs. |
|
How can you view the event logs on another networked computer? |
By right-clicking Event Viewer and selecting Connect To Another Computer. |
|
How can you keep the event logs from overwriting older events? |
Right-click the log, select Properties, and on the General tab, change the setting to Manual. |
|
What does Citrix recommend concerning the event logs? |
Citrix recommends setting the maximum size of the event logs to 1024, and to Overwrite As Necessary. |
In Windows 2000, most of the system management tools have been centralized within the Microsoft Management Console or MMC. To open the console, you can either right-click My Computer and select Manage, or go to Start Programs Administrative Tools Computer Management. From here, you can view and monitor your local system or a remote system in your domain. To monitor a remote system, right-click Computer Management (Local) and select Connect To Another Computer.
System Information Tool contains
If you do need to test or change hardware devices or drivers, use the Device Manager. From within Device Manager, devices can be
There are three main sections within Computer Management: System Tools, Storage and Services and Applications. The System Information Tool is appropriately located under System Tools. You can also get to System Information by typing
winmsd
from the command prompt. Within the System Information Tool there are five subfolders that provide a wealth of information about your system. The five
The System Summary displays a list of the system's basic configuration. This is where you'll find, among other things, the version and build of your operating system, the BIOS version installed memory, available memory, virtual memory, available virtual memory and page file size. Don't be surprised if you are asked to look here if you ever call a vendor for support.
The Hardware Resources folder has several subfolders devoted to information about the system's hardware (Figure 13-5).
Figure 13-5:
Hardware Resources
Don't overlook this one. It is one of the most important pieces of the System Information Tool because it provides information on hardware conflicts and IRQ sharing. If you've ever installed new hardware only to find that either it will not work, or another device has
|
Resource |
Description |
|---|---|
|
Conflicts/Sharing |
This folder lists all the components that are sharing an IRQ or are in conflict over one. If you have installed a new component and there are IRQ conflicts, you will see it listed here. |
|
DMA |
Direct Memory Access channels are rare these days, but you may see them used by audio devices. As you might recall, DMAs have the ability to move data from the device to RAM without involving the processor. If you have any DMA devices in your system, you will see them listed here. |
|
Forced Hardware |
Older hardware that is not supported by Plug-and-Play will be listed here. |
|
I/O |
The Input/Output folder lists the hardware devices and the areas of virtual memory being used by them. |
|
IRQs |
Interrupt request lines are the lines over which the device sends information to the processor. The IRQ folder will list the IRQs in use and also show those that are sharing an IRQ. |
|
Memory |
This folder shows information regarding the virtual memory areas used by devices. This is similar to what is shown in the I/O folder, but it is from the perspective of the device, not the memory. |
The Components folder is another that you should become familiar with. It displays a list of components, all of which may not be installed on your system, and shows the resources they are using. If a component is actually installed, you can right-click it and view its property sheet. The property sheets provide all the details relevant to the device, including the driver versions, I/O, and IRQs it is using. The Component folder has eleven subfolders that represent the different classes of components that may be installed. One of the most interesting is the Problem Devices folder. Inside, devices that are not performing as expected or devices that have been removed incorrectly will be listed. The other ten folders are as
Multimedia Audio and video codecs, CD-ROMs, sound devices
Display Adapter information, such as name, type, resolution, and pixels
Infrared Properties of any infrared devices installed
Input Keyboard and pointing device information
Modem Information on installed modems
Network Adapter, protocols, and WinSock information
Ports Serial and parallel port information
Storage Drivers associated with storage devices
Printing Any print drivers installed
USB Information on USB devices
The Software Environment folder contains ten subfolders that detail the software running on your system, as well as the files and services in use and who's using them. Table 13-4 lists the subfolders and describes the information contained in each.
|
Folder |
Description |
|---|---|
|
Drivers |
Lists all installed drivers, their type (kernel or file system), state (stopped or running), and a brief description of what the driver does. |
|
Environment
|
Environmental variables listed include the
|
|
Jobs |
This folder contains a folder for each type of job that may be running. |
|
Network Connections |
All network connections and the associated drive
|
|
Running
|
This is a bit different than the Jobs folder. It contains a list of all executable files currently run by the services. Information such as file version, date, and file size are given. This is a good place to look if you need to know a file version or date. |
|
Loaded Modules |
This folder lists all the dynamic link libraries (dll) currently running on the system, their version, date, manufacturer, and path. |
|
Services |
This folder lists all the nonsystem services available on the system, whether they are running or not, and the start mode (manual, automatic, or disabled). |
|
Program Groups |
Terminal Server profile associations and all the groups available in the Start menu will be displayed here. |
|
Startup Programs |
This folder shows the programs that are configured to start at boot. |
|
OLE Registration |
Object Linking and Embedding associations can be found here. |
The Internet Explorer 5 folder is
Summary Version, build, path, cipher strength, content advisor and Internet Explorer Administration Kit (IEAK)
File Versions Information on all IE files, version, date, vendor
Connectivity Dial-up, Local Area Network (LAN) or Proxy connection information
Cache Summary, list of objects in cache, page refresh, temp folder
Content Summary, personal and other peoples certificates, publisher
Security Local intranet, trusted sites, Internet security and restricted site
Now that you've gotten more familiar with the type of information found in the System Information Tool, let's try a hands-on exercise.
Exercise 13-2: Saving System Information to a File
|
|
In this exercise, we will assume that you are the administrator of XYZ Company, and you are having some difficulties with one of your servers after installing a new application. You've tried all the tricks you know, but are stumped, so you call the vendor for assistance. The technical support person you speak with asks you to e-mail her your system information summary. Here's what to do:
Log on to a Windows 2000 Server as Administrator.
Right-click My Computer and select Manage. This will open the Computer Management Console.
Expand System Information by clicking on the '+' on the left.
Right-click System Summary. This will bring up a menu that allows you to save the System Summary as a text file or an information (.inf) file, search the information using Find, Print the information, refresh or get Help.
Select Save As Text File. Save the file as testlog.txt.
Locate the file you just saved and double-click it to open it. The information saved in the file should look similar to that in Figure 13-6 that follows. It contains information about your server's hardware and environment that may help the vendor's technical support people resolve your problem.
Figure 13-6:
System Information Report
|
|
So, you've been monitoring your Event Logs and have
| On The Job |
The Citrix support site also provides a link to their Solution Forums. The forums are active discussion areas where administrators can interact with other administrators and Citrix support technicians. The forum is extremely helpful when you cannot locate the right Knowledge Base article to resolve your issue. Typically, problems are not isolated to just one server, location, or administrator. If you are seeing it,
|
Deciding which Web site to visit first is usually determined by the Source and Description information. If the information is clearly related to MetaFrame, it might save time going to Citrix first. Generally, both Knowledge Bases will provide similar information or at least a pointer to the right article on the other's Web site. Other support resources
Microsoft Online TechNet
A site devoted to IT professionals that provides troubleshooting tools, information about known issues,
Microsoft TechNet Subscription
Monthly TechNet subscriptions can be purchased for a mere $299 (single-user license) or $499 per year for TechNet Plus (single-user license). TechNet subscriptions provide monthly CD-ROM updates containing Knowledge Base articles, information, utilities, hotfixes, and service
Citrix Solution Tools Plus Citrix provides quarterly subscriptions that include the Citrix Knowledge Base and Practices CD. In addition to the CDs, Citrix sends out a monthly Solution News online newsletter and Solution Flash, which notifies the subscriber of updates to Citrix products and Knowledge Base articles.
If you are unable to locate information about your particular warning or error, you may need to contact Microsoft or Citrix support. Both provide for-fee support services to fit various organizations or needs. Microsoft even provides per-incident support for those who rarely need assistance. The pricing depends on whether or not you or your company meet certain criteria, but it usually begins at $149 per year.
When you've found the information you need to resolve your issue, there are a few steps you should take to ensure that the fix doesn't make matters
Keep your Emergency Repair Disks (ERDs) current. Windows NT 4.0 Terminal Service Edition included the RDISK utility for creating ERDs, but because the registry is so much larger on a Terminal Server, the registry can no longer fit on a single disk. Windows 2000 has improved upon the ERD process by eliminating the System hives. The new ERD is useful if your system will not boot. It can be used to repair a damaged boot sector, a damaged Mast Boot Record (MBR) and replace or repair a damaged NT Loader (NTLDR). It is important to keep your ERD disk up-to-date. The one created when you initially install the system is no longer valid once you've added accounts and customized your system. Create a new ERD after you have changed or updated your system configuration. An ERD can be created through the Windows 2000 backup utility, found in Start Programs Accessories System Tools Backup (Figure 13-7) or by typing ntbackup at the command prompt.
Figure 13-7:
Windows 2000 Emergency Repair Disk
If the problem is reproducible, run the fix on a test server first. If your test server is a duplicate of your production servers, you should see exactly the same results.
When installing service packs, respond YES to creating a backup of the previous system files. If the service pack produces unexpected results, you can back out of the upgrade. The same should be done for application updates and hot fixes.
Document everything! This is one of the most important things you can do. Make sure you save the documentation where it will be easy to access and
|
|
No matter how careful you are, things can happen, it's just a matter of time. All you can do is take every precaution possible and have an arsenal of tools ready to combat whatever problem occurs. Backing up your servers and registry, testing, and backing out of upgrades are all very good practices, and I'd recommend
First, Windows 2000 Backup is a big improvement over the old NT Backup. The new backup utility, located under System Tools in the Accessories folder, allows you to back up not only onto tape, but also on disks, CDs, and
Another improvement in Windows 2000 is the advanced startup options. To access these, press
f8
during the Windows startup process. The new options provide enhanced troubleshooting and resolution features such as Safe Mode, Safe Mode with Networking, and Safe Mode with Command Prompt. These features were a part of Windows 9.
x
operating systems, but have been improved upon in Windows 2000. If you have a driver that's gone astray and your machine blue screens at startup, try starting it in Safe Mode. It loads only the bare essentials and allows you to uninstall the
Consider this scenario: Suppose you've installed a device driver and after restarting the system, it
One of my favorite startup options is the Enable Boot Logging feature. When selected, Enable Boot Logging creates a log file that lists all the drivers and services the system loads or fails to load. The log, called Ntblog.txt, is located under the \Winnt folder. By starting up with this option, prior to and after an upgrade or new installation, you can document the new drivers or services that were installed. Just remember to rename the log after the first boot. If problems occur, you can use these logs to locate the problem driver or service.
Windows 2000 has also added the Recovery Console (RC) that can be run from the command line to perform troubleshooting and recovery tasks. The Recovery Console can be installed from the Windows 2000 \I386 directory by running the winnt32 command with the /cmdcons switch or booting from the Windows 2000 Setup disks or CD. Running the Recovery Console allows you to start/stop services, read and write data on local
Aside from the tools that come packaged with the operating system, there are a few other tools that can round out your toolkit. Absolutely no administrator's tool kit is complete without Winternal's RegMon and FileMon. Both tools are monitoring utilities that can be used to troubleshoot application problems. Common problems seen in server-based environments such as corrupt application files, invalid file paths, or user hive entries and locked down files that need less stringent permissions, can be tracked down and corrected using these two tools. Just start up RegMon or FileMon and run the application in question. Once the error has occurred, stop the monitor and check the log. Typically you'll see an entry that says 'failed,' 'file not found,' or 'no access.' These two utilities are must haves and well worth the money. Working demos can be downloaded from http://www.winternals.com.
-Connie S. Wilson, MCSE, MCP+I, CCA, CNA
|
|
What is a baseline and how can it help you? A baseline helps to determine how well your system is performing and to spot potential problems before they happen. Developing a baseline will help determine how many users the system can support concurrently, and the impact of running certain applications. It's a much better plan than waiting for your users to
How do you establish a baseline for your system? There are two techniques commonly used to develop a baseline. The first is to perform benchmarks or tests on your servers before and after placing them in production. In other words, once you have configured your server and installed all the applications, you perform tests to see how the server is performing. The same tests are run again after the server is in active use. This can be done in a nonproduction, test environment as well if you can round up enough users to act as guinea pigs.
The second method of developing a baseline is to gather server resource statistics over time while the server is in use. The tests can be run at intervals, over a period of weeks, for a trend analysis. The results are documented and compared. Both
Various tools can be used to monitor performance and develop a baseline. Both NT and Windows 2000 include Performance Monitor, while Citrix MetaFrame XP
e
includes Resource Management, which we'll discuss in the
Performance Monitor or PerfMon is a graphical tool incorporated into Windows NT Terminal Server Edition and the Windows 2000 family of servers. It gathers and examines information about server activity by examining system objects or components. Objects are server components that possess a set of measurable properties such as the following:
Server
Processors
Memory
Physical and logical disks
Users
Connections
Objects are defined that represent individual processes, sections of shared memory, and physical devices. Each object has a series of counters associated with it, which represent the measurable characteristics of objects. An example is the Processor object which has several counters associated with it, such as % Processor Time, %User Time, and so on. Certain objects exist on all systems; others only exist if the system is running the associated software.
Each object can also have several instances. An instance shows how many of an object are available in the system. For example, if a server has multiple processors, the Processor object will have multiple instances. If the server has four disk drives, the Physical Disk object will have four instances and so on. Other objects such as Memory and Server do not have instances. Objects with multiple instances produce the same counter information for each instance.
To view the objects and counters that can be used to monitor your system, go to Start Programs Administrative Tools Performance. Make sure System Monitor is selected on the left-hand side of the screen and click the '+' sign at the top of the monitor screen. (You can also right-click a blank area of the System Monitor and choose Add Counters from the context menu.) At this point, the monitor screen on the left is blank. Objects, instances, and counters must be selected and added. To select objects and their related counters, use the Performance Object drop-down menu and select the counters to monitor from the list. (See Figure 13-8.)
Figure 13-8:
The Performance Monitor Add Counters window
In the following sections, we will look at some of the objects Performance Monitor tracks, as well as their associated objects.
Process threads require processor cycles to run, and if the demand exceeds the supply, long processor queues develop and system response time will degrade. Two counters that can help you monitor the overall processor load are % Processor Time and Interrupts/sec.
If processor utilization is over 75 percent on average, the processor is working pretty hard. You might consider increasing the number or the speed of the existing processors in the server. To determine processor utilization, monitor the %Processor Time counter under the Processor object. The %Processor Time shows the percentage of elapsed time that a processor is busy executing non-idle threads. If the %Processor Time counter consistently registers at or near 75 percent, the processors might be
Common causes of excessive interrupts are defective device adapters or
Server memory takes the biggest hit on a Windows 2000 system. As we all know, every new version of the operating system and each new version of an application requires more and more memory. If you don't have sufficient memory on your system, you will definitely feel the pain and so will your users. Table 13-5 lists a few important memory counters you may want to keep an eye on.
|
Counter |
Description |
Explanation |
|---|---|---|
|
Available Bytes |
Displays the size of the virtual memory available for applications. |
There should always be at least 4MB available. If not, you may not have enough memory or you could have an application experiencing a memory leak. |
|
Pages/sec |
Displays the current rate at which pages are read from disk back into physical memory because of page faults or written to the disk to free RAM. |
More than 20 pages per second indicates excessive paging and may suggest that your system needs more memory. |
|
Commit Limit |
Displays the amount of memory that can be committed without making the page file larger. |
The page file should be at least 2 1/2 times the size of your system's RAM, but can be increased if the required space is available. |
|
Committed Bytes |
Displays the amount of memory committed to processes currently running on the system. |
This is the amount of memory in use that isn't available to other processes. |
Disk problems on MetaFrame XP servers are usually related to paging because of the memory load the applications place on the server. When the physical memory is maxed out by the load of applications and users, the server begins using the hard disks to support virtual memory. Two counters that should be monitored on both physical and logical disks to measure performance are
% Disk Time Displays the percentage of the physical disk that is busy. If the disk is busy more than 90 percent of the time, you should probably add another disk.
Current Disk Queue Length Displays the current number of data transfers waiting in the queue. If you are averaging more than two, you will notice the degradation. Keep this number as small as possible.
| On The Job |
To enable disk counters, use the DiskPerf -Y switch but don't leave them running permanently as they incur overhead. Use DiskPerf -N to disable the counters. |
Regularly monitoring your servers with Performance Monitor is one way you can establish a baseline. Try monitoring at intervals throughout the day, for short periods of time to keep the overhead low. Check and compare your results to find heavy use times and any possible bottlenecks.
Now that you have a good idea what monitoring server performance and developing a baseline are all about, here are a few questions you may want to remember for the exam:
|
Where can information be found about server hardware and potential IRQ conflicts? |
In the Computer Management Console under System Information Hardware Resources Conflicts/Sharing. |
|
What type of information does the System Summary display? |
The System Summary displays the server's basic configuration, including OS and version, system name, manufacturer, model, processors, BIOS version, installed RAM, available RAM and Page File space. |
|
What steps can be taken to protect your system prior to installing or upgrading applications? |
Create a current ERD, back up your system, test installations on a test server, and document everything. |
|
What is a baseline and what does it do? |
A baseline
|
|
What tool native to Windows NT and the 2000 Server family can be used to monitor and log system performance? |
Performance Monitor is native to Windows NT and the 2000 Server family. |
|
Where can I look to find all the drivers installed on my system? |
In the Computer Management Console choose System Information Software Environment Drivers. |
|
What should you do if processor utilization is 75 percent or above on a regular basis? |
Add more or faster processors to your system. |
| < Free Open Study > |