Skip to main content

Remove files when delete device from provisioning

Posted by olekaas on Sun, 05/16/2010

Are there a command reference I can throw into models.txt when deleting a device from auto provisioning. To remove stale provisionig files, drop in a generic one, etc.

/Ole


Submitted by olekaas on Sun, 05/16/2010 Permalink

To remove eg. ${MAC}.cfg files AND do some custom cleanup when a device is removed from a tenant.

/Ole

Submitted by eeman on Sun, 05/16/2010 Permalink

I believe it automatically removes my mac.cfg and mac-settings.cfg files. theres event hooks you could try utilizing such as 'before delete' for tenant level deletions. do you delete phones frequently where the tenant is not also being removed?

Submitted by olekaas on Wed, 05/19/2010 Permalink

Seems not to be the case here. Also Polycom phones leaves custome settings files that would be nice to get rid of when deleting. Anyway, to provision our cellphones we need to write the credentials to a database. Easy with the "command" argument in models.txt when creating the profile. But I really need to get rid of the credentials if the is deleted. A "cleanup_command" argument would be usefull.

/Ole