Re: Simulating network hang

  • From: "Jared Still" <jkstill@xxxxxxxxx>
  • To: cshapi@xxxxxxxxx
  • Date: Tue, 18 Nov 2008 12:32:16 -0800

On Tue, Nov 18, 2008 at 10:52 AM, Chen Shapira <cshapi@xxxxxxxxx> wrote:

> Hi Oracle-L,
>
> I'm trying to simulate a situation (for testing) where any attempt to
> make tcp connection to a machine hangs.
> For example, connections using ssh or sqlplus hangs. No error message
> (as seen when ssh server or listenere are down), just no reply.
>
> Any advice on how to create this state on purpose?
> The OS is Linux RH3 and RH4.
>
>

Temporarily add an entry to the hosts file on your test client, misdirecting
to a non-existent IP address.

This may or may not work, depending on where your client first looks
to resolve IP addresses. Generally the hosts file comes first.

Jared

Other related posts: