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-11-10 10:13:03

krischeu
Member
Registered: 2023-10-26
Posts: 40

GLPI-Netdiscovery is not recognising my CISCO Switch SG300-20

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

#2 2023-11-10 10:53:24

krischeu
Member
Registered: 2023-10-26
Posts: 40

Re: GLPI-Netdiscovery is not recognising my CISCO Switch SG300-20

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

#3 2023-11-10 10:58:59

krischeu
Member
Registered: 2023-10-26
Posts: 40

Re: GLPI-Netdiscovery is not recognising my CISCO Switch SG300-20

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

#4 2023-11-22 10:52:45

krischeu
Member
Registered: 2023-10-26
Posts: 40

Re: GLPI-Netdiscovery is not recognising my CISCO Switch SG300-20

Is there a way to do a inventory with cisco switches?

Offline

#5 2023-11-29 10:40:50

krischeu
Member
Registered: 2023-10-26
Posts: 40

Re: GLPI-Netdiscovery is not recognising my CISCO Switch SG300-20

Hi,
can anybody give me a help at this problem?

Offline

#6 2023-12-20 09:18:22

krischeu
Member
Registered: 2023-10-26
Posts: 40

Re: GLPI-Netdiscovery is not recognising my CISCO Switch SG300-20

Some help would be great

Offline

#7 2024-04-16 16:09:31

Zion
Member
Registered: 2023-05-07
Posts: 6

Re: GLPI-Netdiscovery is not recognising my CISCO Switch SG300-20

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

#8 2024-04-17 08:19:10

krischeu
Member
Registered: 2023-10-26
Posts: 40

Re: GLPI-Netdiscovery is not recognising my CISCO Switch SG300-20

No,
still unsolved.
But you are one step more than me.

Offline

#9 2024-04-17 14:57:01

cconard96
Moderator
Registered: 2018-07-31
Posts: 2,807
Website

Re: GLPI-Netdiscovery is not recognising my CISCO Switch SG300-20

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

#10 2024-04-18 09:14:37

krischeu
Member
Registered: 2023-10-26
Posts: 40

Re: GLPI-Netdiscovery is not recognising my CISCO Switch SG300-20

How can I check the Version of the agent?

Offline

#11 2024-04-18 10:34:19

zekaleka
Member
Registered: 2023-09-14
Posts: 29

Re: GLPI-Netdiscovery is not recognising my CISCO Switch SG300-20

curl http://agentip:62354

Offline

#12 2024-04-22 12:14:48

krischeu
Member
Registered: 2023-10-26
Posts: 40

Re: GLPI-Netdiscovery is not recognising my CISCO Switch SG300-20

Hi,
Agent-Version is 1.7.1_1

Offline

#13 2024-10-30 21:11:41

Zion
Member
Registered: 2023-05-07
Posts: 6

Re: GLPI-Netdiscovery is not recognising my CISCO Switch SG300-20

krischeu wrote:

Is there a way to do a inventory with cisco switches?

Did you try to make rules for inventory from web UI?

Offline

#14 2024-10-31 09:34:17

krischeu
Member
Registered: 2023-10-26
Posts: 40

Re: GLPI-Netdiscovery is not recognising my CISCO Switch SG300-20

How can I create those rules?

Offline

#15 2024-11-19 17:16:58

Zion
Member
Registered: 2023-05-07
Posts: 6

Re: GLPI-Netdiscovery is not recognising my CISCO Switch SG300-20

krischeu wrote:

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

#16 2024-11-20 10:07:33

krischeu
Member
Registered: 2023-10-26
Posts: 40

Re: GLPI-Netdiscovery is not recognising my CISCO Switch SG300-20

Hi,
i went to: Administration/GLPI Inventory/Rules/Entity Rules for Computer

Criteria Itemtype    is    NetworkEquipment

And what have I to do else?

Offline

#17 2024-11-20 12:33:26

Zion
Member
Registered: 2023-05-07
Posts: 6

Re: GLPI-Netdiscovery is not recognising my CISCO Switch SG300-20

krischeu wrote:

Hi,
i went to: Administration/GLPI Inventory/Rules/Entity Rules for Computer

Criteria Itemtype    is    NetworkEquipment

And what have I to do else?

I leave default rules
prnt.sc/vB-1d5vWJKsJ

Offline

Board footer

Powered by FluxBB