Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

teamdctl(8) [centos man page]

TEAMDCTL(8)							   teamd control						       TEAMDCTL(8)

NAME
teamdctl -- team daemon control tool SYNOPSIS
teamdctl [options] team_device command [command_args...] teamdctl -h DESCRIPTION
teamdctl is a tool that allows a user to interact with a running teamd instance. It defaults to using Unix Domain Sockets, but will fall back to using the D-Bus API, to ensure reliable operation in all environments. OPTIONS
-h, --help Print help text to console and exit. -v, --verbosity Increase output verbosity. -o, --oneline Force output to one line if possible. -D, --force-dbus Force to use D-Bus interface. -Z address, --force-zmq address Force to use ZMQ interface. Possible address formats are "tcp://ip:port", "ipc://path" and others. Detailed description of ZMQ library is in page http://zguide.zeromq.org/page:all. -U, --force-usock Force to use UNIX domain socket interface. This is the default behavior. COMMAND
config dump Dumps teamd JSON config. config dump noports Dumps teamd JSON configuration without "ports" section included. config dump actual Dumps teamd actual JSON configuration. It includes ports which are currently present. state dump | state Dumps teamd JSON state document. state view Prints out state of teamd parsed from JSON state document. state item get state_item_path Finds state item in JSON state document and returns its value. state item set state_item_path value Finds state item in JSON state document and sets its value by value parameter. This is available only for a limited number of paths: ports.PORTIFNAME.runner.aggregator.selected -- This is available for lacp runner. User can manually select the aggregator. runner.active_port -- This is available for activebackup runner. User can manually select the active port. port add portdev Takes port device name as argument. Adds port device into team. port remove portdev Takes port device name as argument. Removes port device from team. port present portdev Takes port device name as argument. Checks if the port device is present in team. port config update portdev portconfig-string Takes port device name as the first argument and JSON format configuration string as the second argument. Updates port device con- figuration. port config dump portdev Takes port device name as the first argument. Dumps port device JSON configuration to standard output. SEE ALSO
teamd(8), teamnl(8), teamd.conf(5) AUTHOR
Jiri Pirko is the original author and current maintainer of libteam. libteam 2013-05-24 TEAMDCTL(8)

Check Out this Related Man Page

UMAD_GET_PORT(3)					    OpenIB Programmer's Manual						  UMAD_GET_PORT(3)

NAME
umad_get_port, umad_release_port - open and close an InfiniBand port SYNOPSIS
#include <infiniband/umad.h> int umad_get_port(char *ca_name, int portnum, umad_port_t *port); int umad_release_port(umad_port_t *port); DESCRIPTION
umad_get_port() fills the port structure with the IB port attributes specified by ca_name and portnum , or the default port if ca_name is NULL and portnum is zero. If only one of ca_name and portnum are specified, the other is used as a filter. For example, passing a NULL ca_name and 2 for the portnum means get a port from any of the local IB devices, as long as it is the second port. Note that the library may use some reference scheme to support port caching therefore umad_release_port() should be called before the port structure can be deal- located. The argument port is an umad_port_t struct, as specified in <infiniband/umad.h>. typedef struct umad_port { char ca_name[UMAD_CA_NAME_LEN]; /* Name of the device */ int portnum; /* Physical port number */ uint base_lid; /* Base port LID */ uint lmc; /* LMC of LID */ uint sm_lid; /* SM LID */ uint sm_sl; /* SM service level */ uint state; /* Logical port state */ uint phys_state; /* Physical port state */ uint rate; /* Port link bit rate */ uint64_t capmask; /* Port capabilities */ uint64_t gid_prefix; /* Gid prefix of this port */ uint64_t port_guid; /* GUID of this port */ } umad_port_t; umad_release_port() releases the resources that were allocated by the umad_get_port() function for the specified IB port. RETURN VALUE
umad_get_port() and umad_release_port() return 0 on success, and a negative value on error. AUTHORS
Hal Rosenstock <halr@voltaire.com> Dotan Barak <dotanb@mellanox.co.il> OpenIB May 21, 2007 UMAD_GET_PORT(3)
Man Page