Solved

Access Cisco Devices via SSH using PHP code

Posted on 2014-12-16
3
1,131 Views
Last Modified: 2015-02-05
Hi,

I want to access the Cisco devices like Wireless Controllers etc via SSH using PHP code and execute a few commands and then display the output on to the webpage. If any one can provide a way or a working example which shows a way to access either Cisco Wireless Controller or Router or Switch will do the job.
0
Comment
Question by:Vipin Kumar
3 Comments
 
LVL 17

Expert Comment

by:jburgaard
ID: 40510890
0
 
LVL 22

Expert Comment

by:Matt V
ID: 40510902
0
 
LVL 63

Accepted Solution

by:
btan earned 500 total points
ID: 40511231
here is one via telnet using php codes for easier troubleshooting of port and for ssh, you should check out "ssh2_connect" and you will need the "libssh2" libraries. Other alternative, besides phpseclib (which is not bad) is using Net_SSH2 or PECL SSH2. Here is one example shared in Cisco forum on php code sample (though not mentioned to be tested) doing WLC backup
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question