Has anyone had any success deploying samanage software. They gave me this script but I am having no luck.
#!/bin/sh
# Uninstall current SAManage agent
/Applications/Samanage Agent.app/Contents/Resources/uninstaller.sh
# Change working directory to /tmp
cd /tmp
# Download SAManage Mac agent software
curl -O http://cdn.samanage.com/download/Mac+Agent/SAManage-Agent-for-Mac.dmg
# Mount the SAManage-Agent-for-Mac.dmg disk image as /tmp/SAManage-Mac-Agent
hdiutil attach SAManage-Agent-for-Mac.dmg -nobrowse -noverify -noautoopen
################################################################################
#
# Replace <ACCT_NAME> with your Samanage account name below
#
echo "<ACCT_NAME>" > /tmp/samanage
#
# Remove the '#' from the next line if you do not wish the Samanage agent to collect software information
# echo "nosoft=1" > /tmp/samanage_no_soft
#
################################################################################
# Install the SAManage Mac agent
installer -dumplog -verbose -pkg /Volumes/Samanage-Mac-Agent-*/Samanage-Mac-Agent-*.pkg -target "/"
# Clean-up
# Unmount the SAManage-Agent-for-Mac.dmg disk image from /Volumes
hdiutil eject -force /Volumes/Samanage-Mac-Agent-*
# Remove /tmp/samanage
rm /tmp/samanage
if [ -f /tmp/samanage_no_soft ]; then
rm /tmp/samanage_no_soft
fi
# Remove the SAManage-Agent-for-Mac.dmg disk image from /tmp
rm /tmp/SAManage-Agent-for-Mac.dmg
exit 0
and these are the directions
Download http://cdn.samanage.com/download/Mac+Agent/MAC-Agent-silent-install.sh
Save it to /tmp or in a network shared directory
Edit the script to include your account tag
Make it executable by running
chmod +x /tmp/MAC-Agent-silent-install.sh
Run the script as root, or use sudo
sudo /tmp/MAC-Agent-silent-install.sh
any help would be great thanks