ssh on one onterface and ping on other interface
How do I ping test a client on one of its interface and ssh test on its other interface?
A client has two interfaces, hme0 and hme1. Each interface has its own IP on same subnet.
How do I craft the the bb-hosts entry for this system so that I can ping on interface and ssh on the other interface but keep the name of the host same as the IP that matches to hme0 interface?
Thanks
-- Asif Iqbal PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
On Mon, Jun 11, 2007 at 05:35:20PM -0400, Asif Iqbal wrote:
How do I ping test a client on one of its interface and ssh test on its other interface?
You cannot do that with one entry in bb-hosts. As far as Hobbit is concerned, a host has one IP-address only.
Regards, Henrik
On 6/12/07, Henrik Stoerner <henrik at hswn.dk> wrote:
On Mon, Jun 11, 2007 at 05:35:20PM -0400, Asif Iqbal wrote:
How do I ping test a client on one of its interface and ssh test on its other interface?
You cannot do that with one entry in bb-hosts. As far as Hobbit is concerned, a host has one IP-address only.
Is there a work around? I just want to get ssh on interface and ping on the other interface tested but keep the results under same hostname.
Regards,
Henrik
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
-- Asif Iqbal PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
On 6/12/07, Asif Iqbal <vadud3 at gmail.com> wrote:
On 6/12/07, Henrik Stoerner <henrik at hswn.dk> wrote:
On Mon, Jun 11, 2007 at 05:35:20PM -0400, Asif Iqbal wrote:
How do I ping test a client on one of its interface and ssh test on its other interface?
You cannot do that with one entry in bb-hosts. As far as Hobbit is concerned, a host has one IP-address only.
Is there a work around? I just want to get ssh on interface and ping on the other interface tested but keep the results under same hostname.
Let Hobbit do the ping test. Write a script to connect to the other port via ssh and send a green/red report to Hobbit.
Ralph Mitchell
On Tuesday 12 June 2007 11:19, Ralph Mitchell wrote:
On 6/12/07, Asif Iqbal <vadud3 at gmail.com> wrote:
Is there a work around? I just want to get ssh on interface and ping on the other interface tested but keep the results under same hostname.
Let Hobbit do the ping test. Write a script to connect to the other port via ssh and send a green/red report to Hobbit.
I have a script that I through together to do this. It is single threaded tho.
No real documentation on it, but if you want it.. I could throw something
together and forward it to ya. Basically the script uses nc to do a port
check.
~Steve
On 6/12/07, s_aiello at comcast.net <s_aiello at comcast.net> wrote:
On Tuesday 12 June 2007 11:19, Ralph Mitchell wrote:
On 6/12/07, Asif Iqbal <vadud3 at gmail.com> wrote:
Is there a work around? I just want to get ssh on interface and ping
on
the other interface tested but keep the results under same hostname.
Let Hobbit do the ping test. Write a script to connect to the other port via ssh and send a green/red report to Hobbit.
I have a script that I through together to do this. It is single threaded tho. No real documentation on it, but if you want it.. I could throw something together and forward it to ya. Basically the script uses nc to do a port check.
I still think there is a simpler way to do this. I think I saw somethink like this in the past.
1.2.3.4 host.net # testip ssh 0.0.0.0 host.net #
Something like that. But I have not found the exact example yet
~Steve
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
-- Asif Iqbal PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
Asif Iqbal wrote:
On 6/12/07, *s_aiello at comcast.net <mailto:s_aiello at comcast.net>* <s_aiello at comcast.net <mailto:s_aiello at comcast.net>> wrote:
On Tuesday 12 June 2007 11:19, Ralph Mitchell wrote: > On 6/12/07, Asif Iqbal < vadud3 at gmail.com <mailto:vadud3 at gmail.com>> wrote: > > > > Is there a work around? I just want to get ssh on interface and ping on > > the other interface tested but keep the results under same hostname. > > Let Hobbit do the ping test. Write a script to connect to the other > port via ssh and send a green/red report to Hobbit. > I have a script that I through together to do this. It is single threaded tho. No real documentation on it, but if you want it.. I could throw something together and forward it to ya. Basically the script uses nc to do a port check.I still think there is a simpler way to do this. I think I saw somethink like this in the past.
1.2.3.4 <http://1.2.3.4> host.net <http://host.net> # testip ssh 0.0.0.0 <http://0.0.0.0> host.net <http://host.net> #
I think that would be:
1.2.3.4 host.net # conn testip 0.0.0.0 host.net # noconn ssh
This would make the ping test ping 1.2.3.4, and the ssh test would be the DNS ip of host.net. I don't think Hobbit "likes" when you do that though, I know if you have duplicate hostnames it makes hobbitest turn yellow and fuss at you :)
-Charles
On 6/12/07, Charles Jones <jonescr at cisco.com> wrote:
Asif Iqbal wrote:
On 6/12/07, s_aiello at comcast.net <s_aiello at comcast.net> wrote:
On Tuesday 12 June 2007 11:19, Ralph Mitchell wrote:
On 6/12/07, Asif Iqbal < vadud3 at gmail.com> wrote:
Is there a work around? I just want to get ssh on interface and
ping on
the other interface tested but keep the results under same hostname.
Let Hobbit do the ping test. Write a script to connect to the other port via ssh and send a green/red report to Hobbit.
I have a script that I through together to do this. It is single threaded tho. No real documentation on it, but if you want it.. I could throw something together and forward it to ya. Basically the script uses nc to do a port check.
I still think there is a simpler way to do this. I think I saw somethink like this in the past.
1.2.3.4 host.net # testip ssh 0.0.0.0 host.net #
I think that would be:
1.2.3.4 host.net # conn testip 0.0.0.0 host.net # noconn ssh
This would make the ping test ping 1.2.3.4, and the ssh test would be the DNS ip of host.net. I don't think Hobbit "likes" when you do that though, I know if you have duplicate hostnames it makes hobbitest turn yellow and fuss at you :)
Hmm.. why so? Is there a patch may be to fix that behavior?!
-Charles
-- Asif Iqbal PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
On Tue, Jun 12, 2007 at 07:06:15PM -0700, Charles Jones wrote:
1.2.3.4 host.net # conn testip 0.0.0.0 host.net # noconn ssh
This would make the ping test ping 1.2.3.4, and the ssh test would be the DNS ip of host.net.
No it won't. This setup will make Hobbit use the IP from the first line. The "host.net" host has a "testip" flag associated with it, and an IP of 1.2.3.4 listed - so that is what Hobbit will use.
Regards, Henrik
Hi,
just give the second IP a virtual hostname so that names in bb-hosts differ and it will work regards Rolf
On 6/12/07, *s_aiello at comcast.net <mailto:s_aiello at comcast.net>* <s_aiello at comcast.net <mailto:s_aiello at comcast.net>> wrote:
On Tuesday 12 June 2007 11:19, Ralph Mitchell wrote: > On 6/12/07, Asif Iqbal < vadud3 at gmail.com <mailto:vadud3 at gmail.com>> wrote: > > > > Is there a work around? I just want to get ssh on interface and ping on > > the other interface tested but keep the results under same hostname. > > Let Hobbit do the ping test. Write a script to connect to the other > port via ssh and send a green/red report to Hobbit. > I have a script that I through together to do this. It is single threaded tho. No real documentation on it, but if you want it.. I could throw something together and forward it to ya. Basically the script uses nc to do a port check.I still think there is a simpler way to do this. I think I saw somethink like this in the past.
1.2.3.4 <http://1.2.3.4> host.net <http://host.net> # testip ssh 0.0.0.0 <http://0.0.0.0> host.net <http://host.net> #
Something like that. But I have not found the exact example yet
~Steve To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk <mailto:hobbit-unsubscribe at hswn.dk>-- Asif Iqbal PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu <http://pgp.mit.edu>
-- Mit freundlichen Gruessen Rolf Schrittenlocher
HRZ/BDV, Senckenberganlage 31, 60054 Frankfurt Tel: (49) 69 - 798 28908 Fax: (49) 69 798 28817 LBS: lbs-f at mlist.uni-frankfurt.de Persoenlich: schritte at rz.uni-frankfurt.de
participants (6)
-
henrik@hswn.dk
-
jonescr@cisco.com
-
ralphmitchell@gmail.com
-
s_aiello@comcast.net
-
Schrittenlocher@rz.uni-frankfurt.de
-
vadud3@gmail.com