on 06-10-2016 12:58 PM
Hello
Does anybody know a way to automatically and periodically delete outdated devices from Afaria? With outdated I mean devices which haven't connected back to Afaria for say 90 days.
Regards
Ralph
Hi Ralph,
The easiest way that I can think of, of doing this would be to use the custom view like mentioned, and a group based off of it... then you could write a program that consumes the Afaria APIs to check the members of the group and delete the devices. There are API guides which can help you if you choose this path, and we're always here to help. It's simpler to use a .NET language to consume the APIs, but it is possible to use non .NET languages as well.
How to delete devices using the API:
How to get a list of devices that are in a group:
Afaria APIs getting started guide (there are several in the series):
https://wiki.scn.sap.com/wiki/display/SAPMOB/Server+API+Training+and+How-To+Guides
How to use non .NET languages (primary barrier is the authentication type) is also at the above link in an article titled "SAP Afaria API 301 - Session-less Binding, Basic Authentication and Consuming the Afaria API through SOAP".
Thanks,
John
note: You could technically do this without creating a group, but it is simpler to consume the data returned by the API when getting group members than when running a view.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ralph,
It would be easy enough to make a custom dynamic view of anything older than 90 days and once populated you could select all and delete from the view. Is that easy enough or are you looking for something more automated?
Tracy Barkley
Senior Technical Support Engineer
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Tracy
Actually we are looking for something more automatically. Reason: this is an environment with about 20 tenants. It would be a bit teadious to run through 20 tenants every month to remove the outdated clients.
When you ask "Is that easy enough or are you looking for something more automated" I'm sure you have another solution in mind?
Regards
Ralph
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.