โ‰ก Menu

How to find the remote machine OS easily

Do you ever got a requirement to findout what Operating System(OS) the remote machines has? You might say, “Ah! I am a sysadmin, it’s my daily task”. Good, how will you findout the OS, if you don’t have any sort of rights(console right/admin rights/ports access) on remote machine?

Hmm..It’s simple now!!

You might have many windows and UNIX boxes in your network. If you know one machine name and if you want to find if that machine has windows or UNIX os, try the below steps.

JUST PING IT.

Yes, right. You just ping that machine. If the TTL shows as 127 or less it is windows box and if the TTL shows 254 or less it is a UNIX box.

Test it if you don’t believe.

c:>ping windowsbox

Pinging windowsbox.mydomain.com [172.16.100.10] with 32 bytes of data:

Reply from 172.16.100.10: bytes=32 time=15ms TTL=127
Reply from 172.16.100.10: bytes=32 time<1ms TTL=127
Reply from 172.16.100.10: bytes=32 time<1ms TTL=127

c:>ping unixbox

Pinging unixbox.mydomain.com [172.16.100.20] with 32 bytes of data:

Reply from 172.16.100.20: bytes=32 time=15ms TTL=254
Reply from 172.16.100.20: bytes=32 time<1ms TTL=254
Reply from 172.16.100.20: bytes=32 time<1ms TTL=254

The thing is that windows machine will return 128 as TTL by default and Unix machine returns 255 as TTL. And this TTL will get reduced by one(TTL –) when there is just one hop between your computer and the remote box. And will get reduced by two when you have two hops…and gets reduced by N where are N hops.

Happy Learning..,
Sitaram Pamarthi

{ 2 comments }

Quick way to find hotfix installation status

I know there are varioud menthods for finding the hotfix installation status, but I felt this as very easy one.

To find the hotfix installation status on local machine:

wmic qfe where hotfixid=”KB958644″ list full

To find on a remote machine:

wmic /node: qfe where hotfixid=”KB958644″ list full

To find on list of machines:

o Place all machines into a text file(machine.txt)
o Run the below batch file

=== File name: get-hotfix-status.bat ===

echo off
for /f “tokens=* delims= ” %a in (test.txt) do wmic/Node:%a qfe where hotfixid=”KB958644″ list full

=== End of file ===

Please comment if you know any better way.

Happy Learning,
Sitaram Pamarthi,

{ 0 comments }

Active Directory diagnostic Logging

Sometimes we end up clueless while troubleshooting AD related issues. Event log doesn’t say anything and there are no error/warning messages on DC or at client side. To troubleshoot this kind of problems, increasing the Active directory diagnostic logging levels is very helpful. There are 5 levels(0-none, 1-minimal, 2-basic, 3-extensive, 4-verbose, 5-internal) of logging for each of below category and they writes the detailed events to “Directory Services” log of event viewer.

1 Knowledge Consistency Checker (KCC)
2 Security Events
3 ExDS Interface Events
4 MAPI Interface Events
5 Replication Events
6 Garbage Collection
7 Internal Configuration
8 Directory Access
9 Internal Processing
10 Performance Counters
11 Initialization/Termination
12 Service Control
13 Name Resolution
14 Backup
15 Field Engineering
16 LDAP Interface Events
17 Setup
18 Global Catalog
19 Inter-site Messaging
New to Windows Server 2003:
20 Group Caching
21 Linked-Value Replication
22 DS RPC Client
23 DS RPC Server
24 DS Schema

You can refer to http://support.microsoft.com/kb/314980 for more details on how to enable this logging.

Happy Learning..
Sitaram Pamarthi

{ 0 comments }

Configure IE to download multiple files

By default internet explorer allows only two download sessions in parallel which means that you can download only two files at a time and to initate the download of third file, one of your first downloads should be completed/terminated. If you want to have more than two download sessions in IE like firefox, check the below article.
http://support.microsoft.com/kb/282402

~Sitaram Pamarthi

{ 0 comments }

I have come across a nice tool which I felt very useful for home users who wants to exchange their data with each other without the intervention of third party.

The general practices for sharing files with internet friends are sending through e-mail or sharing through some websites. All public sites are not as safe as we think. You can take rapid share site for example. Many search engines are available to search and report rapid share content. Though sharing through mail is very secure, size becomes the limitation here. I know, gmail support upto an attachment size of 25MB.

