1.

Solve : Linux hostname from IP?

Answer»

I'm using XP. I can USE nbtstat -a to get the HOSTNAME of a windows machine from the command prompt. Am I able to get the name of a Linux box from the command prompt knowing only the IP ?Why do you need to do this ? ?Work related.How much is the solution worth ? ?Why the hard time? I'm just wondering if there's a WAY to do it from a Windows command line instead of having to walk over to the servers.Unfortunately, I don't know of anyway to check the OS on a remote system through batch. Is it possible that you can implement a naming convention that would allow you to tell just from the name whether it was Linux or not? If so, that may be a route to pursue.

The command I know that would hold the OS would be systeminfo. Also, the %OS% variable in cmd environment would tell you that it was Windows_NT. Obvioulsy, these wouldn't do much good without having access to the cmd environment though.

Sorry I couldn't be of more help. I don't run a mixed OS environment myself, but have heard from those who do that identifying the OS in the computer name is the most efficient way of managing things. I would suggest it (or INSTITUTE it if you have that authority) as from what I have found, it is an accepted best practice.



Discussion

No Comment Found