|
[x]
Posted via EE Mobile
|
||
Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again. |
||
| 05/06/2009 at 09:12AM PDT, ID: 24385575 |
|
[x]
Attachment Details
|
||
|
[x]
The Solution Rating System
|
||
With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.
Your Input Matters If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support. Thank you! |
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 54: 55: 56: 57: 58: 59: 60: 61: 62: 63: 64: 65: 66: 67: 68: 69: 70: 71: 72: |
strClusterName = "FOSsudXV1"
Set objWMIService = GetObject("winmgmts:\\" & strClusterName & "\root\MSCluster")
Set colItems = objWMIService.ExecQuery("Associators of {MSCluster_Cluster.Name='" & strClustername & "'} WHERE AssocClass = MSCluster_ClusterToNode")
state = "ONLINE"
Dim ClusterGroups()
ClusterGroupSize = 0
Function checkGroupExists(astr)
for each grp4 in ClusterGroups
if (trim(ucase(grp4)) = trim(ucase(astr))) then
checkGroupExists = true
exit function
msgbox ucase(grp4) & " *-EXISTS* " & ucase(astr)
else
end if
next
checkGroupExists = false
exit function
End Function
Function addGroup(astr)
if ClusterGroupSize > 0 then
ReDim tempArray(ClusterGroupSize)
counter = 0
For each grp1 in ClusterGroups
tempArray(counter) = grp1
counter = counter + 1
next
end if
redim ClusterGroups (ClusterGroupSize + 1)
counter =0
if ClusterGroupSize > 0 then
for each grp2 in tempArray
ClusterGroups(counter) = grp2
counter = counter + 1
next
end if
clusterGroups(counter) = aStr 'assign the last member
ClusterGroupSize = ClusterGroupSize + 1
End Function
For each objitem in colItems
output = ""
output = output & objItem.Name & Vbcrlf
Set colAGItems = objWMIService.ExecQuery("Associators of {MSCluster_Node.Name='" & objitem.Name & "'} WHERE AssocClass = MSCluster_NodeToActiveResource")
For each objAGItem in colAGItems
Set GROUPS = objWMIService.ExecQuery("Associators of {MSCluster_Resource.Name='" & objAGItem.Name & "'} WHERE AssocClass = MSCluster_ResourceGroupToResource")
'output = output & "*" & objAGItem.Name & "*" & ": "
'output = output & objAGItem.State & ": "
For each GRP in GROUPS
if (checkGroupExists(GRP.Name) = false AND GRP.Name <> "") then
'msgbox ("adding" & grp.name)
addGroup (GRP.Name)
end if
'msgbox GRP.Name
exit for
next
output = output & Vbcrlf
Next
Next
for each gp in ClusterGroups
msgbox gp
next
|
Advertisement