[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [Linux-cluster] Cisco fence agent



I do not know if this will help, but here is what I put together.

We have 3 Cisco 3750 switches.  I am currently using SNMP to turn off the ports of a host that is being fenced.  I wrote a perl script called fence_cisco that works with GFS 6.  I have attached a copy of fence_cisco to this message and its config file.  I do not have much in the way of documentation for it, and it will probably take some hacking to get it to work with a current version of GFS.  If you know a little perl, writing a fencing agent is not very difficult.

I have also included a copy for the config file for fence_cisco.  The first two lines specify the SNMP community string and the IP address for the switch.  The rest is a list of hosts and the ports they use.  You will have to talk to your local network guru to figure out Cisco community strings and the numbers involved.  It took some tinkering to figure out how Cisco does this stuff, and even after writing the code, I am still not sure that I understand it.  I do know that it does work, GFS does do the correct things during a crash.

Most people use one of the power supply switches.  Redhat provides the fence_apc agent that will turn off the power to a node that needs to be fenced.  I like the network option because the host that is having problems will be able to write log entries after it has been fenced.

You will need to get the Net::SNMP module from cpan.org to use fence_cisco.
Matt


On Sun, 2006-04-09 at 01:23 +0900, 中野猛 wrote:
Hi all.
Do anyone have cisco catalyst fence agent?
If nobody make that, I will make.

Thanks.

--
Linux-cluster mailing list
Linux-cluster redhat com
https://www.redhat.com/mailman/listinfo/linux-cluster

Attachment: fence_cisco
Description: Perl program

community:YOURSTRINGHERE
switch:1.1.1.1
imagine:GigabitEthernet1/0/9:GigabitEthernet2/0/9:GigabitEthernet1/0/5
illuminate:GigabitEthernet2/0/10:GigabitEthernet3/0/9:GigabitEthernet2/0/6
illusion:GigabitEthernet1/0/10:GigabitEthernet3/0/10:GigabitEthernet1/0/6
inception:GigabitEthernet1/0/11:GigabitEthernet2/0/11:GigabitEthernet1/0/7
inspire:GigabitEthernet2/0/12:GigabitEthernet3/0/11:GigabitEthernet2/0/8
incantation:GigabitEthernet1/0/12:GigabitEthernet3/0/12:GigabitEthernet1/0/8

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]