Propchange: 
incubator/vcl/tags/import/managementnode/tools/Sysprep_vmware/sysprep.cmd
------------------------------------------------------------------------------
    svn:executable = 

Added: incubator/vcl/tags/import/managementnode/tools/Sysprep_vmware/sysprep.inf
URL: 
http://svn.apache.org/viewvc/incubator/vcl/tags/import/managementnode/tools/Sysprep_vmware/sysprep.inf?rev=726079&view=auto
==============================================================================
--- incubator/vcl/tags/import/managementnode/tools/Sysprep_vmware/sysprep.inf 
(added)
+++ incubator/vcl/tags/import/managementnode/tools/Sysprep_vmware/sysprep.inf 
Fri Dec 12 10:20:10 2008
@@ -0,0 +1,39 @@
+;SetupMgrTag
+[Unattended]
+    OemSkipEula=Yes
+    OemPreinstall=Yes
+    InstallFilesPath=C:\sysprep\i386
+    TargetPath=\WINDOWS
+
+[GuiUnattended]
+    AdminPassword=*
+    EncryptedAdminPassword=NO
+    OEMSkipRegional=1
+    OEMDuplicatorstring="VCL project"
+    TimeZone=35
+    OemSkipWelcome=1
+
+[UserData]
+    ProductKey=WIN_XP_PRO_KEY
+    FullName="VCL"
+    OrgName="NCSU"
+    ComputerName=*
+
+[Display]
+    BitsPerPel=32
+    Xresolution=1024
+    YResolution=768
+    Vrefresh=75
+
+[Identification]
+    JoinWorkgroup=WORKGROUP
+
+[Networking]
+    InstallDefaultComponents=Yes
+
+[Branding]
+    BrandIEUsingUnattended=Yes
+
+[Proxy]
+    Proxy_Enable=0
+    Use_Same_Proxy=0

Added: incubator/vcl/tags/import/managementnode/tools/Sysprep_vmware/sysprep.vbs
URL: 
http://svn.apache.org/viewvc/incubator/vcl/tags/import/managementnode/tools/Sysprep_vmware/sysprep.vbs?rev=726079&view=auto
==============================================================================
--- incubator/vcl/tags/import/managementnode/tools/Sysprep_vmware/sysprep.vbs 
(added)
+++ incubator/vcl/tags/import/managementnode/tools/Sysprep_vmware/sysprep.vbs 
Fri Dec 12 10:20:10 2008
@@ -0,0 +1,25 @@
+On Error Resume Next
+
+Set oWshShell = CreateObject("WScript.Shell")
+Set oWshEnvironment = oWshShell.Environment("Process")
+Set oFileSystem = CreateObject("Scripting.FileSystemObject")
+sTempDir = oWshEnvironment("TEMP")
+Dim oExec
+Dim GuiAnswer
+strComputer = "."
+
+oFileSystem.CopyFile "C:\Documents and Settings/root/Application 
Data\VCL\VCLprepare.cmd", 
"C:\WINDOWS\system32\GroupPolicy\User\Scripts\Logon\",true
+
+WScript.Echo "copied VCLrcboot"
+
+'delete
+Set aFile = 
oFileSystem.GetFile("C:\WINDOWS\system32\GroupPolicy\User\Scripts\Logoff\VCLcleanup.cmd")
+aFile.Delete
+WScript.Echo "Deleted VCLcleanup.cmd"
+
+'start sysprep
+oWshShell.run "C:\Sysprep\sysprep.exe -quiet -forceshutdown -reseal -mini 
-activated", 1, false
+WScript.Echo "Executed sysprep.exe"
+
+Set oWshShell = Nothing
+WScript.Quit

Propchange: 
incubator/vcl/tags/import/managementnode/tools/Sysprep_vmware/sysprep.vbs
------------------------------------------------------------------------------
    svn:executable = 

