Greetings everyone....Today I joined this sysadmin-network crew and happy to see you all. I wanted to start my write-ups in this blog with a small basic level tip which you might find it useful. Here you go....
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
http://www.sitaram-pamarthi.com
You need to be a member of The SysAdmin Network to add comments!
Join The SysAdmin Network