49 lines
1.1 KiB
HTML
49 lines
1.1 KiB
HTML
|
<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> Possible Owners</TITLE>
|
||
|
|
||
|
<SCRIPT LANGUAGE="VBSCRIPT">
|
||
|
<!--
|
||
|
|
||
|
Option Explicit
|
||
|
On Error Resume Next
|
||
|
|
||
|
Dim oCluster
|
||
|
Dim sCluster
|
||
|
Dim oNode
|
||
|
Dim oRes
|
||
|
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 oRes = oCluster.Resources("TestRes")
|
||
|
Document.Write "<B><p class=cluster>Resource name is " & oRes.Name & "</B><BR>"
|
||
|
|
||
|
set oOwnerNodes = oRes.PossibleOwnerNodes
|
||
|
|
||
|
oOwnerNodes.AddItem( oNode )
|
||
|
-->
|
||
|
</SCRIPT>
|
||
|
</HEAD>
|
||
|
|
||
|
<BODY>
|
||
|
|
||
|
</BODY>
|
||
|
|
||
|
</HTML>
|
||
|
|