Fox Smart Products Services Library Support Company

Knowledge Base

Home onmouseover="MM_swapImage('mail','','/images/mailboxSelected.gif',1)" onmouseout="MM_swapImgRestore()">E-mail Fox Smart Contact Fox Smart Site Map

[1] Obtaining and displaying the running configuration of a Cisco router
Created On: Feb 26, 2006 5:58 AM
Last Modified On: Feb 26, 2006 5:58 AM
Keywords: configuration
Categories: Cisco Smart Update
The running Cisco router configuration can easily be obtained using the following approach. Note that once you obtain the configuration as a CiscoRouterConfig object, you may examine many parts of the IOS configuration by traversing through the configuration, make updates, and write those changes back to the router.
// Create a router object
CiscoRouter router = new CiscoRouter("hostname", "password", "enablePassword");

// Connect and login to the router
router.login();

// Get the router configuration
CiscoRouterConfig routerConfig = router.getRunningConfiguration();

// Disconnect from the router
router.logout();

// Display the configuration
System.out.println("Router configuration: " + routerConfig.getOriginalIos());


Contact Us

Please feel free to contact us at any time by sending e-mail to . We always welcome your comments or suggestions.

Cisco Smart Update

Fox Smart's Cisco Smart Update product lets customers automate their Cisco router configuration changes through a 100% pure Java API toolkit. To learn more about this one of a kind approach to network automation, click the link below.

Stay Connected!

Fox Smart sends out periodic updates on our company, our products, and Cisco router configuration automation in general. Feel free to enter your contact information below to join our "e-mailing list". We respect your privacy and you can unsubscribe at any time.
First Name:
Last Name:
Company:
E-mail:
 
Products Services Library Support Company Site Map Terms & Conditions Privacy Policy