- Community Home
- >
- Networking
- >
- Legacy
- >
- Switches, Hubs, Modems
- >
- Backup Procurve-Config via SNMP?
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
09-07-2005 01:26 AM
09-07-2005 01:26 AM
Backup Procurve-Config via SNMP?
is it possible to get the complete configuration of a procurve-switch via SNMP? or is there a better way to backup the config via script/automatic?
Regards,
Oliver
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2005 01:49 AM
09-07-2005 01:49 AM
Re: Backup Procurve-Config via SNMP?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2005 02:54 AM
09-07-2005 02:54 AM
Re: Backup Procurve-Config via SNMP?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2005 03:17 AM
09-07-2005 03:17 AM
Re: Backup Procurve-Config via SNMP?
http://www.hp.com/rnd/software/network_management.htm
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2005 08:47 PM
09-07-2005 08:47 PM
Re: Backup Procurve-Config via SNMP?
But one question: is it possible to get the configs automatic via PCM?
Regards,
Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2005 01:13 AM
09-08-2005 01:13 AM
Re: Backup Procurve-Config via SNMP?
If i remember correctly it is not possible to pull the config file via SNMP. The MIBs are designed to do this, but i think this feature has been disabled.
Unless this has been changed in the latest firmware builds, your option is to create a script to telnet and send the config to your tftp server.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2005 01:48 AM
09-08-2005 01:48 AM
Re: Backup Procurve-Config via SNMP?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2005 01:51 AM
09-08-2005 01:51 AM
Re: Backup Procurve-Config via SNMP?
I run PCM+ on an XP box so for me, I have the configs automatically collected from all the switches. I can copy/paste the config to another switch using either PCM or TelNet/XMODEM/TFTP.
I played around with a scriptable telnet program but it lacked some features that I require to auto-genterate filenames that incude the IP and date, so I ended up using AutoIT and HyperTerm but those too are WIntel based.
You did not mention what platform you are using, only that it is not WIntel. I know there is the Perl::TelNet module so if you are proficient in Perl and it runs on your platform, you should be able to cobble together a script.
I am sure there are other NMS apps as well that run on non-WIntel to do the job that are either free or worth the money.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2005 09:17 PM
09-08-2005 09:17 PM
Re: Backup Procurve-Config via SNMP?
Best regards,
Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2005 06:20 AM
09-09-2005 06:20 AM
Re: Backup Procurve-Config via SNMP?
<>>
Regnar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2007 03:27 AM
03-19-2007 03:27 AM
Re: Backup Procurve-Config via SNMP?
1. Set tftp SNMPv2 OID to 2
# snmpset -v 2c -c "RWCOMMUNITY" HOSTNAME 1.3.6.1.4.1.11.2.14.11.5.1.7.1.5.6.0 i 2
2. tftp running config file from switch
# tftp HOSTNAME -c get running-config LOCALFILENAME
3. Reset OID to disable tftp
# snmpset -v 2c -c "RWCOMMUNITY" HOSTNAME 1.3.6.1.4.1.11.2.14.11.5.1.7.1.5.6.0 i 1
Hope that helps,
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2009 06:58 AM
02-19-2009 06:58 AM
Re: Backup Procurve-Config via SNMP?
I set in CLI:
setmib 1.3.6.1.4.1.11.2.14.11.5.1.7.1.5.6.0 -i 2
My source 'command-file':
no ip access-list extended "199"
ip access-list extended "199"
permit ip 192.168.1.3 0.0.0.0 0.0.0.0 255.255.255.255
exit
How to put command-file to switch via tftpd?
If i put his then in logs switch:
01/02/90 00:13:11 tftp: SENT error:2, msg: Access violation
Help please.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-22-2009 11:42 PM
02-22-2009 11:42 PM
Re: Backup Procurve-Config via SNMP?
I saw serious problems with PCM+ managing a large environment.
Thus I developed a q'n'd bash script, which uses expect and scp. This script backs up all our switch configs (currently >500).
If you like I could give it to you.
Steffen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2009 12:07 AM
03-10-2009 12:07 AM
Re: Backup Procurve-Config via SNMP?
i am looking for an scripted backup solution.
Can you provide us your script PabloFiasko?
We have only Linux server and usually use rsync/scp/mysqldump for our backups.
greetings
Rupertt
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2009 12:03 PM
03-17-2009 12:03 PM
Re: Backup Procurve-Config via SNMP?
I am looking for the exact same thing - script that will pull backup configurations on a large number of Procurves using SCP or SFTP (every 5 days?). If anyone could share the script, i would greatly appreciate.
Thank you,
Evgueni
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2009 01:25 AM
05-13-2009 01:25 AM
Re: Backup Procurve-Config via SNMP?
Please send the script you use for backup.
I've been looking for this.
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2009 02:02 AM
05-13-2009 02:02 AM
Re: Backup Procurve-Config via SNMP?
You need: a linux box, with perl and expect installed. Maybe you need some additional perl modules.
Copy the following into a file and chmod +x:
<script>
#!/usr/bin/expect -f
#Expect Skript zum automatisierten Abziehen einer Konfig vom HP Switch
#per scp und password auth
#v 0.1 20080630 Steffen M. Steck pablofiasko@gmail.com
#
#Usage ./scpconfigsaver.exp hostname|IP
set user "manager"
set pass "managers_passwd"
set host [lindex $argv 0]
set timeout 60
set date [exec date +%Y%m%d%H%M]
set output "$host\_$date"
set dstdir /home/bkup/hpswitche
proc ssh_failed { } {
send_user "ERROR: SSH LOGIN FAILED\n"
exit
}
proc scp_ok { } {
send_user "SCP SUCCEEDED\n"
}
spawn scp $user@$host:/cfg/running-config $dstdir\/$output.cfg
#check if login is successful and import ssh key if not yet in known_hosts
expect {
"Connection refused" { ssh_failed }
"No route to host" { ssh_failed }
"Permission denied" { ssh_failed }
"bad password." { ssh_failed }
"(yes/no)?" { send "yes\r";
exp_continue }
"password:" { send "$pass\r";
exp_continue }
"Password:" { send "$pass\r";
exp_continue }
"100% " { scp_ok }
default { ssh_failed }
}
wait
expect eof
</script>
This backs up ***one*** switch. Maybe you need to play around with the last two lines "wait" and "expect eof" to get you prompt back. I have been seeing different behaviours on Suse and on Ubuntu. The above sequence works on Suse 9/10/11, it does not on Ubuntu 9.04 - you do not get your prompt back. Don't know why - comments welcome.
If you tried it successfully against a lab switch the only thing you need is all your devices' hostnames or IPs in a file, 1 per line.
Then easily use it like
steffen@T400> for i in `cat devices` ; do ./scpconfigsaver.exp $i ; done
Then have a look at what you set as dstdir, you find files named hostname_datetime.cfg.
Of course this is very basic and does not take care about how many backups are there...
Maybe someone here has time to build something around and share...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2009 03:53 AM
05-13-2009 03:53 AM
Re: Backup Procurve-Config via SNMP?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2009 05:12 AM
05-13-2009 05:12 AM
Re: Backup Procurve-Config via SNMP?
I get this from a Procurve 2626 trying manually.
scp admin@10.0.2.12:/cfg/running-config test.cfg
We'd like to keep you up to date about:
* Software feature updates
* New product announcements
* Special events
Please register your products now at: www.ProCurve.com
admin@10.0.2.12's password:
exec request failed on channel 0
Or in the script:
/root/switch.sh 10.0.2.12
spawn scp admin@10.0.2.12:/cfg/running-config /home/bkup/hpswitche/10.0.2.12_200905131508.cfg
We'd like to keep you up to date about:
* Software feature updates
* New product announcements
* Special events
Please register your products now at: www.ProCurve.com
admin@10.0.2.12's password:
exec request failed on channel 0
ERROR: SSH LOGIN FAILED
Looks like the switch doesn't allow us to get the file.
Software revision H.10.74
SSH terminal works fine.
Any ideas?
/Andreas
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2009 05:53 AM
05-13-2009 05:53 AM
Re: Backup Procurve-Config via SNMP?
My first idea is the switches' config - firmware should be no prob, our switches are all running 10.67 code, most of them 2650B, some 2600-8-PwR, some 2610s...
Do you have
ip ssh
ip ssh filetransfer
in your configs? I think the latter is missing ;-)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2009 06:02 AM
05-13-2009 06:02 AM
Re: Backup Procurve-Config via SNMP?
Thanks!
I'm trying Rancid also.
Looks nice.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-26-2011 02:53 PM
08-26-2011 02:53 PM
Re: Backup Procurve-Config via SNMP?
Hey,
we are using expect and scp to backup our switches configuration, but looking for some way to do it via snmp.
Is there now any way to do so?
Thanks for any help.