Operating System - HP-UX
1847086 Members
5831 Online
110262 Solutions
New Discussion

Simulate network failure ??

 
SOLVED
Go to solution
Sajith V Mannadiar
Frequent Advisor

Simulate network failure ??

Hello there,

We have a test case scenario for Service Guard which involves testing the behaviour of the system when the network has failed?

Is there a way to simulate this (other than pulling the cable from both the network cards) ?

We tried, ifconfig lan1 & lan4 down. Since SG is verifying the connection at layer 2, this did not help.

lanadmin -x 1 reset also did not help as the network card comes up very fast after the reset..

Any other suggestions?? It would be of great help to us as all our servers are located in a remote data center!!

Thanks for your time


Regards,
Sajith
6 REPLIES 6
Tom Danzig
Honored Contributor

Re: Simulate network failure ??

Perhaps your network admin can disable the appropriate port on the switch?
Mark Greene_1
Honored Contributor

Re: Simulate network failure ??

Have you tried disabling the gateway? Either powering down the router/switch/hub (whatever it's connected to), or setting it to refuse traffic from the server?

mark
the future will be a lot like now, only later
Sridhar Bhaskarla
Honored Contributor
Solution

Re: Simulate network failure ??

Hi Sajith,

One way is to reset the speed of the lan card. It takes 11 seconds which is too much for serviceguard unless you set the polling interval to more than 11 secs.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Jeff Schussele
Honored Contributor

Re: Simulate network failure ??

Hi Sanjith,

Since the lanadmin reset function doesn't have a command line switch per se it's a little more difficult - but try this

echo "l\np\nX\nr\n" |landiag 2> /dev/null

where X=ppa i.e. use 0 for lan0, 3 for lan3, etc.
We use this to force a NIC failover when there's no link loss.

This will force the failover, but expect MC/SG to move back to the primary in about 30 seconds or so after the reset. BUT you should see the failover & move back in the syslog.log

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Sajith V Mannadiar
Frequent Advisor

Re: Simulate network failure ??

Thanks to all of you for your help..

We were able to simulate the network failure by switching the network speed to 10Mbps FD.

Our switches are configured to 100Mbps FD manual.. We (unix admins) don't have access to switches and hence the other options could not be tried...



Thanks & Regards,
Sajith
JaisonPP
New Member

Re: Simulate network failure ??

Hello Sajith,
I would like to contact you for further queries
my email id is pjaisonp@gmail.com


regards
JaisonPP(Tirur Poly)