Click here to Skip to main content
15,927,744 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionData Base hookups Pin
machman121-Apr-06 15:23
machman121-Apr-06 15:23 
AnswerRe: Data Base hookups Pin
Dave Kreskowiak22-Apr-06 6:40
mveDave Kreskowiak22-Apr-06 6:40 
QuestionOpen file watcher Pin
alexfromto21-Apr-06 10:16
alexfromto21-Apr-06 10:16 
AnswerRe: Open file watcher Pin
Dave Kreskowiak21-Apr-06 13:09
mveDave Kreskowiak21-Apr-06 13:09 
GeneralRe: Open file watcher Pin
alexfromto24-Apr-06 2:35
alexfromto24-Apr-06 2:35 
QuestionAbout Graphics.BeginContainer Pin
tczhang21-Apr-06 10:14
tczhang21-Apr-06 10:14 
QuestionMSCluster - Determine Active Node Pin
daCodeDummieMaster21-Apr-06 2:33
daCodeDummieMaster21-Apr-06 2:33 
AnswerRe: MSCluster - Determine Active Node Pin
Dave Kreskowiak21-Apr-06 3:37
mveDave Kreskowiak21-Apr-06 3:37 
You do realize this is an English speaking board, right?

Babel fished:
----------------------------8<----------------------------
I look for a longer time now already, in order to select the active Node of a Windows cluster. A Scope to the WMI I could open object, only I cannot pick the appropriate information out.

Dim clustName As New String("myCluster")
Dim clustGrpRes As New String("myResGrp")
Dim conOpt As New ConnectionOptions

conOpt.Username = "domain\myUsrName"
conOpt.Password = "myPassword"

Dim mgmScope As ManagementScope
Dim mgmPath As ManagementPath
Dim mgmObj As ManagementObject

mgmScope = New ManagementScope("\\" & clustName & "\root\mscluster", conOpt)
mgmPath = New ManagementPath("MSCluster_ResourceGroup.Name='" & clustGrpRes & "'")
mgmObj = New ManagementObject(mgmScope, mgmPath, Nothing)

OS on that is implemented the application: Windows Server 2k3 Standard Edition
OS of the cluster: Win Server 2k3 Enterprise Edition

Do you know a possibility, how I arrive at the necessary information?

Thanks for your efforts
----------------------------8<----------------------------

I don't have a cluster to test on but you might be looking to execute a WMI query like:
SELECT Status From MSCluster_ResourceGroup WHERE Name='clusterGroup'



Dave Kreskowiak
Microsoft MVP - Visual Basic

QuestionMDI Programm and variables Pin
Mega121-Apr-06 1:51
Mega121-Apr-06 1:51 
AnswerRe: MDI Programm and variables Pin
sathish s21-Apr-06 2:14
sathish s21-Apr-06 2:14 
AnswerRe: MDI Programm and variables Pin
Dave Kreskowiak21-Apr-06 3:03
mveDave Kreskowiak21-Apr-06 3:03 
GeneralRe: MDI Programm and variables [OT sort of] Pin
Jim Matthews21-Apr-06 4:20
Jim Matthews21-Apr-06 4:20 
GeneralRe: MDI Programm and variables [OT sort of] Pin
mr_1234521-Apr-06 4:34
mr_1234521-Apr-06 4:34 
GeneralRe: MDI Programm and variables [OT sort of] Pin
Dave Kreskowiak21-Apr-06 5:37
mveDave Kreskowiak21-Apr-06 5:37 
QuestionPrintDocument Pin
ExRaptor21-Apr-06 0:37
ExRaptor21-Apr-06 0:37 
AnswerRe: PrintDocument Pin
Duncan Edwards Jones21-Apr-06 1:44
professionalDuncan Edwards Jones21-Apr-06 1:44 
QuestionRun multiple files in media player Pin
swapnil_n_p21-Apr-06 0:29
swapnil_n_p21-Apr-06 0:29 
AnswerRe: Run multiple files in media player Pin
Dave Kreskowiak21-Apr-06 3:02
mveDave Kreskowiak21-Apr-06 3:02 
Questionscreen resolution Pin
Paritos20-Apr-06 23:15
Paritos20-Apr-06 23:15 
AnswerRe: screen resolution Pin
Dave Kreskowiak21-Apr-06 3:00
mveDave Kreskowiak21-Apr-06 3:00 
QuestionEndOfStream in BinaryReader Pin
Yuvi Panda20-Apr-06 21:38
Yuvi Panda20-Apr-06 21:38 
AnswerRe: EndOfStream in BinaryReader Pin
Dave Kreskowiak21-Apr-06 2:57
mveDave Kreskowiak21-Apr-06 2:57 
NewsRe: EndOfStream in BinaryReader Pin
Yuvi Panda21-Apr-06 16:39
Yuvi Panda21-Apr-06 16:39 
GeneralRe: EndOfStream in BinaryReader Pin
mafaz32130-Aug-09 23:01
professionalmafaz32130-Aug-09 23:01 
QuestionVB's chr() equivalent in vc++ Pin
vanip20-Apr-06 21:23
vanip20-Apr-06 21:23 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.