Welcome to dbForumz.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Finding the Active Cluster Node

 
   Database Forums (Home) -> Clustering RSS
Next:  Too few parameters error  
Author Message
Joe K.2

External


Since: Oct 12, 2004
Posts: 68



(Msg. 1) Posted: Mon Jul 25, 2005 7:29 am
Post subject: Finding the Active Cluster Node
Archived from groups: microsoft>public>sqlserver>clustering (more info?)

I have a SQL Server 2000 cluster with Windows 2003 server.

Periodically I run a job that deletes all of the files out of the
P:\dallas_mrkt directory on the active node.

This is active/passive cluster with two nodes.

I would like to modify the job listed below so that it will test to see
which server is the active node and delete the files from the
P:\dallas_mrkrt\ directory.

Thank You,


DECLARE @BACKUPFILEPATH varchar(255)
@BACKUPFILEPATH = 'del P:\dallas_mrkrt\' + '*.* /Q'
exec master..xp_cmdshell @BACKUPFILEPATH

 >> Stay informed about: Finding the Active Cluster Node 
Back to top
Login to vote
v_2ankp

External


Since: Dec 23, 2009
Posts: 1



(Msg. 2) Posted: Wed Dec 23, 2009 10:12 pm
Post subject: Re: Finding the Active Cluster Node [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

I have an application that would like to know which is the current active
node name in SQL 2000.
If I use 'cluster clusterName res resourceName ' to retrieve the active node
name and parse the output in my code; do I need to take care of any locale
specific parsing of the application runs on a non-english locale?

Appreciate all your help.

"Uttam Parui[MS]" wrote:

> Yeah, host_name() will return the workstation name from where it was run.
>
> One option would be to use the cluster.exe command line utility
>
> If I run the following command from the DOS prompt
>
> cluster clusterName res resourceName
>
> It returns Resource,Group,Node,Status
>
> Example: Say my cluster name is MyCluster and I want to know the node name for the resource SQLServer (Instance1) then the command will be
>
> cluster MyCluster res "SQL Server(Instance1)"
>
> The output will be
>
> Resource Group Node Status
> -------------------- -------------------- --------------- ------
> SQL Server (Instance1) SQL1 NODE1 Online
>
> You can run the DOS command from Query Analyzer or stored proc using xp_cmdshell. See SQLServer Books Online for syntax.
>
>
> Best Regards,
>
> Uttam Parui
> Microsoft Corporation
>
> This posting is provided "AS IS" with no warranties, and confers no rights.
>
> Are you secure? For information about the Strategic Technology Protection Program and to order your FREE Security Tool Kit, please visit http://www.microsoft.com/security.
>
> Microsoft highly recommends that users with Internet access update their Microsoft software to better protect against viruses and security vulnerabilities. The easiest way to do this is to visit the following websites:
> http://www.microsoft.com/protect
> http://www.microsoft.com/security/guidance/default.mspx
>
>
>

 >> Stay informed about: Finding the Active Cluster Node 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
2-node cluster (Active/Passive) but with a catch! - Hi, We have 2 blade servers and we need a clustering solution which will run win2k3 and SQL 2005 in an Active/Passive mode. The catch is that our SAN will not be in for another 5 weeks. The business needs to go live so I am trying to find out what is...

Slow Response on one node of an active/passive SQL Cluster - Problem with response time depending on which node of an active/passive cluster is active. If checked everything I can think of or Google suggested. What have I missed? Win2k3 SP1 SQL 2000 SP3a Hardware is the same on both nodes including memory...

sql browser on active/active cluster - I am running sql 2005 sp2 64 bit on a windows server 2003 64 bit cluster. This has been working in an active/active configuration. I had a problem though where one of the instances wouldnt startup. I resolved this by setting the port in the registry..

Cluster active/active SQLServer/SSAS - Hi, I'd like to know how I can setup a Windows cluster with one node for SQL Server and one node for Analysis Services ? Please advise ? many thanks for your answers -- TH

Active directory registration under node, not virtual comp.. - In an active/passive sql2K cluster on win2k3 server, I registered the instance in active directory. However, the sql object appears as a child of the active node and not as a child of the virtual computer object. This is a problem as I want to use LDA...
   Database Forums (Home) -> Clustering All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]