How can i access my cisco router data from ios mobile

Is it possible to access my Cisco router details , for example, "Name", "Model", "IP Address", "Connection Status", etc. on my iOS mobile device.

I'm even willing to write a small mobile app in iOS to get all the details of the router. Since I just started learning in iOS, I don't know if there is any library for the above task. If my router is not working or freezing, I even want to try rebooting the router using my mobile phone.

If a sample code exists it will be very helpful.

Like Cisco already have andriod and iOS app for one function above, but don't want to use this app and want to write your own app with limited functionality. ( http://www.addictivetips.com/mobile/cisco-connect-express-manage-router-settings-remotely-android-ios/ )

Thank,

+3


source to share


2 answers


Accessing a network device is best done using SNMP. Cisco has extremely rich SNMP management / monitoring capabilities and all of their MIBs are publicly available here .

Almost all Cisco devices support SNMPv2-SMI

MIB (1.3.6.1.2.1 OID), so querying things like sysName, sysLocation, sysContact, sysDescription, sysUpTime should be very simple. This MIB even maintains tables to list all interfaces and IP addresses, and has many other things that might interest you.

If you have SNMP write access to the device, you can even make configuration changes and perform management functions such as rebooting or bringing the interface up / down.



There are several SNMP libraries for ObjectiveC and I think Net-SNMP is the most popular (it is not .net, although the name suggests that).

If you are new to SNMP I suggest starting simply by querying simple objects like 1.3.6.1.2.1.1.5

(sysName) and 1.3.6.1.2.1.1.6

(sysLocation) before trying to go to tables like 1.3.6.1.2.1.2.2

(ifTable)

Remember that you don't have to stick to the standard MIBs, you can load all the custom ones that are specific to your device, which will give you incredible flexibility.

+1


source


You can use screen-screening technique for telnet or ssh on a Cisco device and parse the "show version" output. This will give you some information you need. For others like IP addresses, you can use "show ip interface brief", "show cdp neighbors", etc. as you need.

Remember security: make sure the telnet / ssh credentials are sufficiently secure in your application settings and try to restrict your commands to those who don't need privileged access on the Cisco device.



Remember, Cisco devices have a small pool of available VTYs, and each telnet / ssh access from your application will use one VTY. So if you have, for example, 30 guys who want to use device access at the same time from their apps, some of those instances won't get access to the device.

If that's a concern, SNMP is a better and more scalable option, as suggested in the previous answer. Make sure you (a) have the read-only community string configured on the device and (b) only use the community string from the app.

0


source







All Articles