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.

save script output with task staus

Updated: 25 Jun 2010 | 7 comments
Joseph Swenson's picture
0 0 Votes
Login to vote

how do I view the data saved when this is checked? I just ran a script as a task on all my macs, but all I see is success and failure when I look at the status :\ 

Comments

Andrew Bosch's picture
17
Nov
2009
0 Votes 0
Login to vote

I suppose...

What type of data are you trying to view?  If you are parsing output of a system command and attempting to get that back into the console, then maybe custom inventory is the best approach to take... 

------------------------------------
Principal SQA Engineer
Symantec

Joseph Swenson's picture
19
Nov
2009
0 Votes 0
Login to vote

the output of this script

 dscl localhost -read '/LDAPv3/macsrv.ad.csbsju.edu' | grep "TrustInformation:" | cut -d ' ' -f2

I want to use it to create a target to see what machines are securely bound and what machines aren't

ludovic_ferre's picture
19
Nov
2009
0 Votes 0
Login to vote

Custom inventory looks best suited

Hi Joseph,

Is the data you are trying to extract from LDAP containing a small or large result set?

There is a connector to ldap on the NS console for large data sets import, and you can do ldap queries to fill in custom dataclasses.

Ludovic FERRÉ
Principal Remote Product Specialist
Symantec 

1st Rule of Connect Club: Mark the post that helped you the most as a 'solution'. 2nd Rule of Connect Club:You must talk about Connect

Joseph Swenson's picture
19
Nov
2009
0 Votes 0
Login to vote

this is local Macintosh

this is local Macintosh directory services client config information. I don't think your LDAP connector would work well for 160+ mac clients

Andrew Bosch's picture
19
Nov
2009
0 Votes 0
Login to vote

Agreed

Custom Inventory would be best suited for this task.  Take a look here for some detail around Custom Inventory in 7.0:

https://www-secure.symantec.com/connect/articles/i...

------------------------------------
Principal SQA Engineer
Symantec

Joseph Swenson's picture
11
Dec
2009
0 Votes 0
Login to vote

So do I need to use those

So do I need to use those echo commands? I wish there were more examples 

Joseph Swenson's picture
22
Dec
2009
0 Votes 0
Login to vote

 I think I understand how

 I think I understand how this works. Would someone mind looking this over and double-check it for me? Thanks in advance

 
. `aex-helper info path -s INVENTORY`/lib/helpers/custominv_inc.sh

#

# Sample script for custom inventory

# The first line of code should be always included at the begin of the script

# Actual script for collecting inventory data begins after the following label:

# SCRIPT_BEGINS_HERE

#!/bin/sh

echo MacODBinding

echo "Delimiters=\" \" "

echo string50

echo TrustInformation


TrustState=`dscl localhost -read '/LDAPv3/macsrv.ad.csbsju.edu' | grep "TrustInformation:" | cut -d ' ' -f2`


echo "$TrustState"