Added: incubator/vcl/tags/import/managementnode/tools/VCLprep1.vbs
URL: 
http://svn.apache.org/viewvc/incubator/vcl/tags/import/managementnode/tools/VCLprep1.vbs?rev=726079&view=auto
==============================================================================
--- incubator/vcl/tags/import/managementnode/tools/VCLprep1.vbs (added)
+++ incubator/vcl/tags/import/managementnode/tools/VCLprep1.vbs Fri Dec 12 
10:20:10 2008
@@ -0,0 +1,55 @@
+On Error Resume Next
+
+Set oWshShell = CreateObject("WScript.Shell")
+Set oWshEnvironment = oWshShell.Environment("Process")
+Set oFileSystem = CreateObject("Scripting.FileSystemObject")
+Set WshNetwork = WScript.CreateObject("WScript.Network")
+sTempDir = oWshEnvironment("TEMP")
+Dim oExec
+strComputer = "."
+
+'copy VCLrcboot.cmd to Logon
+oFileSystem.CopyFile "C:\Documents and Settings\root\Application 
Data\VCL\VCLprepare.cmd", 
"C:\WINDOWS\system32\GroupPolicy\User\Scripts\Logon\",true
+WScript.Echo "copied VCLprepare"
+
+'delete any VCL logoff scripts
+oWshShell.Run "cmd.exe /C del " & 
"C:\WINDOWS\system32\GroupPolicy\User\Scripts\Logoff\VCL*\", 0, TRUE
+
+'re-enable pagefile
+strCommand = "reg.exe add " & Chr(34) & _
+  "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" & 
Chr(34) &_
+  " /v PagingFiles /d " & Chr(34) & "c:\pagefile.sys 0 0" & Chr(34) & " /t 
REG_MULTI_SZ /f"
+Set oExec = oWshShell.Exec(strcommand)
+Do While oExec.Status = 0
+   WScript.Sleep 100
+Loop
+
+WScript.Echo "enabling pagefile"
+
+'set autologin
+' setup DefaultUserName as root
+oWshShell.RegWrite "HKLM\SOFTWARE\Microsoft\Windows 
NT\CurrentVersion\Winlogon\DefaultUserName", "root"
+
+' setup DefaultPassword
+oWshShell.RegWrite "HKLM\SOFTWARE\Microsoft\Windows 
NT\CurrentVersion\Winlogon\DefaultPassword", "cl0udy"
+
+' Turn on auto-login
+oWshShell.RegWrite "HKLM\SOFTWARE\Microsoft\Windows 
NT\CurrentVersion\Winlogon\AutoAdminLogon", "1"
+
+WScript.Echo "set autologin for root account"
+
+'shutdown
+Set objWMIService = GetObject("winmgmts:" _
+    & "{impersonationLevel=impersonate,(Shutdown)}!\\" & strComputer & 
"\root\cimv2")
+Set colOperatingSystems = objWMIService.ExecQuery _
+    ("Select * from Win32_OperatingSystem")
+For Each objOperatingSystem in colOperatingSystems
+    intreturn = ObjOperatingSystem.Win32Shutdown(6)
+    if intreturn = 0 Then
+       WScript.echo "rebooting"
+     Else
+       Wscript.echo "reboot failed error code " & intreturn
+     End If 
+Next
+
+WScript.Quit

Propchange: incubator/vcl/tags/import/managementnode/tools/VCLprep1.vbs
------------------------------------------------------------------------------
    svn:executable = 

Added: incubator/vcl/tags/import/managementnode/tools/VCLrcboot.cmd
URL: 
http://svn.apache.org/viewvc/incubator/vcl/tags/import/managementnode/tools/VCLrcboot.cmd?rev=726079&view=auto
==============================================================================
--- incubator/vcl/tags/import/managementnode/tools/VCLrcboot.cmd (added)
+++ incubator/vcl/tags/import/managementnode/tools/VCLrcboot.cmd Fri Dec 12 
10:20:10 2008
@@ -0,0 +1,19 @@
+...@echo off
+
+copy "C:\Documents and Settings\root\Application Data\VCL\VCLprepare.cmd" 
C:\WINDOWS\system32\GroupPolicy\User\Scripts\Logon\
+
+del C:\WINDOWS\system32\GroupPolicy\User\Scripts\Logoff\VCLcleanup.cmd
+
+cd %APPDATA%/vcl
+
+%SystemRoot%\system32\cmd.exe /c C:\WINDOWS\regedit.exe /s nodyndns.reg
+
+%SystemRoot%\system32\cmd.exe /c wsname.exe /N:$DNS /MCN
+
+%SystemRoot%\system32\cscript.exe enablepagefile.vbs
+
+%SystemRoot%\system32\cmd.exe /c C:\WINDOWS\system32\ping.exe 1.1.1.1 %-n 1 -w 
2000 > NUL
+
+%SystemRoot%\system32\cmd.exe /c newsid.exe /a /d 6
+
+del C:\WINDOWS\system32\GroupPolicy\User\Scripts\Logon\VCLrcboot.cmd 

Propchange: incubator/vcl/tags/import/managementnode/tools/VCLrcboot.cmd
------------------------------------------------------------------------------
    svn:executable = 

