I am working on a script to automate some of my phone\networking-related task. One of them being, mapping out phones and extensions to a network port. For example, x1001 with mac address for John Doe is in Room 1, and on the networking switch 1 on port1. I store room information in the Account Code section under the extension when the extension is created.
What I have been doing is going into bulk handler and manually downloading “extension” and “clearly devices” into a folder and parsing the data with my script.
My question is I want to automate the bulk handler part of this. Is there a to get the same type of information from the bulk handler from the command line?
asterisk -rx 'database show'
is what I am thinking but trying to see if there is an easier method I might be missing before I got down that route.