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.

SNMP setup on OCS 2.5 Ubuntu 16.04

Hi,

I have set up OCS server 2.5 on a linux machine. For testing purpose i have installed OCS Windows agent version 2.4 on 2 PCs on same network. The server is able to take inventory of the machines on which the agent is installed.

Now i am trying to set up OCS SNMP feature to get the inventory of the Network printers and also the machines on the network on which agent is not installed.

I have tried this link: https://wiki.ocsinventory-ng.org/06.Network-Discovery-with-OCS-Inventory-NG/Using-SNMP-scan-feature/

but this did not work for me. No SNMP devices are shown.

Can anyone please help me out in setting up the SNMP feature???

Also all the network devices are listed under the Network>IpDiscover tab. But when checking Network>SNMP no data is available.

Thanks in advance smiley

in SNMP by (180 points)

3 Answers

0 votes
Hi,

You have installed the agent on the ocs server or on different machine? In both cases could you please ocsinventory-agent.log file content, plz. Have you got errors in this file?

Regards

Frank
by (90.4k points)
0 votes
Thanks for your reply @frankb

No, i have installed agent on separate machine which is on the same network. Also the OCS server is installed on a virtual machine(Virtual Box) on my laptop.

I think i have found the log file...please see if this is the content u had asked for.

Starting OCS Inventory NG Agent on Tuesday, April 21, 2020 10:30:06.
AGENT => Running OCS Inventory NG Agent Version 2.4.0.0
AGENT => Using OCS Inventory NG FrameWork Version 2.4.0.0
AGENT => Loading plug-in(s)
    DLL PLUGIN => Searching for Plug-in DLL(s) in folder <C:\Program Files (x86)\OCS Inventory Agent\plugins>
    DLL PLUGIN => 0 DLL Plug-in(s) successfully loaded on 0 DLL(s) found
AGENT => Using network connection with Communication Server
    COM PROVIDER => Loading Communication Provider <C:\Program Files (x86)\OCS Inventory Agent\ComHTTP.dll>
AGENT => Using Communication Provider <OCS Inventory NG cURL Communication Provider> Version <2.4.0.0>
AGENT => Sending Prolog
    DID_CHECK => Read DeviceID <DESKTOP-H34EIO4-2020-03-30-10-43-20> and MACs <F2:66:90:62:01:DAC8:FF:28:CF:13:B8FC:DE:56:FF:01:069E:66:8A:CE:6B:030A:00:27:00:00:141C:39:47:B7:62:B7> in file <ocsinventory.dat>
    COM SERVER => Initializing cURL library for sendRequest
    COM SERVER => Using cURL without server authentication
    COM SERVER => Disabling cURL proxy support
    COM SERVER => Disabling cURL SSL server validation support
    COM SERVER => Sending HTTP Post request to URL <http://192.168.0.122/ocsinventory>
    COM SERVER => HTTP Post response received <HTTP Status Code #200>
    COM SERVER => Cleaning cURL library
AGENT => Prolog successfully sent
    AGENT => Prolog Frequency set to 24 hour(s)
    AGENT => Inventory on startup option set to 1
