You are not logged in.
Hi,
I am running a glpi V10 on debian 12. It seems to be a unrecognised hardware? Can anyone give me a hint?
When I do a glpi-netdiscovery --first 192.168.0.252 --last 192.168.0.252 --inventory
My output looks like:
<?xml version="1.0" encoding="UTF-8"?>
<REQUEST>
<CONTENT>
<DEVICE>
<DNSHOSTNAME>192.168.0.252</DNSHOSTNAME>
<IP>192.168.0.252</IP>
</DEVICE>
<MODULEVERSION>5.1</MODULEVERSION>
<PROCESSNUMBER>1</PROCESSNUMBER>
</CONTENT>
<DEVICEID>foo</DEVICEID>
<QUERY>NETDISCOVERY</QUERY>
</REQUEST>
[info] [thread 1] #1, Skipping inventory for 192.168.0.252 on not recognized device type
My test on my bash shell
snmpwalk -v 2c -c Public 192.168.0.252
iso.3.6.1.2.1.1.1.0 = STRING: "SG300-20 20-Port Gigabit Managed Switch"
iso.3.6.1.2.1.1.2.0 = OID: iso.3.6.1.4.1.9.6.1.83.20.1
iso.3.6.1.2.1.1.3.0 = Timeticks: (1934116508) 223 days, 20:32:45.08
iso.3.6.1.2.1.1.4.0 = ""
iso.3.6.1.2.1.1.5.0 = STRING: "switch53bea5"
iso.3.6.1.2.1.1.6.0 = ""
iso.3.6.1.2.1.1.7.0 = INTEGER: 2
iso.3.6.1.2.1.1.8.0 = Timeticks: (0) 0:00:00.00
iso.3.6.1.2.1.1.9.1.2.1 = OID: iso.3.6.1.4.1.89.73
iso.3.6.1.2.1.1.9.1.3.1 = STRING: "RS capabilities"
iso.3.6.1.2.1.1.9.1.4.1 = Timeticks: (0) 0:00:00.00
iso.3.6.1.2.1.2.1.0 = INTEGER: 32
Last edited by krischeu (2023-11-13 09:54:29)
Offline
glpi-netdiscovery --v2c --community Public --host 192.168.0.252
This is a little bit curious.
<?xml version="1.0" encoding="UTF-8"?>
<REQUEST>
<CONTENT>
<DEVICE>
<AUTHSNMP>1</AUTHSNMP>
<DESCRIPTION>SG300-20 20-Port Gigabit Managed Switch</DESCRIPTION>
<DNSHOSTNAME>192.168.0.252</DNSHOSTNAME>
<IP>192.168.0.252</IP>
<MANUFACTURER>Cisco</MANUFACTURER>
<MODEL>SG300-20</MODEL>
<SNMPHOSTNAME>switch53bea5</SNMPHOSTNAME>
<TYPE>NETWORKING</TYPE>
<UPTIME>223 days, 21:13:46.08</UPTIME>
</DEVICE>
<MODULEVERSION>5.1</MODULEVERSION>
<PROCESSNUMBER>1</PROCESSNUMBER>
</CONTENT>
<DEVICEID>foo</DEVICEID>
<QUERY>NETDISCOVERY</QUERY>
</REQUEST>
And it looks like - this is working
glpi-netdiscovery --v2c --community Public --host 192.168.0.252 -s ./xmls/
--> There is still no entry for my Cisco Switch for injection to my glpi database
Last edited by krischeu (2023-11-13 09:04:58)
Offline
When I am in the folder netdiscovery i find an entry like this
/glpi/xmls/netdiscovery# cat 192.168.0.252.xml
<?xml version="1.0" encoding="UTF-8"?>
<REQUEST>
<CONTENT>
<DEVICE>
<AUTHSNMP>1</AUTHSNMP>
<DESCRIPTION>SG300-20 20-Port Gigabit Managed Switch</DESCRIPTION>
<DNSHOSTNAME>192.168.0.252</DNSHOSTNAME>
<IP>192.168.0.252</IP>
<MANUFACTURER>Cisco</MANUFACTURER>
<MODEL>SG300-20</MODEL>
<SNMPHOSTNAME>switch53bea5</SNMPHOSTNAME>
<TYPE>NETWORKING</TYPE>
<UPTIME>223 days, 21:14:22.08</UPTIME>
</DEVICE>
<MODULEVERSION>5.1</MODULEVERSION>
<PROCESSNUMBER>1</PROCESSNUMBER>
</CONTENT>
<DEVICEID>foo</DEVICEID>
<QUERY>NETDISCOVERY</QUERY>
</REQUEST>
Offline
Is there a way to do a inventory with cisco switches?
Offline
Hi,
can anybody give me a help at this problem?
Offline
Some help would be great
Offline
Did you solve your issue? Have similar problem. Some switches inventoring well, but some did not. See only name and system description, no ports information available.
Offline
No,
still unsolved.
But you are one step more than me.
Offline
Which version of the agent are you using to do the network discovery/network inventory tasks?
GLPI Collaborator and Plugin Developer.
My non-English comments are automated translations. Sorry for any confusion that causes.
Mes commentaires non anglais sont des traductions automatiques. Désolé pour toute confusion qui cause.
Mis comentarios que no están en inglés son traducciones automáticas. Perdón por cualquier confusión que cause.
Offline
How can I check the Version of the agent?
Offline
curl http://agentip:62354
Offline
Hi,
Agent-Version is 1.7.1_1
Offline
Is there a way to do a inventory with cisco switches?
Did you try to make rules for inventory from web UI?
Offline
How can I create those rules?
Offline
How can I create those rules?
Sorry for late answer.
Go to Administration - GLPI Inventory (you need to install glpi inventory plugin first) - Guide - SNMP Inventory.
Offline
Hi,
i went to: Administration/GLPI Inventory/Rules/Entity Rules for Computer
Criteria Itemtype is NetworkEquipment
And what have I to do else?
Offline
Hi,
i went to: Administration/GLPI Inventory/Rules/Entity Rules for ComputerCriteria Itemtype is NetworkEquipment
And what have I to do else?
I leave default rules
prnt.sc/vB-1d5vWJKsJ
Offline