Snmp-scan not wroking

Dear All
Greetings

I have a problem with snmp-scan.py, when I used it for adding device it gave me the following output.

-bash-4.2$ ./snmp-scan.py -v 10.0.4.1/32
Scanning IPs:
Scanned 10.0.4.1 Could not connect to 10.0.4.1, please check the snmp details and snmp reachability
SNMP v2c: No reply with community public
SNMP v3: No reply with credentials root/noAuthNoPriv
SNMP v3: No reply with credentials mydevice/authPriv
SNMP v1: No reply with community public
You my try with the --force option to skip safety checks
Scanned 1 IPs: 0 known devices, added 0 devices, failed to add 1 devices
Runtime: 30.55 seconds

I have test the device by using snmp-walk with the given snmp v3 info and it works fine

-bash-4.2$ snmpwalk -v3 -l authPriv -u mydevice -a MD5 -A “my-pass” -x AES -X “my-pass” 10.0.4.1
IF-MIB::ifNumber.0 = INTEGER: 158
IF-MIB::ifIndex.1 = INTEGER: 1
IF-MIB::ifIndex.2 = INTEGER: 2
IF-MIB::ifIndex.3 = INTEGER: 3
IF-MIB::ifIndex.4 = INTEGER: 4
IF-MIB::ifIndex.5 = INTEGER: 5
IF-MIB::ifIndex.6 = INTEGER: 6
IF-MIB::ifIndex.7 = INTEGER: 7
IF-MIB::ifIndex.8 = INTEGER: 8
IF-MIB::ifIndex.9 = INTEGER: 9
IF-MIB::ifIndex.10 = INTEGER: 10
IF-MIB::ifIndex.31 = INTEGER: 31
IF-MIB::ifIndex.32 = INTEGER: 32
IF-MIB::ifIndex.33 = INTEGER: 33
IF-MIB::ifIndex.34 = INTEGER: 34

- The output of ./validate.php

-bash-4.2$ ./validate.php

Component Version
LibreNMS 22.4.0-11-g30c4e91
DB Schema 2022_04_08_085504_isis_adjacencies_table_add_index (236)
PHP 7.3.33
Python 3.8.12
MySQL 10.5.15-MariaDB
RRDTool 1.4.8
SNMP 5.7.2

====================================

[OK] Composer Version: 2.3.5
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database schema correct
[WARN] Your install is over 24 hours out of date, last update: Sat, 23 Apr 2022 13:47:35 +0000
[FIX]:
Make sure your daily.sh cron is running and run ./daily.sh by hand to see if there are any errors.

any one could help :slight_smile:

run scan with -vv option and post the output

Hi RR1
Thanks for posting, I tried to manipulate the config.php, and in the last we get snmp worked

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.