ssosgar
February 23, 2023, 4:31am
1
I develop a new router with openwrt and I want to modify or create my own MIB file for SNMP manager monitoring
I already instal snmpd in my router and I can execute snmpwalk by console using Putty by SSH conection
''''snmpwalk -v2c -c public localhost
SNMPv2-MIB::sysDescr.0 = STRING: Linux Nestor742023 5.4.164 #0 SMP PREEMPT Tue Jun 14 09:13:25 2022 armv7l
SNMPv2-MIB::sysObjectID.0 = OID: NET-SNMP-MIB::netSnmpAgentOIDs.10
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (5166) 0:00:51.66
SNMPv2-MIB::sysContact.0 = STRING: nestor.martinez@detecmx.com
SNMPv2-MIB::sysName.0 = STRING: DETEC DRQ-100 TEST
SNMPv2-MIB::sysLocation.0 = STRING: Laboratorio''''
but when I want to use Paesler SNMP Tester also conected by ethernet same that Putty send me an error
(SNMP error # -2003) this means that is unreacheable
My question is how can I resolve this error and how can I modify MIB file to add OID related to modem conection
You did not provide enough information.
PuTTY?
Your commands above tested SNMP from localhost. You should explain if your server is connected to LAN or WAN. Also, your firewall details.
ssosgar
February 24, 2023, 10:35pm
3
I am connecting my laptop with ethernet cable LAN and access to the router by ethernet cable using Putty I can connect by ssh to port 22 and enter the console of the router
iptables -L -n -v
Show
Chain zone_wan_input (2 references)
pkts bytes target prot opt in out source destination
0 0 ACCEPT udp -- * * 0.0.0.0/0 0.0.0.0/0 udp dpt:161
ssosgar
February 24, 2023, 10:39pm
5
Chain zone_lan_input (2 references)
pkts bytes target prot opt in out source destination
0 0 input_lan_rule all -- * * 0.0.0.0/0 0.0.0.0/0 /* !fw3: Custom lan input rule chain /
0 0 ACCEPT all -- * * 0.0.0.0/0 0.0.0.0/0 ctstate DNAT / !fw3: Accept port redirections /
0 0 zone_lan_src_ACCEPT all -- * * 0.0.0.0/0 0.0.0.0/0 / !fw3 */