|
Newbie |
Joined: Thu Apr 26, 2012 9:26 am Posts: 37 Location: USA - Madison, Wi.
|
Hi-
Having an issue updating some systems - will not update DB entries for new software that has been added or upgraded?
When running "audit_windows" script manually works. --> cscript audit_windows.vbs Stacie-xxxxxx.xxxxxx.local
vs.
Batch script using "Domain" script - does "not" work?
@echo on cscript C:\xampplite\open-audit\other\audit_domain.vbs exit
Under Software - until we manually updated - the entry showed this version of Firefox:
Mozilla Firefox 24.3.0 ESR (x86 en-US) 24.3.0 Mozilla 2015-03-05 08:44:00
After manual run of "audit_windows" script - it updated and worked...
Mozilla Firefox 31.3.0 ESR (x86 en-US) 31.3.0 Mozilla 2015-03-05 08:44:00
Here is the Open Audit log of the "Domain" script running in batch:
Mar 05 07:13:27 MDNAM 1644 C:system F:add_system Processing audit result for stacie-xxxxxx. Mar 05 07:13:27 MDNAM 1644 M:system F:create_system_key System Key being generated for stacie-xxxxx. Mar 05 07:13:27 MDNAM 1644 M:system F:create_system_key System Key is stacie-xxxxxx.xxxxxx.local for stacie-xxxxx type fqdn. Mar 05 07:13:27 MDNAM 1644 M:system F:find_system HIT on man_ip_address for 192.168.10.119. Mar 05 07:13:27 MDNAM 1644 M:system F:find_system Returning System ID 214. Mar 05 07:13:27 MDNAM 1644 C:system F:add_system Updating result for stacie-xxxxxx (System ID 214). Mar 05 07:13:28 MDNAM 1644 M:system F:update_system System update start for 192.168.10.119 (stacie-xxxxxxx) (System ID 214) Mar 05 07:13:32 MDNAM 1644 M:system F:update_system System update end for 192.168.010.119 (stacie-xxxxx) (System ID 214). Mar 05 07:13:34 MDNAM 1644 C:system F:add_system C:system F:add_system Processing completed for stacie-xxxxxxx (System ID 214), took 6.2473 seconds.
Here is the Manual run of the "audit_windows" script...
C:\xampplite\open-audit\other>cscript audit_windows.vbs Stacie-xxxxxx.xxxxxx.local Microsoft (R) Windows Script Host Version 5.8 Copyright (C) Microsoft Corporation. All rights reserved.
starting audit - Stacie-xxxxxx.xxxxxx.local Not pinging target (override with ping_target=y). My PID is : 3820 Audit Start Time : 2015-03-05 08:44:00 Audit Location: remote ------------------- system info windows info bios info scsi info processor info memory info motherboard info optical info modem info video info monitor info sound info disk info partition info mount point info shares info network card info network address info DNS info printer info scheduled tasks environment variables logs pagefile local users info local groups info Codec info ODBC Driver info ODBC Driver info 64bit MDAC info DirectX info Windows Media Player info Internet Explorer info Outlook Express info Software info Software for 64bit Software for 64bit (registry) Software for 64bit (registry) #3 Hotfix info Services info CD Keys network routing info Audit Generated in 164 seconds. Submitting audit online Audit Submitted Total Execution Time: 183 seconds.
C:\xampplite\open-audit\other>
Mar 05 08:46:48 MDNAM 1644 C:system F:add_system Processing audit result for stacie-xxxxxxx. Mar 05 08:46:48 MDNAM 1644 M:system F:create_system_key System Key being generated for stacie-xxxxxxx. Mar 05 08:46:48 MDNAM 1644 M:system F:create_system_key System Key is 4C4C4544-0058-4210-8048-B5C04F465A31-stacie-xxxxxxx for stacie-xxxxxxx type uuho. Mar 05 08:46:48 MDNAM 1644 M:system F:find_system HIT on system_key for Not-Networked. Mar 05 08:46:48 MDNAM 1644 M:system F:find_system Returning System ID 214. Mar 05 08:46:48 MDNAM 1644 C:system F:add_system Updating result for stacie-xxxxxxx (System ID 214). Mar 05 08:46:48 MDNAM 1644 M:system F:update_system System update start for Not-Networked (stacie-xxxxxxx) (System ID 214). Mar 05 08:46:48 MDNAM 1644 M:system F:update_system System update end for (stacie-xxxxxxx) (System ID 214). Mar 05 08:47:04 MDNAM 1644 C:system F:add_system C:system F:add_system Processing completed for stacie-xxxxxxx (System ID 214), took 16.3408 seconds.
Why does the "audit_windows" script generate/create a possibly new "System Key" and not the Domain script - hence updating the machine with latest info?
Any help is appreciated - thx.
-SP
Last edited by spichelman on Fri Mar 06, 2015 11:09 am, edited 1 time in total.
|
|