Identifying Solaris Hosts

From: none none (timtowtdi@hotmail.com)
Date: Mon Jul 08 2002 - 14:22:20 EDT


Guys:

I have been asked to create a script/tool that walks various subnets and
identifies solaris/Unix machines. I cannot use tools such as nmap/siphon or
router arp caches due to security reasons/internal policies. Therefore, what
I am left with is creating a tool that will telnet/ftp/ssh/rpcinfo to a host
and then try to grep out 'linux/solaris/aix/hpux' out of the banners that
are presented to me by these hotsts. Here is in essence what I am trying to
script in:

telnet some_host |grep -i sunos

This of course wont work b/c the telnet process hangs untill its manually
terminated by a ^D. This:

echo '' |telnet some_host|grep -i sunos

wont work either b/c the telnet process terminates before it ever gets to
the SunOS X.X part. I know that I can use something like Expect to solve the
^D problem. However there is probably a more elegant and simple way to do
this. I am not a Expect or Perl expert and that is why I am trying to do
this using ksh. Any ideas would be greatly appreciated.

Thanks.

-Tim

_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:24:34 EDT