<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#ffffff">
    <p><font face="Helvetica, Arial, sans-serif">Hey Carlos, <br>
      </font></p>
    <p><font face="Helvetica, Arial, sans-serif">Thanks for the info. We
        forgot to update back the list here for future reference. <br>
      </font></p>
    <p><font face="Helvetica, Arial, sans-serif">After going through the
        Port(s) belong to the members, noticed there were some lag ports
        were wrongly selected, after re-configure (it was non lag) the
        member port on IXP manager portal, it's start showing the
        graphs. <br>
      </font></p>
    <p><font face="Helvetica, Arial, sans-serif">I think the challenge
        here is when there are 50k lines of config on MRTG, need to turn
        on all the debugs info and going through line by line. We did
        what you mentioned on </font><b>
        Check aggregates</b>, that helps to identify the issues, with a
      bit of bash scripting, snmpwalk (hundred of ports!) to verify it's
      working and match back to MRTG config.  <br>
    </p>
    <p>We also had the same issue with the Sflow graph, which not MRTG
      related, however we found out there were lag port misconfigured
      and cause the RRD not able to insert the data. <br>
    </p>
    <p>Your steps were clearly explained and we wish we knew it earlier
      from you on the troubleshooting :)<br>
    </p>
    <p>Thanks a lot Carlos, Barry and IXP Manager community! <br>
    </p>
    <p><br>
    </p>
    <div class="moz-cite-prefix">On 27/09/2025 08:02, Carlos Perez
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:BY5PR14MB3590B7927ABABF1709294E5CBA1EA@BY5PR14MB3590.namprd14.prod.outlook.com">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <div dir="ltr"
style="font-family: Garamond, Arial, Helvetica, sans-serif; font-size: 14pt; color: rgb(51, 51, 51);">
        Hi OzaR,</div>
      <div dir="ltr"
style="font-family: Garamond, Arial, Helvetica, sans-serif; font-size: 14pt; color: rgb(51, 51, 51);">
        <br>
      </div>
      <div
style="font-family: Garamond, Arial, Helvetica, sans-serif; font-size: 14pt; color: rgb(51, 51, 51);">
        Here’s a quick guide on how to recover a deleted switch in IXP
        Manager.</div>
      <div
style="font-family: Garamond, Arial, Helvetica, sans-serif; font-size: 14pt; color: rgb(51, 51, 51);">
        If a switch was deleted (instead of just being set inactive),
        the infra-aggregate graphs may break because MRTG aggregates
        still reference its ports.</div>
      <div dir="ltr"
style="font-family: Garamond, Arial, Helvetica, sans-serif; font-size: 14pt; color: rgb(51, 51, 51);">
        <br>
      </div>
      <div
style="font-family: Garamond, Arial, Helvetica, sans-serif; font-size: 14pt; color: rgb(51, 51, 51);">
        Steps to recover:</div>
      <div dir="ltr"
style="font-family: Garamond, Arial, Helvetica, sans-serif; font-size: 14pt; color: rgb(51, 51, 51);">
        <br>
      </div>
      <div
style="font-family: Garamond, Arial, Helvetica, sans-serif; font-size: 14pt; color: rgb(51, 51, 51);">
        Re-create the switch in IXP Manager</div>
      <div dir="ltr"
style="font-family: Garamond, Arial, Helvetica, sans-serif; font-size: 14pt; color: rgb(51, 51, 51);">
        <br>
      </div>
      <div
style="font-family: Garamond, Arial, Helvetica, sans-serif; font-size: 14pt; color: rgb(51, 51, 51);">
        On the CLI:</div>
      <div dir="ltr"
style="font-family: Garamond, Arial, Helvetica, sans-serif; font-size: 14pt; color: rgb(51, 51, 51);">
        <br>
      </div>
      <div
style="font-family: Garamond, Arial, Helvetica, sans-serif; font-size: 14pt; color: rgb(51, 51, 51);">
        cd /path/to/ixp-manager</div>
      <div
style="font-family: Garamond, Arial, Helvetica, sans-serif; font-size: 14pt; color: rgb(51, 51, 51);">
        php artisan ixp:create-switch</div>
      <div dir="ltr"
style="font-family: Garamond, Arial, Helvetica, sans-serif; font-size: 14pt; color: rgb(51, 51, 51);">
        <br>
      </div>
      <div
style="font-family: Garamond, Arial, Helvetica, sans-serif; font-size: 14pt; color: rgb(51, 51, 51);">
        (or via the web GUI: Infrastructure → Switches → Add Switch)</div>
      <div dir="ltr"
style="font-family: Garamond, Arial, Helvetica, sans-serif; font-size: 14pt; color: rgb(51, 51, 51);">
        <br>
      </div>
      <div
style="font-family: Garamond, Arial, Helvetica, sans-serif; font-size: 14pt; color: rgb(51, 51, 51);">
        Use the same name / shortname / hostname as the old device.</div>
      <div dir="ltr"
style="font-family: Garamond, Arial, Helvetica, sans-serif; font-size: 14pt; color: rgb(51, 51, 51);">
        <br>
      </div>
      <div
