Wake On LAN (Full Version)

All Forums >> [Management Products] >> Microsoft Systems Management Server >> SMS 2003



Message


mjmj75 -> Wake On LAN (2/11/2008 3:21:29 PM)

 am in need of assistance. We have created a script using SMS Installer to enable Wake On LAN throughout our network. These machines are all Dell boxes, therefore we had to find the right version of OMCI to make this happen. Our plan is to distribute the OMCI to the machines via SMS so we can remote control power up and shutdowns of the boxes to push updates more effectively. We have already successfully pushed the OMCI to the boxes and created a script that will enable WOL. Our problem is that we are receiving pop-up messages on our test machines afterwards. The message reports the chassis has been opened and contact your sys admin. This message generates every 30 minutes. We have to find a way to modify the script to disable these messages. Can anyone help?  I have included our script below, I removed any reference to server names.  Any guidance would be greatly appreciated!

item: Get Environment Variable
Variable=PATH
Environment=Path
end
item: Get Environment Variable
Variable=COMPUTERNAME
Environment=computername
end
item: Remark
end
item: Remark
end
item: Install File
Source=\\servername\SMS_Folder\Packages\OMCI\setup.exe
Destination=%TEMP%\OMCI\setup.exe
Flags=0000000000100010
end
item: Remark
end
item: Execute Program
Pathname=%TEMP%\OMCI\setup.exe
Command Line= /s /v/qn
Flags=00001010
end
item: Remark
end
item: Remark
end
item: Install File
Source=\\servername\SMS_Folder\Packages\OMCI\wuolenable.vbs
Destination=%TEMP%\OMCI\wuolenable.vbs
Flags=0000000000100010
end
item: Remark
end
item: Insert Line into Text File
Pathname=%TEMP%\OMCI\wolenable.bat
New Text=cscript //nologo %TEMP%\OMCI\wuolenable.vbs %COMPUTERNAME%
Line Number=0
end
item: Remark
end
item: Execute Program
Pathname=%TEMP%\OMCI\wolenable.bat
Flags=00001010
end
item: Remark
end
item: Remark
end
item: Check if File/Dir Exists
Pathname=%TEMP%\OMCI\setup.exe
Flags=01000100
end
item: Delete File
Pathname=%TEMP%\OMCI\setup.exe
Flags=00000100
end
item: End Block
end
item: Remark
end
item: Check if File/Dir Exists
Pathname=%TEMP%\OMCI\wuolenable.vbs
Flags=01000100
end
item: Delete File
Pathname=%TEMP%\OMCI\wuolenable.vbs
Flags=00000100
end
item: End Block
end
item: Remark
end
item: Check if File/Dir Exists
Pathname=%TEMP%\OMCI\wolenable.bat
Flags=01000100
end
item: Delete File
Pathname=%TEMP%\OMCI\wolenable.bat
Flags=00000100
end
item: End Block
end
item: Remark
end
item: Remark
end
item: Remark
end
item: Exit Installation
Variable=0
Flags=0
end




rbennett806 -> RE: Wake On LAN (2/11/2008 4:01:45 PM)

Check one of your duplicate posts floating around the other forums. You might stick to posting a problem/question in a single forum in the future....




mhudson -> RE: Wake On LAN (2/11/2008 9:12:53 PM)

This is pulled from my WOL dell omci deployment aswell.  Tack this to the end of the the WOL script.  I assume you have modified the WOL script file Dell has with OMCI?



'''''''''''''''''''''chassis intrustion turn off
Set WshNetwork = WScript.CreateObject("WScript.Network")
''''''''''' wake on lan
'*** Initialize variables
strNameSpace = "root/Dellomci"
strComputerName = WshNetwork.computername
strClassName = "Dell_SMBIOSSettings"
strKeyValue = "0"
strPropName = "ChassisIntrusionStatus"
'*** Retrieve the instance of Dell_SMBIOSSettings class
Set objInstance = GetObject("WinMgmts:{impersonationLevel=impersonate}//" & _
strComputerName & "/" & strNameSpace & ":" & strClassName & "=" & _
Chr(34) & strKeyValue & Chr(34))

'*** Set the new value for the property and save the instance (Clear the popup)
objInstance.Properties_.Item(strPropName).Value = 5
objInstance.Put_
'' set it to silent-enabled.
strPropName = "ChassisIntrusion" 
'*** Set the new value for the property and save the instance (Clear the popup)
objInstance.Properties_.Item(strPropName).Value = 5
objInstance.Put_




mjmj75 -> RE: Wake On LAN (2/12/2008 6:56:04 AM)

Didn't mean to flood the forum with duplicate posts, just didn't know whether this question should be addressed in the SMS or General Scripting forum, so I posted them in both.  Mhudson,  I will try your example of the OMCI deployment, thanks all.




ealdrich -> RE: Wake On LAN (2/12/2008 9:00:50 AM)

We ran into this exact issue at one customer engagement... it seemed that these alerts were being generated all along, but were noit able to "go" anywhere until we poked 'em with the "Enable WOL" script... somehow that opened up the floodgates and they started spewing these alerts. To get around that issue, we used the following script to turnm it off, and *then* ran the WOL script... also an interesting side note: in some case3s when poking the BIOS on systems with a very *old* BIOS, when enabling WOL, we somehow disabled the "ECP" enhanced parallel port, breaking systems still using local parallel printers attached to PC. Lemmeno if you need that script as well if this is an issue.

Here's the Chassis Intrusion script:

