Leaked source code of windows server 2003
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
<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>
|