Blame doc/fcoeadm.txt

Packit Service bca4e3
///////////////////////////////////////////////////////////////////////////
Packit Service bca4e3
// vim:syntax=asciidoc:tw=75:
Packit Service bca4e3
//
Packit Service bca4e3
// This is an asciidoc text file, which will be converted into a UNIX man
Packit Service bca4e3
// page using asciidoc and the DocBook XSL stylesheets.
Packit Service bca4e3
//
Packit Service bca4e3
// If you are going to update this documentation, please modify this file
Packit Service bca4e3
// and then regenerate the nroff formated man page using the Makefile.
Packit Service bca4e3
///////////////////////////////////////////////////////////////////////////
Packit Service bca4e3
Packit Service bca4e3
FCOEADM(8)
Packit Service bca4e3
==========
Packit Service bca4e3
:man source: Open-FCoE
Packit Service bca4e3
:man manual: Open-FCoE Tools
Packit Service bca4e3
Packit Service bca4e3
NAME
Packit Service bca4e3
----
Packit Service bca4e3
fcoeadm - The Open-FCoE Administration Tool
Packit Service bca4e3
Packit Service bca4e3
SYNOPSIS
Packit Service bca4e3
--------
Packit Service bca4e3
*fcoeadm* [-m|--mode fabric|vn2vn] -c|--create _ethX_
Packit Service bca4e3
Packit Service bca4e3
*fcoeadm* -d|--destroy _ethX_
Packit Service bca4e3
Packit Service bca4e3
*fcoeadm* -r|--reset _ethX_
Packit Service bca4e3
Packit Service bca4e3
*fcoeadm* -S|--Scan [_ethX_]
Packit Service bca4e3
Packit Service bca4e3
*fcoeadm* -i|--interface [_ethX_]
Packit Service bca4e3
Packit Service bca4e3
*fcoeadm* -f|--fcf [_ethX_]
Packit Service bca4e3
Packit Service bca4e3
*fcoeadm* -t|--target [_ethX_]
Packit Service bca4e3
Packit Service bca4e3
*fcoeadm* -l|--lun [_ethX_]
Packit Service bca4e3
Packit Service bca4e3
*fcoeadm* -s|--stats _ethX_ [_interval_]
Packit Service bca4e3
Packit Service bca4e3
*fcoeadm* -b|--lesb _ethX_ [_interval_]
Packit Service bca4e3
Packit Service bca4e3
*fcoeadm* -h|--help
Packit Service bca4e3
Packit Service bca4e3
*fcoeadm* -v|--version
Packit Service bca4e3
Packit Service bca4e3
DESCRIPTION
Packit Service bca4e3
-----------
Packit Service bca4e3
The *fcoeadm* utility is the Fibre Channel over Ethernet (FCoE) management
Packit Service bca4e3
tool for the _Open-FCoE_ project.  *fcoeadm* may be used to create,
Packit Service bca4e3
destroy, and reset an FCoE instance on a given network interface. For these
Packit Service bca4e3
operations *fcoeadm* sends a command to a running *fcoemon* process, via a
Packit Service bca4e3
socket interface. *fcoemon* will then perform the requested operation.
Packit Service bca4e3
Packit Service bca4e3
*fcoeadm* also provides operations to query information about FCoE instances,
Packit Service bca4e3
including interface information, target information, LUN information, and port
Packit Service bca4e3
statistics. For much of this information, *fcoeadm* relies on the _libhbalinux_
Packit Service bca4e3
implementation of the _HBA API_. Only one operation may be given on a
Packit Service bca4e3
command.
Packit Service bca4e3
Packit Service bca4e3
OPTIONS
Packit Service bca4e3
-------
Packit Service bca4e3
*-m*, *--mode* fabric|vn2vn::
Packit Service bca4e3
	Used together with the create option to control the FCoE mode of
Packit Service bca4e3
	operation. The mode defaults to fabric but this option allows
Packit Service bca4e3
	the selection of vn2vn mode.
Packit Service bca4e3
Packit Service bca4e3
OPERATIONS
Packit Service bca4e3
----------
Packit Service bca4e3
*-c*, *--create* _ethX_::
Packit Service bca4e3
	Creates an FCoE instance based on the specified network interface.