To make internet users happy, a new free aware called “Gbridge” was introduced by Gbridge LLC. The most impressing thing I found with this is, it’s integration with Gtalk for authentication service. Yes, you read it right. One need to use their gtalk ID for logging into this tool. After login this tool displays all your gtalk contacts and you can perform the following with your gtalk friends.

– Easy desktop Sharing using VNC and RDP(remember, this is not possible in normal scenario because all home internet connections will run under NAT service.)
– Easy file sharing (file transfer will happen from your computer to your friend computer and no other person can see this data in between)
– Chat with friends like you do with Gtalk
– Explore the tool for many more options

I personally felt that, this tool is very useful because of…

o It’s tight integration with Gtalk
o Easy sharing with without a third party intervention.
o Easy remote desktop sharing.

You can read FAQ’s for more clarity and download the tool from here.

Happy Learning…
Sitaram Pamarthi.

{ 1 comment }

My visit to Lok Satta Party Office

“Lok Satta…”, I have heard this name many times before as a political party name; but I never got a chance to see what it is exactly(I am Honest.. :-)). Last week, DBM(D. Bala Murali; my senior in college) invited me to Lok Satta party office along with his crew. We all made it on March 7th and gathered around 2:00PM at party office. Before stepping into that place, I imagined the party office as a BIG building located aside of one of Hyderabads most happening road and crowded with party leaders and supporters (tv clips of other parties made me to assume like this. I have never been to any party office before). But all my imaginations went wrong. It is a middle aged building which is located inside a small street where you will find tough to park your vehicle :-). We all went into the office. A few people are there who are busy in their works. DBM enquired in the reception about our appointment and they asked us to wait for some time as JP is not available. So, I spent my time by looking at the photos pasted in notice board which are describing party services to public. They really gave me some good feeling about the party activities. We met Mr.Karthik(A IIT grad and official spokesman of LokSatta party) in second floor. DBM introduced all of us to Karthik as he knew him before. Karthik made us to sit in the visitors room of JP and we spent few more minutes there by going through the expo of awards presented to Lok Satta. While we are busy in chatting, a person in black pant and white shirt passed through us and I could see everyone wishing him. It took me few seconds to realize that he is none other than JP (I am poor in recognizing the faces ๐Ÿ™ ). We are asked to enter JP room by one of the person there and we did it immediately with lot of enthusiasm to see him.

What happened inside…

JP made us to sit comfortably and asked about our profiles. He is very happy about our step towards participating in Lok Satta and he also explained the need for youth in politics. He criticized current corrupted Govt in general and he wants to see active participation from young people.

“Your future, goals and responsibilities should not get spoiled due to services you are offering to the party. Instead spare your free time.โ€, JP stressed this point in our conversation..

He also encouraged us to motivate more people by conveying the importance of VOTE and voting for eligible party by looking at the facts. Also he used our native language “TELUGU” while speaking to us. There are no shades of proud in his words. I really love the way he addressed us. He also told that, interested(I repeat the word, interested) people are encouraged to contribute starting from Rs. 250/- to any amount which they feel comfortable. He again mentioned that, the contribution amount will come u/s 80C for tax exemption and they are giving proper document for claiming. I don’t think other parties does in this way. After spending few minutes with him, we took a group photo and left his cabin with courage to help the nation (and people indirectly).

What we did next…

We met Karthik again and he answered few of the questions we shooted at him. He noted that every eligible person should get his voter identity as a first thing. Karthik asked us to get tied-up with our area local lok satta candidates for participating in future party activities of any kind based on our interested. We also joined in Lok Satta as a member and shared our communication details to receive any further notifications about party activities.

And this finished our visit to Lok Satta party office. I really enjoyed the moments spent there.

So, what next:-

Well, JPs words really energized me to do some thing good for the nation and for the people. I will go through the party agenda and their activities as my first step to understand more about what lok satta. If that really inspires me further, I will contribute my best. By the time I am writing post, I don’t know even 10% about the party; so, it is not good to take decision now on what can be done next. Personally, I feel that Lok Satta party is having lack of publicity to reach people and most of the people are not aware what this party is doing. So, I will use this post to spread the news across my friends network.

Few blogs on the name of JP :

http://www.loksatta.blogspot.com/
http://loksattaparty.blogspot.com/
http://voteindiacampaign.blogspot.com/

Thanks,
Sitaram Pamarthi

