SQL Server Articles, SQL Server Tips, SQL Server Tutorials, SQL Server Tuning, SQL Server DBA, SQL Server Basics, Training, etc - MyTechMantra.com

How to Manage SQL Server Failover Cluster using Command Line

In this article we will take a look at 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

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

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

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

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

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.

Ashish Mehta

Ashish Mehta

Ashish Kumar Mehta is a database manager, trainer and technical author. He has more than a decade of IT experience in database administration, performance tuning, database development and technical training on Microsoft SQL Server from SQL Server 2000 to SQL Server 2014. Ashish has authored more than 325 technical articles on SQL Server across leading SQL Server technology portals. Over the last few years, he has also developed and delivered many successful projects in database infrastructure; data warehouse and business intelligence; database migration; and upgrade projects for companies such as Hewlett-Packard, Microsoft, Cognizant and Centrica PLC, UK. He holds an engineering degree in computer science and industry standard certifications from Microsoft including MCITP Database Administrator 2005/2008, MCDBA SQL Server 2000 and MCTS .NET Framework 2.0 Web Applications.

Add comment

Newsletter Signup! Join 15,000+ Professionals




Be Social! Like & Follow Us...

Follow us

Don't be shy, get in touch. We love meeting interesting people and making new friends.

Recent SQL Server Tips

Manning