.:++ Me+MySelf & I ++:.

dari dalam diri seorang aku..

How to calculate uptime/downtime % May 27, 2009

Filed under: Linux & OpenSource,Solaris/Unix,Windows — asriey @ 12:56 am
Tags: ,

The formula used in this calculation D/T x 100. D=total downtime in minutes. T=total time in minutes. For example, i need to know the % downtime for last month where the downtime recorded for last month is 4 hrs.

(4 x 60) / ((30 x 24)  x 60) x 100 so we get the downtime. so (240 / 43200) x 100 should get 0.555555556. Uptime will be 100 Р0.555555556=99.444444444%.


Cannot access Sharepoint Portal via external address October 16, 2008

Filed under: Windows — asriey @ 4:33 am

There is one development and testing sharepoint portal server. after a few customization, need to preview and authorize the content. the problem is, when try to access via public IP, it say “HTTP/1.1 404  Connection: close Date: Wed, 15 Oct 2008 09:15:42 GMT Server: Microsoft-IIS/6.0 “.

Action taken:
1-enable port 80 from firewall to server(already done)
2-Inside sharepoint, Central Administration->Operations “Alternate Access Mappings, add the public IP address as internet address.

after applying the setting, still cannot access the portal. but when next morning coming to office. maybe solution #2 that works.
Technorati Tags: ,


Print Email in Outlook 2007 August 7, 2008

Filed under: Windows — asriey @ 3:57 am
Tags: , , , ,

Some user complaining that they cannot directly print selected email in Outlook 2007 as what they have did in Outlook 2003. The solution is to open up an email. Go to Other Actions->View In Browser. Then select which email you want to print, File->Print.


Printing and Desktop problem April 28, 2008

Situation: HP Laserjet 1020(USB) installed on PC A, and sharing on the network. PC B also in the same network want to print to the printer attached to PC A. After all the process completed, the print item never printed, just staying inside the print que.

Solution: Go to printer setting, check the Port tab, Untick on Enable Bidirectional Support. OK

Situation: One user complain her monitor turning upside down. She accidently pressing a few button on her keyboard and ending up the problem.

Solution: A few solution available. 1-Look at the display setting, looking for the Graphic Option and Rotation. 2-Faster way is to hold Ctrl + Alt + Up Arrow. 3-Disable Hotkey for the display.


Cannot access OUM Portal January 6, 2008

Filed under: Windows — asriey @ 8:21 am
Tags: , , , , , , ,

Since last week, some user’s cannot access OUM portal address http://www.oum.edu.my. There is proxy server inside the environment. Whenever they tried, they will get this error:

 Technical Information (for support personnel)
Error Code 11001: Host not found
Background: This error indicates that the gateway could not find the IP address of the website you are trying to access. This is usually due to a DNS-related error.
Date: 1/6/2008 8:00:18 AM [GMT]
Server: xxx-xxpx01.xxx.xxx.gov.my
Source: DNS error

I’ve look around at the domain controller, but doesn’t find something strange with the server. Just try to add streamyx dns server inside the proxy server and it solve the problem.


Change IP Using Script (VBS) January 4, 2008

Filed under: Windows — asriey @ 3:48 am
Tags: , , , , ,

I’ve posted before but I’ve found out today that it contains some invalid character. most of it are ” “. so this is the full script. just click on the link to get the file. in .rar format.



What is the Page File for anyway? December 16, 2007

Filed under: Windows — asriey @ 3:48 am
Tags: , , ,

Copy from What is the Page File for anyway?

The page file is one of those pieces of the operating system that administrators
know that they need to have – but they can’t always explain why they need it, or
how to accurately size it. Since Windows 95, Windows-based operating systems
have used a special file that acts as a sort of “scratch pad” to store modified
pages that are still in use by some process. Page file space is reserved when
the pages are initially committed, however the page file locations are not
chosen until the page is written to disk. So, in simplistic terms, the page
file is used by Windows to hold temporary data which is swapped in and out of
physical memory in order to provide a larger virtual memory set.When the system boots up, the Session Manager process determines the list of
page files to open by reading the value in the
HKLM\System\CurrentControlSet\Control\Session Manager\Memory
Management\PagingFiles. This value contains the name of the paging file as well
as the minimum and maximum size of each paging file. Windows supports up to 16
page files. On a 32-bit system running the normal kernel, the maximum size of
each page file is 4095 MB. On x64 systems and x86 systems with the PAE kernel,
the maximum page file size is 16 terabytes (16TB). On IA-64 systems, each page
file can be as large as 32 terabytes.

