Solved

Access Cisco Devices via SSH using PHP code

Posted on 2014-12-16
3
1,212 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
site - site VPN 3 42
php output utf-8 problem 6 24
Unable to login to Cisco C800 Ver 15.3(3)M4 8 13
Cisco 3650x ACL 8 9
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.
Many of the companies I’ve worked with have embraced cloud solutions due to their desire to “get out of the datacenter business.” The ability to achieve better security and availability, and the speed with which they are able to deploy, is far grea…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

733 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