- Community Home
- >
- Networking
- >
- Switching and Routing
- >
- HPE Aruba Networking & ProVision-based
- >
- Bash script to change the config of Procurve 4204
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2012 02:35 AM
12-05-2012 02:35 AM
Bash script to change the config of Procurve 4204
Hello,
currently I have a switch Procurve 4204vl that is routing.
I need to do a bash script to connect to this router via telnet and change a line of its current configuration. This line is similar to this:
ip route 82.52.253.229 255.255.255.255 192.168.10.325
and it should be changed to
no ip route 82.52.253.229 255.255.255.255 192.168.10.325
My problem is I have not idea how to do it, or even if it is remotely possible to do it.
So, I will appreciate any kind of help.
Thank you!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2012 01:07 PM
12-05-2012 01:07 PM
Re: Bash script to change the config of Procurve 4204
If you want to do this as part of a scripted solution, you could use RANCID's hlogin command to send commands to the switch. See http://www.shrubbery.net/rancid/ to download RANCID.
HP's IMC and ProCurve Manager Plus products should also allow you to do scripting like this, but i'm not sure about their ability to integrate with bash scripting.
Paul
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2012 02:00 AM
12-10-2012 02:00 AM
Re: Bash script to change the config of Procurve 4204
Thank Paul.
And there isn't other software as Rancid, but for Windows?
I was looking for examples of Rancid script, and I didn't find much... and besides it Rancid needs a CVS and I'm not interesting on install that kind of software.
Regards.
PS: I talked about a bash script, but the only function of it would be ping to an IP, and if the connection is down then just change the route inside the switch.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2012 02:48 AM
12-10-2012 02:48 AM
Re: Bash script to change the config of Procurve 4204
If what you're wanting to do with this is check route availability, a much better solution would be to upgrade to a proper routing switch (e.g. 3500yl, 5400zl, 5500-EI) and use a dynamic routing protocol such as OSPF.
Paul
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2012 03:55 AM
12-10-2012 03:55 AM
Re: Bash script to change the config of Procurve 4204
Thank you, but I found a solution using "expect" and "autoexpect" in bash. This is working fine in linux.
Regards.