Showing results for 
Search instead for 
Did you mean: 

Removing SM Agent

Kind of a big deal

Removing SM Agent

We have the SM agent installed on all of our laptops. When someone leaves we backup their machine, remove the machine from the Meraki network and reimage it. The image we have contains the SM agent so as soon as the laptop has internet access it registers iteslf with Meraki.


My problem is when it re-registers itself Meraki seems to remember all of the details from before it was removed the network. Is this normal? I would expect it to reconnect with the new hostname and NOT have any tags attached to it....

Meraki CMNO, Ruckus WISE, Sonicwall CSSA, Allied Telesis CASE & CAI
Kind of a big deal

Re: Removing SM Agent

@BlakeRichardson Usually when you remove a device from Meraki dashboard and re-enroll, it is fresh. I am wondering why you are experiencing this issue. Anyways, you could use the apple script below to remove the agent: 


on onConfirmUninstall()
	set applicationName to "Meraki Systems Manager"
		display dialog "Are you sure you want to uninstall " & applicationName & "?"
		set uninstallScript to quoted form of POSIX path of (path to resource "uninstall.bash")
		do shell script "bash " & uninstallScript with administrator privileges
		display dialog "Successfully Uninstalled " & applicationName buttons {"OK"} default button "OK"
	on error err
		if err contains "User canceled" then
			display dialog "Canceled " & applicationName & " Uninstall" buttons {"OK"} default button "OK"
			display dialog "We're sorry, but there was an error uninstalling " & applicationName & " described as: " & err buttons {"OK"} default button "OK"
		end if
	end try
end onConfirmUninstall


You could edit it so it requires no user interaction. I found this in Dashboard > Clients > Add Devices > MacOS > You will see a button to download the uninstaller. It is just an Apple Script app, I just opened it an extracted the code.



Find this helpful? Click the kudos button. Thanks!
Building a reputation

Re: Removing SM Agent

I experience a similar issue when re-imaging, however it usually refreshes with the current user's info within 10-60 minutes.

Kind of a big deal

Re: Removing SM Agent

I think this is expected behavior. If you remove a client from Dashboard without first removing all of the tags and then later re-enroll that same client (even if it has a new hostname), it will be detected as the same client because the serial/MAC hasn't changed. At least this is what I see with iOS and Mac devices. 

Getting noticed

Re: Removing SM Agent

hey y'all~ I know I'm a hair late to this party, but I wanted to comment here. This should not be expected behavior. Once removed, my reasonable expectation is that it is removed.  It should purge that info. It's a nightmare with my test machine which gets re-imaged and re-added often. And not always do I get that update in 10-60 mins as sshort mentioned.  And even if it does, it will pick up the new owner, but it will list a ton of apps on it that aren't really on there.  Smiley Indifferent 

As you mention here MRCUR, next test go 'round I will try removing all the tags first and even go as far as uninstalling the agent on the test system, reset to factory settings and re-enroll it. 

Kind of a big deal

Re: Removing SM Agent

Our users have to authenticate with their directory credentials to login. I don't do any other Windows Server administration, but we have them all in different groups broken down from All Employees, Department, and all of the branch offices. I believe AD is synced nightly on Meraki. Once the user assigns themselves the tablet, the appropriate configuration comes down. 


But, I do see this as an issue for lab or loaner machines.

Find this helpful? Click the kudos button. Thanks!
Getting noticed

Re: Removing SM Agent

ok~  I did some testing and I had success removing / re-adding a macbook pro with a clean slate on the dashboard. 


Here are the steps I took to "cleanly" disconnect my test macbook pro and re-added it so it appeared brand new.  


Steps Taken

  1.  Removed all tags from the dashboard (which resulted in 2 profiles being removed from the client)
  2. From the macbook go to System Preferences > Profiles > Removed meraki profile (was password prompted since we have it password protected in our network)
  3. Used the uninstaller to remove the agent from the macbook
  4. Cleared Owner from the dashboard. All autotags except for Mac Device disappeared and here is what I was l was left with


  5. Removed the client from the network via the dashboard > select client > delete > remove from network
    • Note: This macbook is not part of our Device Enrollment Program. I have not tested with a DEP system; however, if yours is part of the DEP, I recommend waiting 24 hours before the reinstall and setup steps 6 & 7 (with DEP steps 8 & 9 below are moot) and don't forget to assign settings in the ADEP dashboard screen.
  6. Rebooted the macbook in internet recovery mode (option-command-r). Used disk utility to wipe the HDD and then selected new High Sierra install. 
  7. Once wipe/reinstall is complete, initiated the MacBook through the setup including enabling location services and connecting to WiFi. 
  8. Waited 48 hours before attempting to re-enroll (as an added precaution and because it was Friday afternoon) 
  9. Opened Safari > URL > entered our Network ID > authenticated > accepted the profile install


At this point, I checked the daskboard, and the device appeared brand new. No previous installation information or preferred SSID's appeared.  Smiley Happy

Just browsing

Re: Removing SM Agent

Thanks so much for your time posting this...


You would think that Recovery booting, erasing, and reinstalling would implicitly remove the profile and agent.

Just browsing

Re: Removing SM Agent

To add a little more information, particularly for DEP enrolled devices, this article seems to be the piece that's missing from @rguthrie's post :


I'm about to test this on a MacBook Pro that was Assigned, then nuked and paved.

Getting noticed

Re: Removing SM Agent

You're welcome Mykl (sorry for late response I wasn't very active in the forums last quarter of 2018 due to some projects.

How did the test with the DEP Macbook Pro go?

Also~ note that the link you list in the 10-11 11:53 post is not leading to an article.
Just browsing

Re: Removing SM Agent

Strange. The link works for me... here's the URL:✓&support_magic_search_box=&kb_...✓&support_magic_search_box=&kb_article=&search_term=3802

FYI, my test went as expected-- positive.