Added: incubator/vcl/tags/import/managementnode/tools/auto_create_image.vbs
URL: 
http://svn.apache.org/viewvc/incubator/vcl/tags/import/managementnode/tools/auto_create_image.vbs?rev=726079&view=auto
==============================================================================
--- incubator/vcl/tags/import/managementnode/tools/auto_create_image.vbs (added)
+++ incubator/vcl/tags/import/managementnode/tools/auto_create_image.vbs Fri 
Dec 12 10:20:10 2008
@@ -0,0 +1,95 @@
+On Error Resume Next
+
+Set oWshShell = CreateObject("WScript.Shell")
+Set oWshEnvironment = oWshShell.Environment("Process")
+Set oFileSystem = CreateObject("Scripting.FileSystemObject")
+Set WshNetwork = WScript.CreateObject("WScript.Network")
+sTempDir = oWshEnvironment("TEMP")
+Dim oExec
+Dim GuiAnswer
+strComputer = "."
+MyName = lcase(WshNetwork.ComputerName)
+
+Const ForAppending = 8
+
+
+' clean up %TEMP% directory from .log files
+oWshShell.Run "cmd.exe /C del /Q " & sTempDir & "\*.log", 0, TRUE
+
+' open log file to record all actions taken
+set objFSO = CreateObject("Scripting.FileSystemObject")
+Set objTextFile = objFSO.OpenTextFile _
+    (sTempDir & "\VCLprepare.log", ForAppending, True)
+objTextFile.WriteLine("========================================================================")
+objTextFile.WriteLine(Now & " : auto_create_image.vbs : script started")
+
+objTextFile.WriteLine(Now & " : auto_create_image.vbs : cleaned up " & 
sTempDir & " directory from .log files")
+
+
+' check that WAN network interface is enabled, if not - enable it
+WScript.Echo "Enabling WAN interface..."
+objTextFile.WriteLine(Now & " : auto_create_image.vbs : Enable WAN interface")
+oWshShell.Run "cscript.exe " & sTempDir & "\vcl\enWAN.vbs", 0, TRUE
+WScript.Echo "Done!"
+objTextFile.WriteLine(Now & " : auto_create_image.vbs : WAN interface enabled")
+
+
+' setup to run prepare_for_image.vbs script after reboot
+'objTextFile.WriteLine(Now & " : auto_create_image.vbs : setup RunOnce 
'auto_prepare_for_image.vbs' after reboot")
+'oWshShell.RegWrite 
"HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce\step0", "cmd.exe /c 
cscript.exe " & sTempDir & "\vcl\auto_prepare_for_image.vbs"
+
+'check = 
oWshShell.RegRead("HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce\step0")
+'objTextFile.WriteLine(Now & " : CHECK (RunOnce registry entry): " & check)
+
+' enable AutoLogon after reboot
+'objTextFile.WriteLine(Now & " : auto_create_image.vbs : enable Auto-Logon 
after reboot")
+'oWshShell.RegWrite "HKLM\SOFTWARE\Microsoft\Windows 
NT\CurrentVersion\Winlogon\AutoAdminLogon", "1"
+'oWshShell.RegWrite "HKLM\SOFTWARE\Microsoft\Windows 
NT\CurrentVersion\Winlogon\DefaultUserName", "root"
+
+'check = oWshShell.RegRead("HKLM\SOFTWARE\Microsoft\Windows 
NT\CurrentVersion\Winlogon\AutoAdminLogon")
+'objTextFile.WriteLine(Now & " : CHECK (AutoAdminLogon registry entry): " & 
check & " (should be 1)")
+
+
+' disable pagefile
+objTextFile.WriteLine(Now & " : auto_create_image.vbs : disable page file")
+strCommand = "reg.exe add " & Chr(34) & _
+  "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" & 
Chr(34) &_
+  " /v PagingFiles /d " & Chr(34) & "" & Chr(34) & " /t REG_MULTI_SZ /f"
+Set oExec = oWshShell.Exec(strcommand)
+Do While oExec.Status = 0
+   WScript.Sleep 100
+Loop
+strCommand = sTempDir & "\vcl\movefile.exe " & Chr(34) & "c:\pagefile.sys" & 
Chr(34) & " " & Chr(34) & Chr(34)
+Set oExec = oWshShell.Exec(strcommand)
+Do While oExec.Status = 0
+   WScript.Sleep 100
+Loop
+
+
+'check = oWshShell.RegRead("HKLM\SYSTEM\CurrentControlSet\Control\Session 
Manager\Memory Management\PagingFiles")
+'objTextFile.WriteLine(Now & " : CHECK (PagingFiles registry entry): '" & 
check(0) & "' (should be empty)")
+
+
+objTextFile.WriteLine(Now & " : auto_create_image.vbs : script finished, 
rebooting computer")
+objTextFile.WriteLine("========================================================================")
+'close log file handler
+objTextFile.Close
+
+
+'reboot computer to make changes effective
+
+Set objWMIService = GetObject("winmgmts:" _
+    & "{impersonationLevel=impersonate,(Shutdown)}!\\" & MyName & 
"\root\cimv2")
+Set colOperatingSystems = objWMIService.ExecQuery _
+    ("Select * from Win32_OperatingSystem")
+For Each objOperatingSystem in colOperatingSystems
+    intreturn = ObjOperatingSystem.Win32Shutdown(6)
+    if intreturn = 0 Then
+      WScript.echo "createimage reboot"
+    Else
+      Wscript.echo "reboot failed error code " & intreturn
+    End If 
+Next
+
+WScript.Quit
+

Propchange: incubator/vcl/tags/import/managementnode/tools/auto_create_image.vbs
------------------------------------------------------------------------------
    svn:executable = 

Added: incubator/vcl/tags/import/managementnode/tools/check_ssh
URL: 
http://svn.apache.org/viewvc/incubator/vcl/tags/import/managementnode/tools/check_ssh?rev=726079&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/vcl/tags/import/managementnode/tools/check_ssh
------------------------------------------------------------------------------
    svn:executable = 

Propchange: incubator/vcl/tags/import/managementnode/tools/check_ssh
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/vcl/tags/import/managementnode/tools/default.tmpl
URL: 
http://svn.apache.org/viewvc/incubator/vcl/tags/import/managementnode/tools/default.tmpl?rev=726079&view=auto
==============================================================================
--- incubator/vcl/tags/import/managementnode/tools/default.tmpl (added)
+++ incubator/vcl/tags/import/managementnode/tools/default.tmpl Fri Dec 12 
10:20:10 2008
@@ -0,0 +1,13 @@
+#Edit and enter a space delimited list of disks, it must be in double quotes.
+
+export DISKS="#TABLE:hdtype.tab:$NODERES:1#"
+
+#Leave as is:
+
+export NFS_SERVER=#XCATVAR:INSTALL_NFS#
+export NFS_DIR=#XCATVAR:INSTALL_SRC_DIR#
+export MASTER_IP=#XCATVAR:MASTER_IP#
+export MASTER_IPS="#XCATVAR:MASTER_IPS#"
+export IMAGE=#XCATVAR:NODETYPE#
+export XCATDPORT=#TABLE:site.tab:xcatdport:1#
+

Added: incubator/vcl/tags/import/managementnode/tools/disablenetbios.vbs
URL: 
http://svn.apache.org/viewvc/incubator/vcl/tags/import/managementnode/tools/disablenetbios.vbs?rev=726079&view=auto
==============================================================================
--- incubator/vcl/tags/import/managementnode/tools/disablenetbios.vbs (added)
+++ incubator/vcl/tags/import/managementnode/tools/disablenetbios.vbs Fri Dec 
12 10:20:10 2008
@@ -0,0 +1,13 @@
+On Error Resume Next
+
+strComputer = "."
+Set objWMIService = GetObject("winmgmts:\\"& strComputer & "\root\cimv2")
+Set colAdapters = objWMIService.ExecQuery _
+    ("SELECT * FROM Win32_NetworkAdapterConfiguration WHERE IPEnabled = True")
+
+For Each objAdapter in colAdapters
+   ' Use 0 to use the NetBIOS setting from the DHCP server
+   ' Use 1 to enable NetBIOS over TCP/IP
+   ' Use 2 to disable NetBIOS over TCP/IP
+   objAdapter.SetTCPIPNetBIOS(2)
+Next

Propchange: incubator/vcl/tags/import/managementnode/tools/disablenetbios.vbs
------------------------------------------------------------------------------
    svn:executable = 

Added: incubator/vcl/tags/import/managementnode/tools/perltidy/.perltidyrc
URL: 
http://svn.apache.org/viewvc/incubator/vcl/tags/import/managementnode/tools/perltidy/.perltidyrc?rev=726079&view=auto
==============================================================================
--- incubator/vcl/tags/import/managementnode/tools/perltidy/.perltidyrc (added)
+++ incubator/vcl/tags/import/managementnode/tools/perltidy/.perltidyrc Fri Dec 
12 10:20:10 2008
@@ -0,0 +1,107 @@
+# This is a .perltidyrc configuration file
+# It is used by the perltidy module for formatting source code
+# http://perltidy.sourceforge.net/perltidy.html
+
+# GENERAL CONFIGURATION
+-log     # save the .log file
+-se      # errors to standard error output
+-w       # show all warnings
+-syn     # perform Perl syntax check
+-pscf=-c # don't run Perl syntax taint checking
+-b      # modify files in place
+
+# INDENTATION
+-et=3    # replace each 3 leading space charaters with 1 tab character
+-i=3     # use 3 columns per indentation level
+-nola    # do not outdent labels
+#-naws    # don't add whitespace
+
+
+# COMMENTS
+-nbbc    # don't add blank lines before a full-line comments
+-nbbs    # don't add blank lines before a sub definitions
+-ibc     # indent block comments
+-isbc    # indent spaced block comments
+
+
+# BLANK LINES AND LINE LENGTH
+-l=0     # don't set a maximum line length, leave long lines alone
+-mbl=3   # set the maximum number of consecutive blank lines
+-ole=win # output line endings for a specific system (Windows)
+
+# TIGHTNESS
+-lp      # line up parentheses
+
+-vt=2
+-vtc=2
+# -vt=0 always break a line after opening token (default)
+# -vt=1 do not break unless this would produce more than one step in 
indentation in a line
+# -vt=2 never break a line after opening token
+# -vtc=0 always break a line before a closing token (default)
+# -vtc=1 do not break before a closing token which is followed by a semicolon 
or another closing token, and is not in a list environment
+# -vtc=2 never break before a closing token
+
+#-pvt=2    # paren vert tight
+#-pvtc=2   # paren closing vert tight
+
+#-sbvt=2   # square vert tight
+#-sbvtc=2  # square closing vert tight
+
+#-bvt=2    # non-code block braces
+#-bvtc=2   # non-code block closing braces
+
+#-bbvt=2   # just like the -vt=n flag but applies to opening code block braces
+
+#-sot    # stack opening tokens when possible to avoid lines with isolated 
opening tokens
+        # -sot is a synonym for -sop -sohb -sosb
+#-sop    # stack opening paren
+#-sohb   # stack opening hash brace
+#-sosb   # stack opening square bracket
+
+#-sct    # stack closing tokens
+        # -sct is a synonym for -scp -schb -scsb
+#-scp    # stack closing paren
+#-schb   # stack closing hash brace
+#-scsb   # stack closing square bracket
+
+-pt=2    # parenthesis tightness, no spaces after ( and before )
+# if ( ( my $len_tab = length( $tabstr ) ) > 0 ) {  # -pt=0
+# if ( ( my $len_tab = length($tabstr) ) > 0 ) {    # -pt=1 (default)
+# if ((my $len_tab = length($tabstr)) > 0) {        # -pt=2
+
+-sbt=2   # square bracket tightness, no spaces after [ and before ]
+# $width = $col[ $j + $k ] - $col[ $j ];  # -sbt=0
+# $width = $col[ $j + $k ] - $col[$j];    # -sbt=1 (default)
+# $width = $col[$j + $k] - $col[$j];      # -sbt=2
+
+-bt=2    # curly brace tightness, no spaces after { and before }
+# $obj->{ $parsed_sql->{ 'table' }[0] };    # -bt=0
+# $obj->{ $parsed_sql->{'table'}[0] };      # -bt=1 (default)
+# $obj->{$parsed_sql->{'table'}[0]};        # -bt=2
+
+-bbt=2   # curly brace tightness which contain blocks of code
+# %bf = map { $_ => -M $_ } grep { /\.deb$/ } dirents '.'; # -bbt=0 (default)
+# %bf = map { $_ => -M $_ } grep {/\.deb$/} dirents '.';   # -bbt=1
+# %bf = map {$_ => -M $_} grep {/\.deb$/} dirents '.';     # -bbt=2
+
+-nsts    # no space before semicolons
+# $i = 1 ;     #  -sts
+# $i = 1;      #  -nsts   (default)
+
+-nsfs    # no spaces between special semicolons in for loops
+# for ( @a = @$ap, $u = shift @a ; @a ; $u = $v ) {  # -sfs (default)
+# for ( @a = @$ap, $u = shift @a; @a; $u = $v ) {    # -nsfs
+
+
+# CLOSING SIDE SCOMMENTS
+-csc     # add closing side comments, adds or updates closing side comments
+# sub message {
+# } ## end sub message <-- -csc adds this
+
+#-cscw   # enable closing side-comment warnings
+
+-csci=10 # minimum number of lines that a block must have in order for a 
closing side comment to be added
+
+-csct=40 # closing side comment maximum text
+
+-csce=2  # each elsif is also given the text of the opening if statement


Reply via email to