Hello,
i am unable to scan via snmp the devices, all is set but the log is telling that no scan is possbile.
Can you please help me?
[Fri Dec 4 16:44:06 2020][debug] Ocsinventory unified agent for UNIX, Linux and MacOSX 2.8.0
[Fri Dec 4 16:44:06 2020][debug] Log system initialised (File)
[Fri Dec 4 16:44:06 2020][debug] --scan-homedirs missing. Don't scan user directories
[Fri Dec 4 16:44:06 2020][debug] Accountinfo file: /var/lib/ocsinventory-agent/https:__ocsng.codearchitects.com_ocsinventory/ocsinv.adm
[Fri Dec 4 16:44:07 2020][debug] OCS Agent initialised
[Fri Dec 4 16:44:07 2020][debug] Turns hooks on for /etc/ocsinventory/modules.conf
[Fri Dec 4 16:44:07 2020][debug] Ocsinventory unified agent for UNIX, Linux and MacOSX 2.8.0
[Fri Dec 4 16:44:07 2020][debug] Log system initialised (File)
[Fri Dec 4 16:44:07 2020][debug] Ocsinventory unified agent for UNIX, Linux and MacOSX 2.8.0
[Fri Dec 4 16:44:07 2020][debug] Log system initialised (File)
[Fri Dec 4 16:44:07 2020][debug] Calling handlers : `start_handler'
[Fri Dec 4 16:44:07 2020][debug] [download] Calling download_start_handler
[Fri Dec 4 16:44:07 2020][debug] - LWP loaded
[Fri Dec 4 16:44:07 2020][debug] - LWP::Protocol::https loaded
[Fri Dec 4 16:44:07 2020][debug] [snmpscan] Calling snmp_start_handler
[Fri Dec 4 16:44:07 2020][debug] - Net::SNMP loaded
[Fri Dec 4 16:44:07 2020][debug] Compress::Zlib is available.
[Fri Dec 4 16:44:07 2020][debug] Calling handlers : `prolog_writer'
[Fri Dec 4 16:44:07 2020][debug] sending XML
[Fri Dec 4 16:44:07 2020][debug] sending: <?xml version="1.0" encoding="UTF-8"?>
<REQUEST>
<DEVICEID>srvvocs-2020-12-03-18-14-36</DEVICEID>
<QUERY>PROLOG</QUERY>
</REQUEST>
[Fri Dec 4 16:44:07 2020][debug] =BEGIN=SERVER RET======
[Fri Dec 4 16:44:07 2020][debug] $VAR1 = '<?xml version=\'1.0\' encoding=\'UTF-8\'?>
<REPLY>
<INVENTORY_ON_STARTUP>1</INVENTORY_ON_STARTUP>
<OPTION>
<PARAM IPDISC_LAT="100">192.168.1.0</PARAM>
<NAME>IPDISCOVER</NAME>
</OPTION>
<OPTION>
<PARAM PERIOD_LATENCY="1" TIMEOUT="30" PERIOD_LENGTH="10" ON="0" TYPE="CONF" CYCLE_LATENCY="60" FRAG_LATENCY="10" EXECUTION_TIMEOUT="120" />
<NAME>DOWNLOAD</NAME>
</OPTION>
<OPTION>
<PARAM SUBNET="192.168.1.0/24" TYPE="NETWORK" />
<PARAM SUBNET=" 192.168.254.0/24" TYPE="NETWORK" />
<PARAM OID="1.3.6.1.2.1.1.1" CONDITION_OID="1.3.6.1.2.1.1.1.0" LABEL_NAME="Description" TYPE="SNMP_TYPE" CONDITION_VALUE="SG550XG-24F 24-Port 10G SFP+ Stackable Managed Switch" TABLE_TYPE_NAME="snmp_cisco_switch" TYPE_NAME="CISCO SWITCH" />
<PARAM OID="1.3.6.1.2.1.1.5" CONDITION_OID="1.3.6.1.2.1.1.1.0" LABEL_NAME="Name" TYPE="SNMP_TYPE" CONDITION_VALUE="SG550XG-24F 24-Port 10G SFP+ Stackable Managed Switch" TABLE_TYPE_NAME="snmp_cisco_switch" TYPE_NAME="CISCO SWITCH" />
<PARAM OID="1.3.6.1.2.1.1.1" CONDITION_OID="1.3.6.1.2.1.1.1.0" LABEL_NAME="Description" TYPE="SNMP_TYPE" CONDITION_VALUE="Fortigate" TABLE_TYPE_NAME="snmp_firewall" TYPE_NAME="FIREWALL" />
<PARAM OID="1.3.6.1.2.1.1.5" CONDITION_OID="1.3.6.1.2.1.1.1.0" LABEL_NAME="Name" TYPE="SNMP_TYPE" CONDITION_VALUE="Fortigate" TABLE_TYPE_NAME="snmp_firewall" TYPE_NAME="FIREWALL" />
<PARAM AUTHKEY="" USERNAME="" AUTHPASSWD="" TYPE="COMMUNITY" NAME="*******" VERSION="2c" />
<PARAM AUTHKEY="" USERNAME="" AUTHPASSWD="" TYPE="COMMUNITY" NAME="public" VERSION="2" />
<PARAM AUTHKEY="" USERNAME="" AUTHPASSWD="" TYPE="COMMUNITY" NAME="public" VERSION="2c" />
<PARAM AUTHKEY="" USERNAME="" AUTHPASSWD="" TYPE="COMMUNITY" NAME="public" VERSION="1" />
<PARAM AUTHKEY="" USERNAME="" AUTHPASSWD="" TYPE="COMMUNITY" NAME="****" VERSION="2c" />
<NAME>SNMP</NAME>
</OPTION>
<RESPONSE>SEND</RESPONSE>
<PROLOG_FREQ>24</PROLOG_FREQ>
</REPLY>
';
[Fri Dec 4 16:44:07 2020][debug] =END=SERVER RET======
[Fri Dec 4 16:44:07 2020][debug] PROLOG_FREQ has not changed since last process
[Fri Dec 4 16:44:07 2020][debug] Calling handlers : `prolog_reader'
[Fri Dec 4 16:44:07 2020][debug] [download] Calling download_prolog_reader
[Fri Dec 4 16:44:07 2020][debug] [download] <?xml version='1.0' encoding='UTF-8'?>
<REPLY>
<INVENTORY_ON_STARTUP>1</INVENTORY_ON_STARTUP>
<OPTION>
<PARAM IPDISC_LAT="100">192.168.1.0</PARAM>
<NAME>IPDISCOVER</NAME>
</OPTION>
<OPTION>
<PARAM PERIOD_LATENCY="1" TIMEOUT="30" PERIOD_LENGTH="10" ON="0" TYPE="CONF" CYCLE_LATENCY="60" FRAG_LATENCY="10" EXECUTION_TIMEOUT="120" />
<NAME>DOWNLOAD</NAME>
</OPTION>
<OPTION>
<PARAM SUBNET="192.168.1.0/24" TYPE="NETWORK" />
<PARAM SUBNET=" 192.168.254.0/24" TYPE="NETWORK" />
<PARAM OID="1.3.6.1.2.1.1.1" CONDITION_OID="1.3.6.1.2.1.1.1.0" LABEL_NAME="Description" TYPE="SNMP_TYPE" CONDITION_VALUE="SG550XG-24F 24-Port 10G SFP+ Stackable Managed Switch" TABLE_TYPE_NAME="snmp_cisco_switch" TYPE_NAME="CISCO SWITCH" />
<PARAM OID="1.3.6.1.2.1.1.5" CONDITION_OID="1.3.6.1.2.1.1.1.0" LABEL_NAME="Name" TYPE="SNMP_TYPE" CONDITION_VALUE="SG550XG-24F 24-Port 10G SFP+ Stackable Managed Switch" TABLE_TYPE_NAME="snmp_cisco_switch" TYPE_NAME="CISCO SWITCH" />
<PARAM OID="1.3.6.1.2.1.1.1" CONDITION_OID="1.3.6.1.2.1.1.1.0" LABEL_NAME="Description" TYPE="SNMP_TYPE" CONDITION_VALUE="Fortigate" TABLE_TYPE_NAME="snmp_firewall" TYPE_NAME="FIREWALL" />
<PARAM OID="1.3.6.1.2.1.1.5" CONDITION_OID="1.3.6.1.2.1.1.1.0" LABEL_NAME="Name" TYPE="SNMP_TYPE" CONDITION_VALUE="Fortigate" TABLE_TYPE_NAME="snmp_firewall" TYPE_NAME="FIREWALL" />
<PARAM AUTHKEY="" USERNAME="" AUTHPASSWD="" TYPE="COMMUNITY" NAME="****" VERSION="2c" />
<PARAM AUTHKEY="" USERNAME="" AUTHPASSWD="" TYPE="COMMUNITY" NAME="public" VERSION="2" />
<PARAM AUTHKEY="" USERNAME="" AUTHPASSWD="" TYPE="COMMUNITY" NAME="public" VERSION="2c" />
<PARAM AUTHKEY="" USERNAME="" AUTHPASSWD="" TYPE="COMMUNITY" NAME="public" VERSION="1" />
<PARAM AUTHKEY="" USERNAME="" AUTHPASSWD="" TYPE="COMMUNITY" NAME="****" VERSION="2c" />
<NAME>SNMP</NAME>
</OPTION>
<RESPONSE>SEND</RESPONSE>
<PROLOG_FREQ>24</PROLOG_FREQ>
</REPLY>
[Fri Dec 4 16:44:42 2020][debug] =BEGIN=SERVER RET======
[Fri Dec 4 16:44:42 2020][debug] $VAR1 = '<?xml version=\'1.0\' encoding=\'UTF-8\'?>
<REPLY>
<RESPONSE>NO_ACCOUNT_UPDATE</RESPONSE>
</REPLY>
*** inventory omitted ***
[Fri Dec 4 16:44:42 2020][debug] =END=SERVER RET======
[Fri Dec 4 16:44:42 2020][debug] Calling handlers : `end_handler'
[Fri Dec 4 16:44:42 2020][debug] [download] Calling download_end_handler
[Fri Dec 4 16:44:42 2020][debug] [snmpscan] Calling snmp_end_handler
[Fri Dec 4 16:44:42 2020][debug] [snmpscan] Snmp: Scanning network
[Fri Dec 4 16:44:42 2020][info] [download] Beginning work. I am 5794.
[Fri Dec 4 16:44:42 2020][info] [download] Option turned off. Exiting.
[Fri Dec 4 16:44:42 2020][debug] [download] End of work...
[Fri Dec 4 16:44:42 2020][debug] - Net::Netmask loaded
[Fri Dec 4 16:44:42 2020][debug] - nmap found
[Fri Dec 4 16:44:42 2020][debug] [snmpscan] No scan possible
[Fri Dec 4 16:44:42 2020][debug] - Net::Netmask loaded
[Fri Dec 4 16:44:42 2020][debug] - nmap found
[Fri Dec 4 16:44:42 2020][debug] [snmpscan] No scan possible
[Fri Dec 4 16:44:42 2020][debug] [snmpscan] Snmp: Ending Scanning network
[Fri Dec 4 16:44:42 2020][info] [snmpscan] No more SNMP device to scan
[Fri Dec 4 16:44:42 2020][debug] sending XML
[Fri Dec 4 16:44:42 2020][debug] sending: <?xml version="1.0" encoding="UTF-8"?>
<REQUEST>
<DEVICEID>srvvocs-2020-12-03-18-14-36</DEVICEID>
<QUERY>SNMP</QUERY>
</REQUEST>
[Fri Dec 4 16:44:42 2020][debug] [snmpscan] End snmp_end_handler :)