3 ms·
Not intended as a plug but you can even use php for network automation. I cobbled this together: https://github.com/epiecs/phpmiko https://github.com/epiecs/ph
by epiecs 5y ago
Not intended as a plug but you can even use php for network automation. I cobbled this together:
https://github.com/epiecs/phpmiko https://github.com/epiecs/phpmiko for connecting to devices and https://github.com/epiecs/mikodo https://github.com/epiecs/mikodo for inventories and concurrency
The multi core coroutines comment is true but there are ways (to hack) around that.
The way I solved concurrency is just by forking and using sockets:
https://github.com/epiecs/mikodo/blob/6bdcebe9fa7f44ffdedd82218b525e27e46cd149/src/Mikodo.php#L189 https://github.com/epiecs/mikodo/blob/6bdcebe9fa7f44ffdedd82...
I use it at work atm does what it's supposed to. I also use Python as well but I wanted to know if it could be done in php :D