Video Screencast Help
Symantec to Separate Into Two Focused, Industry-Leading Technology Companies. Learn more.

Delta/Full Inventory as SWD and not current Task Delivery 7.1 sp2

Created: 20 Nov 2012 • Updated: 21 Nov 2012 | 3 comments
This issue has been solved. See solution.

Ok so we have NS 7.2 sp1 up and running in our dev environment and getting all kinks worked out.

Another item we need to address is that Full and Delta inventories are now done via  Tasks. If a machine is not online, it will not inventory in on the scheduled time. I confirmed this with the App Metering Tech as I had a ticket in on that. His suggestion is to inventory during the day to get most machines online. For us that isnt the total reason why we need a SWD task. For FDA Regulatory reasons we have to track everything done to regulated computers. In NS 6 it was easy.. setup the job as a SWD task and it shows up in evt_aex_Swd_Execution table. The current inventories utilizing tasks do not show up in that table. 

 

so 

1. What table would inventories show up in?

2. How would I be able to setup the inventories as SWD jobs instead of Tasks

 

is it just as easy as putting the files back on the server and calling them like in NS6? 

Comments 3 CommentsJump to latest comment

TeleFragger's picture

no one??? helooo anyone here????

 

guess just me and my echoing thoughts... [:-P>

 

not sure if i figured it out but could it be that easy? really that easy?????

i found invsoln.exe on my local machine.. did a /? on it.. and it says..

 

/dhi = collect delta hardware inventory

/dswi = collect delta software invenory

/fi = collect full inventory

 

really is that it??????

just those switches.. more to test....

 

Did we help you? Please Mark As Solution those posts which resolve your problem,

TeleFragger's picture

well here we go.. for anyone that wants this in the future...

 

 

'********************************************************************************
' Created by Jeffrey J. Riggs
' Email: JeffreyJRiggs@gmail.com
' Created 2012-11-21
' Runs Altiris Full Inventory
'********************************************************************************
 
Option Explicit
Dim WshShell, OsType, strCmdLine, strInvSoln, strSubKeyPath, Result 
 
Set WshShell = CreateObject("WScript.Shell")
 
'===========Set OS Bit================
OsType = WshShell.RegRead("HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment\PROCESSOR_ARCHITECTURE")
If OsType = "x86" then
strSubKeyPath =  "C:\Program Files\Altiris\Altiris Agent\Agents\Inventory Agent\"
elseif OsType = "AMD64" then
strSubKeyPath =  "C:\Program Files (x86)\Altiris\Altiris Agent\Agents\Inventory Agent\"
end if
'===========/Set OS Bit================
 
strInvSoln = "Invsoln.exe"
strCmdLine = strSubKeyPath & strInvSoln
Result = WshShell.Run (CHR(34) & strcmdline & CHR(34) & " /fi",1,True)
WScript.Quit Result

Did we help you? Please Mark As Solution those posts which resolve your problem,

SOLUTION
TeleFragger's picture

well i am still having an issue. seems trying to pass the run command.. failing.. anyone have any good experience with this?

im horrible with vb but a friend of mine is pretty good. he helped me get this far and I thought it was working but it isnt...

 

failing at the result line.. 2nd from the bottom..

 

long story short.. first part detects if 32 bit or 64bit then goes to run invsoln.exe from the correct location... with a /fi for full inventory...

 

 

'********************************************************************************
' Created by Jeffrey J. Riggs
' Created 2012-11-21
' Runs Altiris Full Inventory
'********************************************************************************
 
Option Explicit
Dim WshShell, OsType, strCmdLine, strInvSoln, strSubKeyPath, Result 
 
Set WshShell = CreateObject("WScript.Shell")
 
'===========Set OS Bit================
OsType = WshShell.RegRead("HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment\PROCESSOR_ARCHITECTURE")
If OsType = "x86" then
strSubKeyPath =  "C:\Program Files\Altiris\Altiris Agent\Agents\Inventory Agent\"
elseif OsType = "AMD64" then
strSubKeyPath =  "C:\Program Files (x86)\Altiris\Altiris Agent\Agents\Inventory Agent\"
end if
'===========/Set OS Bit================
 
strInvSoln = "Invsoln.exe"
strCmdLine = strSubKeyPath & strInvSoln
Result = WshShell.Run (CHR(34) & strcmdline & CHR(34) & " /fi",1,True)
WScript.Quit Result

Did we help you? Please Mark As Solution those posts which resolve your problem,