Uninstall SAV 10.2.3 through script provided by Symantec

Not applicable

Hi All,
I am trying to uninstall application Symantec Antvirus (SAV 10.2.3) using casper policy.For that i am using an net booted image of Mac OS X 10.6.4this uninstall script is been provided by the Symantec itself.Manual uninstall is working fine with this netboot image of MAC OS X 10.6.4but if deploying through policy it gives an error.
bash-3.2# jamf policy -trigger removesav -verbose verbose: Checking for an existing instance of this application...Checking for policies triggered by "removesav"...Gathering Policy Information from https://10.58.48.235:8443/... verbose: Found 1 matching policies. verbose: Removing any cached policies for this trigger. verbose: Parsing servers... verbose: Parsing Policy WBEI_10.6.x_SAV_and_NAV_Uninstall (174)...Executing Policy WBEI_10.6.x_SAV_and_NAV_Uninstall... verbose: Will mount at /Volumes/CasperShare 1 Mounting afp://10.58.48.235/CasperShare to /Volumes/CasperShare 1... verbose: Result of mount attempt: verbose: Result Code of mount attempt: 0 verbose: Copying script to temp directory... Running Script RemoveSymantecMacFiles.sh... verbose: Determining Script Type... Script Exit Code:4 Script Result: ERROR: Invalid option or volume name: "NetBoot001".
For help, type:

Please see if some one can help?
Regards,
Vinay

7 REPLIES 7

noah_swanson
New Contributor

I ran into too many troubles running this script across our Macs. What ended up working was creating a dmg with composer having the script hosted in /private/etc/scripts/. I then have a script that executes that script (redundant and silly; I know). I set this up as a policy and didn't have any issues.

Hope this helps.
Noah Swanson
Imaging Specialist
Enterprise Desktop Services
Phone: 309-765-3153
SwansonNoah at johndeere.com

Not applicable

Hi All,
I am trying to uninstall application Symantec Antvirus (SAV 10.2.3) using casper policy.For that i am using an net booted image of Mac OS X 10.6.4this uninstall script is been provided by the Symantec itself.Manual uninstall is working fine with this netboot image of MAC OS X 10.6.4but if deploying through policy it gives an error.
bash-3.2# jamf policy -trigger removesav -verbose verbose: Checking for an existing instance of this application...Checking for policies triggered by "removesav"...Gathering Policy Information from https://10.58.48.235:8443/... verbose: Found 1 matching policies. verbose: Removing any cached policies for this trigger. verbose: Parsing servers... verbose: Parsing Policy WBEI_10.6.x_SAV_and_NAV_Uninstall (174)...Executing Policy WBEI_10.6.x_SAV_and_NAV_Uninstall... verbose: Will mount at /Volumes/CasperShare 1 Mounting afp://10.58.48.235/CasperShare to /Volumes/CasperShare 1... verbose: Result of mount attempt: verbose: Result Code of mount attempt: 0 verbose: Copying script to temp directory... Running Script RemoveSymantecMacFiles.sh... verbose: Determining Script Type... Script Exit Code:4 Script Result: ERROR: Invalid option or volume name: "NetBoot001".
For help, type:

Please see if some one can help?
Regards,
Vinay

talkingmoose
Moderator
Moderator
On 9/21/10 10:59 AM, "vinay washimkar" <vinaywashimkar at hotmail.com> wrote: I am trying to uninstall application Symantec Antvirus (SAV 10.2.3) using casper policy. For that i am using an net booted image of Mac OS X 10.6.4 this uninstall script is been provided by the Symantec itself. Manual uninstall is working fine with this netboot image of MAC OS X 10.6.4 but if deploying through policy it gives an error.

[snip]

verbose: Determining Script Type... Script Exit Code:4 Script Result: ERROR: Invalid option or volume name: "NetBoot001".

I haven't used the script but it's most likely written to be run on the
same boot volume where the Symantec software is installed. That would mean
you'd need to be running the script while booted to your Mac's hard drive.

What is your purpose for netbooting your Macs to run the uninstall script?

--

William Smith
Technical Analyst
Merrill Communications LLC
(651) 632-1492

Not applicable

Hi William,
I was using this netboot only for testing purpose. i am installing SAV 10.2.3 through the policy to this fresh netboot image then again pushing the policy to uninstall the software.was getting below given error.Now i have just installed the image in one of the partition of my Mac and run the same procedure for installation and uninstallation of SAV but still getting same error.
what would be the problem i am not getting itit working fine with manual uninstall.
Regards,Vinay

talkingmoose
Moderator
Moderator

By this, do you mean that you're running the script itself on the Mac and
On 9/21/10 11:48 AM, "vinay washimkar" <vinaywashimkar at hotmail.com> wrote:
that is working? Or do you mean that you're using:

jamf policy -trigger removesav -verbose

and that this is working?

Based on the output you provided earlier, the policy is valid, your server
is valid and the RemoveSymantecMacFiles.sh script copies to your temp
directory successfully.

The problem must be in the script. Can you post that?

--

William Smith
Technical Analyst
Merrill Communications LLC
(651) 632-1492

Not applicable

i have downloaded the script from Symantec side. and did change in extension from .command to .shi am attaching the script
if i am running RemoveSymantecMacFiles.command manually it works and uninstall SAV from Mac OS X 10.6.X.and if i run RemoveSymantecMacFiles.sh through policy it gives error.
Regards,Vinay

talkingmoose
Moderator
Moderator

Did you also make the script executable when you changed the file
On 9/21/10 12:55 PM, "vinay washimkar" <vinaywashimkar at hotmail.com> wrote:
extension? If not, enter this into the Terminal:

chmod +x /path/to/script

I'm not sure this is required if using Casper, but it's worth verifying.

--

William Smith
Technical Analyst
Merrill Communications LLC
(651) 632-1492