Finding cluster nodes (powershell or sql)

  • Hi,

    I am looking to find cluster and it's nodes, actually we have bulk of servers and we don't know which server is running under which cluster. i want to find out all servers. basically we don't know when cluster server will change. please can any one help me out from this situation.??

    it would be greatful wheather script poershell or sql script.

    Thanks

  • select serverproperty('computernamephysicalnetbios')

    above command when you will run in sql server it will tell currently in which node cluster is running.

  • Select serverproperty('computernamephysicalnetbios') as [currentnodename]

    SELECT * FROM fn_virtualservernodes() –Gives the nodes list

    Select * from sys.dm_os_cluster_nodes

    Select * from fn_servershareddrives()

    Select * from sys.dm_io_cluster_shared_drives

  • Cheers,

Viewing 4 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply