lscluster Command

Purpose

Lists the cluster configuration information.

Syntax

lscluster { -i | -d | -c [ -n clustername ] } | { -m [ nodename ] | -s | -i interfacename | -d diskname }

Description

The lscluster command displays the attributes associated with the cluster and the cluster configuration.

Flags

Item Description
-c Lists the cluster configuration.
-d Lists the cluster storage interfaces.
-i Lists the cluster configuration interfaces on the local node.
-m Lists the cluster node configuration information.
-n Allows the cluster names to be queried for all interfaces, storage, or cluster configurations (applicable only with -i, -d, or -c flags).
-s Lists the cluster network statistics on the local node.

Examples

  1. To list the cluster configuration for all nodes, enter:
    lscluster –m
  2. To list the cluster configuration for the node node1, enter:
    lscluster -m node1
  3. To list the cluster statistics for the local node, enter:
    lscluster –s
  4. To list the interface information for the local node, enter:
    lscluster –i
  5. To list the interface information for the cluster, enter:
    lscluster –i –n mycluster
  6. To list the interface information for the interface en0, enter:
    lscluster -i en0
  7. To list the storage interface information for the cluster, enter:
    lscluster -d
  8. To list the cluster configuration, enter:
    lscluster -c