Packit Service bca4e3
	Note that if there is not an fcoemon configuration file for the
Packit Service bca4e3
	interface (/etc/fcoe/cfg-ethX, see *fcoemon*), then the created
Packit Service bca4e3
	FCoE instance will not require DCB.
Packit Service bca4e3
Packit Service bca4e3
*-d*, *--destroy* _ethX_::
Packit Service bca4e3
	Destroys the FCoE instance on the specified network interface. This
Packit Service bca4e3
	will not destroy FCoE instances created by fipvlan.
Packit Service bca4e3
Packit Service bca4e3
*-r*, *--reset* _ethX_::
Packit Service bca4e3
	Resets the FCoE instance on the specified network interface. This
Packit Service bca4e3
	will not reset FCoE instances created by fipvlan.
Packit Service bca4e3
Packit Service bca4e3
*-S*, *--Scan* _ethX_::
Packit Service bca4e3
	Rescan for new targets and LUNs on the provided instance. This
Packit Service bca4e3
	command will not rescan any NPIV instances created on the same port.
Packit Service bca4e3
	This will not rescan any FCoE instance created by fipvlan.
Packit Service bca4e3
Packit Service bca4e3
*-i*, *--interface* [_ethX_]::
Packit Service bca4e3
	Show information about the FCoE instance on the specified network
Packit Service bca4e3
	interface, or all FCoE instances if no network interface is specified.
Packit Service bca4e3
Packit Service bca4e3
*-f*, *--fcf* [_ethX_]::
Packit Service bca4e3
	Show information about the discovered Fibre Channel Forwarders (FCFs)
Packit Service bca4e3
	on the specified network interface, or all discovered FCFs if no
Packit Service bca4e3
	network interface is specified.
Packit Service bca4e3
Packit Service bca4e3
*-t*, *--target* [_ethX_]::
Packit Service bca4e3
	Show information about the discovered targets associated with the
Packit Service bca4e3
	FCoE instance on the specified network interface.
Packit Service bca4e3
	If no network interface is specified, information about discovered
Packit Service bca4e3
	targets from all FCoE instances will be shown.
Packit Service bca4e3
Packit Service bca4e3
*-l*, *--lun* [_ethX_]::
Packit Service bca4e3
	Show detailed information about the discovered SCSI LUNs associated
Packit Service bca4e3
	with the FCoE instance on the specified network interface.
Packit Service bca4e3
	If no network interface is specified, information about SCSI LUNs
Packit Service bca4e3
	from all FCoE instances will be shown.
Packit Service bca4e3
Packit Service bca4e3
*-s*, *--stats* _ethX_ [_interval_]::
Packit Service bca4e3
	Show the statistics (including FC4 statistics) of the FCoE
Packit Service bca4e3
	connection on the specified network interface. The information will
Packit Service bca4e3
	be displayed repeatedly until the user cancels the command. The
Packit Service bca4e3
	statistics will be printed every specified _interval_ (in seconds).
Packit Service bca4e3
	_interval_ should be specified as a whole number greater than 0.
Packit Service bca4e3
	If _interval_ is not specified, a default interval of one second is
Packit Service bca4e3
	used.
Packit Service bca4e3
Packit Service bca4e3
*-b*, *--lesb* _ethX_ [_interval_]::
Packit Service bca4e3
	Show the Link Error Statistics Block (LESB) of the FCoE connection
Packit Service bca4e3
	on the specified network interface. The information will be displayed
Packit Service bca4e3
	repeatedly until the user cancels the command. The LESB statistics
Packit Service bca4e3
	will be printed every specified _interval_ (in seconds). _interval_
Packit Service bca4e3
	should be specified in whole integers greater than 0. If the
Packit Service bca4e3
	_interval_ is not specified, a default interval of one second is used.
Packit Service bca4e3
Packit Service bca4e3
*-h*, *--help*::
Packit Service bca4e3
	Displays the usage message of the *fcoeadm* command.
Packit Service bca4e3
Packit Service bca4e3
*-v*, *--version*::
Packit Service bca4e3
	Displays the version of the *fcoeadm* command.