style="font-family: Garamond, Arial, Helvetica, sans-serif; font-size: 14pt; color: rgb(51, 51, 51);">
        After creation, edit the switch and set:</div>
      <div dir="ltr"
style="font-family: Garamond, Arial, Helvetica, sans-serif; font-size: 14pt; color: rgb(51, 51, 51);">
        <br>
      </div>
      <div
style="font-family: Garamond, Arial, Helvetica, sans-serif; font-size: 14pt; color: rgb(51, 51, 51);">
        Active = off</div>
      <div dir="ltr"
style="font-family: Garamond, Arial, Helvetica, sans-serif; font-size: 14pt; color: rgb(51, 51, 51);">
        <br>
      </div>
      <div
style="font-family: Garamond, Arial, Helvetica, sans-serif; font-size: 14pt; color: rgb(51, 51, 51);">
        Poll = off</div>
      <div
style="font-family: Garamond, Arial, Helvetica, sans-serif; font-size: 14pt; color: rgb(51, 51, 51);">
        This way MRTG won’t poll it, but it will still exist so
        aggregates don’t break.</div>
      <div dir="ltr"
style="font-family: Garamond, Arial, Helvetica, sans-serif; font-size: 14pt; color: rgb(51, 51, 51);">
        <br>
      </div>
      <div
style="font-family: Garamond, Arial, Helvetica, sans-serif; font-size: 14pt; color: rgb(51, 51, 51);">
        Re-generate MRTG configuration</div>
      <div
style="font-family: Garamond, Arial, Helvetica, sans-serif; font-size: 14pt; color: rgb(51, 51, 51);">
        Run the generator and reload MRTG:</div>
      <div dir="ltr"
style="font-family: Garamond, Arial, Helvetica, sans-serif; font-size: 14pt; color: rgb(51, 51, 51);">
        <br>
      </div>
      <div
style="font-family: Garamond, Arial, Helvetica, sans-serif; font-size: 14pt; color: rgb(51, 51, 51);">
        php artisan mrtg:generate</div>
      <div
style="font-family: Garamond, Arial, Helvetica, sans-serif; font-size: 14pt; color: rgb(51, 51, 51);">
        service mrtg restart   # or wait for cron</div>
      <div dir="ltr"
style="font-family: Garamond, Arial, Helvetica, sans-serif; font-size: 14pt; color: rgb(51, 51, 51);">
        <br>
      </div>
      <div
style="font-family: Garamond, Arial, Helvetica, sans-serif; font-size: 14pt; color: rgb(51, 51, 51);">
        Check aggregates</div>
      <div
style="font-family: Garamond, Arial, Helvetica, sans-serif; font-size: 14pt; color: rgb(51, 51, 51);">
        Open the aggregate block (e.g. location-aggregate-00002-bits) in
        the new mrtg.cfg and confirm that all referenced targets exist.
        The “Use of uninitialized value” error should now be gone.</div>
      <div dir="ltr"
style="font-family: Garamond, Arial, Helvetica, sans-serif; font-size: 14pt; color: rgb(51, 51, 51);">
        <br>
      </div>
      <div
style="font-family: Garamond, Arial, Helvetica, sans-serif; font-size: 14pt; color: rgb(51, 51, 51);">
        Re-attach historical data (optional)</div>
      <div
style="font-family: Garamond, Arial, Helvetica, sans-serif; font-size: 14pt; color: rgb(51, 51, 51);">
        The old RRD files are still in MRTG’s WorkDir (e.g.
        /var/lib/mrtg/rrd/).</div>
      <div
style="font-family: Garamond, Arial, Helvetica, sans-serif; font-size: 14pt; color: rgb(51, 51, 51);">
        As long as the switch shortname/ifIndex match the old ones, MRTG
        will reuse the existing RRDs and the historical graphs will
        reappear.</div>
      <div dir="ltr"
style="font-family: Garamond, Arial, Helvetica, sans-serif; font-size: 14pt; color: rgb(51, 51, 51);">
        <br>
      </div>
      <div
style="font-family: Garamond, Arial, Helvetica, sans-serif; font-size: 14pt; color: rgb(51, 51, 51);">
        Alternative: DB restore</div>
      <div
style="font-family: Garamond, Arial, Helvetica, sans-serif; font-size: 14pt; color: rgb(51, 51, 51);">
        If the switch was only soft-deleted in the DB (check the
        deleted_at field in the switch table), you can clear it:</div>
      <div dir="ltr"
style="font-family: Garamond, Arial, Helvetica, sans-serif; font-size: 14pt; color: rgb(51, 51, 51);">
        <br>
      </div>
      <div
style="font-family: Garamond, Arial, Helvetica, sans-serif; font-size: 14pt; color: rgb(51, 51, 51);">
        UPDATE switch SET deleted_at = NULL, active = 0, poll = 0 WHERE
        id = <ID>;</div>
      <div dir="ltr"
style="font-family: Garamond, Arial, Helvetica, sans-serif; font-size: 14pt; color: rgb(51, 51, 51);">
        <br>
      </div>
      <div
