How to Manage SQL Server Failover Cluster using Command Line an Overview


July 20, 2010

Introduction

This tip will give you a quick overview of how to manage SQL Server Failover Cluster Using Command Line. If you are managing multiple clusters then the following article will be of help How to Identify SQL Server Cluster Node and Shared Drives Information Using TSQL Queries.

How to list all cluster nodes of SQL Server Failover Cluster Using Command Line (CMD)

Open Command Line and Type “cluster node” and press enter to list all the node of SQL Server Failover Cluster as shown in the snippet below. This command will list the Nodes Names, Node ID and Status of each node.

How to list all cluster nodes of SQL Server Failover Cluster Using Command Line (CMD)

How to list all Cluster Groups of SQL Server Failover Cluster Using Command Line (CMD)

Open Command Line and Type “cluster group” and press enter to list all the available resource groups of SQL Server Failover Cluster as shown in the snippet below. This command will list the Group, Node and Status of each group.

How to list all Cluster Groups of SQL Server Failover Cluster Using Command Line (CMD)

How to list all Cluster Network of SQL Server Failover Cluster Using Command Line (CMD)

Open Command Line and Type “cluster network” and press enter to list all the available networks of SQL Server Failover Cluster as shown in the snippet below. This command will list the Network Name and Status of each network.

How to list all Cluster Network of SQL Server Failover Cluster Using Command Line (CMD)

How to list all Cluster Resources of SQL Server Failover Cluster Using Command Line (CMD)

Open Command Line and Type “cluster resource” and press enter to list all the available networks of SQL Server Failover Cluster as shown in the snippet below. This command will list all the available resources.

How to list all Cluster Resources of SQL Server Failover Cluster Using Command Line (CMD)

How to list all Cluster Options of SQL Server Failover Cluster Using Command Line (CMD)

Once can effectively manage SQL Server Failover Cluster using the command line. Open Command Line and Type “cluster /?” and press enter to list all options available to manage Server Failover Cluster as shown in the snippet below.

How to list all Cluster Options of SQL Server Failover Cluster Using Command Line (CMD)

Conclusion

These commands are very helpful when one needs to perform a quick health check on SQL Server Failover Cluster. The commands are easy to execute and gives you all the relevant information which you can get using the Graphical User Interface Failover Cluster Manager in Windows Server 2008 and above or Cluster Administrator in Windows 2003.

References

Read more about Managing a Server Cluster from the Command Line on TechNet.

Share this Article


Geeks who read this article also read…




"Receive newsletters and special offers about SQL Server, BizTalk and SharePoint from MyTechMantra. We respect your privacy and you can unsubscribe at any time."






Follow @MyTechMantra on Twitter