Quantcast
Channel: Symantec Connect - Endpoint Management - Discussions
Viewing all articles
Browse latest Browse all 2356

Custom Inventory to capture the Model Identifier

$
0
0
I need a solution

Greetings,

So I'm trying to create a custom inventory that would capture Macs model identifier -i.e. MacBookPro9,2.-

I created a custom data class and named it Model_Identifier. I also added just one Attribute called Model and did not make it key or required.

I'm getting really stuck on getting a script going. This is what I have so far:

. `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 Model_Identifier
echo "Delimiters=\" \""
echo string50
echo model
sysctl hw.model | awk '{print $2}'

It completes successfully but it never adds anything to the database.

Any help is greatly appreciated!

1427383902

Viewing all articles
Browse latest Browse all 2356

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>