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.4.1 available

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

Pas de remontée de la carte réseau

Bonjour,

Sur certaines machines Linux, je n'arrive pas à remonter l'adresse IP du serveur.

Version agent: 2.3

Version Système: Centos 7.4.1708

Quand je lance un inventaire, j'ai ce message d'erreur dans le log:

pcilib: sysfs_read_vpd: read failed: Input/output error

J'ai installé le client à partir de l'archive et je l'ai compilé avec perl Makefile.pl, make et make install. Et les prérequis étaient apparemment respectés.


Merci de votre aide.

asked in OCS Inventory NG agent for Unix by (1k points)

4 Answers

0 votes
Bonjour

Merci de poster le contenu du fichier ocsinventory-agent.log

Cordialement

Frank
answered by (58.3k points)
0 votes

Centos 7 n'utilise pas ifconfig, tu dois installer le package pour avoir la fonction ifconfig. Par defaut, ce package n'est plus installer sur les nouvelles distros, car ils utilise ip addr. Par contre, OCS utilise ifconfig pour avoir l'info. J'espere que ca peut t'aider.

yum install net-tools
answered by (420 points)
0 votes

Ah oui d'accord. Effectivement cela a du sens. J'ai installé le paquet, j'ai bien récupéré l'adresse IP de ma machine. Par contre j'ai toujours l'erreur citée dans mon post initial. Voici le log:

