lynxus Posted August 3, 2009 Share Posted August 3, 2009 Hi guys, With perl theres a library that can do telnet and ssh to Cisco IOS devices ( IE: can enable up and run commands correctly and die of it doesnt take ) Does PHP have something like this? I currently have a bunch of scripts that echo Cisco IOS config back to me so i can paste the config onto a router ( for IOS load balancers, switches and routers ) This building up a big layer3 and layer2 network over a current network .. ANYWAY. Rather than echoing, id like to get this to apply the config to the device itself. Id rather not use perl , mainly because i dont like it but because id rather have everything php. So, is there anything outthere that can do this in php? Ie: nclude someciscishint; connect -> 0.0.0.0; username -> moo; pasword -> baa; enablepw -> boo; sendcommand -> en; sendcommand -> conf t; sendcommand -> int blaa; etc etc etc etc Any ideas? Edit: Looks like i may of asked this a while ago.. Maybe something new has come out since? Thanks Graham Link to comment https://forums.phpfreaks.com/topic/168598-php-and-cisco-ios/ Share on other sites More sharing options...
trq Posted August 3, 2009 Share Posted August 3, 2009 Theres the ssh extension. Link to comment https://forums.phpfreaks.com/topic/168598-php-and-cisco-ios/#findComment-889320 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.