Monday, 25 February 2013

Ways to free up space on your windows OS

Reclaim space after applying Windows 7/2008 R2 Service Pack 1

I recently noticed that the free space on 60GB OS partiton on our production servers were running very low on space. Some of this was due to old offline files which I managed to cleanup fine.

If RAM is upgraded there might be chances of the pagefile to grow in direct proportion with the amount of memory, soon you will be running out of disc space.

Therefore, I searched around for ways to clear up large amounts of space and here are a few that I found most effective (and of course, this would work on any Windows 7 system, regardless of hard drive type or size):

1. Disable hibernation:
If you don't use the hibernate feature, turn it off – it's a quick and easy way to save a bunch of space as it creates a 'hiberfil.sys' file in the root of your C drive to dump the contents of your memory for when your system hibernates.  For example, if I were to disable hibernation on this machine, I'd clear up about 6gb of storage space!  (note, in order to see this file in explorer, you'll need to enable viewing hidden/protected operating system files)

To disable hibernation, open a command window with administrator privileges by right clicking Command Prompt and select Run as Administrator


and type:

powercfg –h off


You probably won't see any sort of confirmation, but if you look back at the root of your C drive, you'll see that hiberfil.sys is gone and you now have a lot more free space.   (thanks to www.howtogeek.com for showing how to do this!)

2. Clean up your WINSXS directory:

In trying to find things to delete to free up space, I ran across a program called WinDirStat which helped me find files and directories that were taking up a lot of space – besides the hiberfil.sys and pagefile.sys, one of the largest culprits was the c:\windows\winsxs directory which was initially taking up 10.2gb on my machine. TreeSize s/w also is handy tool to discover folder size:



After a bit of research I managed to use the command below and reduced the winsxs by 7GB 

The process almost takes 15-25mins and I could attain a total of 7GB space on primary drive.


With that info in hand, I found out that the winsxs directory basically holds files pertaining to installing of programs, windows updates, and items like that . Anyway, there's a way to clean some of this up by running a command to delete some of these files.  Depending on what updates you have performed (such as Service Pack 1), this may not do anything, but go ahead and try.

The tool you will be running is the "Deployment Image Servicing and Management Tool" – when I ran it, it shrunk my winsxs directory from 10.2GB down to 6.8GB which freed up another 3.4GB.  To do so, run an elevated command prompt again (like with disabling hibernation above), and run the following command:

dism /online /cleanup-image /spsuperseded


