Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Finding cluster nodes (powershell or sql) Expand / Collapse
Author
Message
Posted Tuesday, September 17, 2013 3:23 AM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Yesterday @ 5:58 AM
Points: 47, Visits: 134
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
Post #1495412
Posted Tuesday, September 17, 2013 2:05 PM
Valued Member

Valued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued Member

Group: General Forum Members
Last Login: Sunday, April 13, 2014 1:50 PM
Points: 62, Visits: 214
select serverproperty('computernamephysicalnetbios')

above command when you will run in sql server it will tell currently in which node cluster is running.
Post #1495660
Posted Thursday, September 19, 2013 11:28 AM
Old Hand

Old HandOld HandOld HandOld HandOld HandOld HandOld HandOld Hand

Group: General Forum Members
Last Login: Yesterday @ 6:34 PM
Points: 351, Visits: 1,653
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
Post #1496510
Posted Friday, September 20, 2013 2:09 AM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Yesterday @ 5:58 AM
Points: 47, Visits: 134
Cheers,
Post #1496743
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse