Registered member login:
Register Now
Altirigos » Notification Server and Solutions » Inventory Solution » Custom inventory for all files of type

» Current Poll
Vista?
Staying on XP until Windows 7 - 72.14%
101 Votes
Already on Vista - 10.71%
15 Votes
Planning an upgrade to Vista soon - 10.00%
14 Votes
Other (please explain) - 7.14%
10 Votes
Total Votes: 140
You may not vote on this poll.
» Stats
Members: 6,831
Threads: 9,765
Posts: 47,791
Top Poster: Nick (4,800)
Welcome our newest member, jdh2000
» Online Users: 66
6 members and 60 guests
bretthexum, Flollis, jdh2000, katydid, k_roxy500, skakid
Most users online at once 294, 06-30-2007 at 01:24 PM.
» January 2009
S M T W T F S
28293031 1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
Reply
Old 01-15-2008, 02:09 PM   #1 (permalink)
 
Status: Junior Altiris Admin
Join Date: 07-12-2007
Location: Minnesota
Posts: 15


Custom inventory for all files of type

How do you do an inventory for all files on the C: drive with a specific file extension? I have used the Custom Inventory builder to do a WMI query. The inventory runs, creates a db table along with all the columns, but no data is written. I know that the WMI query is good as when I run it in a vb script, it returns the results I am looking for. Has anyone else tried to do something like this?

Thanks,
Mike Anderson
MikeAnderson1730 is offline   Reply With Quote
Old 01-16-2008, 02:49 PM   #2 (permalink)
 
Status: Junior Altiris Admin
Join Date: 07-12-2007
Location: Minnesota
Posts: 15


This thread can be closed, I figured it out. I must've had a syntax error in my XML file initially. At any rate, here is a known working XML file that looks for all MDB's located on the C: drive:

<InventoryClasses>
<InventoryClass name='Cust_AllMDBs' manufacturer='Altiris' description='' version='1.0' platform='Win32' mifClass='Altiris|MyCustomClass|1.0'>
<xml xmlns:s="uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:rs="urn:schemas-microsoft-com:rowset" xmlns:z="#RowsetSchema">
<s:Schema id="RowsetSchema">
<s:ElementType name="row" content="eltOnly" rs:updatable="true">
<s:AttributeType name="c0" rs:name="CreationDate" rs:number="1" rs:nullable="true" mifAttrId="1">
<s:datatype dt:type="string" dt:maxLength="255"/>
</s:AttributeType>
<s:AttributeType name="c1" rs:name="FileSize" rs:number="2" rs:nullable="true" mifAttrId="2">
<s:datatype dt:type="string" dt:maxLength="255"/>
</s:AttributeType>
<s:AttributeType name="c2" rs:name="LastModified" rs:number="4" rs:nullable="true" mifAttrId="4">
<s:datatype dt:type="string" dt:maxLength="255"/>
</s:AttributeType>
<s:AttributeType name="c3" rs:name="Name" rs:number="5" rs:nullable="true" mifAttrId="5">
<s:datatype dt:type="string" dt:maxLength="255"/>
</s:AttributeType>
</s:ElementType>
</s:Schema>
<rs:data>
<%foreach wmiobject="o" namespace="root\CIMV2" wql="SELECT * FROM CIM_DataFile where drive='c:' and extension='mdb'" %>
<z:row
c0 ="<%writexml "wmi.CreationDate"%>"
c1 ="<%writexml "wmi.FileSize"%>"
c2 ="<%writexml "wmi.LastModified"%>"
c3 ="<%writexml "wmi.Name"%>"
/>
<%next%>
</rs:data>
</xml>
</InventoryClass>
</InventoryClasses>
MikeAnderson1730 is offline   Reply With Quote
Old 11-20-2008, 08:12 AM   #3 (permalink)
 
jebba's Avatar
 
Status: Super Altiris Admin
Join Date: 02-21-2005
Location: Pennsylvania, USA
Posts: 131


Help!!!

This works great!! BUT!!!!
What if I need to find this file if it's on the c:\ OR d:\??

Thanks
jebba is offline   Reply With Quote
Old 11-20-2008, 09:06 AM   #4 (permalink)
 
Status: Super Altiris Admin
Join Date: 10-28-2005
Location: Colorado
Posts: 1,116


How about editing the auditpls.ini file with the editor and then your normal inventory will check for it. That auditpls file is highly customizable.

Editor is in:
\\server\NSCap\Bin\Win32\X86\AeXAPedit.exe

File to edit:
\\server\NSCap\Bin\Win32\X86\Inventory Solution\auditpls.ini

Be sure to back the file up before changing it.
__________________
Brandon
Brandon is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Powered by vBadvanced CMPS v3.0 RC2

All times are GMT -4. The time now is 12:59 PM.


Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
vB.Sponsors
Altirigos