The OpenNET Project / Index page

[ новости /+++ | форум | теги | ]




Версия для распечатки Пред. тема | След. тема
Новые ответы [ Отслеживать ]
Rancid & CatOS, !*! Sadhan, 30-Янв-07, 18:42  [смотреть все]
Привет!

никто не сталкивался с такой проблемой: RANCID каждый раз при запуске посылает изменения  конфигов на email. Так вот, на Каталистах он мне постоянно сыпал строками вроде

- set spantree portcost    6/4-5,6/9  2000000 mst
+ set spantree portcost    6/4-5,6/9  2000000 mst
- set spantree portinstancecost 9/2  cost 199999 mst
+ set spantree portinstancecost 9/2  cost 1999999 mst

Я нашёл - это в дефолтном конфиге по команде wr term all, это мне не нужно было и я убрал в скриптах "all"б оставил только wr term с каталиста отжимать. Так теперь я получаю письма с дифами такого вида

- set spantree portcost    6/2,6/9,6/14,6/21,6/23  3019
+ set spantree portcost    6/2,6/9,6/14,6/21,6/23,6/46  3019
+ set spantree portvlancost 6/46 cost 3018

Это уже не в дефолтном конфиге меняется. Так вот, вопрос в том, что это за фишка - динамическое изменение конфига, как с ним быть и что в rancid привернуть, чтобы не спамил?

  • Rancid & CatOS, !*! Sadhan, 14:28 , 31-Янв-07 (1)
    Если кому в дальнейшем будет интересно, вот из архивов офф. сайта.

    Mon, Apr 15, 2002 at 09:33:04AM -0700, Pierotti, Phil:
    > Cisco Catalyst Switches effectively modify the configuration every time a
    > port changes link state - by tweaking the active "spantree portcost" and
    > "spantree portvlancost".

    this is considered (by me anyway) to extremely bad form.  cisco should be
    forced to correct this _bug_.  extreme does this crap as well.  anyway, the
    reason we do no filter this is because in theory its an administrative knob.
    thus, if the config rancid saves is to be a candidate to recover a config....

    > Does anyone know/have a hack/tweak to make RANCID ignore these "differences"
    > in the configurations?

    you could add a line like this around line 816 of cat5rancid within
    sub WriteTerm:

        /^spantree portcost: / && next;

    > On a switch with end-users connecting/disconnecting/rebooting (ie working
    > normally) you'll see a change every single time RANCID runs.
    >


    http://ni.shrubbery.net/pipermail/rancid-discuss/2002-April/...




Партнёры:
PostgresPro
Inferno Solutions
Hosting by Hoster.ru
Хостинг:

Закладки на сайте
Проследить за страницей
Created 1996-2024 by Maxim Chirkov
Добавить, Поддержать, Вебмастеру