<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    Hoi,<br>
    <br>
    Thanks for taking a look, Nick.<br>
    <br>
    <div class="moz-cite-prefix">On 01.07.2025 17:29, Nick Hilliard
      wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:9185f2e6-7905-0b1c-3a98-bc10a66da26b@foobar.org">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      Hi Pim,<br>
      <br>
      looks like the old problem of confusion between the ifName,
      ifDescr and ifAlias OIDs. <br>
      <br>
      Could you capture and send us the output of snmprec against one of
      these devices so that we could take a look at supporting it in
      OSS_SNMP?<br>
      <br>
      <blockquote type="cite">$ mkdir snmpsim<br>
        $ cd snmpsim<br>
        $ virtualenv env<br>
        $ . env/bin/activate<br>
        $ pip install snmpsim<br>
        $ env/bin/snmpsim-record-commands --agent-udpv4-endpoint=x.x.x.x
        --output-file=output.snmprec --protocol-version 2c --community
        mycommunity --use-getbulk  --stop-object  .1.3.6.1.2.1.1
        --stop-object  .1.3.6.1.2.1.4<br>
      </blockquote>
    </blockquote>
    I'm not familiar with the tool, so I may be doing it wrong. When
    running, I see something like this:<br>
    SNMP version 2c, Community name: <hidden> <br>
    Querying UDP/IPv4 agent at <b>10.26.0.100:161</b> <br>
    Agent response timeout: 3 secs, retries: 3 <br>
    Sending initial GETBULK request for 1.3.6 (stop at
    1.3.6.1.2.1.4).... <br>
    OIDs dumped: 0/100 <br>
    OIDs dumped: 0/200 <br>
    OIDs dumped: 0/300 <br>
    OIDs dumped: 0/400 <br>
    OIDs dumped: 0/500 <br>
    OIDs dumped: 0/600 <br>
    OIDs dumped: 0/700 <br>
    OIDs dumped: 0/800 <br>
    OIDs dumped: 0/900 <br>
    OIDs dumped: 0/1000 <br>
    OIDs dumped: 0/1100 <br>
    OIDs dumped: 0/1200 <br>
    OIDs dumped: 0/1300 <br>
    OIDs dumped: 0/1400 <br>
    (hangs)<br>
    <br>
    It then just hangs there. I thought maybe that's to do with the
    Nokia, but it also does that with Centec and Arista switches in our
    peeringlan. It does however output a file. I tried omitting the
    --stop-object flags, and it sent an initial getbulk for a bunch more
    (3600 or so OIDs) but then also just hangs. I took a look on
    <a class="moz-txt-link-freetext" href="https://github.com/etingof/snmpsim/blob/master/README.md">https://github.com/etingof/snmpsim/blob/master/README.md</a> and there
    it wanted to use GETNEXT, so I omitted the --use-getbulk flag also,
    however in any mode (with or without stop, with getnext or getbulk),
    it'll not complete with something like `OIDs dumped: 182, elapsed:
    11.97 sec, rate: 7.00 OIDs/sec, errors: 0` in the README.<br>
    <br>
    Comparing with just 'snmp walk', I can see IF-MIB::IfDescr pop up
    revealing that the Nokia switch is sending strings like these:<br>
    iso.3.6.1.2.1.2.2.1.2.16382 = STRING: "ethernet-1/1, \"Infra: csw150
    eth-0-3\""<br>
    iso.3.6.1.2.1.2.2.1.2.49150 = STRING: "ethernet-1/2, \"Infra: csw150
    eth-0-4\""<br>
    iso.3.6.1.2.1.2.2.1.2.81918 = STRING: "ethernet-1/3, \"Infra: csw151
    eth-0-3\""<br>
    iso.3.6.1.2.1.2.2.1.2.114686 = STRING: "ethernet-1/4, \"Infra:
    csw151 eth-0-4\""<br>
    iso.3.6.1.2.1.2.2.1.2.131073 = STRING: "ethernet-1/5.0"<br>
    iso.3.6.1.2.1.2.2.1.2.147454 = STRING: "ethernet-1/5, \"Infra:
    asw110 ethernet31\""<br>
    iso.3.6.1.2.1.2.2.1.2.163841 = STRING: "ethernet-1/6.0"<br>
    iso.3.6.1.2.1.2.2.1.2.180222 = STRING: "ethernet-1/6, \"Infra:
    asw110 ethernet32\""<br>
    <br>
    The corresponding IF-MIB::IfAlias are:<br>
    iso.3.6.1.2.1.31.1.1.1.18.16382 = STRING: "Infra: csw150 eth-0-3"<br>
    iso.3.6.1.2.1.31.1.1.1.18.49150 = STRING: "Infra: csw150 eth-0-4"<br>
    iso.3.6.1.2.1.31.1.1.1.18.81918 = STRING: "Infra: csw151 eth-0-3"<br>
    iso.3.6.1.2.1.31.1.1.1.18.114686 = STRING: "Infra: csw151 eth-0-4"<br>
    iso.3.6.1.2.1.31.1.1.1.18.147454 = STRING: "Infra: asw110
    ethernet31"<br>
    iso.3.6.1.2.1.31.1.1.1.18.180222 = STRING: "Infra: asw110
    ethernet32"<br>
    <br>
    And IF-MIB::IfName are:<br>
    iso.3.6.1.2.1.31.1.1.1.1.16382 = STRING: "ethernet-1/1"<br>
    iso.3.6.1.2.1.31.1.1.1.1.49150 = STRING: "ethernet-1/2"<br>
    iso.3.6.1.2.1.31.1.1.1.1.81918 = STRING: "ethernet-1/3"<br>
    iso.3.6.1.2.1.31.1.1.1.1.114686 = STRING: "ethernet-1/4"<br>
    iso.3.6.1.2.1.31.1.1.1.1.131073 = STRING: "ethernet-1/5.0"<br>
    iso.3.6.1.2.1.31.1.1.1.1.147454 = STRING: "ethernet-1/5"<br>
    iso.3.6.1.2.1.31.1.1.1.1.163841 = STRING: "ethernet-1/6.0"<br>
    <br>
    I'd like to get you that snmprec output but it never actually gets
    to the IfDescr OIDs. Am I missing something? <br>
    <br>
    groet,<br>
    Pim
    <pre class="moz-signature" cols="72">-- 
Pim van Pelt <a class="moz-txt-link-rfc2396E" href="mailto:pim@ipng.ch"><pim@ipng.ch></a>
PBVP1-RIPE <a class="moz-txt-link-freetext" href="https://ipng.ch/">https://ipng.ch/</a></pre>
    <br>
  </body>
</html>