Find unused WebRTC stations?

I"m hoping this can be achieved with the CLI but in my quick reading I'm not very optimistic.

I'm after a query/command structure to do the following:

1 - Find a list of all WebRTC phones
2 - Query if the user associated with that WebRTC phone is inactive or deleted and if they are...
3 - Delete the WebRTC phone

Or is there a better way of achieving this?

Hi Vaun,

Unfortunately, the CLI is not going to do all of these things out of the box. It can easily do this with a little bit of Powershell or python glue code. Let me chat with a few people on my team and see if anyone has some bandwidth to throw together an example.

Thanks,
John Carnell
Manager, Developer Engagement

Thanks John, keen to see what they can come up with as I could probably re-use the same logic for other things.

Hi Vaun,

Some of our dev evangelists took your question and put together an example of how to do this using the CLI/Powershell and the CLI/Python to do.

Let me know your thoughts. Thanks, @PrinceMerluza for putting these script examples together.

Thanks,
John Carnell
Manager, Developer Engagement

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.