#39112 - 2003-04-11 03:49 PM
Registry Refreshes
|
James Murdoch
Fresh Scripter
Registered: 2001-12-17
Posts: 20
Loc: Houston Tx.
|
How can I get the registry values on remote servers refreshed via kixtart?
I use the Network Description to categorize, classify, and group servers.
Then use kixtart scripts to download and upload these registry values to and from a csv file which I can update from Excel.
Unfortunately the Network Description on each server does not get refreshed from the registry until a reboot.
So, both from Net View and in the memory, the data is stale. Then, we have a management report based on this that gets information from memory calls (also stale), so I really need to refresh the memory from the registry.
I do not mind making some kind of system call from kix, but would not want to have to stop and start the landman service especially remotely.
Any ideas? Thanks, James.
|
|
Top
|
|
|
|
#39113 - 2003-04-11 03:55 PM
Re: Registry Refreshes
|
Radimus
Moderator
   
Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
|
By definition, the lanman (server service) HAS to be restarted to refresh that info.
you are reading 1 point, writing to a different point, and waiting for a middleman (lanman) to update... lanman will update when the server/service starts.
option, read from the registry/ the same place you are writing to.
|
|
Top
|
|
|
|
#39115 - 2003-04-15 09:58 PM
Re: Registry Refreshes
|
James Murdoch
Fresh Scripter
Registered: 2001-12-17
Posts: 20
Loc: Houston Tx.
|
I found a way with VBS to get this to make an immediate update. I just shell to cscript this with a vbs file.
Option Explicit
' Parms, such as machine-name Dim TargetServer Dim TargetDescription
' Internal variables Dim strDomain Dim adsComputer
TargetServer = "ServerName" TargetDescription= "Item1,Item2,Item3,Item4,Item5"
'Set the Network Description strDomain = "MyCorporate" Set adsComputer = GetObject("WinNT://" & strDomain & "/" & _ TargetServer & "/LanmanServer,FileService") adsComputer.Description = TargetDescription adsComputer.SetInfo Wscript.Quit
|
|
Top
|
|
|
|
#39116 - 2003-04-15 10:01 PM
Re: Registry Refreshes
|
Radimus
Moderator
   
Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
|
|
|
Top
|
|
|
|
#39117 - 2003-04-15 10:03 PM
Re: Registry Refreshes
|
James Murdoch
Fresh Scripter
Registered: 2001-12-17
Posts: 20
Loc: Houston Tx.
|
Ifound a way to get an "Instant Update"
Option Explicit
' Parms, such as machine-name Dim TargetServer Dim TargetDescription
' Internal variables Dim strDomain Dim adsComputer
TargetServer = "ServerName" TargetDescription = "Item1,Item2,Item3,Item4,Item5"
'Set the Network Description strDomain = "MyCorporate" Set adsComputer = GetObject("WinNT://" & strDomain & "/" & _ TargetServer & "/LanmanServer,FileService") adsComputer.Description = TargetDescription adsComputer.SetInfo Wscript.Quit
|
|
Top
|
|
|
|
#39118 - 2003-04-16 08:25 AM
Re: Registry Refreshes
|
Kdyer
KiX Supporter
   
Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
|
And the KiX conversion is:
code:
; Parms, such as machine-name Dim $TargetServer Dim $TargetDescription
; Internal variables Dim $strDomain Dim $adsComputer
$TargetServer = "ServerName" $TargetDescription = "Item1,Item2,Item3,Item4,Item5"
;Set the Network Description $strDomain = "MyCorporate" $adsComputer = GetObject("WinNT://" + $strDomain + "/" + $TargetServer + "/LanmanServer,FileService") $adsComputer.Description = $TargetDescription $adsComputer.SetInfo EXIT
HTH,
Kent
|
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 735 anonymous users online.
|
|
|