(as mentioned, depending on your setup, you may not have any service packs to clean up, in which case you'll get a message such as the one below:)



3. Move your program installer files:
Every time you install a program, there's also an 'uninstall' file that is left behind that will let you repair/uninstall that program.  As it turns out, a lot (all?) of these files are stored in the \windows\installer directory and can take up a lot of space.   What you can do is move these files to a different location so you can free up space (and if you need to uninstall, upgrade, change any of those programs, simply move the files back before hand).  Navigate to the C:\windows\installer directory and sort by file size. 

Now, you probably could just move all of these files, but I just chose to remove the larger ones that would free up the most space.  If you want to know what program uninstaller you are moving (so you can move it back in case you want to edit or uninstall it), simply right click it, select properties, and choose the Details tab.  For example, "140e3d3.msi", weighing in at ~102MB, is the uninstaller for Adobe Photoshop Lightroom 3.4RC: 

So, you would just simply move it off to another other hard drive to free up 102MB!  Continue to do this for any other files you want to move to save more space.

also refer

Check folder size for housekeeping directories


Check folder size for housekeeping directories

Housekeeping for the local volumes

I used Treesize freeware to review folder size including sub-folders for cleaning unwanted traces of leftovers. I could easily identify where under C Drive (primary partition) folders were over utilized especially when the production servers (Windows 2008 Ent R2) alerted low disc space. I could identify winsxs directory and installer directory over unwanted utilization and could sort the disc space by running DISM commands.

Treesize screenshot
  
Another freeware is WinDirStat which gives graphical representation of the oversized folders. I used this to clean my laptop










WinDirStat screenshot

Its all a very handy software free of errors.

Sunday, 10 February 2013

Humans Destroy - A Film

 
Save our ocean, save it from getting spoilt, be the change..! - rinith


This video is about an island in the ocean at 2000 km from any other coast line. Nobody lives there, only birds... and yet they have to face death for our deeds. 
You will not believe your eyes!! Please don't throw anything into the sea. Just look at the consequences!

Tuesday, 15 January 2013

New Java Exploit - Java patch released

Java latest update (Java SE 7u11 and other versions) download link

New Java Exploit - Disable Java NOW!

New Java Exploit - Disable Java NOW!

Another Java exploit discovered and this one is the worst kind of security hole. It's one that allows a hacker to install malware or viruses without your knowledge simply by visiting a website. The exploit has been confirmed by Bitdefender, a popular anti-virus company, as being actively used by hackers on the internet to compromise computer systems.

The really dangerous part is it appears to affect all installations of Java and there is no known way to stop it outside of disabling or uninstalling Java. Oracle, the makers of Java, are aware of the exploit and are doubtlessly working on a fix, but no ETA or information has been released.

The easiest and most secure way to disable Java is to follow the instructions provided by Oracle by clicking here. You can re-enable Java after Oracle patches Java and you download an updated version. Disabling Java may cause certain websites to perform differently as Java will not be available to them so keep that in mind if you experience any unusual performance.

Top 10 Email scam you should know about.. make sure before u forward an email..


There are many email scams going around. I have recently searched and documented top ten of them currently hovering around. Please find time to read what experts have to say which you may  have already observed.
It can really get your blood pressure depending on how you want to see it, going.
You log into your email box, hoping to do a honest spot of work or just catch up on your fun mail, and what do you think you see?
Your mailbox is clogged with mails by scammers who have nothing better to do, other than waste your time and see how they can make a quick buck in the process.

The Top 10 Email Scams
1.        The Great Nigerian Scam, also simply known as 419
2.       Pay up, get a guaranteed loan or credit card
3.      Have you won a lottery?
4.      Phished!
5.      Hey, you're hired!
6.      It's a disaster!
7.      Time to travel?
8.      Money can't be minted. . . or can it?
9.      Join a chain?
10.   Instant cures? Naah!

1. The Great Nigerian Scam, also simply known as 419
It's been going on for over a decade, and it's amazing how successful it continues to be. And that, probably, is because it appeals to two of the strongest aspects of human nature: kindness and greed.
Dearly Beloved, it will begin, or with a salutation to Respected or Kind Sir/ Madam. This will be followed by a heartfelt plea for help. You see, the person writing the mail either has tons of money with no way of getting it out of the country or has tons of money and wants to donate it.
In either case, they can't do it without your help because they are stuck in an obscure African nation that has either just faced a coup or is in the grip of an evil dictator.
(There are many variations to this theme. Sometimes it's a widow giving away her millions, or an Arab billionaire feeling altruistic and picking you to give his fortune. . . but all these are nothing but scams.)
They'll promise you a huge sum of money in return for your help, even though they know your motive is truly altruistic. You'll need to send money to a few selfish souls in order to prod them into releasing the said funds, or transferring it in your name, but person writing you the anguished mail promises to reimburse every penny and then some!
The more money you send, the more they wheedle out of you. Of course, you can be sure you aren't going to get a penny -- after all, they aren't going to share their ill-gotten wealth with you, are they?
Remedy: Hit the delete button immediately.
2. Pay up, get a guaranteed loan or credit card
You have to hand it to these scamsters; they are great students of human nature. And the biggest problem most of us mortal souls face is money.
Even as we juggle to satisfy our needs -- it could be that additional night out at an expensive new joint or the desire to buy an iPhone -- we just never seem to have enough money.
So, if someone promises you a 'pre-approved' loan or a credit card if you pay a small fee upfront, how can you not grab the offer?
You wouldn't actually, if you stopped to think for a moment. Why would you randomly be offered a pre-approved loan without a creditworthiness check? After all, the banks would like their money returned with interest, so they would like to know if you have the capacity to pay them back.
A credit card begs the same question -- why would any bank give you one without checking if you are capable of paying the bill every month? And why would they charge you a fee upfront?
Remedy: Pause to think; you'll automatically hit the delete button.
3. Have you won a lottery?
Almost everyone you know would have had this fantasy: of winning tons of money so that you never have to work again, never have to juggle your wants, go for expensive holidays and super-expensive shopping sprees and, in general, spend the rest of their lives wallowing in luxury's luxurious lap.
So, when an email pops up, boldly titled WINNING NOTIFICATION, and tells you that you are the lucky soul to have won a huge pile of cash, you have no reason to disbelieve it. Except for the fact that you
never entered any such sweepstake or lottery.
But that's taken care of as well -- you are either a randomly selected winner, or your email has been entered automatically. How? You don't know and we are sure you don't really care -- your attention is focussed on that never-ending series of zeroes after that initial number.
You're already writing your resignation and dreaming of all the exciting things you can do with the money when. . . Hold your horses! You need to send them a small processing fee (it's generally a small amount compared to the millions you've won, but it large enough to have one happy scamster scampering all the way to the bank).
If you've fallen for this trap, and are waiting for the moolah, it's an expensive lesson learnt. If not. . .
Remedy: Delete! Delete! Delete!
4. Phished!
There's no doubt about the fact that technology can make life much easier. For example, instead of going to the bank, standing in a long queue and dealing with a bored clerk, or even going to an ATM to check your balance, transfer funds or pay bills, you can just as easily do it over the Internet.
It's convenient, and it saves time! But those Internet hackers, the ones who want to make money ripping you off, have such activities firmly in their radar. The result? One of the most widespread scams to have hit mail in-boxes in recent times.
You'll get a rather official looking, and a rather frightening, mail that tells you that you urgently need to verify your identity with the bank/ shopping site because your account has been hacked.
The implied threat is that your personal details could be misused and you could lose money.
If you click on the re-verification link they provide you, that's exactly what's going to happen. As you key in your login name and password, it is captured by a computer programme.
You innocently heave a sigh of relief, thanking the stars for the quick alert from your bank. But your troubles are just beginning. The hackers now know your login and password and can easily skim all your money from your account.
Remedy: Be suspicious! If in doubt, delete. If you think the email is legitimate, call the bank before divulging any details on the Net.
5. Hey, you're hired!
You've been looking for a job, or a change of job -- something that will leave you with some free time so that you can have a life!
Then, like unexpected manna from heaven, such a job actually falls in your lap. You get mail from an impressive sounding company offering you the grand-sounding post in the finance or marketing department.
The company, the mail explains in professional sounding terms, is doing very well in its home country and is now expanding across the globe/ in Asia, including India. They need people and you seem the right fit. They have Indian customers; all you have to do is collect money from them and send it to the company (pretty much like a post box they assure you, you're not a recovery agent and don't have to run after their customers).
Your commission will be somewhere between 5 per cent and 15 per cent; all you need to do is drop the cheques/ money orders into your account and send the money, minus your percentage, to them.
Of course, you'll need to share some personal information, such as your contact details bank account details. It all sounds simple and aboveboard, doesn't it?
Soon, you'll actually receive cheques and money orders. You'll deposit it in your account and send money to your employers. Then, you'll discover the cheques and money orders are fraudulent. Which leaves you. . . yup, conned, having sent your hard-earned savings to a scamster. If you try to trace them, you find they've vanished into the Internet. . . oops, ether!
Remedy: Remember, nothing comes free. Take a moment to verify the mail's details; you may find what you actually need is the delete button.
6. It's a disaster!
Every time disaster strikes, in the midst of heart-wrenching human tragedy, there will be a few hard-hearted enough to make a quick buck.
When tragedy takes place on a large scale, help is needed from multiple sources on an even larger scale. Many of us pitch in. But be careful if you get an email asking you to help financially with disaster relief. It could be a scamster on the prowl.
Do not give out your financial details until you thoroughly verify the source is genuine.
Remedy: Make sure your aid goes to the right source; ideally, approach an NGO (non-governmental organisation). As for these scamsters, relegate them to where they belong -- in the trash!



7. Time to travel?
You're planning a much looked forward to holiday and -- stroke of luck! -- some interesting emails land in your mail in-box, offering you bargain holidays to these really exotic locations. It may even be a reasonably priced, decent sounding time share arrangement.
You click, send in your requirement, get a positive reply and even sign on the dotted line.
And then discover. . .
·  That, quite simply, the whole thing was a scam and the money you've already paid is lost forever.
·  There are certain rather expensive charges you have to pay that you were told nothing about.
·  That the time-share is on, but the dates that are available to you are the ones that no one else wants because they are not convenient.
These scams peak just before, or during, the holiday season, so beware!
Remedy: Ignore these guys and book through a real travel agent, a state-run travel agency, or a reputed Web site.
8. Money can't be minted. . . or can it?
 It's the classic scam and there are so many versions of it going on, both online and offline.
At first reading, or hearing as the case may be, it all sounds pretty plausible. The email will contain a list of people. You will be asked to send a certain amount of money to the person whose name tops the list. You will also be asked to forward the list to a certain number of people you trust.
The opportunity to make a good deal money, with minimal investment, will be impressively detailed. There will be quotes given, along with email addresses, of happily satisfied people who've already made their bundle. There are repeated guarantees and double reassurances that nothing, absolutely nothing, can go wrong.
If things go according the method listed, you may actually stand to make some money. But this, remember, is a scam. Most of the time, the mail is manipulated in such a way that the name of the scamster, or his friends, is always on top.
Even if the scheme is genuine, it works only if more people get added to the list and if they send money. And all such schemes have a strange tendency of fizzling out; only those who get in early make some money. This is the much prevalent Ponzi scheme. . . and sometimes even multi-level marketing schemes fall into this category.
Remedy: There's no easy way to make money. The easier way out is to aim for the delete button.


9. Join a chain?
 It's tough but you still have to believe it! Chain emails, where you are asked to forward the mail to a certain number of people, either in peril because something horrible will happen to you otherwise or because Bill Gates will give you a substantial chunk of his wealth, is nothing but -- sigh! -- a scam.
Bill Gates, Mukesh Ambani, Jack Welch, Richard Branson, Warren Buffett and all the other super-rich people are NOT interested in sharing their wealth with gullible people who forward chain mail with the celebrity's name in it. Yes, forwarding mails will not get you a Nokia cell phone or an iPhone.
You are NOT going dogged by bad luck if you delete a chain mail instead of forwarding it. Your friends are NOT going to desert you. NEITHER you nor your family is going to fall seriously ill. NOR will unexpected good luck come your way just because you did forwarded the mail.
Remember, you are not doing anyone a favour by forwarding these mails. All you are doing is cluttering some else's email box. And, probably, allowing some malicious virus to track the email addresses -- and infect the computers -- of the people you've sent the mail to.
Remedy: Trash the mail. Pronto!
10. Instant cures? Naah!
 This one is horrible, because it preys on your fear.
It will either outline a surefire cure for a deadly disease. Or it will tell you about how heating water in the microwave could lead to cancer. Or how talking on your cell phone when you are charging it will lead to the phone blasting into pieces in your hand. Or some such other stuff that sounds plausible, and possible, but is unfortunately not true. Like enhancing your manhood, or making you a better lover, etc. . .
Do not forward! It is just a blatant attempt to collect as many genuine email addresses as possible, so that they can then be used in other email scams!
Remedy: Destroy that mail.


NOTE: Never reply, even in anger, to any such email!

Thursday, 13 December 2012

Downtime Calculation


Downtime Calculation: Ex. A site which has only 2 hours downtime in a 30-days month will have downtime % like the following :-

D = Total downtime (in minutes)
T = Total time in the month (in minutes)

Downtime (in %) = D/T X 100

D = 2 X 60 minutes = 120 minutes
T = 30 days X 24 hours X 60 minutes = 43200 minutes

Downtime (in %)
= [120/43200] X 100
= 0.2777 %

Uptime (in %)
= 100 - 0.2777
= 99.7222 %

In other words, you have 99.722% of uptime throughout the month.

SLA % - usually calculated at 99.90% 
Outage SLA (mins.) - 167 mins. in a year
Calculation Ex: 
From 01-01-2012 to 31-12-2012 Holidays:8holidays+Fri+Sat off days adds upto 112 days holidays. So difference from day 1 of year until last day of year minus holidays = say 112 days
So total working days = 365 - 112 days = 253 working days. You may also calculate with excel formula; NETWORKDAYS.
So, Total number of minutes in working days = 253x11*60=166980
where 11 is the total business hours (may vary from organisation to org'n) in a day and 60 is for 1 hr.
So, 166980-(166980x99.90%) = 166.98 mins. Outage SLA in mins in a year for an org'n. should be around 167mins. Any downtime exceeding beyond 167 mins violates the SLA.