About Creation Interfaces - Symantec ALTIRIS INVENTORY SOLUTION 7.0 SP2 - V1.0 Manual

Hide thumbs Also See for ALTIRIS INVENTORY SOLUTION 7.0 SP2 - V1.0:
Table of Contents

Advertisement

76
Gathering custom inventory

About creation interfaces

About creation interfaces
To schedule a task
1
To run a custom inventory immediately, select Quick Run, select a computer
to run the task on, and click Run.
2
To schedule the task, click New Schedule. Select the schedule options for the
task.
For more information, view topics about running tasks in the Symantec
Management Platform Help.
You store gathered custom inventory in an NSE (Notification Server Event) and
send the NSE to CMDB.
The NSE must be in a specific XML format so that it can be processed correctly.
The NSE interfaces help you format the XML code and send it correctly.
See
"About gathering custom inventory"
The following is an example.
'========================================================================================
'The following is a sample custom inventory script gathering
information about
the processor of a computer and posting data to the server using
Altiris NSE Component
'========================================================================================
' On Error Resume Next
'Create instance of Wbem service object and connect to namespace
strComputer = "."
Set objWMIService = GetObject("winmgmts:" &
"{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
'Fire WMI Query
Set objCIMObj = objWMIService.ExecQuery("select * from CIM_processor")
'========================================================================================
'Create instance of Altiris NSE component
dim nse
set nse = WScript.CreateObject ("Altiris.AeXNSEvent")
on page 69.

Advertisement

Table of Contents
loading

Table of Contents