Page 1 of 1 1
Topic Options
#39112 - 2003-04-11 03:49 PM Registry Refreshes
James Murdoch Offline
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 Offline
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.
_________________________
How to ask questions the smart way <-----------> Before you ask

Top
#39114 - 2003-04-11 04:06 PM Re: Registry Refreshes
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
That's how the registry works. You will need to either restart the network services or reboot the computer.
_________________________
There are two types of vessels, submarines and targets.

Top
#39115 - 2003-04-15 09:58 PM Re: Registry Refreshes
James Murdoch Offline
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 Offline
Moderator
*****

Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
that should be kix-able
_________________________
How to ask questions the smart way <-----------> Before you ask

Top
#39117 - 2003-04-15 10:03 PM Re: Registry Refreshes
James Murdoch Offline
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 Offline
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
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 735 anonymous users online.
Newest Members
JimDunn, fgarcia, Viginette, ManuvdWielNL, Sir_Barrington
17890 Registered Users

Generated in 0.055 seconds in which 0.023 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org