Welcome to OCS Inventory NG community support, where you can ask questions and receive answers from other members of the community.

Please ask questions only in English or French.

Release 2.12.3 available

The official documentation can be found on https://wiki.ocsinventory-ng.org. Read it before asking your question.

Not sub network scan.

Conf: cat /etc/ocsinventory/ocsinventory-agent.cfg

ssl=1

ca=/etc/ssl/certs/ca.pem

basevardir=/var/lib/ocsinventory-agent

debug=1

server=https://ocs.xxxx.com.br/ocsinventory/

tag=TI

logger=Stderr

logfile=/var/log/ocsinventory-agent/ocsinventory-agent.log

SNMP_SWITCH=ON

SNMP_NETWORK=192.168.5.0/24 , 192.168.21.0/27

log ocs agent 
[Mon May 11 15:22:41 2020][debug] =END=SERVER RET======
[Mon May 11 15:22:41 2020][debug] Calling handlers : `end_handler'
[Mon May 11 15:22:41 2020][debug] [snmp] Calling snmp_end_handler
[Mon May 11 15:22:41 2020][debug] [snmp] Snmp: Scanning network
[Mon May 11 15:22:41 2020][debug] [snmp] Snmp: Ending Scanning network
[Mon May 11 15:22:41 2020][debug] [snmp] Scanning 172.16.1.86 device
[Mon May 11 15:23:05 2020][debug] [snmp] Failure in scanning Device 172.16.1.86: no snmp communication
[Mon May 11 15:23:05 2020][debug] [snmp] Scanning 172.16.1.24 device
[Mon May 11 15:23:29 2020][debug] [snmp] Failure in scanning Device 172.16.1.24: no snmp communication
[Mon May 11 15:23:29 2020][debug] [snmp] Scanning 172.16.1.70 device
[Mon May 11 15:23:53 2020][debug] [snmp] Failure in scanning Device 172.16.1.70: no snmp communication
[Mon May 11 15:23:53 2020][debug] [snmp] Scanning 172.16.1.53 device
[root@ocs ~]# ocsinventory-agent -V
Ocsinventory unified agent for UNIX, Linux and MacOSX (2.4.2)
Even with the subnet registered manually, the Agent cannot scan the network in question 192.168.21.0/27
in OCS Inventory NG agent for Unix by (200 points)

4 Answers

0 votes
Hi,

There is no nothing to do on the client. All is made on the server. Please read the documentation.

http://wiki.ocsinventory-ng.org/06.Network-Discovery-with-OCS-Inventory-NG/Using-SNMP-scan-feature/

Regards

Frank
by (90.4k points)
0 votes

FranK

Ocsinventory::Agent::Backend::IpDiscover::Nmap disabled because of a 'runMeIfTheseChecksFailed' in 'Ocsinventory::Agent::Backend::IpDiscover::Nmap'

I followed the documentation, I now have this error!

by (200 points)
0 votes
Have you installed nmap perl module and nmap on the client ?

Regards

Frank
by (90.4k points)
0 votes

yes.
 

the problem that I can't scan on other networks, which were registered on the web interface. Example: 192.168.5.0/24 192.168.21.0/27 OCS does not scan these other networks. on the network on which it is installed 172.16.1.0/24 works perfectly.

by (200 points)
 
Powered by Question2Answer
...