iftype for bond

2020-03-27 Thread Michael Wu
Dear Net-Snmp coders: On the device I am working on there are bond interfaces configured and the snmpwalk of IF-MIB::ifType (1.3.6.1.2.1.2.2.1.3) returns INTEGER: ethernetCsmacd(6) for both physical interfaces and bond interfaces. Juniper devices returns ieee8023adLag(161) for bond interfaces. Sho

Re: Get interface IPV6 addresses

2020-02-27 Thread Michael Wu
:ipAddressIfIndex.ipv6."20:01:04:70:df:9a:00:00:00:00:00:00:00:00:00:01" = INTEGER: 2 2. Then get ifName from ifIndex Niels, Thank you for your help, Michael On Thu, Feb 27, 2020 at 1:31 PM Niels Baggesen wrote: > Den 27-02-2020 kl. 18:40 skrev Michael Wu: > > Dear Net-Snmp

Get interface IPV6 addresses

2020-02-27 Thread Michael Wu
Dear Net-Snmp coders: I am using net-snmp v5.8 with ipv6 enabled. Trying to get interface's ipv6 addresses. I tried a couple of oids but could not figure out how to map the ifindex to the ipv6 address assigned to the interfaces. All interfaces have both ipv4 and ipv6 addresses assigned. 1. The ip

pass_persist counter32

2019-02-09 Thread Michael Wu
Hi All, The counter32 value returned from pass_persist script never wraps around on my system (debian ppc) it remains at 2^32-1 with counter value more than 2^32-1. In netsnmp_internal_pass_parse() in pass_common.c else if (!strncasecmp(buf, "counter", 7)) { *var_len = sizeof(long_ret

Query MIB internally during snmpd initialization

2018-08-13 Thread Michael Wu
I have a situation where the pass persist scripts take some time to run due to the size of the custom mibs it needs to generate. When pass persist script gets started by snmpd, the external query (snmpwalk for example) would time out. To get around this issue I was thinking to let snmpd start the p