'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
'
' File:        DellResetChassisIntrusion.vbs
'
' Purpose:     To clear the chassis intrusion alert on a Dell OMCI client.
'
' Usage:       cscript.exe DellResetChassisIntrusion.vbs <systemname>
'
' Input:       systemname  =  Name of system to reset
'
' Requirements:
'              - Dell Open Manage Client (see below for tested version)
'              - Windows Script
'                http://msdn.microsoft.com/library/default.asp?url=/downloads/list/webdev.asp
'              - WMI version 1.5
'
' Notes:
'              Tests performed using:
'              Windows XP Professional SP2
'              Windows Script v5.6
'              Dell Open Manage Client version 6.1.1.259 or greater
'              Precision 530MT ( success )
'              Optiplex GX260 & GX280 ( success )
'
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
Option Explicit
On Error Resume Next
'*** Declare variables
Dim strNameSpace
Dim strComputerName
Dim strClassName
Dim strKeyValue
Dim objInstance
Dim strPropName
Dim strPropValue
'*** Check that the right executable was used to run the script
'*** and that all parameters were passed
If (LCase(Right(WScript.FullName, 11)) = "wscript.exe" ) Or _
(Wscript.Arguments.Count < 1) Then
Call Usage()
WScript.Quit(-1)
End If
'*** Initialize variables
strNameSpace    = "root/Dellomci"
strComputerName = WScript.Arguments(0)
strClassName    = "Dell_SMBIOSSettings"
strKeyValue     = "0"
strPropName     = "ChassisIntrusionStatus"
'*** Retrieve the instance of Dell_SMBIOSSettings class
Set objInstance = GetObject("WinMgmts:{impersonationLevel=impersonate}//" & _
strComputerName & "/" & strNameSpace & ":" & strClassName & "=" & _
Chr(34) & strKeyValue & Chr(34))
strPropValue = objInstance.Properties_.Item(strPropName).Value
'*** Clear the value of ChassisIntrusionStatus only if it = 3
'    A value of 3 = "Detected"
'    Setting this value to 5 (Clear) will cause the ChassisIntrusionStatus
'    property to really be reset to 4 (Not Detected).
If strPropValue = 3 then
'*** Set the new value for the property and save the instance
objInstance.Properties_.Item(strPropName).Value = 5
objInstance.Put_
'*** If any errors occurred, let the user know
If Err.Number <> 0 Then
   WScript.Echo "Clearing the chassis intrusion alert failed."
End If
End If
Set objInstance = Nothing
WScript.Quit(Err.Number)
'*** Sub used to display the correct usage of the script
Sub Usage()
Dim strMessage
strMessage = "incorrect syntax. You should run: " & vbCRLF & _
   "cscript.exe //nologo DellResetChassisIntrusion.vbs <systemname>"
WScript.Echo strMessage
End Sub

+++++++++++++

Hope this helps




jjuris -> RE: Wake On LAN (2/12/2008 9:51:04 AM)

Hi there,

I have a simple solution for you. There is a "mini-omci" compiled exe that will enable Dell WOL without the need to install the OMCI client. You can download it from http://www.smsexpert.com/_downloads/DellWakeonLAN.zip

Careful as the file self deletes after it is run so make a backup first! This has worked on all Dell models that we have come across when needing to enable WOL for SMS Companion.

Ed feel free to use it at your clients as well :)

Thanks,

John Juris
SMS Expert
johnATsmsexpert.com
www.smsexpert.com/companion




ealdrich -> RE: Wake On LAN (2/14/2008 3:37:27 PM)


Thanks for the generous offer, John, but I think I'd prefer to stick with official DELL tools and procedures when doing this, much in the same way that it's better to get official Microsoft hotfixes from microsoft.com and not another source.




jjuris -> RE: Wake On LAN (2/14/2008 3:51:46 PM)

It's from Dell.

From Dan Thomson:

That exe (DellWakeOnLAN.exe) is a DCCU package(think of it as a mini & dynamically loading OMCI) and will only support Dell systems that are capable of running the version of OMCI included in the package. You can read my brief write-up of it here: http://www.myitforum.com/articles/14/view.asp?id=7168 and play with the DCCU version that works with a GX280 by downloading it from this page: http://support.dell.com/support/downloads/format.aspx?c=us&cs=555&l=en&s=biz&deviceid=4904&libid=7&releaseid=R123761&vercnt=2&formatcnt=0&SystemID=PLX_GX280&servicetag=&os=WW1&osl=en&catid=-1&impid=-1



If you already have OMCI loaded, you can use the DellEnableWakeOnLan script I have posted here: http://www.myitforum.com/articles/11/view.asp?id=5494




mjmj75 -> RE: Wake On LAN (2/15/2008 12:13:49 PM)

Thank you everyone for your assistance, we were able to use the script ealdrich posted but I want to thank you all for your help. You are lifesavers!




ealdrich -> RE: Wake On LAN (2/15/2008 12:15:17 PM)

GLAD to hear it!

Thanks for the feedback that the issue is resolved




kingskawn -> RE: Wake On LAN (7/30/2008 5:06:54 AM)

Is there a wol script for IBM machines?




ealdrich -> RE: Wake On LAN (7/30/2008 9:11:39 AM)

Assume you are asking about a script to enable WOL on the IBM platform (similar to the Dell OMCI management tools and their related WOL script)... if yes, then GOOD LUCK with that! IBM are notoriously difficult about providing any sort of remote managment tools to manipulate client BIOS. I even went the route of pressing a friend whoi is an IBM SysMgmt guy to try and find something, to no avail! Virtually everything I've found personally requires one to be ON the actual machine to run their tool. This applies to the workstation class of hardware.

The ThinkPad series do have a utility that can be scripted and used via a SW dist tool like SMS (SCRMOS is the tool name if I rtecall correctly)...




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.515625