From ryan.g at atwgpc.net Fri Oct 4 02:43:06 2019 From: ryan.g at atwgpc.net (Ryan Gelobter) Date: Thu, 3 Oct 2019 21:43:06 -0500 Subject: [rancid] exit.. no, logout In-Reply-To: References: Message-ID: Wayne, have you tried using device type of smc instead of powerconnect or cisco? On Fri, Sep 20, 2019, 10:05 AM Wayne Eisenberg < Wayne.Eisenberg at carolinasit.com> wrote: > Hi, > > I am dealing with a Dell 6224 switch that has an interesting quirk. The > powerconnect and cisco-sb types both do the job of logging in and > retrieving information, however at the very end when rancid is trying to > logout, it leaves enabled mode with "exit", and then tries to logoff the > switch completely with "exit" - except that that command does not exist in > disabled mode, only 'quit' and 'logout'. The result is that rancid gets > stuck in a loop issuing the 'exit' command, gets a 'command doesn't exist' > response and never successfully logs out. Where and how can I modify this > so that rancid tries the 'quit' and 'logout' commands as well as 'exit'? > > Some info that may be helpful: > #show system > System Description: Dell Ethernet Switch > System Object ID: 1.3.6.1.4.1.674.10895.3010 > System Model ID: PCT6224 > Machine Type: Dell 24 Port Gigabit Ethernet > > #show version > Image Descriptions > image1 : default image > image2 : > Images currently available on Flash > -------------------------------------------------------------------- > unit image1 image2 current-active next-active > -------------------------------------------------------------------- > 1 2.1.0.13 2.1.0.13 image1 image1 > > Thanks, > Wayne > > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo/rancid-discuss > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Bjarne.Saltbaek at sinch.com Tue Oct 8 11:12:28 2019 From: Bjarne.Saltbaek at sinch.com (=?utf-8?B?Qmphcm5lIFNhbHRiw6Zr?=) Date: Tue, 8 Oct 2019 11:12:28 +0000 Subject: [rancid] patch suggestion for Cisco Mobile Express Message-ID: Hi I am using the 3.9 version for backing up Cisco Mobility Express config on a Cisco Aironet 1830. I was getting random garbage in the config by using /etc/rancid/rancid.types.base cisco-wlc8;script;rancid -t cisco-wlc8 cisco-wlc8;login;wlogin cisco-wlc8;timeout;120 cisco-wlc8;module;ciscowlc cisco-wlc8;inloop;ciscowlc::inloop cisco-wlc8;command;ciscowlc::ShowUdi;show udi cisco-wlc8;command;ciscowlc::ShowSysinfo;show sysinfo cisco-wlc8;command;ciscowlc::ShowConfig;show run-config commands changed ShowConfig from run-config commands to cisco-wlc8;command;ciscowlc::ShowConfig;show run-config startup-commands But then ended up with new dates on every diff. Fixed it by patching wlogin --- cut --- --- wlogin.bak 2019-10-08 12:14:31.085325057 +0200 +++ wlogin 2019-10-08 12:58:13.325178327 +0200 @@ -684,6 +684,8 @@ for {set i 0} {$i < $num_commands} { incr i} { send -- "[subst -nocommands [lindex $commands $i]]\r" expect { + -re "^# WLC Config Begin.*\r\n" { exp_continue } + -re "^# WLC Config End.*\r\n" { exp_continue } -re "\b+" { exp_continue } -re "^\[^\n\r *]*$reprompt" { send_user -- "$expect_out(buffer)" } --- cut --- Feel free to add this to the upstream code. BR, Bjarne --? Bjarne Saltb?k System Administrator Sinch Denmark From Bjarne.Saltbaek at sinch.com Tue Oct 8 11:51:34 2019 From: Bjarne.Saltbaek at sinch.com (=?utf-8?B?Qmphcm5lIFNhbHRiw6Zr?=) Date: Tue, 8 Oct 2019 11:51:34 +0000 Subject: [rancid] patch suggestion for Cisco Mobile Express In-Reply-To: References: Message-ID: Hi again. I just realized that a patch in ciscowlc.pm would make more sense: --- cut --- --- /usr/share/perl5/vendor_perl/rancid/ciscowlc.pm.org 2019-10-08 13:30:29.894650701 +0200 +++ /usr/share/perl5/vendor_perl/rancid/ciscowlc.pm 2019-10-08 13:48:38.125686723 +0200 @@ -137,6 +137,9 @@ next if (/^\s*rogue ap classify/); next if (/^\s*rogue (adhoc|client) (alert|unknown)/i); next if (/^\s*interface nat-address management set -?[0-9]{4,}\./); + next if (/^\s*Config generation may take some time .../); + next if (/^\s*# WLC Config Begin/); + next if (/^\s*# WLC Config End/); $linecnt++; --- cut --- --? Bjarne Saltb?k System Administrator Sinch Denmark > -----Original Message----- > From: Bjarne Saltb?k > Sent: Tuesday, 8 October 2019 13.12 > To: rancid-discuss at shrubbery.net > Subject: patch suggestion for Cisco Mobile Express > > Hi > > I am using the 3.9 version for backing up Cisco Mobility Express config on a > Cisco Aironet 1830. > > I was getting random garbage in the config by using > > /etc/rancid/rancid.types.base > cisco-wlc8;script;rancid -t cisco-wlc8 > cisco-wlc8;login;wlogin > cisco-wlc8;timeout;120 > cisco-wlc8;module;ciscowlc > cisco-wlc8;inloop;ciscowlc::inloop > cisco-wlc8;command;ciscowlc::ShowUdi;show udi cisco- > wlc8;command;ciscowlc::ShowSysinfo;show sysinfo cisco- > wlc8;command;ciscowlc::ShowConfig;show run-config commands > > changed ShowConfig from run-config commands to > > cisco-wlc8;command;ciscowlc::ShowConfig;show run-config startup- > commands > > But then ended up with new dates on every diff. > Fixed it by patching wlogin > --- cut --- > --- wlogin.bak 2019-10-08 12:14:31.085325057 +0200 > +++ wlogin 2019-10-08 12:58:13.325178327 +0200 > @@ -684,6 +684,8 @@ > for {set i 0} {$i < $num_commands} { incr i} { > send -- "[subst -nocommands [lindex $commands $i]]\r" > expect { > + -re "^# WLC Config Begin.*\r\n" { exp_continue } > + -re "^# WLC Config End.*\r\n" { exp_continue } > -re "\b+" { exp_continue } > -re "^\[^\n\r *]*$reprompt" { send_user -- "$expect_out(buffer)" > } > --- cut --- > > Feel free to add this to the upstream code. > > BR, > Bjarne > > > > -- > Bjarne Saltb?k > System Administrator > Sinch Denmark From weylin at bu.edu Sun Oct 13 09:53:21 2019 From: weylin at bu.edu (Piegorsch, Weylin William) Date: Sun, 13 Oct 2019 09:53:21 +0000 Subject: [rancid] patch suggestion for Cisco Mobile Express In-Reply-To: References: Message-ID: <7ECEA403-E03F-4B9C-8EFA-31285DC0586E@bu.edu> Should an autonomous Aeronet AP have its config in rancid through wlc8? I'd had success (years ago, on older version of rancid and AeroOS) with type cisco. If this is a Aeronet AP on a WLC, then wouldn?t simply backing up the WLC be sufficient? weylin ?On 10/8/19, 7:51 AM, "Bjarne Saltb?k" wrote: Hi again. I just realized that a patch in ciscowlc.pm would make more sense: --- cut --- --- /usr/share/perl5/vendor_perl/rancid/ciscowlc.pm.org 2019-10-08 13:30:29.894650701 +0200 +++ /usr/share/perl5/vendor_perl/rancid/ciscowlc.pm 2019-10-08 13:48:38.125686723 +0200 @@ -137,6 +137,9 @@ next if (/^\s*rogue ap classify/); next if (/^\s*rogue (adhoc|client) (alert|unknown)/i); next if (/^\s*interface nat-address management set -?[0-9]{4,}\./); + next if (/^\s*Config generation may take some time .../); + next if (/^\s*# WLC Config Begin/); + next if (/^\s*# WLC Config End/); $linecnt++; --- cut --- -- Bjarne Saltb?k System Administrator Sinch Denmark > -----Original Message----- > From: Bjarne Saltb?k > Sent: Tuesday, 8 October 2019 13.12 > To: rancid-discuss at shrubbery.net > Subject: patch suggestion for Cisco Mobile Express > > Hi > > I am using the 3.9 version for backing up Cisco Mobility Express config on a > Cisco Aironet 1830. > > I was getting random garbage in the config by using > > /etc/rancid/rancid.types.base > cisco-wlc8;script;rancid -t cisco-wlc8 > cisco-wlc8;login;wlogin > cisco-wlc8;timeout;120 > cisco-wlc8;module;ciscowlc > cisco-wlc8;inloop;ciscowlc::inloop > cisco-wlc8;command;ciscowlc::ShowUdi;show udi cisco- > wlc8;command;ciscowlc::ShowSysinfo;show sysinfo cisco- > wlc8;command;ciscowlc::ShowConfig;show run-config commands > > changed ShowConfig from run-config commands to > > cisco-wlc8;command;ciscowlc::ShowConfig;show run-config startup- > commands > > But then ended up with new dates on every diff. > Fixed it by patching wlogin > --- cut --- > --- wlogin.bak 2019-10-08 12:14:31.085325057 +0200 > +++ wlogin 2019-10-08 12:58:13.325178327 +0200 > @@ -684,6 +684,8 @@ > for {set i 0} {$i < $num_commands} { incr i} { > send -- "[subst -nocommands [lindex $commands $i]]\r" > expect { > + -re "^# WLC Config Begin.*\r\n" { exp_continue } > + -re "^# WLC Config End.*\r\n" { exp_continue } > -re "\b+" { exp_continue } > -re "^\[^\n\r *]*$reprompt" { send_user -- "$expect_out(buffer)" > } > --- cut --- > > Feel free to add this to the upstream code. > > BR, > Bjarne > > > > -- > Bjarne Saltb?k > System Administrator > Sinch Denmark From heas at shrubbery.net Mon Oct 14 23:32:36 2019 From: heas at shrubbery.net (john heasley) Date: Mon, 14 Oct 2019 23:32:36 +0000 Subject: [rancid] patch suggestion for Cisco Mobile Express In-Reply-To: <7ECEA403-E03F-4B9C-8EFA-31285DC0586E@bu.edu> References: <7ECEA403-E03F-4B9C-8EFA-31285DC0586E@bu.edu> Message-ID: <20191014233236.GH50724@shrubbery.net> Sun, Oct 13, 2019 at 09:53:21AM +0000, Piegorsch, Weylin William: > Should an autonomous Aeronet AP have its config in rancid through wlc8? I'd had success (years ago, on older version of rancid and AeroOS) with type cisco. If this is a Aeronet AP on a WLC, then wouldn?t simply backing up the WLC be sufficient? > weylin I can not answer that, but I am curious to see the diff that was produced prior to this change. Is it possible that it was terminal control characters causing the changes? > ?On 10/8/19, 7:51 AM, "Bjarne Saltb?k" wrote: > > Hi again. > > I just realized that a patch in ciscowlc.pm would make more sense: > > --- cut --- > --- /usr/share/perl5/vendor_perl/rancid/ciscowlc.pm.org 2019-10-08 13:30:29.894650701 +0200 > +++ /usr/share/perl5/vendor_perl/rancid/ciscowlc.pm 2019-10-08 13:48:38.125686723 +0200 > @@ -137,6 +137,9 @@ > next if (/^\s*rogue ap classify/); > next if (/^\s*rogue (adhoc|client) (alert|unknown)/i); > next if (/^\s*interface nat-address management set -?[0-9]{4,}\./); > + next if (/^\s*Config generation may take some time .../); > + next if (/^\s*# WLC Config Begin/); > + next if (/^\s*# WLC Config End/); > > $linecnt++; > > --- cut --- > > > -- > Bjarne Saltb?k > System Administrator > Sinch Denmark > > > -----Original Message----- > > From: Bjarne Saltb?k > > Sent: Tuesday, 8 October 2019 13.12 > > To: rancid-discuss at shrubbery.net > > Subject: patch suggestion for Cisco Mobile Express > > > > Hi > > > > I am using the 3.9 version for backing up Cisco Mobility Express config on a > > Cisco Aironet 1830. > > > > I was getting random garbage in the config by using > > > > /etc/rancid/rancid.types.base > > cisco-wlc8;script;rancid -t cisco-wlc8 > > cisco-wlc8;login;wlogin > > cisco-wlc8;timeout;120 > > cisco-wlc8;module;ciscowlc > > cisco-wlc8;inloop;ciscowlc::inloop > > cisco-wlc8;command;ciscowlc::ShowUdi;show udi cisco- > > wlc8;command;ciscowlc::ShowSysinfo;show sysinfo cisco- > > wlc8;command;ciscowlc::ShowConfig;show run-config commands > > > > changed ShowConfig from run-config commands to > > > > cisco-wlc8;command;ciscowlc::ShowConfig;show run-config startup- > > commands > > > > But then ended up with new dates on every diff. > > Fixed it by patching wlogin > > --- cut --- > > --- wlogin.bak 2019-10-08 12:14:31.085325057 +0200 > > +++ wlogin 2019-10-08 12:58:13.325178327 +0200 > > @@ -684,6 +684,8 @@ > > for {set i 0} {$i < $num_commands} { incr i} { > > send -- "[subst -nocommands [lindex $commands $i]]\r" > > expect { > > + -re "^# WLC Config Begin.*\r\n" { exp_continue } > > + -re "^# WLC Config End.*\r\n" { exp_continue } > > -re "\b+" { exp_continue } > > -re "^\[^\n\r *]*$reprompt" { send_user -- "$expect_out(buffer)" > > } > > --- cut --- > > > > Feel free to add this to the upstream code. > > > > BR, > > Bjarne > > > > > > > > -- > > Bjarne Saltb?k > > System Administrator > > Sinch Denmark > > > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo/rancid-discuss From Bjarne.Saltbaek at sinch.com Tue Oct 15 08:49:20 2019 From: Bjarne.Saltbaek at sinch.com (=?utf-8?B?Qmphcm5lIFNhbHRiw6Zr?=) Date: Tue, 15 Oct 2019 08:49:20 +0000 Subject: [rancid] patch suggestion for Cisco Mobile Express In-Reply-To: <20191014233236.GH50724@shrubbery.net> References: <7ECEA403-E03F-4B9C-8EFA-31285DC0586E@bu.edu> <20191014233236.GH50724@shrubbery.net> Message-ID: Hi John and all. A typical garbage would be: --- cut --- wlan flexconnect learn-ipaddr 11 enable h?J5h?J5 h?J5h?J5 wlan wmm require 11 --- cut --- If it is terminal control characters or not I did not spend time to debug. The easy fix was to switch command and remove the 3 lines --? Bjarne Saltb?k System Administrator Sinch Denmark > -----Original Message----- > From: john heasley > Sent: Tuesday, 15 October 2019 01.33 > To: Piegorsch, Weylin William > Cc: Bjarne Saltb?k ; rancid- > discuss at shrubbery.net > Subject: Re: [rancid] patch suggestion for Cisco Mobile Express > > Sun, Oct 13, 2019 at 09:53:21AM +0000, Piegorsch, Weylin William: > > Should an autonomous Aeronet AP have its config in rancid through wlc8? > I'd had success (years ago, on older version of rancid and AeroOS) with type > cisco. If this is a Aeronet AP on a WLC, then wouldn?t simply backing up the > WLC be sufficient? > > weylin > > I can not answer that, but I am curious to see the diff that was produced prior > to this change. Is it possible that it was terminal control characters causing > the changes? > > > ?On 10/8/19, 7:51 AM, "Bjarne Saltb?k" > wrote: > > > > Hi again. > > > > I just realized that a patch in ciscowlc.pm would make more sense: > > > > --- cut --- > > --- /usr/share/perl5/vendor_perl/rancid/ciscowlc.pm.org 2019-10-08 > 13:30:29.894650701 +0200 > > +++ /usr/share/perl5/vendor_perl/rancid/ciscowlc.pm 2019-10-08 > 13:48:38.125686723 +0200 > > @@ -137,6 +137,9 @@ > > next if (/^\s*rogue ap classify/); > > next if (/^\s*rogue (adhoc|client) (alert|unknown)/i); > > next if (/^\s*interface nat-address management set -?[0-9]{4,}\./); > > + next if (/^\s*Config generation may take some time .../); > > + next if (/^\s*# WLC Config Begin/); > > + next if (/^\s*# WLC Config End/); > > > > $linecnt++; > > > > --- cut --- > > > > > > -- > > Bjarne Saltb?k > > System Administrator > > Sinch Denmark > > > > > -----Original Message----- > > > From: Bjarne Saltb?k > > > Sent: Tuesday, 8 October 2019 13.12 > > > To: rancid-discuss at shrubbery.net > > > Subject: patch suggestion for Cisco Mobile Express > > > > > > Hi > > > > > > I am using the 3.9 version for backing up Cisco Mobility Express config > on a > > > Cisco Aironet 1830. > > > > > > I was getting random garbage in the config by using > > > > > > /etc/rancid/rancid.types.base > > > cisco-wlc8;script;rancid -t cisco-wlc8 > > > cisco-wlc8;login;wlogin > > > cisco-wlc8;timeout;120 > > > cisco-wlc8;module;ciscowlc > > > cisco-wlc8;inloop;ciscowlc::inloop > > > cisco-wlc8;command;ciscowlc::ShowUdi;show udi cisco- > > > wlc8;command;ciscowlc::ShowSysinfo;show sysinfo cisco- > > > wlc8;command;ciscowlc::ShowConfig;show run-config commands > > > > > > changed ShowConfig from run-config commands to > > > > > > cisco-wlc8;command;ciscowlc::ShowConfig;show run-config startup- > > > commands > > > > > > But then ended up with new dates on every diff. > > > Fixed it by patching wlogin > > > --- cut --- > > > --- wlogin.bak 2019-10-08 12:14:31.085325057 +0200 > > > +++ wlogin 2019-10-08 12:58:13.325178327 +0200 > > > @@ -684,6 +684,8 @@ > > > for {set i 0} {$i < $num_commands} { incr i} { > > > send -- "[subst -nocommands [lindex $commands $i]]\r" > > > expect { > > > + -re "^# WLC Config Begin.*\r\n" { exp_continue } > > > + -re "^# WLC Config End.*\r\n" { exp_continue } > > > -re "\b+" { exp_continue } > > > -re "^\[^\n\r *]*$reprompt" { send_user -- > "$expect_out(buffer)" > > > } > > > --- cut --- > > > > > > Feel free to add this to the upstream code. > > > > > > BR, > > > Bjarne > > > > > > > > > > > > -- > > > Bjarne Saltb?k > > > System Administrator > > > Sinch Denmark > > > > > > > > _______________________________________________ > > Rancid-discuss mailing list > > Rancid-discuss at shrubbery.net > > http://www.shrubbery.net/mailman/listinfo/rancid-discuss From Bjarne.Saltbaek at sinch.com Tue Oct 15 08:55:21 2019 From: Bjarne.Saltbaek at sinch.com (=?utf-8?B?Qmphcm5lIFNhbHRiw6Zr?=) Date: Tue, 15 Oct 2019 08:55:21 +0000 Subject: [rancid] patch suggestion for Cisco Mobile Express In-Reply-To: <7ECEA403-E03F-4B9C-8EFA-31285DC0586E@bu.edu> References: <7ECEA403-E03F-4B9C-8EFA-31285DC0586E@bu.edu> Message-ID: Hi Weylin. We do not run the AP's as autonomous. We have Mobility Express (ME) installed on 2 AP's (one primary and one for secondary). The ME is the WLC and function as a WLC (and needs to be backed up as a WLC). My guess is that the ME runs as a Docker image on the AP's (it has its own IP and web interface separated from the AP's). --? Bjarne Saltb?k System Administrator Sinch Denmark > -----Original Message----- > From: Piegorsch, Weylin William > Sent: Sunday, 13 October 2019 11.53 > To: Bjarne Saltb?k ; rancid- > discuss at shrubbery.net > Subject: Re: [rancid] patch suggestion for Cisco Mobile Express > > Should an autonomous Aeronet AP have its config in rancid through wlc8? I'd > had success (years ago, on older version of rancid and AeroOS) with type > cisco. If this is a Aeronet AP on a WLC, then wouldn?t simply backing up the > WLC be sufficient? > weylin > From henri.hemery at gmail.com Wed Oct 23 20:57:57 2019 From: henri.hemery at gmail.com (henri hemery) Date: Wed, 23 Oct 2019 16:57:57 -0400 Subject: [rancid] Rancid - cmwlogin - HPE switches Message-ID: Hi, I would like to know if some of you succeeded in backing UP HPE switches. I successfully backed up HP FF 7910, HP 2530, but no way to back up HPE 5130 and HP 5120. If I type this command: *[rancid at cardlswbkp1 bin]$ ./cmwlogin -c "display version" 10.1.170.1* *10.1.170.1* *spawn telnet 10.1.170.1* *Trying 10.1.170.1...* *Connected to 10.1.170.1.* *Escape character is '^]'.* ******************************************************************************** ** Copyright (c) 2010-2017 Hewlett Packard Enterprise Development LP ** ** Without the owner's prior written consent, ** ** no decompiling or reverse-engineering shall be allowed. ** ******************************************************************************** *login: [login]* *Password:* *undo smart* * ^* *% Unrecognized command found at '^' position.* *undo interactive* * ^* *% Unrecognized command found at '^' position.* *undo terminal monitor* *The current terminal is disabled to display logs.* ** *terminal length 0* * ^* *% Unrecognized command found at '^' position.* *terminal width 132* * ^* *% Unrecognized command found at '^' position.* *display version* *HPE Comware Software, Version 7.1.070, Release 3208P03* *Copyright (c) 2010-2017 Hewlett Packard Enterprise Development LP* *HPE 5130 24G PoE+ 4SFP+ EI Switch uptime is 10 weeks, 4 days, 6 hours, 28 minutes* *Last reboot reason : Cold reboot* *####suppressed output###* *Boot image: flash:/5130ei-cmw710-boot-r3208p03.bin* *Boot image version: 7.1.070, Release 3208P03* * Compiled Dec 14 2017 18:00:00* *System image: flash:/5130ei-cmw710-system-r3208p03.bin* *System image version: 7.1.070, Release 3208P03* * Compiled Dec 14 2017 18:00:00* *exit* *Connection closed by foreign host.* *[rancid at cardlswbkp1 bin]$* It work. But I launch rancid-run, I never receive the output. When I type: ./cmwlogin -dl 10.1.170.1, the output is stocked here: *expect: does "" (spawn_id exp6) match regular expression "[\r\n]+"? (No Gate, RE only) gate=yes re=no* *"^(.+[:.])1 ((>\u0007?|#| \(enable\)))"? (No Gate, RE only) gate=yes re=no* *"^.+(>\u0007?|#| \(enable\))"? (No Gate, RE only) gate=yes re=no* ** *expect: does "" (spawn_id exp6) match regular expression "[\r\n]+"? (No Gate, RE only) gate=yes re=no* *"^(.+[:.])1 ((>\u0007?|#| \(enable\)))"? (No Gate, RE only) gate=yes re=no* *"^.+(>\u0007?|#| \(enable\))"? (No Gate, RE only) gate=yes re=yes* *expect: set expect_out(0,string) ""* *expect: set expect_out(1,string) ">"* *expect: set expect_out(spawn_id) "exp6"* *expect: set expect_out(buffer) ""* *tty_raw_noecho: was raw = 0 echo = 1* Anybody can help? -------------- next part -------------- An HTML attachment was scrubbed... URL: From ugob at lubik.ca Wed Oct 23 23:27:56 2019 From: ugob at lubik.ca (Ugo Bellavance) Date: Wed, 23 Oct 2019 19:27:56 -0400 Subject: [rancid] Rancid - cmwlogin - HPE switches In-Reply-To: References: Message-ID: Have you read this https://sites.google.com/site/jrbinks/code/rancid/cmwrancid ? You may want to read this thread: http://www.shrubbery.net/pipermail/rancid-discuss/2018-February/010065.html On Wed, Oct 23, 2019 at 3:57 PM henri hemery wrote: > Hi, > > > > I would like to know if some of you succeeded in backing UP HPE switches. > > I successfully backed up HP FF 7910, HP 2530, but no way to back up HPE > 5130 and HP 5120. > > > > If I type this command: > > > > > > *[rancid at cardlswbkp1 bin]$ ./cmwlogin -c "display version" 10.1.170.1* > > *10.1.170.1* > > *spawn telnet 10.1.170.1* > > *Trying 10.1.170.1...* > > *Connected to 10.1.170.1.* > > *Escape character is '^]'.* > > > > > ******************************************************************************** > > ** Copyright (c) 2010-2017 Hewlett Packard Enterprise Development > LP ** > > ** Without the owner's prior written > consent, ** > > ** no decompiling or reverse-engineering shall be > allowed. ** > > > ******************************************************************************** > > > > *login: [login]* > > *Password:* > > *undo smart* > > * ^* > > *% Unrecognized command found at '^' position.* > > *undo interactive* > > * ^* > > *% Unrecognized command found at '^' position.* > > *undo terminal monitor* > > *The current terminal is disabled to display logs.* > > ** > > *terminal length 0* > > * ^* > > *% Unrecognized command found at '^' position.* > > *terminal width 132* > > * ^* > > *% Unrecognized command found at '^' position.* > > *display version* > > *HPE Comware Software, Version 7.1.070, Release 3208P03* > > *Copyright (c) 2010-2017 Hewlett Packard Enterprise Development LP* > > *HPE 5130 24G PoE+ 4SFP+ EI Switch uptime is 10 weeks, 4 days, 6 hours, 28 > minutes* > > *Last reboot reason : Cold reboot* > > > > *####suppressed output###* > > > > *Boot image: flash:/5130ei-cmw710-boot-r3208p03.bin* > > *Boot image version: 7.1.070, Release 3208P03* > > * Compiled Dec 14 2017 18:00:00* > > *System image: flash:/5130ei-cmw710-system-r3208p03.bin* > > *System image version: 7.1.070, Release 3208P03* > > * Compiled Dec 14 2017 18:00:00* > > > > *exit* > > *Connection closed by foreign host.* > > *[rancid at cardlswbkp1 bin]$* > > > > It work. But I launch rancid-run, I never receive the output. > > > > When I type: ./cmwlogin -dl 10.1.170.1, the output is stocked here: > > > > > > *expect: does "" (spawn_id exp6) match regular expression "[\r\n]+"? (No > Gate, RE only) gate=yes re=no* > > *"^(.+[:.])1 ((>\u0007?|#| \(enable\)))"? (No Gate, RE only) gate=yes > re=no* > > *"^.+(>\u0007?|#| \(enable\))"? (No Gate, RE only) gate=yes re=no* > > ** > > *expect: does "" (spawn_id exp6) match regular expression > "[\r\n]+"? (No Gate, RE only) gate=yes re=no* > > *"^(.+[:.])1 ((>\u0007?|#| \(enable\)))"? (No Gate, RE only) gate=yes > re=no* > > *"^.+(>\u0007?|#| \(enable\))"? (No Gate, RE only) gate=yes re=yes* > > *expect: set expect_out(0,string) ""* > > *expect: set expect_out(1,string) ">"* > > *expect: set expect_out(spawn_id) "exp6"* > > *expect: set expect_out(buffer) ""* > > *tty_raw_noecho: was raw = 0 echo = 1* > > > > Anybody can help? > > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo/rancid-discuss > -- Ugo Bellavance (ugob at lubik.ca) -------------- next part -------------- An HTML attachment was scrubbed... URL: From henri.hemery at gmail.com Thu Oct 24 19:28:39 2019 From: henri.hemery at gmail.com (henri hemery) Date: Thu, 24 Oct 2019 15:28:39 -0400 Subject: [rancid] Fwd: Rancid - cmwlogin - HPE switches In-Reply-To: References: Message-ID: > I think I found the solution. > > I finally can use h3clogin//h3crancid work for my HPE 5130. > Here is what I modified in the file h3crancid: > > I had to modify the first line by this: > > #! /usr/bin/perl5.16.3 --? Because it is what we have in > /usr/bin > > And I also modified this line: > > my $logincmd = "/usr/local/rancid/bin/h3clogin"; --? because the > script was unable to locate h3clogin > > Thanks for your help all! > > > > On Thu, Oct 24, 2019 at 10:27 AM Ugo Bellavance wrote: > >> There is no such file on my version (2.3). >> >> In 2.3, the config was in rancid-fe, I think and it looked like this: >> >> 'h3c' => 'h3crancid', >> >> The login command was defined it the *rancid script: >> >> my $logincmd = "h3clogin"; >> >> >> On Thu, Oct 24, 2019 at 8:55 AM henri hemery >> wrote: >> >>> Thanks Ugo, so you modified /usr/local/rancid/etc/rancid.types.conf like >>> this? : >>> >>> h3c;script;h3crancid -t cmw >>> h3c;login;h3clogin >>> >>> On Thu, Oct 24, 2019 at 8:11 AM Ugo Bellavance wrote: >>> >>>> I don't know if that helps, but I'm running rancid with a 5120, but I'm >>>> using h3crancid, because I use an old version of rancid. >>>> >>>> Regards >>>> >>>> On Thu, Oct 24, 2019 at 8:07 AM henri hemery >>>> wrote: >>>> >>>>> >>>>>> Have you read this >>>>>> https://sites.google.com/site/jrbinks/code/rancid/cmwrancid ? >>>>>> >>>>>> Yes, I dicovered cmwlogin from this page and I followed every step, >>>>> but I think this module is not for every type of comware 7 devices >>>>> >>>>> >>>>>> You may want to read this thread: >>>>>> http://www.shrubbery.net/pipermail/rancid-discuss/2018-February/010065.html >>>>>> >>>>> >>>>> Yes I read that thread, not so much to learn from..But I gonna try to >>>>> get in touch with the person. >>>>> >>>>>> >>>>>> On Wed, Oct 23, 2019 at 3:57 PM henri hemery >>>>>> wrote: >>>>>> >>>>>>> Hi, >>>>>>> >>>>>>> >>>>>>> >>>>>>> I would like to know if some of you succeeded in backing UP HPE >>>>>>> switches. >>>>>>> >>>>>>> I successfully backed up HP FF 7910, HP 2530, but no way to back up >>>>>>> HPE 5130 and HP 5120. >>>>>>> >>>>>>> >>>>>>> >>>>>>> If I type this command: >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> *[rancid at cardlswbkp1 bin]$ ./cmwlogin -c "display version" >>>>>>> 10.1.170.1* >>>>>>> >>>>>>> *10.1.170.1* >>>>>>> >>>>>>> *spawn telnet 10.1.170.1* >>>>>>> >>>>>>> *Trying 10.1.170.1...* >>>>>>> >>>>>>> *Connected to 10.1.170.1.* >>>>>>> >>>>>>> *Escape character is '^]'.* >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> ******************************************************************************** >>>>>>> >>>>>>> ** Copyright (c) 2010-2017 Hewlett Packard Enterprise Development >>>>>>> LP ** >>>>>>> >>>>>>> ** Without the owner's prior written >>>>>>> consent, ** >>>>>>> >>>>>>> ** no decompiling or reverse-engineering shall be >>>>>>> allowed. ** >>>>>>> >>>>>>> >>>>>>> ******************************************************************************** >>>>>>> >>>>>>> >>>>>>> >>>>>>> *login: [login]* >>>>>>> >>>>>>> *Password:* >>>>>>> >>>>>>> *undo smart* >>>>>>> >>>>>>> * ^* >>>>>>> >>>>>>> *% Unrecognized command found at '^' position.* >>>>>>> >>>>>>> *undo interactive* >>>>>>> >>>>>>> * ^* >>>>>>> >>>>>>> *% Unrecognized command found at '^' position.* >>>>>>> >>>>>>> *undo terminal monitor* >>>>>>> >>>>>>> *The current terminal is disabled to display logs.* >>>>>>> >>>>>>> ** >>>>>>> >>>>>>> *terminal length 0* >>>>>>> >>>>>>> * ^* >>>>>>> >>>>>>> *% Unrecognized command found at '^' position.* >>>>>>> >>>>>>> *terminal width 132* >>>>>>> >>>>>>> * ^* >>>>>>> >>>>>>> *% Unrecognized command found at '^' position.* >>>>>>> >>>>>>> *display version* >>>>>>> >>>>>>> *HPE Comware Software, Version 7.1.070, Release 3208P03* >>>>>>> >>>>>>> *Copyright (c) 2010-2017 Hewlett Packard Enterprise Development LP* >>>>>>> >>>>>>> *HPE 5130 24G PoE+ 4SFP+ EI Switch uptime is 10 weeks, 4 days, 6 >>>>>>> hours, 28 minutes* >>>>>>> >>>>>>> *Last reboot reason : Cold reboot* >>>>>>> >>>>>>> >>>>>>> >>>>>>> *####suppressed output###* >>>>>>> >>>>>>> >>>>>>> >>>>>>> *Boot image: flash:/5130ei-cmw710-boot-r3208p03.bin* >>>>>>> >>>>>>> *Boot image version: 7.1.070, Release 3208P03* >>>>>>> >>>>>>> * Compiled Dec 14 2017 18:00:00* >>>>>>> >>>>>>> *System image: flash:/5130ei-cmw710-system-r3208p03.bin* >>>>>>> >>>>>>> *System image version: 7.1.070, Release 3208P03* >>>>>>> >>>>>>> * Compiled Dec 14 2017 18:00:00* >>>>>>> >>>>>>> >>>>>>> >>>>>>> *exit* >>>>>>> >>>>>>> *Connection closed by foreign host.* >>>>>>> >>>>>>> *[rancid at cardlswbkp1 bin]$* >>>>>>> >>>>>>> >>>>>>> >>>>>>> It work. But when I launch rancid-run, I never receive the output. >>>>>>> >>>>>>> >>>>>>> >>>>>>> When I type: ./cmwlogin -dl 10.1.170.1, the output is stocked here: >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> *expect: does "" (spawn_id exp6) match regular expression "[\r\n]+"? >>>>>>> (No Gate, RE only) gate=yes re=no* >>>>>>> >>>>>>> *"^(.+[:.])1 ((>\u0007?|#| \(enable\)))"? (No Gate, RE only) >>>>>>> gate=yes re=no* >>>>>>> >>>>>>> *"^.+(>\u0007?|#| \(enable\))"? (No Gate, RE only) gate=yes re=no* >>>>>>> >>>>>>> ** >>>>>>> >>>>>>> *expect: does "" (spawn_id exp6) match regular expression >>>>>>> "[\r\n]+"? (No Gate, RE only) gate=yes re=no* >>>>>>> >>>>>>> *"^(.+[:.])1 ((>\u0007?|#| \(enable\)))"? (No Gate, RE only) >>>>>>> gate=yes re=no* >>>>>>> >>>>>>> *"^.+(>\u0007?|#| \(enable\))"? (No Gate, RE only) gate=yes re=yes* >>>>>>> >>>>>>> *expect: set expect_out(0,string) ""* >>>>>>> >>>>>>> *expect: set expect_out(1,string) ">"* >>>>>>> >>>>>>> *expect: set expect_out(spawn_id) "exp6"* >>>>>>> >>>>>>> *expect: set expect_out(buffer) ""* >>>>>>> >>>>>>> *tty_raw_noecho: was raw = 0 echo = 1* >>>>>>> >>>>>>> >>>>>>> >>>>>>> Anybody can help? >>>>>>> >>>>>>> >>>>>>> _______________________________________________ >>>>>>> Rancid-discuss mailing list >>>>>>> Rancid-discuss at shrubbery.net >>>>>>> http://www.shrubbery.net/mailman/listinfo/rancid-discuss >>>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> Ugo Bellavance (ugob at lubik.ca) >>>>>> _______________________________________________ >>>>>> Rancid-discuss mailing list >>>>>> Rancid-discuss at shrubbery.net >>>>>> http://www.shrubbery.net/mailman/listinfo/rancid-discuss >>>>>> >>>>> >>>> >>>> -- >>>> Ugo Bellavance (ugob at lubik.ca) >>>> >>> >> >> -- >> Ugo Bellavance (ugob at lubik.ca) >> > -- Ugo Bellavance (ugob at lubik.ca) -------------- next part -------------- An HTML attachment was scrubbed... URL: From ko at sv01.de Fri Oct 25 09:19:01 2019 From: ko at sv01.de (Kevin Olbrich) Date: Fri, 25 Oct 2019 11:19:01 +0200 Subject: [rancid] Fwd: Rancid - cmwlogin - HPE switches In-Reply-To: References: Message-ID: Are you using a recent release of rancid, eg. 3.9? As these scripts did not work for me and the switch stack does not get many updates, I simply backed them up myself in the past. All other devices worked fine. Kind regards Kevin Am Do., 24. Okt. 2019 um 20:29 Uhr schrieb henri hemery < henri.hemery at gmail.com>: > > I think I found the solution. >> >> I finally can use h3clogin//h3crancid work for my HPE 5130. >> Here is what I modified in the file h3crancid: >> >> I had to modify the first line by this: >> >> #! /usr/bin/perl5.16.3 --? Because it is what we have in >> /usr/bin >> >> And I also modified this line: >> >> my $logincmd = "/usr/local/rancid/bin/h3clogin"; --? because the >> script was unable to locate h3clogin >> >> Thanks for your help all! >> >> >> >> On Thu, Oct 24, 2019 at 10:27 AM Ugo Bellavance wrote: >> >>> There is no such file on my version (2.3). >>> >>> In 2.3, the config was in rancid-fe, I think and it looked like this: >>> >>> 'h3c' => 'h3crancid', >>> >>> The login command was defined it the *rancid script: >>> >>> my $logincmd = "h3clogin"; >>> >>> >>> On Thu, Oct 24, 2019 at 8:55 AM henri hemery >>> wrote: >>> >>>> Thanks Ugo, so you modified /usr/local/rancid/etc/rancid.types.conf >>>> like this? : >>>> >>>> h3c;script;h3crancid -t cmw >>>> h3c;login;h3clogin >>>> >>>> On Thu, Oct 24, 2019 at 8:11 AM Ugo Bellavance wrote: >>>> >>>>> I don't know if that helps, but I'm running rancid with a 5120, but >>>>> I'm using h3crancid, because I use an old version of rancid. >>>>> >>>>> Regards >>>>> >>>>> On Thu, Oct 24, 2019 at 8:07 AM henri hemery >>>>> wrote: >>>>> >>>>>> >>>>>>> Have you read this >>>>>>> https://sites.google.com/site/jrbinks/code/rancid/cmwrancid ? >>>>>>> >>>>>>> Yes, I dicovered cmwlogin from this page and I followed every step, >>>>>> but I think this module is not for every type of comware 7 devices >>>>>> >>>>>> >>>>>>> You may want to read this thread: >>>>>>> http://www.shrubbery.net/pipermail/rancid-discuss/2018-February/010065.html >>>>>>> >>>>>> >>>>>> Yes I read that thread, not so much to learn from..But I gonna try to >>>>>> get in touch with the person. >>>>>> >>>>>>> >>>>>>> On Wed, Oct 23, 2019 at 3:57 PM henri hemery >>>>>>> wrote: >>>>>>> >>>>>>>> Hi, >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> I would like to know if some of you succeeded in backing UP HPE >>>>>>>> switches. >>>>>>>> >>>>>>>> I successfully backed up HP FF 7910, HP 2530, but no way to back up >>>>>>>> HPE 5130 and HP 5120. >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> If I type this command: >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> *[rancid at cardlswbkp1 bin]$ ./cmwlogin -c "display version" >>>>>>>> 10.1.170.1* >>>>>>>> >>>>>>>> *10.1.170.1* >>>>>>>> >>>>>>>> *spawn telnet 10.1.170.1* >>>>>>>> >>>>>>>> *Trying 10.1.170.1...* >>>>>>>> >>>>>>>> *Connected to 10.1.170.1.* >>>>>>>> >>>>>>>> *Escape character is '^]'.* >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> ******************************************************************************** >>>>>>>> >>>>>>>> ** Copyright (c) 2010-2017 Hewlett Packard Enterprise Development >>>>>>>> LP ** >>>>>>>> >>>>>>>> ** Without the owner's prior written >>>>>>>> consent, ** >>>>>>>> >>>>>>>> ** no decompiling or reverse-engineering shall be >>>>>>>> allowed. ** >>>>>>>> >>>>>>>> >>>>>>>> ******************************************************************************** >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> *login: [login]* >>>>>>>> >>>>>>>> *Password:* >>>>>>>> >>>>>>>> *undo smart* >>>>>>>> >>>>>>>> * ^* >>>>>>>> >>>>>>>> *% Unrecognized command found at '^' position.* >>>>>>>> >>>>>>>> *undo interactive* >>>>>>>> >>>>>>>> * ^* >>>>>>>> >>>>>>>> *% Unrecognized command found at '^' position.* >>>>>>>> >>>>>>>> *undo terminal monitor* >>>>>>>> >>>>>>>> *The current terminal is disabled to display logs.* >>>>>>>> >>>>>>>> ** >>>>>>>> >>>>>>>> *terminal length 0* >>>>>>>> >>>>>>>> * ^* >>>>>>>> >>>>>>>> *% Unrecognized command found at '^' position.* >>>>>>>> >>>>>>>> *terminal width 132* >>>>>>>> >>>>>>>> * ^* >>>>>>>> >>>>>>>> *% Unrecognized command found at '^' position.* >>>>>>>> >>>>>>>> *display version* >>>>>>>> >>>>>>>> *HPE Comware Software, Version 7.1.070, Release 3208P03* >>>>>>>> >>>>>>>> *Copyright (c) 2010-2017 Hewlett Packard Enterprise Development LP* >>>>>>>> >>>>>>>> *HPE 5130 24G PoE+ 4SFP+ EI Switch uptime is 10 weeks, 4 days, 6 >>>>>>>> hours, 28 minutes* >>>>>>>> >>>>>>>> *Last reboot reason : Cold reboot* >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> *####suppressed output###* >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> *Boot image: flash:/5130ei-cmw710-boot-r3208p03.bin* >>>>>>>> >>>>>>>> *Boot image version: 7.1.070, Release 3208P03* >>>>>>>> >>>>>>>> * Compiled Dec 14 2017 18:00:00* >>>>>>>> >>>>>>>> *System image: flash:/5130ei-cmw710-system-r3208p03.bin* >>>>>>>> >>>>>>>> *System image version: 7.1.070, Release 3208P03* >>>>>>>> >>>>>>>> * Compiled Dec 14 2017 18:00:00* >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> *exit* >>>>>>>> >>>>>>>> *Connection closed by foreign host.* >>>>>>>> >>>>>>>> *[rancid at cardlswbkp1 bin]$* >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> It work. But when I launch rancid-run, I never receive the output. >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> When I type: ./cmwlogin -dl 10.1.170.1, the output is stocked here: >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> *expect: does "" (spawn_id exp6) match regular expression >>>>>>>> "[\r\n]+"? (No Gate, RE only) gate=yes re=no* >>>>>>>> >>>>>>>> *"^(.+[:.])1 ((>\u0007?|#| \(enable\)))"? (No Gate, RE only) >>>>>>>> gate=yes re=no* >>>>>>>> >>>>>>>> *"^.+(>\u0007?|#| \(enable\))"? (No Gate, RE only) gate=yes re=no* >>>>>>>> >>>>>>>> ** >>>>>>>> >>>>>>>> *expect: does "" (spawn_id exp6) match regular expression >>>>>>>> "[\r\n]+"? (No Gate, RE only) gate=yes re=no* >>>>>>>> >>>>>>>> *"^(.+[:.])1 ((>\u0007?|#| \(enable\)))"? (No Gate, RE only) >>>>>>>> gate=yes re=no* >>>>>>>> >>>>>>>> *"^.+(>\u0007?|#| \(enable\))"? (No Gate, RE only) gate=yes re=yes* >>>>>>>> >>>>>>>> *expect: set expect_out(0,string) ""* >>>>>>>> >>>>>>>> *expect: set expect_out(1,string) ">"* >>>>>>>> >>>>>>>> *expect: set expect_out(spawn_id) "exp6"* >>>>>>>> >>>>>>>> *expect: set expect_out(buffer) ""* >>>>>>>> >>>>>>>> *tty_raw_noecho: was raw = 0 echo = 1* >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> Anybody can help? >>>>>>>> >>>>>>>> >>>>>>>> _______________________________________________ >>>>>>>> Rancid-discuss mailing list >>>>>>>> Rancid-discuss at shrubbery.net >>>>>>>> http://www.shrubbery.net/mailman/listinfo/rancid-discuss >>>>>>>> >>>>>>> >>>>>>> >>>>>>> -- >>>>>>> Ugo Bellavance (ugob at lubik.ca) >>>>>>> _______________________________________________ >>>>>>> Rancid-discuss mailing list >>>>>>> Rancid-discuss at shrubbery.net >>>>>>> http://www.shrubbery.net/mailman/listinfo/rancid-discuss >>>>>>> >>>>>> >>>>> >>>>> -- >>>>> Ugo Bellavance (ugob at lubik.ca) >>>>> >>>> >>> >>> -- >>> Ugo Bellavance (ugob at lubik.ca) >>> >> > > -- > Ugo Bellavance (ugob at lubik.ca) > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo/rancid-discuss > -------------- next part -------------- An HTML attachment was scrubbed... URL: From m_zouhairy at skno.by Fri Oct 25 11:05:22 2019 From: m_zouhairy at skno.by (Vacheslav) Date: Fri, 25 Oct 2019 14:05:22 +0300 Subject: [rancid] Fwd: Rancid - cmwlogin - HPE switches In-Reply-To: References: Message-ID: <2b8e2b92f18caa1a64ec491605ce295ed4629495.camel@skno.by> so i decided to upgrade rancid in hopes of getting rid of the message i n the morning which one cisco switch produces on fresh boot. and so i install from rancid-master which turned out to be rancid 3.9 and here is what i get Trying to get all of the configs. cisco-isr: missed cmd(s): dir /all bootflash:, show controllers, show controllers cbus, show diagbus, show diag, show capture, show module switch, show module, show spe version, show c7200, show cellular 0 profile, show inventory raw, show inventory, show vtp status, show vlan, show vlan-switch, show switch detail, show sdm prefer, show system mtu, show debug, show shun, more system:running-config, show running-config view full, show running-config cisco-isr: End of run not found !Flash: bootflash: drwx 4096 Feb 27 2018 13:59:45 +03:00 vman_fdb there is a folder vman_fdb which shows using the dir /all bootflash: similar messages on other devices are: cisconexus-1: missed cmd(s): dir logflash:, dir slot0:, dir usb1:, dir usb2:, dir volatile:, show module, show inventory, show interface transceiver, show vlan, show debug, show cores vdc-all, show processes log vdc-all, show module fex, show fex cisconexus-1: End of run not found !Flash: logflash: Usage for logflash://sup-local and from searching, the solution is to comment out the following commands: #cisco;command;ios::DirSlotN;dir /all nvram: #cisco;command;ios::DirSlotN;dir /all bootflash: #cisco;command;ios::DirSlotN;dir /all slot0: #cisco;command;ios::DirSlotN;dir /all disk0: #cisco;command;ios::DirSlotN;dir /all slot1: #cisco;command;ios::DirSlotN;dir /all disk1: #cisco;command;ios::DirSlotN;dir /all slot2: #cisco;command;ios::DirSlotN;dir /all disk2: #cisco;command;ios::DirSlotN;dir /all harddisk: #cisco;command;ios::DirSlotN;dir /all harddiska: #cisco;command;ios::DirSlotN;dir /all harddiskb: #cisco;command;ios::DirSlotN;dir /all sup-bootdisk:;c6500 sup32 #cisco;command;ios::DirSlotN;dir /all sup-bootflash:;c6500 ios #cisco;command;ios::DirSlotN;dir /all sup-microcode:;c6500 ios #cisco;command;ios::DirSlotN;dir /all slavenvram: #cisco;command;ios::DirSlotN;dir /all slavebootflash: #cisco;command;ios::DirSlotN;dir /all slaveslot0: #cisco;command;ios::DirSlotN;dir /all slavedisk0: #cisco;command;ios::DirSlotN;dir /all slaveslot1: #cisco;command;ios::DirSlotN;dir /all slavedisk1: #cisco;command;ios::DirSlotN;dir /all slaveslot2: #cisco;command;ios::DirSlotN;dir /all slavedisk2: #cisco;command;ios::DirSlotN;dir /all slavesup-bootflash:;c7600 #cisco;command;ios::DirSlotN;dir /all sec-nvram: #cisco;command;ios::DirSlotN;dir /all sec-bootflash: #cisco;command;ios::DirSlotN;dir /all sec-slot0: #cisco;command;ios::DirSlotN;dir /all sec-disk0: #cisco;command;ios::DirSlotN;dir /all sec-slot1: #cisco;command;ios::DirSlotN;dir /all sec-disk1: #cisco;command;ios::DirSlotN;dir /all sec-slot2: #cisco;command;ios::DirSlotN;dir /all sec-disk2: and #cisco-nx;command;nxos::DirSlotN;dir bootflash: #cisco-nx;command;nxos::DirSlotN;dir debug: #cisco-nx;command;nxos::DirSlotN;dir logflash: cisco-nx;command;nxos::DirSlotN;dir slot0: cisco-nx;command;nxos::DirSlotN;dir usb1: cisco-nx;command;nxos::DirSlotN;dir usb2: #cisco-nx;command;nxos::DirSlotN;dir volatile: cisco-nx;command;nxos::ShowModule;show module #cisco-nx;command;nxos::ShowModule;show module xbar #cisco-nx;command;nxos::ShowModule;show module X;add, but wait for show all #cisco-nx;command;nxos::ShowModule;show module X epld;add, but wait for show all this all sounds abnormal because in the previous version there were just 2 commands commented out for nexus .. From henri.hemery at gmail.com Fri Oct 25 12:49:52 2019 From: henri.hemery at gmail.com (henri hemery) Date: Fri, 25 Oct 2019 08:49:52 -0400 Subject: [rancid] Fwd: Rancid - cmwlogin - HPE switches In-Reply-To: References: Message-ID: Hi Kevin, I am using rancid 3.4.1, I followed this procedure: https://www.petenetlive.com/KB/Article/0001331 HPE 5130 was not working with cmwlogin module, but works fine with module h3crancid, after I modified it as mentioned in my previous mail. On Fri, Oct 25, 2019 at 5:20 AM Kevin Olbrich wrote: > Are you using a recent release of rancid, eg. 3.9? > > As these scripts did not work for me and the switch stack does not get > many updates, I simply backed them up myself in the past. > All other devices worked fine. > > Kind regards > Kevin > > > Am Do., 24. Okt. 2019 um 20:29 Uhr schrieb henri hemery < > henri.hemery at gmail.com>: > >> >> I think I found the solution. >>> >>> I finally can use h3clogin//h3crancid work for my HPE 5130. >>> Here is what I modified in the file h3crancid: >>> >>> I had to modify the first line by this: >>> >>> #! /usr/bin/perl5.16.3 --? Because it is what we have in >>> /usr/bin >>> >>> And I also modified this line: >>> >>> my $logincmd = "/usr/local/rancid/bin/h3clogin"; --? because the >>> script was unable to locate h3clogin >>> >>> Thanks for your help all! >>> >>> >>> >>> On Thu, Oct 24, 2019 at 10:27 AM Ugo Bellavance wrote: >>> >>>> There is no such file on my version (2.3). >>>> >>>> In 2.3, the config was in rancid-fe, I think and it looked like this: >>>> >>>> 'h3c' => 'h3crancid', >>>> >>>> The login command was defined it the *rancid script: >>>> >>>> my $logincmd = "h3clogin"; >>>> >>>> >>>> On Thu, Oct 24, 2019 at 8:55 AM henri hemery >>>> wrote: >>>> >>>>> Thanks Ugo, so you modified /usr/local/rancid/etc/rancid.types.conf >>>>> like this? : >>>>> >>>>> h3c;script;h3crancid -t cmw >>>>> h3c;login;h3clogin >>>>> >>>>> On Thu, Oct 24, 2019 at 8:11 AM Ugo Bellavance wrote: >>>>> >>>>>> I don't know if that helps, but I'm running rancid with a 5120, but >>>>>> I'm using h3crancid, because I use an old version of rancid. >>>>>> >>>>>> Regards >>>>>> >>>>>> On Thu, Oct 24, 2019 at 8:07 AM henri hemery >>>>>> wrote: >>>>>> >>>>>>> >>>>>>>> Have you read this >>>>>>>> https://sites.google.com/site/jrbinks/code/rancid/cmwrancid ? >>>>>>>> >>>>>>>> Yes, I dicovered cmwlogin from this page and I followed every step, >>>>>>> but I think this module is not for every type of comware 7 devices >>>>>>> >>>>>>> >>>>>>>> You may want to read this thread: >>>>>>>> http://www.shrubbery.net/pipermail/rancid-discuss/2018-February/010065.html >>>>>>>> >>>>>>> >>>>>>> Yes I read that thread, not so much to learn from..But I gonna try >>>>>>> to get in touch with the person. >>>>>>> >>>>>>>> >>>>>>>> On Wed, Oct 23, 2019 at 3:57 PM henri hemery < >>>>>>>> henri.hemery at gmail.com> wrote: >>>>>>>> >>>>>>>>> Hi, >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> I would like to know if some of you succeeded in backing UP HPE >>>>>>>>> switches. >>>>>>>>> >>>>>>>>> I successfully backed up HP FF 7910, HP 2530, but no way to back >>>>>>>>> up HPE 5130 and HP 5120. >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> If I type this command: >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> *[rancid at cardlswbkp1 bin]$ ./cmwlogin -c "display version" >>>>>>>>> 10.1.170.1* >>>>>>>>> >>>>>>>>> *10.1.170.1* >>>>>>>>> >>>>>>>>> *spawn telnet 10.1.170.1* >>>>>>>>> >>>>>>>>> *Trying 10.1.170.1...* >>>>>>>>> >>>>>>>>> *Connected to 10.1.170.1.* >>>>>>>>> >>>>>>>>> *Escape character is '^]'.* >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> ******************************************************************************** >>>>>>>>> >>>>>>>>> ** Copyright (c) 2010-2017 Hewlett Packard Enterprise Development >>>>>>>>> LP ** >>>>>>>>> >>>>>>>>> ** Without the owner's prior written >>>>>>>>> consent, ** >>>>>>>>> >>>>>>>>> ** no decompiling or reverse-engineering shall be >>>>>>>>> allowed. ** >>>>>>>>> >>>>>>>>> >>>>>>>>> ******************************************************************************** >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> *login: [login]* >>>>>>>>> >>>>>>>>> *Password:* >>>>>>>>> >>>>>>>>> *undo smart* >>>>>>>>> >>>>>>>>> * ^* >>>>>>>>> >>>>>>>>> *% Unrecognized command found at '^' position.* >>>>>>>>> >>>>>>>>> *undo interactive* >>>>>>>>> >>>>>>>>> * ^* >>>>>>>>> >>>>>>>>> *% Unrecognized command found at '^' position.* >>>>>>>>> >>>>>>>>> *undo terminal monitor* >>>>>>>>> >>>>>>>>> *The current terminal is disabled to display logs.* >>>>>>>>> >>>>>>>>> ** >>>>>>>>> >>>>>>>>> *terminal length 0* >>>>>>>>> >>>>>>>>> * ^* >>>>>>>>> >>>>>>>>> *% Unrecognized command found at '^' position.* >>>>>>>>> >>>>>>>>> *terminal width 132* >>>>>>>>> >>>>>>>>> * ^* >>>>>>>>> >>>>>>>>> *% Unrecognized command found at '^' position.* >>>>>>>>> >>>>>>>>> *display version* >>>>>>>>> >>>>>>>>> *HPE Comware Software, Version 7.1.070, Release 3208P03* >>>>>>>>> >>>>>>>>> *Copyright (c) 2010-2017 Hewlett Packard Enterprise Development LP* >>>>>>>>> >>>>>>>>> *HPE 5130 24G PoE+ 4SFP+ EI Switch uptime is 10 weeks, 4 days, 6 >>>>>>>>> hours, 28 minutes* >>>>>>>>> >>>>>>>>> *Last reboot reason : Cold reboot* >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> *####suppressed output###* >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> *Boot image: flash:/5130ei-cmw710-boot-r3208p03.bin* >>>>>>>>> >>>>>>>>> *Boot image version: 7.1.070, Release 3208P03* >>>>>>>>> >>>>>>>>> * Compiled Dec 14 2017 18:00:00* >>>>>>>>> >>>>>>>>> *System image: flash:/5130ei-cmw710-system-r3208p03.bin* >>>>>>>>> >>>>>>>>> *System image version: 7.1.070, Release 3208P03* >>>>>>>>> >>>>>>>>> * Compiled Dec 14 2017 18:00:00* >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> *exit* >>>>>>>>> >>>>>>>>> *Connection closed by foreign host.* >>>>>>>>> >>>>>>>>> *[rancid at cardlswbkp1 bin]$* >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> It work. But when I launch rancid-run, I never receive the output. >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> When I type: ./cmwlogin -dl 10.1.170.1, the output is stocked here: >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> *expect: does "" (spawn_id exp6) match regular expression >>>>>>>>> "[\r\n]+"? (No Gate, RE only) gate=yes re=no* >>>>>>>>> >>>>>>>>> *"^(.+[:.])1 ((>\u0007?|#| \(enable\)))"? (No Gate, RE only) >>>>>>>>> gate=yes re=no* >>>>>>>>> >>>>>>>>> *"^.+(>\u0007?|#| \(enable\))"? (No Gate, RE only) gate=yes re=no* >>>>>>>>> >>>>>>>>> ** >>>>>>>>> >>>>>>>>> *expect: does "" (spawn_id exp6) match regular expression >>>>>>>>> "[\r\n]+"? (No Gate, RE only) gate=yes re=no* >>>>>>>>> >>>>>>>>> *"^(.+[:.])1 ((>\u0007?|#| \(enable\)))"? (No Gate, RE only) >>>>>>>>> gate=yes re=no* >>>>>>>>> >>>>>>>>> *"^.+(>\u0007?|#| \(enable\))"? (No Gate, RE only) gate=yes re=yes* >>>>>>>>> >>>>>>>>> *expect: set expect_out(0,string) ""* >>>>>>>>> >>>>>>>>> *expect: set expect_out(1,string) ">"* >>>>>>>>> >>>>>>>>> *expect: set expect_out(spawn_id) "exp6"* >>>>>>>>> >>>>>>>>> *expect: set expect_out(buffer) ""* >>>>>>>>> >>>>>>>>> *tty_raw_noecho: was raw = 0 echo = 1* >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> Anybody can help? >>>>>>>>> >>>>>>>>> >>>>>>>>> _______________________________________________ >>>>>>>>> Rancid-discuss mailing list >>>>>>>>> Rancid-discuss at shrubbery.net >>>>>>>>> http://www.shrubbery.net/mailman/listinfo/rancid-discuss >>>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> -- >>>>>>>> Ugo Bellavance (ugob at lubik.ca) >>>>>>>> _______________________________________________ >>>>>>>> Rancid-discuss mailing list >>>>>>>> Rancid-discuss at shrubbery.net >>>>>>>> http://www.shrubbery.net/mailman/listinfo/rancid-discuss >>>>>>>> >>>>>>> >>>>>> >>>>>> -- >>>>>> Ugo Bellavance (ugob at lubik.ca) >>>>>> >>>>> >>>> >>>> -- >>>> Ugo Bellavance (ugob at lubik.ca) >>>> >>> >> >> -- >> Ugo Bellavance (ugob at lubik.ca) >> _______________________________________________ >> Rancid-discuss mailing list >> Rancid-discuss at shrubbery.net >> http://www.shrubbery.net/mailman/listinfo/rancid-discuss >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ko at sv01.de Fri Oct 25 12:27:52 2019 From: ko at sv01.de (Kevin Olbrich) Date: Fri, 25 Oct 2019 14:27:52 +0200 Subject: [rancid] Fwd: Rancid - cmwlogin - HPE switches In-Reply-To: References: Message-ID: Hi Henri, ok, old releases are a no-go for me, as I have HP devices with recent FW that would loop (find diff on every refresh) as HP introduced a timestamp for some commands. I would like to see CMW work in 3.9+ but I was unable to get this working on my own (I have no perl skills and don't plan to extend them). Kind regards Kevin Am Fr., 25. Okt. 2019 um 13:50 Uhr schrieb henri hemery < henri.hemery at gmail.com>: > Hi Kevin, I am using rancid 3.4.1, I followed this procedure: > https://www.petenetlive.com/KB/Article/0001331 > > HPE 5130 was not working with cmwlogin module, but works fine with module > h3crancid, after I modified it as mentioned in my previous mail. > > > > On Fri, Oct 25, 2019 at 5:20 AM Kevin Olbrich wrote: > >> Are you using a recent release of rancid, eg. 3.9? >> >> As these scripts did not work for me and the switch stack does not get >> many updates, I simply backed them up myself in the past. >> All other devices worked fine. >> >> Kind regards >> Kevin >> >> >> Am Do., 24. Okt. 2019 um 20:29 Uhr schrieb henri hemery < >> henri.hemery at gmail.com>: >> >>> >>> I think I found the solution. >>>> >>>> I finally can use h3clogin//h3crancid work for my HPE 5130. >>>> Here is what I modified in the file h3crancid: >>>> >>>> I had to modify the first line by this: >>>> >>>> #! /usr/bin/perl5.16.3 --? Because it is what we have in >>>> /usr/bin >>>> >>>> And I also modified this line: >>>> >>>> my $logincmd = "/usr/local/rancid/bin/h3clogin"; --? because the >>>> script was unable to locate h3clogin >>>> >>>> Thanks for your help all! >>>> >>>> >>>> >>>> On Thu, Oct 24, 2019 at 10:27 AM Ugo Bellavance wrote: >>>> >>>>> There is no such file on my version (2.3). >>>>> >>>>> In 2.3, the config was in rancid-fe, I think and it looked like this: >>>>> >>>>> 'h3c' => 'h3crancid', >>>>> >>>>> The login command was defined it the *rancid script: >>>>> >>>>> my $logincmd = "h3clogin"; >>>>> >>>>> >>>>> On Thu, Oct 24, 2019 at 8:55 AM henri hemery >>>>> wrote: >>>>> >>>>>> Thanks Ugo, so you modified /usr/local/rancid/etc/rancid.types.conf >>>>>> like this? : >>>>>> >>>>>> h3c;script;h3crancid -t cmw >>>>>> h3c;login;h3clogin >>>>>> >>>>>> On Thu, Oct 24, 2019 at 8:11 AM Ugo Bellavance wrote: >>>>>> >>>>>>> I don't know if that helps, but I'm running rancid with a 5120, but >>>>>>> I'm using h3crancid, because I use an old version of rancid. >>>>>>> >>>>>>> Regards >>>>>>> >>>>>>> On Thu, Oct 24, 2019 at 8:07 AM henri hemery >>>>>>> wrote: >>>>>>> >>>>>>>> >>>>>>>>> Have you read this >>>>>>>>> https://sites.google.com/site/jrbinks/code/rancid/cmwrancid ? >>>>>>>>> >>>>>>>>> Yes, I dicovered cmwlogin from this page and I followed every >>>>>>>> step, but I think this module is not for every type of comware 7 devices >>>>>>>> >>>>>>>> >>>>>>>>> You may want to read this thread: >>>>>>>>> http://www.shrubbery.net/pipermail/rancid-discuss/2018-February/010065.html >>>>>>>>> >>>>>>>> >>>>>>>> Yes I read that thread, not so much to learn from..But I gonna try >>>>>>>> to get in touch with the person. >>>>>>>> >>>>>>>>> >>>>>>>>> On Wed, Oct 23, 2019 at 3:57 PM henri hemery < >>>>>>>>> henri.hemery at gmail.com> wrote: >>>>>>>>> >>>>>>>>>> Hi, >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> I would like to know if some of you succeeded in backing UP HPE >>>>>>>>>> switches. >>>>>>>>>> >>>>>>>>>> I successfully backed up HP FF 7910, HP 2530, but no way to back >>>>>>>>>> up HPE 5130 and HP 5120. >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> If I type this command: >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> *[rancid at cardlswbkp1 bin]$ ./cmwlogin -c "display version" >>>>>>>>>> 10.1.170.1* >>>>>>>>>> >>>>>>>>>> *10.1.170.1* >>>>>>>>>> >>>>>>>>>> *spawn telnet 10.1.170.1* >>>>>>>>>> >>>>>>>>>> *Trying 10.1.170.1...* >>>>>>>>>> >>>>>>>>>> *Connected to 10.1.170.1.* >>>>>>>>>> >>>>>>>>>> *Escape character is '^]'.* >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> ******************************************************************************** >>>>>>>>>> >>>>>>>>>> ** Copyright (c) 2010-2017 Hewlett Packard Enterprise Development >>>>>>>>>> LP ** >>>>>>>>>> >>>>>>>>>> ** Without the owner's prior written >>>>>>>>>> consent, ** >>>>>>>>>> >>>>>>>>>> ** no decompiling or reverse-engineering shall be >>>>>>>>>> allowed. ** >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> ******************************************************************************** >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> *login: [login]* >>>>>>>>>> >>>>>>>>>> *Password:* >>>>>>>>>> >>>>>>>>>> *undo smart* >>>>>>>>>> >>>>>>>>>> * ^* >>>>>>>>>> >>>>>>>>>> *% Unrecognized command found at '^' position.* >>>>>>>>>> >>>>>>>>>> *undo interactive* >>>>>>>>>> >>>>>>>>>> * ^* >>>>>>>>>> >>>>>>>>>> *% Unrecognized command found at '^' position.* >>>>>>>>>> >>>>>>>>>> *undo terminal monitor* >>>>>>>>>> >>>>>>>>>> *The current terminal is disabled to display logs.* >>>>>>>>>> >>>>>>>>>> ** >>>>>>>>>> >>>>>>>>>> *terminal length 0* >>>>>>>>>> >>>>>>>>>> * ^* >>>>>>>>>> >>>>>>>>>> *% Unrecognized command found at '^' position.* >>>>>>>>>> >>>>>>>>>> *terminal width 132* >>>>>>>>>> >>>>>>>>>> * ^* >>>>>>>>>> >>>>>>>>>> *% Unrecognized command found at '^' position.* >>>>>>>>>> >>>>>>>>>> *display version* >>>>>>>>>> >>>>>>>>>> *HPE Comware Software, Version 7.1.070, Release 3208P03* >>>>>>>>>> >>>>>>>>>> *Copyright (c) 2010-2017 Hewlett Packard Enterprise Development >>>>>>>>>> LP* >>>>>>>>>> >>>>>>>>>> *HPE 5130 24G PoE+ 4SFP+ EI Switch uptime is 10 weeks, 4 days, 6 >>>>>>>>>> hours, 28 minutes* >>>>>>>>>> >>>>>>>>>> *Last reboot reason : Cold reboot* >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> *####suppressed output###* >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> *Boot image: flash:/5130ei-cmw710-boot-r3208p03.bin* >>>>>>>>>> >>>>>>>>>> *Boot image version: 7.1.070, Release 3208P03* >>>>>>>>>> >>>>>>>>>> * Compiled Dec 14 2017 18:00:00* >>>>>>>>>> >>>>>>>>>> *System image: flash:/5130ei-cmw710-system-r3208p03.bin* >>>>>>>>>> >>>>>>>>>> *System image version: 7.1.070, Release 3208P03* >>>>>>>>>> >>>>>>>>>> * Compiled Dec 14 2017 18:00:00* >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> *exit* >>>>>>>>>> >>>>>>>>>> *Connection closed by foreign host.* >>>>>>>>>> >>>>>>>>>> *[rancid at cardlswbkp1 bin]$* >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> It work. But when I launch rancid-run, I never receive the output. >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> When I type: ./cmwlogin -dl 10.1.170.1, the output is stocked >>>>>>>>>> here: >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> *expect: does "" (spawn_id exp6) match regular expression >>>>>>>>>> "[\r\n]+"? (No Gate, RE only) gate=yes re=no* >>>>>>>>>> >>>>>>>>>> *"^(.+[:.])1 ((>\u0007?|#| \(enable\)))"? (No Gate, RE only) >>>>>>>>>> gate=yes re=no* >>>>>>>>>> >>>>>>>>>> *"^.+(>\u0007?|#| \(enable\))"? (No Gate, RE only) gate=yes re=no* >>>>>>>>>> >>>>>>>>>> ** >>>>>>>>>> >>>>>>>>>> *expect: does "" (spawn_id exp6) match regular expression >>>>>>>>>> "[\r\n]+"? (No Gate, RE only) gate=yes re=no* >>>>>>>>>> >>>>>>>>>> *"^(.+[:.])1 ((>\u0007?|#| \(enable\)))"? (No Gate, RE only) >>>>>>>>>> gate=yes re=no* >>>>>>>>>> >>>>>>>>>> *"^.+(>\u0007?|#| \(enable\))"? (No Gate, RE only) gate=yes >>>>>>>>>> re=yes* >>>>>>>>>> >>>>>>>>>> *expect: set expect_out(0,string) ""* >>>>>>>>>> >>>>>>>>>> *expect: set expect_out(1,string) ">"* >>>>>>>>>> >>>>>>>>>> *expect: set expect_out(spawn_id) "exp6"* >>>>>>>>>> >>>>>>>>>> *expect: set expect_out(buffer) ""* >>>>>>>>>> >>>>>>>>>> *tty_raw_noecho: was raw = 0 echo = 1* >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> Anybody can help? >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> _______________________________________________ >>>>>>>>>> Rancid-discuss mailing list >>>>>>>>>> Rancid-discuss at shrubbery.net >>>>>>>>>> http://www.shrubbery.net/mailman/listinfo/rancid-discuss >>>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> -- >>>>>>>>> Ugo Bellavance (ugob at lubik.ca) >>>>>>>>> _______________________________________________ >>>>>>>>> Rancid-discuss mailing list >>>>>>>>> Rancid-discuss at shrubbery.net >>>>>>>>> http://www.shrubbery.net/mailman/listinfo/rancid-discuss >>>>>>>>> >>>>>>>> >>>>>>> >>>>>>> -- >>>>>>> Ugo Bellavance (ugob at lubik.ca) >>>>>>> >>>>>> >>>>> >>>>> -- >>>>> Ugo Bellavance (ugob at lubik.ca) >>>>> >>>> >>> >>> -- >>> Ugo Bellavance (ugob at lubik.ca) >>> _______________________________________________ >>> Rancid-discuss mailing list >>> Rancid-discuss at shrubbery.net >>> http://www.shrubbery.net/mailman/listinfo/rancid-discuss >>> >> _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo/rancid-discuss > -------------- next part -------------- An HTML attachment was scrubbed... URL: From heas at shrubbery.net Fri Oct 25 15:22:24 2019 From: heas at shrubbery.net (john heasley) Date: Fri, 25 Oct 2019 15:22:24 +0000 Subject: [rancid] Fwd: Rancid - cmwlogin - HPE switches In-Reply-To: References: Message-ID: <20191025152224.GA7399@shrubbery.net> Fri, Oct 25, 2019 at 02:27:52PM +0200, Kevin Olbrich: > Hi Henri, > > ok, old releases are a no-go for me, as I have HP devices with recent FW > that would loop (find diff on every refresh) as HP introduced a timestamp > for some commands. > I would like to see CMW work in 3.9+ but I was unable to get this working > on my own (I have no perl skills and don't plan to extend them). Assuming code quality, old scripts ought to work to with rancid 3.9/3.10. See the FAQ S4 Q1. The shebang of the script may need to be updated for your environment. From reza at lethalnetworks.com Fri Oct 25 16:26:44 2019 From: reza at lethalnetworks.com (reza) Date: Fri, 25 Oct 2019 09:26:44 -0700 Subject: [rancid] Aruba - Wireless Controllers Message-ID: Hello Rancid Group, I?m trying to get my Rancid setup working with newly acquired Aruba wireless controllers, A650 and A3000s running 6.1, 6.3 and 6.4 AOS versions. I?m using Mike32?s Aruba module which was recommended from the Shrubbery FTP,?https://github.com/miken32/rancid-aruba/.? When I run rancid in debug mode against one of my device it failed in ?End of run not found?. I manually logged in with clogin to the device and ran ?write term? and verified the last line is end. Which is was is expected on line 546 of the Aruba.pm file,?https://github.com/miken32/rancid-aruba/blob/master/aruba.pm#L546.? I?m hoping someone else has had some luck with this module and can provide some help. rancid at rancid:~$ rancid -d -t aruba site2-wc2 loadtype: device type aruba loadtype: found device type aruba at /etc/rancid/rancid.types.conf:115 executing clogin -t 90 -c"no paging;show version;show master-redundancy;show boot;show image version;dir;show interface transceivers;show packet-capture;show inventory;show vlan;write term" site2-wc2 ? ? In aruba::inloop: PROMPT MATCH: \(site2-wc2\) > HIT COMMAND:(site2-wc2) >no paging ? ? In RunCommand: (site2-wc2) >no paging HIT COMMAND:(site2-wc2) >show version ? ? In aruba::ShowVersion: (site2-wc2) >show version HIT COMMAND:(site2-wc2) >show master-redundancy ? ? In aruba::ShowMasterRedundancy: (site2-wc2) >show master-redundancy HIT COMMAND:(site2-wc2) >show boot ? ? In aruba::ShowBoot: (site2-wc2) >show boot HIT COMMAND:(site2-wc2) >show image version ? ? In aruba::ShowImageVersion: (site2-wc2) >show image version HIT COMMAND:(site2-wc2) >dir ? ? In aruba::Dir: (site2-wc2) >dir HIT COMMAND:(site2-wc2) >show interface transceivers ? ? In aruba::ShowInterfaceTransceivers: (site2-wc2) >show interface transceivers HIT COMMAND:(site2-wc2) >show packet-capture ? ? In aruba::ShowPacketCapture: (site2-wc2) >show packet-capture HIT COMMAND:(site2-wc2) >show inventory ? ? In aruba::ShowInventory: (site2-wc2) >show inventory HIT COMMAND:(site2-wc2) >show vlan ? ? In aruba::ShowVLAN: (site2-wc2) >show vlan HIT COMMAND:(site2-wc2) >write term ? ? In aruba::WriteTerm: (site2-wc2) >write term site2-wc2: End of run not found site2-wc2: found_end is false ! rancid at rancid:~$ I?m running Rancid 3.10 (built from source) on Ubuntu 18.04. rancid at rancid:~$ rancid -V rancid 3.10 rancid at rancid:~$ cat /etc/lsb-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=18.04 DISTRIB_CODENAME=bionic DISTRIB_DESCRIPTION="Ubuntu 18.04.3 LTS" rancid at rancid:~$ grep aruba /etc/rancid/rancid.types.conf aruba;script;rancid -t aruba aruba;login;clogin aruba;module;aruba aruba;inloop;aruba::inloop aruba;command;aruba::RunCommand;no paging #aruba;command;aruba::RunCommand;encrypt disable aruba;command;aruba::ShowVersion;show version aruba;command;aruba::ShowMasterRedundancy;show master-redundancy aruba;command;aruba::ShowBoot;show boot aruba;command;aruba::ShowImageVersion;show image version aruba;command;aruba::Dir;dir aruba;command;aruba::ShowInterfaceTransceivers;show interface transceivers aruba;command;aruba::ShowPacketCapture;show packet-capture aruba;command;aruba::ShowInventory;show inventory aruba;command;aruba::ShowVLAN;show vlan aruba;command;aruba::WriteTerm;write term rancid at rancid:~$ Thanks, Reza -------------- next part -------------- An HTML attachment was scrubbed... URL: From henri.hemery at gmail.com Tue Oct 29 17:50:09 2019 From: henri.hemery at gmail.com (henri hemery) Date: Tue, 29 Oct 2019 13:50:09 -0400 Subject: [rancid] Cisco VG224 backup Message-ID: Hi everyone, Did somebody succeed in backing UP Cisco router VG224? The clogin module doesn't seem abble to work with this type of routers. Thanks for your help. -------------- next part -------------- An HTML attachment was scrubbed... URL: From henri.hemery at gmail.com Tue Oct 29 20:19:43 2019 From: henri.hemery at gmail.com (henri hemery) Date: Tue, 29 Oct 2019 16:19:43 -0400 Subject: [rancid] Cisco VG224 backup In-Reply-To: References: Message-ID: Thanks for your answer, the problem was because of the autoenable...it works now. On Tue, Oct 29, 2019 at 1:29 PM Jason Lavoie wrote: > Works fine for us. Been running for a while. Did you run in debug mode > to see where it is failing? Look at the log file? > > !RANCID-CONTENT-TYPE: cisco > ! > !Chassis type: VG224 > !CPU: R527x, R527x CPU at 225MHz, impl 40, Rev 3.1 > ! > !Memory: main 119808K/11264K > !Memory: nvram 63K > ! > !Processor ID: > ! > ! > !Image: Software: vg224-I6K9S-M, 12.4(15)T4, RELEASE SOFTWARE (fc2) > !Image: Compiled: Thu 13-Mar-08 15:24 by prod_rel_team > !Image: slot0:vg224-i6k9s-mz.124-15.T4.bin > > > On Oct 29, 2019, at 1:50 PM, henri hemery > wrote: > > > > Hi everyone, > > > > Did somebody succeed in backing UP Cisco router VG224? > > > > The clogin module doesn't seem abble to work with this type of routers. > > > > Thanks for your help. > > _______________________________________________ > > Rancid-discuss mailing list > > Rancid-discuss at shrubbery.net > > http://www.shrubbery.net/mailman/listinfo/rancid-discuss > > > > -- > Jason Lavoie > Director of Networking and Infrastructure > Bowdoin College > (207)725-3315 > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From heas at shrubbery.net Tue Oct 29 21:46:15 2019 From: heas at shrubbery.net (john heasley) Date: Tue, 29 Oct 2019 21:46:15 +0000 Subject: [rancid] Aruba - Wireless Controllers In-Reply-To: References: Message-ID: <20191029214615.GI51521@shrubbery.net> Fri, Oct 25, 2019 at 09:26:44AM -0700, reza: > I?m using Mike32?s Aruba module which was recommended from the Shrubbery FTP,?https://github.com/miken32/rancid-aruba/.? > > When I run rancid in debug mode against one of my device it failed in ?End of run not found?. I manually logged in with clogin to the device and ran ?write term? and verified the last line is end. Which is was is expected on line 546 of the Aruba.pm file,?https://github.com/miken32/rancid-aruba/blob/master/aruba.pm#L546.? > > I?m hoping someone else has had some luck with this module and can provide some help. I do not have any of these, but note the README in the github repo and the existence of arubalogin in the older version in ftp://ftp.shrubbery.net/pub/rancid/contrib/aruba.tgz maybe its hitting the pager. look at the end of the site2-wc2.raw file left by the -d in your test: > rancid at rancid:~$ rancid -d -t aruba site2-wc2 > loadtype: device type aruba > loadtype: found device type aruba at /etc/rancid/rancid.types.conf:115 > executing clogin -t 90 -c"no paging;show version;show master-redundancy;show boot;show image version;dir;show interface transceivers;show packet-capture;show inventory;show vlan;write term" site2-wc2 > ? ? In aruba::inloop: PROMPT MATCH: \(site2-wc2\) > > HIT COMMAND:(site2-wc2) >no paging > ? ? In RunCommand: (site2-wc2) >no paging > HIT COMMAND:(site2-wc2) >show version > ? ? In aruba::ShowVersion: (site2-wc2) >show version > HIT COMMAND:(site2-wc2) >show master-redundancy > ? ? In aruba::ShowMasterRedundancy: (site2-wc2) >show master-redundancy > HIT COMMAND:(site2-wc2) >show boot > ? ? In aruba::ShowBoot: (site2-wc2) >show boot > HIT COMMAND:(site2-wc2) >show image version > ? ? In aruba::ShowImageVersion: (site2-wc2) >show image version > HIT COMMAND:(site2-wc2) >dir > ? ? In aruba::Dir: (site2-wc2) >dir > HIT COMMAND:(site2-wc2) >show interface transceivers > ? ? In aruba::ShowInterfaceTransceivers: (site2-wc2) >show interface transceivers > HIT COMMAND:(site2-wc2) >show packet-capture > ? ? In aruba::ShowPacketCapture: (site2-wc2) >show packet-capture > HIT COMMAND:(site2-wc2) >show inventory > ? ? In aruba::ShowInventory: (site2-wc2) >show inventory > HIT COMMAND:(site2-wc2) >show vlan > ? ? In aruba::ShowVLAN: (site2-wc2) >show vlan > HIT COMMAND:(site2-wc2) >write term > ? ? In aruba::WriteTerm: (site2-wc2) >write term > site2-wc2: End of run not found > site2-wc2: found_end is false > ! > rancid at rancid:~$ > aruba;script;rancid -t aruba > aruba;login;clogin > aruba;module;aruba > aruba;inloop;aruba::inloop > aruba;command;aruba::RunCommand;no paging > #aruba;command;aruba::RunCommand;encrypt disable > aruba;command;aruba::ShowVersion;show version > aruba;command;aruba::ShowMasterRedundancy;show master-redundancy > aruba;command;aruba::ShowBoot;show boot > aruba;command;aruba::ShowImageVersion;show image version > aruba;command;aruba::Dir;dir > aruba;command;aruba::ShowInterfaceTransceivers;show interface transceivers > aruba;command;aruba::ShowPacketCapture;show packet-capture > aruba;command;aruba::ShowInventory;show inventory > aruba;command;aruba::ShowVLAN;show vlan > aruba;command;aruba::WriteTerm;write term From andreas at naund.org Wed Oct 30 23:13:57 2019 From: andreas at naund.org (Andreas Ott) Date: Wed, 30 Oct 2019 16:13:57 -0700 Subject: [rancid] web frontend for git based rancid Message-ID: <20191030161357.H11888@naund.org> Hello, we have recently uplifted a server from the stoneage to a current version of rancid, also now using git as the version control system. In previous generations we used cvsweb (cvs backend) and WebSVN (svn backend) to provide at least read-only view for our operations/support team into the different devices. For the git backend we installed gitlist but find it lacking, especially when it comes to a very common need "display diff between version X and version Y". Has anyone solved this problem in gitlist, or what other web frontend are you using to display data from the git repository that can do this? Thanks, andreas -- Andreas Ott andreas at naund.org From jason at biel-tech.com Wed Oct 30 23:20:08 2019 From: jason at biel-tech.com (Jason Biel) Date: Wed, 30 Oct 2019 18:20:08 -0500 Subject: [rancid] web frontend for git based rancid In-Reply-To: <20191030161357.H11888@naund.org> References: <20191030161357.H11888@naund.org> Message-ID: gitlist allows you to compare revisions. On Wed, Oct 30, 2019 at 6:14 PM Andreas Ott wrote: > Hello, > > we have recently uplifted a server from the stoneage to a current version > of > rancid, also now using git as the version control system. > > In previous generations we used cvsweb (cvs backend) and WebSVN (svn > backend) to provide at least read-only view for our operations/support > team into the different devices. For the git backend we installed gitlist > but find it lacking, especially when it comes to a very common need > "display diff between version X and version Y". > > Has anyone solved this problem in gitlist, or what other web frontend > are you using to display data from the git repository that can do this? > > Thanks, andreas > -- > Andreas Ott andreas at naund.org > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo/rancid-discuss > -- Jason -------------- next part -------------- An HTML attachment was scrubbed... URL: From heas at shrubbery.net Thu Oct 31 00:00:00 2019 From: heas at shrubbery.net (john heasley) Date: Thu, 31 Oct 2019 00:00:00 +0000 Subject: [rancid] web frontend for git based rancid In-Reply-To: <20191030161357.H11888@naund.org> References: <20191030161357.H11888@naund.org> Message-ID: <20191031000000.GI79200@shrubbery.net> Wed, Oct 30, 2019 at 04:13:57PM -0700, Andreas Ott: > we have recently uplifted a server from the stoneage to a current version of > rancid, also now using git as the version control system. > > In previous generations we used cvsweb (cvs backend) and WebSVN (svn > backend) to provide at least read-only view for our operations/support > team into the different devices. For the git backend we installed gitlist > but find it lacking, especially when it comes to a very common need > "display diff between version X and version Y". > > Has anyone solved this problem in gitlist, or what other web frontend > are you using to display data from the git repository that can do this? we use gitweb. doesnt seem to have what you seek, but does have a "commit-to-current" diff button. if one knows the commits, they can enter those manually in the url to achieve what you want - or hack that to do what you want. From m_zouhairy at skno.by Thu Oct 31 07:43:48 2019 From: m_zouhairy at skno.by (Vacheslav) Date: Thu, 31 Oct 2019 10:43:48 +0300 Subject: [rancid] cisco switches In-Reply-To: <20191030161357.H11888@naund.org> References: <20191030161357.H11888@naund.org> Message-ID: <62d3a95d851cf7ee3d99f6791e8ac28f1174639a.camel@skno.by> i upgraded to rancid 3.10 in hopes of getting rid of the following message coming everymorning when the switch starts.. =================================================================== retrieving revision 1.9 diff -u -4 -r1.9 cisco2960x-24vitebsk.rup @@ -48,16 +48,16 @@ ! License Priority: Medium ! License Count: Non-Counted ! !Flash: Directory of flash:/ - !Flash: 5 -rwx 831 Oct 1 2019 12:26:24 +03:00 Banga - !Flash: 4 -rwx 8099 Jan 20 2016 14:01:15 +03:00 config.text.renamed + !Flash: 6 -rwx 831 Oct 1 2019 12:26:24 +03:00 Banga + !Flash: 5 -rwx 8099 Jan 20 2016 14:01:15 +03:00 config.text.renamed !Flash: 3 -rwx 260 Sep 22 2015 16:16:59 +03:00 express_setup.debug !Flash: 2 -rwx 5473 Jan 20 2016 14:01:15 +03:00 private-config.text.renamed - !Flash: 6 drwx 512 Jul 25 2015 03:00:54 +03:00 c2960x- universalk9.EX5 - !Flash: 645 drwx 512 Jul 25 2015 03:00:56 +03:00 dc_profile_dir - !Flash: 649 -rwx 12934 Sep 16 2019 17:21:04 +03:00 config.text - !Flash: 647 -rwx 2076 Sep 16 2019 17:21:04 +03:00 private-config.text + !Flash: 7 drwx 512 Jul 25 2015 03:00:54 +03:00 c2960x- universalk9.EX5 + !Flash: 646 drwx 512 Jul 25 2015 03:00:56 +03:00 dc_profile_dir + !Flash: 650 -rwx 12934 Sep 16 2019 17:21:04 +03:00 config.text + !Flash: 648 -rwx 2076 any idea how to get rid of it? From henri.hemery at gmail.com Thu Oct 31 14:33:31 2019 From: henri.hemery at gmail.com (henri hemery) Date: Thu, 31 Oct 2019 10:33:31 -0400 Subject: [rancid] HP / Aruba support Message-ID: Hi, I would like to know how you manage your local user for Aruba/HP switches, especially model J9727A The switches of that model I have are configured to authenticate via radius: *aaa authentication telnet login radius local* With this configuration, there is no enable password, but "enable" must be typed, that's returning this error if I disable autoenable and specify an enable password: *invalid command name "do_enable" while executing"do_enable $enauser $enapasswd" ("foreach" body line 150) invoked from within"foreach router [lrange $argv $i end] { set router [string tolower $router] send_user "$router\n" # device timeout set timeout [find t..." (file "/usr/local/rancid/bin/hlogin" line 740)* I would like to create a local-user with high level so I could activate autoenable, and get rid of that error, and that's specific user could login directly in enable mode. So I tried this command: * J9727A (config)# aaa authentication local-user "rancid" group "Level-15" password plaintextNew password for rancid: ********Please retype new password for rancid: ********* But I am unable to login with rancid user.. Any idea? -------------- next part -------------- An HTML attachment was scrubbed... URL: