windows-nt/Source/XPSP1/NT/base/cluster/admin/msclus/html/preferredowners.html

50 lines
1.1 KiB
HTML
Raw Normal View History

2020-09-26 03:20:57 -05:00
<HTML>
<HEAD>
<style>
<!-- body { font-family: Verdana, Arial; font-size: 75%; }
p.cluster { margin-top: 1em; margin-bottom: 0em; margin-left: 0em; }
p.resource { margin-top: 1em; margin-bottom: 0em; margin-left: 5em; }
p.property { margin-top: 0em; margin-bottom: 0em; margin-left: 10em; } -->
</style>
<TITLE> Preferred Owners</TITLE>
<SCRIPT LANGUAGE="VBSCRIPT">
<!--
Option Explicit
On Error Resume Next
Dim oCluster
Dim sCluster
Dim oNode
Dim oGroup
Dim oOwnerNodes
Set oCluster = CreateObject("MSCluster.Cluster")
sCluster = InputBox( "Cluster to open?" )
oCluster.Open( sCluster )
Document.Write "<B><p class=cluster>Cluster name is " & oCluster.Name & "</B><BR>"
set oNode = oCluster.Nodes(1)
Document.Write "<B><p class=cluster>Node name is " & oNode.Name & "</B><BR>"
set oGroup = oCluster.ResourceGroups("Test")
Document.Write "<B><p class=cluster>Group name is " & oGroup.Name & "</B><BR>"
set oOwnerNodes = oGroup.PreferredOwnerNodes
oOwnerNodes.InsertItem( oNode )
oOwnerNodes.SaveChanges
-->
</SCRIPT>
</HEAD>
<BODY>
</BODY>
</HTML>