To view the list of page files, you can either look at the
HKLM\System\CurrentControlSet\Control\Session Manager\Memory
Management\PagingFiles registry value. The paging file configuration settings
are managed through the System utility in Control Panel. Below are two examples
of page file settings:

In the example above, the page file size is being managed by the Operating
System. As you can see from the registry entry, there is just an entry for
pagefile.sys – no drive letter or page file size is specified. Contrast this
with the example below on a system where the page file has been statically

As you can see, the registry entry in the second example has both a discrete
path name for the paging file and also specific size parameters. Once a page
file has been opened, it cannot be deleted while the system is running because
the System process maintains an open handle to each page file on the system.
That is why any changes made to the paging file configuration require a system

If there are no paging files specified, a Windows 2000 system will create a
default 20MB page file on the boot partition. On Windows XP and Windows Server
2003 systems, this temporary paging file is not created. This means that the
system virtual memory commit limit is based on the available memory. If the
system is managing the page file size on Windows XP or Windows Server 2003, the
size of the default page file is determined by the amount of physical memory, as
shown below:

System Memory Minimum Page File Maximum Page File
< 1GB 1.5 * RAM 3 * RAM
> = 1GB 1 * RAM 3 * RAM

Therefore, on a 32-bit system with 512MB of RAM, the page file size would
range from 768MB to 1536MB. On a 32-bit system with 2GB of RAM, the page file
size would range from 2GB to 4GB (remember that 4GB is the maximum size of a
page file on 32-bit operating systems). However, now consider a system managed
page file on a 64-bit server with 32GB of RAM. The page file size would range
from 32GB to 96GB! This is why understanding the performance of your server is
so important. Although there are general recommendations about page file sizing
that are based on the amount of physical RAM in a system, this is not 100%
valid. If you think about it, the more memory you have, the less likely you are
to need to page data out.

The page file needs of an individual system will vary based on the role of
the server, load etc. There are some performance counters that you can use to
monitor private committed memory usage on a systemwide or per-page-file basis.
There is no way to determine how much of a process’ private committed memory is
resident and how much is paged out to paging files.

Committed Memory and Page File Performance Counters

Performance Counter Description
Memory: Committed Bytes Number of bytes of virtual memory that has been
committed. This does not necessarily represent page file usage – it represents
the amount of page file space that would be used if the process was completely
made nonresident
Memory: Commit Limit Number of bytes of virtual memory that can be committed
without having to extend the paging files.
Paging File: % Usage Percentage of the paging file committed
Paging File: % Usage Peak Highest percentage of the paging file

with this information in mind, what’s the best way to determine the correct page
file size? The first thing is to gather a baseline. Set up a page file that is
statically sized to 1.5GB of RAM. Then monitor the server using Performance
Monitor over a period of time. Ensure that the peak usage times of the server
are monitored as this is when the server will be under the most load (for
example, month-end / year-end processing etc). Using the information from the
counters above and also examining the Peak Commit Charge number in Windows Task
Manager (shown below) will give you an idea how much page file space would be
needed if the system had to page out all private committed virtual memory.

If the page file on the system is too large, the system does not use it any
more or less. In other words, increasing the size of the page file
unnecessarily does not change the system performance – it just means that the
system has more nonshareable committed virtual memory. If the page file is too
small on the other hand, you may see error messages such as the “system is
running low on virtual memory”.

Remember however, that you should also check whether there is a process that
is leaking memory or a pool memory leak as those will also cause error messages
relating to system resources and virtual memory to be displayed.

So finally, a quick word on system-managed versus statically defined page
files. Some administrators will allow the system to manage the page file
sizes. However, while this ensures that you are unlikely to encounter page file
related resource depletion, it can lead to severe disk and page file
fragmentation as the page file continuously shrinks and expands to keep up with
the needs of the system. If you are in a situation where there is severe disk
fragmentation and you have a dynamic page file, I would strongly recommend
reconfiguring the server with a static page file. You will also want to make
sure that the disk is properly defragmented. To do this, you will need to
schedule an appropriate maintenance window for your server. Then modify the
page file settings on the server so that there is no page file defined. Reboot
the server for the change to take effect and then defragment the disk as you
normally would. Once the defragmentation process is completed, reconfigure the
page file to the appropriate static size (same minimum and maximum values) and
reboot the server again.

OK – that will do it for this quick look at the basics of the page file.
Until next time …

CC Hameed