[Tue Nov 28 18:40:38 2017][debug] Calling handlers : `start_handler'
[Tue Nov 28 18:40:38 2017][debug] [snmp] Calling snmp_start_handler
[Tue Nov 28 18:40:38 2017][debug]  - Net::SNMP loaded
[Tue Nov 28 18:40:38 2017][debug] Compress::Zlib is available.
[Tue Nov 28 18:40:38 2017][debug] Calling handlers : `prolog_writer'
[Tue Nov 28 18:40:38 2017][debug] sending XML
[Tue Nov 28 18:40:38 2017][debug] sending: <?xml version="1.0" encoding="UTF-8"?>
[Tue Nov 28 18:40:38 2017][debug] =END=SERVER RET======
[Tue Nov 28 18:40:38 2017][debug] PROLOG_FREQ has not changed since last process
[Tue Nov 28 18:40:38 2017][debug] Calling handlers : `prolog_reader'
[Tue Nov 28 18:40:38 2017][debug] [snmp] Calling snmp_prolog_reader
[Tue Nov 28 18:40:38 2017][debug]  - ipdiscover found
[Tue Nov 28 18:40:38 2017][debug]  - dmidecode found
[Tue Nov 28 18:40:38 2017][debug]  - dmidecode found
[Tue Nov 28 18:40:38 2017][debug]  - Sys::Hostname loaded
[Tue Nov 28 18:40:38 2017][debug]  - lspci found
[Tue Nov 28 18:40:38 2017][debug]  - lspci found
[Tue Nov 28 18:40:39 2017][debug]  - rpm found
[Tue Nov 28 18:40:39 2017][debug]  - /proc/cpuinfo can be read
[Tue Nov 28 18:40:39 2017][debug]  - hostname found
[Tue Nov 28 18:40:39 2017][debug]  - df found
[Tue Nov 28 18:40:39 2017][debug]  - pvs found
[Tue Nov 28 18:40:39 2017][debug]  - /proc/meminfo can be read
[Tue Nov 28 18:40:39 2017][debug]  - ip found
[Tue Nov 28 18:40:39 2017][debug]  - ifconfig found
[Tue Nov 28 18:40:39 2017][debug]  - route found
[Tue Nov 28 18:40:39 2017][debug]  - Net::IP qw(:PROC) loaded
[Tue Nov 28 18:40:39 2017][debug]  - lspci found
[Tue Nov 28 18:40:39 2017][debug]  - mount found
[Tue Nov 28 18:40:39 2017][debug]  - /proc/uptime can be read
[Tue Nov 28 18:40:39 2017][debug]  - dmidecode found
[Tue Nov 28 18:40:39 2017][debug] Running Ocsinventory::Agent::Backend::AccessLog
[Tue Nov 28 18:40:39 2017][debug] Running Ocsinventory::Agent::Backend::DeviceID
[Tue Nov 28 18:40:39 2017][debug] Running Ocsinventory::Agent::Backend::IpDiscover
[Tue Nov 28 18:40:39 2017][debug] Running Ocsinventory::Agent::Backend::IpDiscover::IpDiscover
[Tue Nov 28 18:40:39 2017][debug] Running Ocsinventory::Agent::Backend::OS::Generic
[Tue Nov 28 18:40:39 2017][debug] Running Ocsinventory::Agent::Backend::OS::Generic::Dmidecode
[Tue Nov 28 18:40:39 2017][debug] Running Ocsinventory::Agent::Backend::OS::Generic::Dmidecode::Batteries
[Tue Nov 28 18:40:39 2017][debug] Running Ocsinventory::Agent::Backend::OS::Generic::Dmidecode::Bios
[Tue Nov 28 18:40:39 2017][debug] Running Ocsinventory::Agent::Backend::OS::Generic::Dmidecode::Memory
[Tue Nov 28 18:40:39 2017][debug] Running Ocsinventory::Agent::Backend::OS::Generic::Dmidecode::Ports
[Tue Nov 28 18:40:39 2017][debug] Running Ocsinventory::Agent::Backend::OS::Generic::Dmidecode::Slots
[Tue Nov 28 18:40:39 2017][debug] Running Ocsinventory::Agent::Backend::OS::Generic::Dmidecode::UUID
[Tue Nov 28 18:40:39 2017][debug] Running Ocsinventory::Agent::Backend::OS::Generic::Hostname
[Tue Nov 28 18:40:39 2017][debug]  - Sys::Hostname loaded
[Tue Nov 28 18:40:39 2017][debug] Running Ocsinventory::Agent::Backend::OS::Generic::Lspci
[Tue Nov 28 18:40:39 2017][debug] Running Ocsinventory::Agent::Backend::OS::Generic::Lspci::Controllers
[Tue Nov 28 18:40:39 2017][debug] Running Ocsinventory::Agent::Backend::OS::Generic::Lspci::Modems
[Tue Nov 28 18:40:39 2017][debug] Running Ocsinventory::Agent::Backend::OS::Generic::Lspci::Sounds
[Tue Nov 28 18:40:39 2017][debug] Running Ocsinventory::Agent::Backend::OS::Generic::Lspci::Videos
[Tue Nov 28 18:40:39 2017][debug] Running Ocsinventory::Agent::Backend::OS::Generic::Packaging
[Tue Nov 28 18:40:39 2017][debug] Running Ocsinventory::Agent::Backend::OS::Generic::Packaging::ByHand
[Tue Nov 28 18:40:39 2017][debug] Running Ocsinventory::Agent::Backend::OS::Generic::Packaging::RPM
[Tue Nov 28 18:40:40 2017][debug] Running Ocsinventory::Agent::Backend::OS::Generic::Users
[Tue Nov 28 18:40:40 2017][debug] Running Ocsinventory::Agent::Backend::OS::Linux
[Tue Nov 28 18:40:40 2017][debug] Running Ocsinventory::Agent::Backend::OS::Linux::Archs::i386
[Tue Nov 28 18:40:40 2017][debug] Running Ocsinventory::Agent::Backend::OS::Linux::Archs::i386::CPU
[Tue Nov 28 18:40:40 2017][debug] Running Ocsinventory::Agent::Backend::OS::Linux::Distro::NonLSB
[Tue Nov 28 18:40:40 2017][debug] Running Ocsinventory::Agent::Backend::OS::Linux::Distro::NonLSB::CentOS
[Tue Nov 28 18:40:40 2017][debug] Running Ocsinventory::Agent::Backend::OS::Linux::Distro::NonLSB::Oracle
[Tue Nov 28 18:40:40 2017][debug] Running Ocsinventory::Agent::Backend::OS::Linux::Domains
[Tue Nov 28 18:40:40 2017][debug] Running Ocsinventory::Agent::Backend::OS::Linux::Drives
[Tue Nov 28 18:40:40 2017][debug]  - dumpe2fs found
[Tue Nov 28 18:40:40 2017][debug]  - dumpe2fs found
[Tue Nov 28 18:40:40 2017][debug]  - dumpe2fs found
[Tue Nov 28 18:40:40 2017][debug] Running Ocsinventory::Agent::Backend::OS::Linux::Inputs
[Tue Nov 28 18:40:40 2017][debug] Running Ocsinventory::Agent::Backend::OS::Linux::LVM
[Tue Nov 28 18:40:41 2017][debug]  - vgs found
[Tue Nov 28 18:40:41 2017][debug]  - lvs found
[Tue Nov 28 18:40:41 2017][debug] Running Ocsinventory::Agent::Backend::OS::Linux::Mem
[Tue Nov 28 18:40:41 2017][debug] Running Ocsinventory::Agent::Backend::OS::Linux::Network::IP
[Tue Nov 28 18:40:41 2017][debug]  - ip found
[Tue Nov 28 18:40:41 2017][debug] Running Ocsinventory::Agent::Backend::OS::Linux::Network::Networks
[Tue Nov 28 18:40:42 2017][debug]  - ip found
[Tue Nov 28 18:40:42 2017][debug] Running Ocsinventory::Agent::Backend::OS::Linux::Sounds
[Tue Nov 28 18:40:42 2017][debug] Running Ocsinventory::Agent::Backend::OS::Linux::Storages
[Tue Nov 28 18:40:42 2017][debug] runWithTimeout(): unexpected error: Can't call method "can_run" on an undefined value at /usr/local/share/perl5/Ocsinventory/Agent/Backend/OS/Linux/Storages.pm line 280.
[Tue Nov 28 18:40:42 2017][debug] Running Ocsinventory::Agent::Backend::OS::Linux::Sys
[Tue Nov 28 18:40:42 2017][debug] Running Ocsinventory::Agent::Backend::OS::Linux::Uptime
[Tue Nov 28 18:40:42 2017][debug] Running Ocsinventory::Agent::Backend::Virtualization::Vmsystem
[Tue Nov 28 18:40:42 2017][debug] Running Ocsinventory::Agent::Backend::Virtualization::Xen
[Tue Nov 28 18:40:42 2017][debug] Ocsinventory::Agent::Backend::Virtualization::Xen has no run() function -> ignored
[Tue Nov 28 18:40:42 2017][debug] Calling handlers : `inventory_handler'

answered by (1k points)
0 votes
Bonsoir,

Je ne vois pas l'erreur dans le fichier de log. L'agent récupère les adresses IP avec les commandes ip et ifconfig, priorité étant donnée à la commande ip.

Cordialement

Frank
answered by (58.3k points)
 
Powered by Question2Answer
...