Post by Aleksey PThanks for the answer. But as I said - after vsm module we have config
"#
# Module vsm configuration.
#
create mlag peer "E670-DL-AGG-1"
configure mlag peer "E670-DL-AGG-1" ipaddress <IP> vr VR-Default
enable mlag port 1 peer "E670-DL-AGG-1" id 1
enable mlag port 2 peer "E670-DL-AGG-1" id 2
enable mlag port 3 peer "E670-DL-AGG-1" id 3
enable mlag port 4 peer "E670-DL-AGG-1" id 4
enable mlag port 5 peer "E670-DL-AGG-1" id 5
enable mlag port 6 peer "E670-DL-AGG-1" id 6
enable mlag port 17 peer "E670-DL-AGG-1" id 17
enable mlag port 19 peer "E670-DL-AGG-1" id 19
enable mlag port 20 peer "E670-DL-AGG-1" id 20
enable mlag port 32 peer "E670-DL-AGG-1" id 32
enable mlag port 33 peer "E670-DL-AGG-1" id 33
enable mlag port 34 peer "E670-DL-AGG-1" id 34
enable mlag port 35 peer "E670-DL-AGG-1" id 35
enable mlag port 36 peer "E670-DL-AGG-1" id 36
enable mlag port 38 peer "E670-DL-AGG-1" id 38
enable mlag port 40 peer "E670-DL-AGG-1" id 40
enable mlag port 44 peer "E670-DL-AGG-1" id 44 "
and its very sad that we can't save this config.
It should detect the prompt and carry on from there.
way, rather than deliberately throwing config away.
Post by Aleksey PHi
I had exactly the same problem, and used the same "solution".
However, due to other Extreme oddities a diff for my current xrancid
against the standard 2.3.8 release is full of debug.
However, the key things I changed to "fix" this (I'm sure others
here will suggest better ways) are in the attached diff. I've
removed a load of my temp debug to tidy it up for you.
Note that I rely on a "# Module XYZ configuration" at the end of the
config as well, and this almost certainly will break if the version
on the switch changes. It is very brittle as well because luckily
all of the EXOS switches we have are X450 series and running the
same software but if you have a number of different switches with
different software then I can see this failing badly.
1) I've bypassed the last if ($prompt) in the main loop going
through the output from the switch.
2) It relies on a 'Module xxx configuration' in some cases to spot
the end of the show conf.
3) Detecting a clean run, I rely on the SSH message "Connection to
myswitch.mydomain closed" message. This has a hard-coded regex
which happens to match all of my switch names; this should probably
be the hostname.
As an emergency get-you-going this may help, but please realise that
it isn't really general case production grade!
Paul.
Hello to all.
we use rancid 2.3.4 with Extreme Summit X670 and X650 with XOS 15.3.2.11.
I know that in Extreme swithes there no "End of configuration file"
- if (/^# End of configuration file/i) {
- printf STDERR " End WriteTerm: $_" if ($debug);
- $found_end = 1;
- return(0);
- }
for
+ if (/^# Module vrrp configuration./i) {
+ printf STDERR " End WriteTerm: $_" if ($debug);
+ $found_end = 1;
+ return(0);
+ }
So rancid found vrrp config and then exit.
But now we use "mlag" on Extreme and its config below vrrp. So rancid
exit before this config and we have some missed config lines.
I tried rancid 2.3.8 (clean install on other server), with all default
config files, but only see
"...configuration appears to be truncated.
...missed cmd(s): show configuration"
in logs.
Help me please.
_________________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/__mailman/listinfo/rancid-__discuss
<http://www.shrubbery.net/mailman/listinfo/rancid-discuss>
--
Paul Thornton
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo/rancid-discuss