@@ -20,8 +20,10 @@ Dim FBManageCluster: Set FBManageCluster = New FBManageClusterClass
2020Class FBManageClusterClass
2121 Dim colNodes, colResources
2222 Dim objCluster, objNode, objShell, objRE, objResource, objWMI, objWMIClus, objWMIDNS, objWMIReg
23- Dim strClusIPV4Address, strClusIPV4Mask, strClusIPV4Network, strClusIPV6Address, strClusIPV6Mask, strClusIPV6Network, strClusStorage, strClusterHost, strClusterName, strCmd, strCSVRoot
24- Dim strFailoverClusterDisks, strHKLM, strOSVersion, strPath, strPathNew, strPreferredOwner, strServer, strSQLVersion, strUserDNSDomain, strUserDNSServer, strWaitLong, strWaitShort
23+ Dim strClusIPV4Address, strClusIPV4Mask, strClusIPV4Network, strClusIPV6Address, strClusIPV6Mask, strClusIPV6Network
24+ Dim strClusterNetworkAO, strClusStorage, strClusterHost, strClusterName, strCmd, strCSVRoot
25+ Dim strFailoverClusterDisks, strHKLM, strOSVersion, strPath, strPathNew, strPreferredOwner
26+ Dim strServer, strSQLVersion, strUserDNSDomain, strUserDNSServer, strWaitLong, strWaitShort
2527 Dim intIndex
2628
2729
@@ -43,6 +45,7 @@ Private Sub Class_Initialize
4345 strClusIPV6Address = GetBuildfileValue( "ClusIPV6Address" )
4446 strClusIPV6Mask = GetBuildfileValue( "ClusIPV6Mask" )
4547 strClusIPV6Network = GetBuildfileValue( "ClusIPV6Network" )
48+ strClusterNetworkAO = GetBuildfileValue( "ClusterNetworkAO" )
4649 strClusStorage = GetBuildfileValue( "ClusStorage" )
4750 strClusterHost = GetBuildfileValue( "ClusterHost" )
4851 strClusterName = GetBuildfileValue( "ClusterName" )
@@ -51,6 +54,7 @@ Private Sub Class_Initialize
5154 strPreferredOwner = GetBuildfileValue( "PreferredOwner" )
5255 strServer = GetBuildfileValue( "AuditServer" )
5356 strSQLVersion = GetBuildfileValue( "SQLVersion" )
57+ strCSVRoot = GetBuildfileValue( "CSVRoot" )
5458 strWaitLong = GetBuildfileValue( "WaitLong" )
5559 strWaitShort = GetBuildfileValue( "WaitShort" )
5660
@@ -962,6 +966,12 @@ Sub SetClusNetworkProps(strClusterNetwork, strClusterAction)
962966 Call Util_RunExec(strCmd, "" , strResponseYes, 0 )
963967 strCmd = "CLUSTER """ & strClusterName & """ RESOURCE """ & strClusterNetwork & """ /PRIV RequireKerberos=1:DWORD "
964968 Call Util_RunExec(strCmd, "" , strResponseYes, 0 )
969+ If strClusterNetwork = strClusterNetworkAO Then
970+ strCmd = "CLUSTER """ & strClusterName & """ RESOURCE """ & strClusterNetwork & """ /PRIV RegisterAllProvidersIP = 0"
971+ Call Util_RunExec(strCmd, "" , strResponseYes, 5024 )
972+ strCmd = "CLUSTER """ & strClusterName & """ RESOURCE """ & strClusterNetwork & """ /PRIV HostRecordTTL = 300"
973+ Call Util_RunExec(strCmd, "" , strResponseYes, 5024 )
974+ End If
965975 If strOSVersion >= "6" Then
966976 strCmd = "CLUSTER """ & strClusterName & """ RESOURCE """ & strClusterNetwork & """ /PRIV DeleteVcoOnResCleanup=1:DWORD "
967977 Call Util_RunExec(strCmd, "" , strResponseYes, 0 )
@@ -977,6 +987,28 @@ Sub SetClusNetworkProps(strClusterNetwork, strClusterAction)
977987End Sub
978988
979989
990+ Sub SetClusterCmd()
991+ Call DebugLog( "SetClusterCmd:" )
992+ Dim strStatusComplete
993+
994+ strStatusComplete = GetBuildfileValue( "StatusComplete" )
995+ Select Case True
996+ Case GetBuildfileValue( "SetupClusterCmdStatus" ) = strStatusComplete
997+ ' Nothing
998+ Case strOSVersion < "6.2"
999+ ' Nothing
1000+ Case Else
1001+ strCmd = strCmdPS & " -Command Install-WindowsFeature -Name RSAT-Clustering-AutomationServer"
1002+ Call Util_RunExec(strCmd, "" , "" , 0 )
1003+ strCmd = strCmdPS & " -Command Install-WindowsFeature -Name RSAT-Clustering-CmdInterface"
1004+ Call Util_RunExec(strCmd, "" , "" , 0 )
1005+ End Select
1006+
1007+ Call SetBuildfileValue( "SetupClusterCmdStatus" , strStatusComplete)
1008+
1009+ End Sub
1010+
1011+
9801012Sub SetResourceOff(strResource, strResourceType)
9811013 Call DebugLog( "SetResourceOff: " & strResource)
9821014 Dim strType
@@ -1144,6 +1176,10 @@ Sub SetClusNetworkProps(strClusterNetwork, strClusterAction)
11441176 Call FBManageCluster.SetClusNetworkProps(strClusterNetwork, strClusterAction)
11451177End Sub
11461178
1179+ Sub SetClusterCmd()
1180+ Call FBManageCluster.SetClusterCmd()
1181+ End Sub
1182+
11471183Sub SetResourceOff(strResource, strResourceType)
11481184 Call FBManageCluster.SetResourceOff(strResource, strResourceType)
11491185End Sub
0 commit comments