|
|

 |
[1] Obtaining and displaying the running configuration of a Cisco router |
 |
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());
|
|
|
|
|
 |
|
|
|
 |
|
|
|
Please feel free to contact us at any time by sending e-mail
to .
We always welcome your comments or suggestions.
|
|
 |
 |
|
 |
|
|
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.
|
|
 |
 |
|
 |
|
|
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.
|
|
 |
 |
|
 |
|
|