---
name: "fence_mcdata"
section: "8"
platform: "linux"
package: "fence-agents"
version: "3.1.5-2"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/fence_mcdata"
---

# fence\_mcdata(8)

I/O Fencing agent for McData FC switches

## NAME

fence\_mcdata - I/O Fencing agent for McData FC switches

## SYNOPSIS

**fence\_mcdata** \[*OPTION*\]...

## DESCRIPTION

fence\_mcdata is an I/O Fencing agent which can be used with McData FC  switches.  It logs into a McData switch via telnet and disables a specified  port.  Disabling the port which a machine is connected to effectively fences  that machine.  Lengthy telnet connections to the switch should be avoided  while a GFS cluster is running because the connection will block any necessary  fencing actions.

fence\_mcdata accepts options on the command line as well as from stdin. fenced sends parameters through stdin when it execs the agent.  fence\_mcdata  can be run by itself with command line options which is useful for testing.

After a fence operation has taken place the fenced machine can no longer connect to the McData FC switch.  When the fenced machine is ready to be brought back  into the GFS cluster (after reboot) the port on the McData FC switch needs to  be enabled. This can be done by running fence\_mcdata and specifying the  enable action.

Vendor URL: http://www.brocade.com

## OPTIONS

- **-a** *IPaddress*

  IP address of the switch.

- **-h**

  Print out a help message describing available options, then exit.

- **-l** *login*

  Username name for the switch.

- **-n** *port*

  The port number to disable on the switch.

- **-o** *action*

  The action required.  disable (default) or enable.

- **-p** *password*

  Password for login.

- **-S** *path*

  Full path to an executable to generate the password for login.

- **-q**

  Quiet mode: print only error messages.

- **-V**

  Print out a version message, then exit.

## STDIN PARAMETERS

- *agent = \< param \>*

  This option is used by [fence\_node(8)](/fence_node/8.md) and is ignored by fence\_mcdata.

- *ipaddr = \< hostname \| ip \>*

  IP address or hostname of the switch.

- *login = \< param \>*

  Login name.

- *option = \< param \>*

  The action required.  disable (default) or enable.

- *passwd = \< param \>*

  Password for login.

- *passwd\_script = \< param \>*

  Full path to an executable to generate the password for login.

- *port = \< param \>*

  The port number to disable on the switch.

## SEE ALSO

[fence(8)](/fence/8.md), [fence\_node(8)](/fence_node/8.md)
