You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2023-03-16 15:29:36

GuidoLondon
Member
From: London
Registered: 2022-08-18
Posts: 38

glpi-netinventory x snmp v3

I am trying to get the network inventory to work with snmp v3 but seem to struggle with a couple of points:

  1. In the GUI (GLPI 10.0.6 and glpi-agent 1.5-git9006c609) I can't find where to select the credentials when creating the task.

  2. On command line I'm struggling with the syntax. We use sha and aes128 for encryption but not sure how to specify this on command line. Tried the following but no luck:

glpi-netinventory --host <IP address> --credentials version:3,username:engv3ro,authpassword:sha:”password!”,privpassword:aes:”password!”

Any help is highly appreciated.

Last edited by GuidoLondon (2023-03-16 15:30:12)


Full time system engineer, part time human being.

Offline

#2 2023-03-16 18:45:34

gbougard
Moderator
From: Montpellier, France
Registered: 2021-07-21
Posts: 537
Website

Re: glpi-netinventory x snmp v3

Hi GuidoLondon,

in GUI, you have first to associate credentials to ip ranges. So you can choose the credential when editing the ip range you're using for your task.

For the command line, you have to use something like:

glpi-netinventory --host <IP address> --credentials version:3,username:engv3ro,authprotocol:sha,authpassword:”password!”,privprotocol:aes,privpassword:”password!”

This is documented in details for the "--credentials" parameter there:
https://glpi-agent.readthedocs.io/en/la … ntory.html


GLPI-Agent developer from Teclib' and GLPI-Network team
Previously FusionInventory-Agent maintainer

Offline

#3 2023-03-21 18:42:34

GuidoLondon
Member
From: London
Registered: 2022-08-18
Posts: 38

Re: glpi-netinventory x snmp v3

Thank you @gbougard,

I managed to get it to work via the command line but since our passwords contain a special character it only works when I use the right kind of quotation marks for the passwords.
I can't seem to get it to work through the GUI though. Do I have to use quotation marks in the GUI too when entering our passwords?

Thank you

Last edited by GuidoLondon (2023-03-21 18:45:39)


Full time system engineer, part time human being.

Offline

#4 2023-03-23 12:15:44

gbougard
Moderator
From: Montpellier, France
Registered: 2021-07-21
Posts: 537
Website

Re: glpi-netinventory x snmp v3

Hi GuidoLondon,

if the GUI doesn't support you password, this may be a bug which should be fixed in the plugin. Please open an issue against glpi-inventory-plugin project. Provide a long password with many special chars including the one you think doesn't work. You can eventually check the value set in database : if it is wrong, you may try to reset it in database directly.

By now, you should probably change your password to not use that special char making the password longer to still match the expected security level.


GLPI-Agent developer from Teclib' and GLPI-Network team
Previously FusionInventory-Agent maintainer

Offline

Board footer

Powered by FluxBB