AGENT => Inventory required
AGENT => Launching hardware and software checks
    INVENTORY => Loading Download history
    INVENTORY => Logged on user ID is <MyPC>
    INVENTORY => Operating System is <Microsoft Windows 10 Pro 10.0.15063 >, description <>
    INVENTORY => Operating System uses 64 bits memory address width
    INVENTORY => Computer domain or workgroup is <WORKGROUP>
    INVENTORY => User domain is <>
    INVENTORY => System Manufacturer <LENOVO>, System Model <80LD>, System S/N <MP12HSG0>, Bios Manufacturer <LENOVO>, Bios Date <03/08/2016>, Bios Version <B2CN29WW(V2.02.GOA)>, Motherboard Manufacturer <LENOVO>, Motherboard Model <Lenovo B41-35>, Motherboard S/N <MP12HSG0>
    INVENTORY => 1 processor(s) AMD A6-7310 APU with AMD Radeon R4 Graphics [4 core(s) x86_64] at 2000 MHz
    INVENTORY => OS Memory 3542 MB, OS Swap size 6437 MB
    INVENTORY => 2 memory slot(s) found
    INVENTORY => 3 input device(s) found
    INVENTORY => 13 system port(s) found
    INVENTORY => 6 system slot(s) found
    INVENTORY => 5 system controller(s) found
    INVENTORY => 2 storage peripheral(s) found
    INVENTORY => 2 sound device(s) found
    WARNING *** INVENTORY => Failed to retrieve modems
    INVENTORY => 3 network adapter(s) found
    INVENTORY => 9 system printer(s) found
    INVENTORY => 1 video adapter(s) found
    INVENTORY => 1 system monitor(s) found
    INVENTORY => Default IPv4 address is <192.168.137.1>
    INVENTORY => Registered company <>, registered owner <Windows User>, Product ID <00331-10...>
    INVENTORY => Product key <W269N-WF...>
    INVENTORY => 189 software found
    INVENTORY => Computer/VM UUID is <CFDB7BDF-E817-11E5-B27E-1C3947B762B7>
    INVENTORY => Computer seems to be Microsoft virtual host
    INVENTORY => Bogus summed Memory Slots, 4096 is too far from 3542 (keeping the last one)
    INVENTORY => Reading last inventory state
    EXECUTABLE PLUGIN => Searching for VBS script(s) in folder <C:\Program Files (x86)\OCS Inventory Agent\plugins>
    EXECUTABLE PLUGIN => Searching for PS1 script(s) in folder <C:\Program Files (x86)\OCS Inventory Agent\plugins>
AGENT => Sending Inventory
    INVENTORY => Checking last inventory state
    INVENTORY => Logical drives inventory state changed
    INVENTORY => Software inventory state changed
INVENTORY => Inventory changed since last run
    INVENTORY => Generating XML document with Device properties
    INVENTORY => XML Update BIOS
    INVENTORY => XML Update 1 CPU(s)
    INVENTORY => XML Update 2 Memory Slot(s)
    INVENTORY => XML Update 3 Input Device(s)
    INVENTORY => XML Update 13 System Port(s)
    INVENTORY => XML Update 5 System Controller(s)
    INVENTORY => XML Update 6 System Slot(s)
    INVENTORY => XML Update 2 Sound Device(s)
    INVENTORY => XML Update 2 Storage Peripheral(s)
    INVENTORY => XML Update 4 Logical Drive(s)
    INVENTORY => XML Update 0 Modem(s)
    INVENTORY => XML Update 3 Network Adapter(s)
    INVENTORY => XML Update 1 Video Adapter(s)
    INVENTORY => XML Update 1 Monitor(s)
    INVENTORY => XML Update 9 Printer(s)
    INVENTORY => XML Update 190 Software
    INVENTORY => XML Update 0 Registry Value(s)
    INVENTORY => XML Update Administrative Information(s)
    INVENTORY => XML Update common Device properties
    COM SERVER => Initializing cURL library for sendRequest
    COM SERVER => Using cURL without server authentication
    COM SERVER => Disabling cURL proxy support
    COM SERVER => Disabling cURL SSL server validation support
    COM SERVER => Sending HTTP Post request to URL <http://192.168.0.122/ocsinventory>
    COM SERVER => HTTP Post response received <HTTP Status Code #200>
    COM SERVER => Cleaning cURL library
AGENT => Inventory successfully sent
    INVENTORY => Writing new inventory state
AGENT =>  Communication Server asked for Package Download
    DOWNLOAD => Package history file successfully cleaned for duplicate IDs
    DOWNLOAD => Download disabled by server
AGENT => Unloading communication provider
AGENT => Unloading plug-in(s)
AGENT => Execution duration: 00:00:11.
by (180 points)
edited by
0 votes
Hi,

Did you configure snmp as it's described in the documentation? Have you enabled snmp on the devices you want to inventory?

Regards

Frank
by (90.4k points)
 
Powered by Question2Answer
...