http://qs321.pair.com?node_id=1103634

Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Hi Monks,
Till up to now i am using manual command to verify the connetvity of hosts using telenet by below command
[usename@servername:/tmp]telnet servername xxxx(port)
after running the above command i use to see the message as connected to server from the output console,once after that i use to type 'ctrl + ]' and telent> q to exit from the telnet session.As this methos is helpful for verifying connectivity for few host. As i need to verify it for 3000 host, it is very tedious task to do it manually for each and it is very time consuming.
Dear monks could you please help me how to automate this.
  • Comment on How to automate telent verification of multiple host from command prompts
  • Download Code

Replies are listed 'Best First'.
Re: How to automate telnet verification of multiple host from command prompts
by hippo (Bishop) on Oct 13, 2014 at 16:13 UTC

    You could roll your own, but it is probably the case that Nmap::Scanner has all you need.

Re: How to automate telnet verification of multiple host from command prompts
by TomDLux (Vicar) on Oct 14, 2014 at 11:08 UTC

    Assuming your company didn't provide the actual hardware to the co-location supplier, ask the colocation supplier whether there is IPMI available on the servers, or other preferred ways to monitor proper functionality.

    As Occam said: Entia non sunt multiplicanda praeter necessitatem.