Solved

Access Cisco Devices via SSH using PHP code

Posted on 2014-12-16
3
905 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 61

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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
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…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

744 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

10 Experts available now in Live!

Get 1:1 Help Now