Packit Service bca4e3
Packit Service bca4e3
INTERFACE NAMES
Packit Service bca4e3
---------------
Packit Service bca4e3
The actual name for _ethX_ depends on the *AUTO_VLAN* setting in the fcoemon
Packit Service bca4e3
interface configuration (/etc/fcoe/cfg-ethX, see *fcoemon*).
Packit Service bca4e3
Packit Service bca4e3
If *AUTO_VLAN* is set to _yes_, the interface name _ethX_ references the
Packit Service bca4e3
network device itself. If *AUTO_VLAN* is set to _no_, the interface
Packit Service bca4e3
name _ethX_ references the VLAN device.
Packit Service bca4e3
Packit Service bca4e3
EXAMPLES
Packit Service bca4e3
--------
Packit Service bca4e3
Creates an FCoE instance on eth2.101
Packit Service bca4e3
Packit Service bca4e3
	fcoeadm -c eth2.101
Packit Service bca4e3
Packit Service bca4e3
Creates an FCoE VN2VN instance on eth2.101
Packit Service bca4e3
Packit Service bca4e3
	fcoeadm -m vn2vn -c eth2.101
Packit Service bca4e3
Packit Service bca4e3
Destroys the FCoE instance on eth2.101
Packit Service bca4e3
Packit Service bca4e3
	fcoeadm -d eth2.101
Packit Service bca4e3
Packit Service bca4e3
Resets the FCoE instance on eth2.101
Packit Service bca4e3
Packit Service bca4e3
	fcoeadm -r eth2.101
Packit Service bca4e3
Packit Service bca4e3
Show the information of all the adapters and their ports having FCoE
Packit Service bca4e3
instances created
Packit Service bca4e3
Packit Service bca4e3
	fcoeadm -i
Packit Service bca4e3
Packit Service bca4e3
Show the information of all FCoE instances on interface eth3.
Packit Service bca4e3
Packit Service bca4e3
	fcoeadm -i eth3
Packit Service bca4e3
Packit Service bca4e3
Show the information of all the discovered targets from all the ports
Packit Service bca4e3
having FCoE instances created (they may be on different adapter cards).
Packit Service bca4e3
A brief listing of discovered LUNs are listed after the target they are
Packit Service bca4e3
associated with, if any
Packit Service bca4e3
Packit Service bca4e3
	fcoeadm -t
Packit Service bca4e3
Packit Service bca4e3
Show the information of all the discovered targets from a given port (eth3)
Packit Service bca4e3
having FCoE instance created. A brief listing of discovered LUNs are listed
Packit Service bca4e3
after each target they are associated with, if any
Packit Service bca4e3
Packit Service bca4e3
	fcoeadm -t eth3
Packit Service bca4e3
Packit Service bca4e3
Show the detailed information of all the LUNs discovered on all FCoE
Packit Service bca4e3
connections
Packit Service bca4e3
Packit Service bca4e3
	fcoeadm -l
Packit Service bca4e3
Packit Service bca4e3
Show the detailed information of all the LUNs associated with a specific
Packit Service bca4e3
interface
Packit Service bca4e3
Packit Service bca4e3
	fcoeadm -l eth3.101
Packit Service bca4e3
Packit Service bca4e3
Show the statistics information of a specific port eth3 having FCoE
Packit Service bca4e3
instances created. The statistics are displayed one line per time interval.
Packit Service bca4e3
The default interval is one second if an interval is not specified
Packit Service bca4e3
Packit Service bca4e3
	fcoeadm -s eth3
Packit Service bca4e3
Packit Service bca4e3
	fcoeadm -s eth3 3
Packit Service bca4e3
Packit Service bca4e3
SEE ALSO
Packit Service bca4e3
--------
Packit Service bca4e3
*fcoemon*(8)
Packit Service bca4e3
Packit Service bca4e3
SUPPORT
Packit Service bca4e3
-------
Packit Service bca4e3
*fcoeadm* is part of the _fcoe-utils_ package, maintained through the
Packit Service bca4e3
_Open-FCoE_ project. Resources for both developers and users can be found
Packit Service bca4e3
at the _Open-FCoE_ website <http://open-fcoe.org/>