Video Screencast Help
Search Video Help Close Back
to help
New in the Rewards Catalog: Vouchers for "Symantec Technical Specialist" and "Symantec Certified Specialist" exams.

Help with building a custom report

Updated: 19 Aug 2010 | 7 comments
vithalmaddala's picture
0 0 Votes
Login to vote

Hello Experts,

I need some help with building a custom report in NS. Following is the info/requirements:

Our NS: 6.0.6074 + SP3 R9
Required report:

1. Columns required

******************                        *************
Computer Name                       User Name
*******************                      *************

2. This report should be generated by NS on a schedule once a month and the output needs to be in .csv format. 

Happy to provide more info if required

Thanks in advance,

Vithal

Comments

vithalmaddala's picture
09
Feb
2010
0 Votes 0
Login to vote

I found a report in NS for

I found a report in NS for Primary Users. It is close to what I was looking for but this report looks to be very unreliable as it comes up with some values when queried for months after Feb.

Also I will have to select a month manually every time I run this report which I want to avoid.

Thanks,

JeffDG's picture
10
Feb
2010
2 Votes +2
Login to vote

Simplest...

The simplest report would be a SQL report with the following SQL:

Select
   guid, Name, User
from
  vComputer

Normally, I avoid the vComputer view like the plague, but it sorts through all the "Primary User" stuff pretty well, and comes back with one row per computer.

KSchroeder's picture
10
Feb
2010
2 Votes +2
Login to vote

I agree

I'm with Jeff; in this case vComputer is the way to go.  The other option would be something like this:

SELECT acid.Name, pu.[User]
FROM Inv_AeX_AC_Identification acid
JOIN Inv_AeX_AC_Primary_User pu
ON acid._ResourceGuid = pu._ResourceGuid
WHERE pu.Month = DATENAME(month, GETDATE())
AND DATEDIFF(dd, acid.[Client Date], GETDATE()) < 90  -- only show machines which are active within 90 days
ORDER BY acid.Name ASC

Also...NS6 does not have built-in support for sending .csv files.  You can automate the report running and email it using a Notification Policy, but it won't send it as a .CSV.  If you copy the report results out of the report you can paste it into Excel and save as a CSV. 

Thanks,
Kyle
Symantec Trusted Advisor

For Forum threads, please click "Mark as Solution" if answered.
For all content, please give a thumbs up if you agree with or support the post.

MBHarmon's picture
10
Feb
2010
1 Vote +1
Login to vote

Connector

Do you have Asset Management Suite?  If so you could use connector to do that

- Matt

JeffDG's picture
10
Feb
2010
2 Votes +2
Login to vote

Can you e-mail?

Never tried to do a "Connector" e-mail...I know you could dump the results to a CSV on a file share, but never tried e-mail.

One other option is to install SQL Server Reporting Services on your SQL box, and build a report there that does the vComputer query I have above...then you can subscribe to the report and send it as a PDF, CSV, XLS or a few other formats.  Freebie, even with SQL Express I think now.

MBHarmon's picture
16
Feb
2010
1 Vote +1
Login to vote

Being mostly Altriris focused

Being mostly Altriris focused I keep forgetting about things like SSRS.  That's probably a good idea.

If you used connector you wouldn't put it out to an e-mail you'd want to send it directly to a file share that your altiris service account had rights to access.

- Matt

JeffDG's picture
18
Feb
2010
0 Votes 0
Login to vote

Just another SQL DB

At it's heart, the Altiris DB is nothing but a big complex set of SQL tables!

SSRS works great, I've even used SSIS to manipulate data.