style="font-family: Garamond, Arial, Helvetica, sans-serif; font-size: 14pt; color: rgb(51, 51, 51);">
        Then regenerate MRTG as above.</div>
      <div
style="font-family: Garamond, Arial, Helvetica, sans-serif; font-size: 14pt; color: rgb(51, 51, 51);">
        If it was hard-deleted, re-creating it (step 1) is the only
        option unless you restore from a DB backup.</div>
      <div dir="ltr"
style="font-family: Garamond, Arial, Helvetica, sans-serif; font-size: 14pt; color: rgb(51, 51, 51);">
        <br>
      </div>
      <div
style="font-family: Garamond, Arial, Helvetica, sans-serif; font-size: 14pt; color: rgb(51, 51, 51);">
        Note from CRIX practice:</div>
      <div
style="font-family: Garamond, Arial, Helvetica, sans-serif; font-size: 14pt; color: rgb(51, 51, 51);">
        At CRIX we recently migrated data from two switches we were
        about to remove into a new switch first, so all historical
        graphs were preserved. Once migration was complete, we set the
        old switches to inactive (poll off) and only later deleted them.
        This approach avoids broken aggregates and keeps continuity of
        historical data.</div>
      <div dir="ltr"
style="font-family: Garamond, Arial, Helvetica, sans-serif; font-size: 14pt; color: rgb(51, 51, 51);">
        <br>
      </div>
      <div dir="ltr"
style="font-family: Garamond, Arial, Helvetica, sans-serif; font-size: 14pt; color: rgb(51, 51, 51);">
        CarlosP.</div>
      <div dir="ltr"
style="font-family: Garamond, Arial, Helvetica, sans-serif; font-size: 14pt; color: rgb(51, 51, 51);">
        <br>
      </div>
      <div id="mail-editor-reference-message-container">
        <div class="ms-outlook-mobile-reference-message skipProofing">
          <meta name="Generator" content="Microsoft Exchange Server">
        </div>
        <div class="ms-outlook-mobile-reference-message skipProofing"
style="text-align: left; padding: 3pt 0in 0in; border-width: 1pt medium medium; border-style: solid none none; border-color: rgb(181, 196, 223) currentcolor currentcolor; font-family: Aptos; font-size: 12pt; color: black;">
          <b>From: </b>ixpmanager <a class="moz-txt-link-rfc2396E" href="mailto:ixpmanager-bounces@inex.ie"><ixpmanager-bounces@inex.ie></a> on
          behalf of ozikat via ixpmanager <a class="moz-txt-link-rfc2396E" href="mailto:ixpmanager@inex.ie"><ixpmanager@inex.ie></a><br>
          <b>Date: </b>Thursday, 18 September 2025 at 10:07<br>
          <b>To: </b>Barry O'Donovan (INEX)
          <a class="moz-txt-link-rfc2396E" href="mailto:barry.odonovan@inex.ie"><barry.odonovan@inex.ie></a>, INEX IXP Manager Users Mailing
          List <a class="moz-txt-link-rfc2396E" href="mailto:ixpmanager@inex.ie"><ixpmanager@inex.ie></a><br>
          <b>Cc: </b>ozikat <a class="moz-txt-link-rfc2396E" href="mailto:ozikat12@gmail.com"><ozikat12@gmail.com></a><br>
          <b>Subject: </b>Re: [ixpmanager] Infra Aggregate Graph not
          Working After Removing a Switch<br>
          <br>
        </div>
        <div class="PlainText" style="font-size: 11pt;">One more thing,
          the deleted/removed Swtich on IXP Manager portal, it's<br>
          not appear on mrtg.cfg config file though. Hence the stats
          should be<br>
          working i assume.<br>
          <br>
          <br>
          <br>
          On 19/09/2025 00:00, Barry O'Donovan (INEX) wrote:<br>
          ><br>
          ><br>
          >> The switch has been removed from IXP manager, will
          try add it back and<br>
          >> uncheck poll and active<br>
          >><br>
          ><br>
          > If it’s been removed fully, then do no re-add it if the
          objective is to<br>
          > remove it.<br>
          ><br>
          > I asked you to uncheck those boxes because you told me
          you had made no<br>
          > changes to IXP Manager.<br>
          ><br>
          > I’m now unclear as to whether you always had the switch
          removed from IXP<br>
          > Manager, or just recently deleted it? If it was just
          recently, please<br>
          > see if it resolved the issue.<br>
          ><br>
          ><br>
          <br>
          _______________________________________________<br>
          INEX IXP Manager mailing list<br>
          <a class="moz-txt-link-abbreviated" href="mailto:ixpmanager@inex.ie">ixpmanager@inex.ie</a><br>
          Unsubscribe or change options here: <a
            href="https://www.inex.ie/mailman/listinfo/ixpmanager"
            data-outlook-id="1210bff7-2409-47e7-bae9-e68d8b01104f"
            moz-do-not-send="true" class="moz-txt-link-freetext">
            https://www.inex.ie/mailman/listinfo/ixpmanager</a><br>
        </div>
      </div>
    </blockquote>
  </body>
</html>