{ 5 comments }

Download Exchange 2007 SP1 Helpfile

Microsoft has made the Exchange 2007 SP1 help file available for download at download center. It is a chm file of 20MB size which covers the following topics..
o Planning and Architecture (includes AD planning and E2K7 roles planning)
o Deployment (covers fresh installations and migrations)
o Operations(covers various administration tasks)
o Very useful troubleshooting tips
o Configuring security and protection in Exchange 2007
o Technical Reference for administrators like me who loves to read some internal stuff. ๐Ÿ™‚
o PowerShell commands

I downloaded this and had glimpse at it. I felt that is useful for every one. Hence I wrote this post.
Happy Learning,
Sitaram Pamarthi

{ 0 comments }

Active Directory Limits

I faced few questions in past about the maximum numbers in Active Directory. I managed to findout below and happy to share with you all.

Q1 : Maximum number of objects that can be created in active directory?
A : A little bit less than 2.15 billion.

Q2 : Maximum number of {users & computers & Groups} active directory can have?
A : ~ 1 billion.

Q3 : A user/computer/group can be member of how many groups at a time?
A : ~1,015 groups at max.

Q4 : What is the maximum length for FQDN Active Directory?
A : Should not exceed 64 characters.

Q5 : How big my OU name can be?
A : 64 characters max.

Q6 : What is the maximum no. of GPOs that can be applied to a user or a computer?
A : 999. No surprise..!! This is in place for performance reasons. But don’t relate it with no. of GPOs a Active directory system can have.

Q7 : How many accounts a LDAP transaction can hold?
A : 5000. This you can see when writing scripts. A roll back can happen if this limit is exceeded. Don’t compare it with ADODB objects 1000 limit. Both are different.

Q8 : How many objects a group can hold?
A : M$ hasn’t defined any limit yet. But few production environments proved up to 4 million objects. For windows 2000 active directory the static limit is 5000.

Q9 : Any limits on no. of domains a forest can have?
A : Yes, of course. Recommended Maximum no. of domains in a windows 2003 forest is limited to 1,200 and windows 2000 forest is 800.

Q10: How many Domain Controllers a domain can have?
A : Recommended maximum no. of DCs in a domain is limited to 1,200.

I hope this is informative. Please feel free to make any corrections and new additions.

Reference : http://technet.microsoft.com/en-us/library/cc756101.aspx

You can reach me at sitaram.pamarthi@gmail.com

Happy Learning!!
Sitaram Pamarthi

{ 1 comment }

Script to generate last logon time of all users

SBelow code give the last logon time of all users in active directory. Please drop me a mail, if you want any further fine tuning to this script or incase of queries.

I am providing this script without any warranty. Use at your own choice. ๐Ÿ™‚

Code:

############# Getlastlogon.vbs ################

on error resume next

Set objConnection = CreateObject(“ADODB.Connection”)
objConnection.Open “Provider=ADsDSOObject;”

Set objCommand = CreateObject(“ADODB.Command”)
objCommand.ActiveConnection = objConnection

objCommand.CommandText = _
“<LDAP://dc=mydomain,dc=com>;” & _
“(&(objectCategory=person)(objectClass=user));” & _
“ADsPath;subtree”

Set objRecordSet = objCommand.Execute

While Not objRecordset.EOF
strADsPath = objRecordset.Fields(“ADsPath”)
Set objUser = GetObject(strADsPath)
set objLogon = objUser.Get(“lastLogonTimestamp”)
intLogonTime = objLogon.HighPart * (2^32) + objLogon.LowPart
intLogonTime = intLogonTime / (60 * 10000000)
intLogonTime = intLogonTime / 1440
WScript.Echo “Approx last logon timestamp for ” & strADsPath & intLogonTime + #1/1/1601#
objRecordset.MoveNext
Wend
objConnection.Close
##################################

Note: you can redirect the script output from command prompt to clipboard by using http://www.sitaram-pamarthi.com/2009/01/copy-command-output-to-clip-board.html

Syntax: cscript Getlastlogon.vbs clip

Happy Learning…
Sitaram Pamarthi

{ 1 comment }

AD DS Operations Guide

Microsoft has released revised version of Active directory domain services(a.k.a AD DS) operations guide for Windows 2008 operating system. This really has some interesting stuff for AD administrators.

Click here to download it.

Happy Learning…
Sitaram Pamarthi

{ 0 comments }