Solved

Access Cisco Devices via SSH using PHP code

Posted on 2014-12-16
3
1,067 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 62

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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
how can i gnupg encrypt a PDF document? 12 25
Fiber optic multimode cable issue 6 24
PHP AJAX JSON 2 57
Attach to file (img) a unique id 8 23
For many of us, the  holiday season kindles the natural urge to give back to our friends, family members and communities. While it's easy for friends to notice the impact of such deeds, understanding the contributions of businesses and enterprises i…
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

813 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now