OK, thank you a lot. CBS-350 is a little more complex on port configuration.
Setting interface configuration as below ("switchport general pvid 2" is the parameter that do the work) NAV correctly identify VLAN.
interface GigabitEthernet2 switchport mode general switchport general allowed vlan add 2 untagged switchport general pvid 2
Below the new log:
# ipdevpolld -J inventory -n f-s84.endurance-mnet.local 2023-03-21 13:02:58,511 [INFO nav.ipdevpoll] --- Starting ipdevpolld inventory --- 2023-03-21 13:02:58,511 [DEBUG plugins] Importing plugin system= 2023-03-21 13:02:58,517 [DEBUG plugins] found plugin class System in <module 'nav.ipdevpoll.plugins.system' from '/opt/venvs/nav/lib/python3.9/site-packages/nav/ipdevpoll/plugins/system.py'> 2023-03-21 13:02:58,517 [DEBUG plugins] Importing plugin uptime= 2023-03-21 13:02:58,519 [DEBUG plugins] found plugin class Uptime in <module 'nav.ipdevpoll.plugins.uptime' from '/opt/venvs/nav/lib/python3.9/site-packages/nav/ipdevpoll/plugins/uptime.py'> 2023-03-21 13:02:58,520 [DEBUG plugins] Importing plugin interfaces= 2023-03-21 13:02:58,526 [DEBUG plugins] found plugin class Interfaces in <module 'nav.ipdevpoll.plugins.interfaces' from '/opt/venvs/nav/lib/python3.9/site-packages/nav/ipdevpoll/plugins/interfaces.py'> 2023-03-21 13:02:58,526 [DEBUG plugins] Importing plugin bridge= 2023-03-21 13:02:58,526 [DEBUG plugins] found plugin class Bridge in <module 'nav.ipdevpoll.plugins.bridge' from '/opt/venvs/nav/lib/python3.9/site-packages/nav/ipdevpoll/plugins/bridge.py'> 2023-03-21 13:02:58,526 [DEBUG plugins] Importing plugin typeoid= 2023-03-21 13:02:58,538 [DEBUG plugins] found plugin class TypeOid in <module 'nav.ipdevpoll.plugins.typeoid' from '/opt/venvs/nav/lib/python3.9/site-packages/nav/ipdevpoll/plugins/typeoid.py'> 2023-03-21 13:02:58,538 [DEBUG plugins] Importing plugin dnsname= 2023-03-21 13:02:58,547 [DEBUG plugins] found plugin class DnsName in <module 'nav.ipdevpoll.plugins.dnsname' from '/opt/venvs/nav/lib/python3.9/site-packages/nav/ipdevpoll/plugins/dnsname.py'> 2023-03-21 13:02:58,547 [DEBUG plugins] Importing plugin dot1q=nav.ipdevpoll.plugins.juniperdot1q.JuniperDot1q 2023-03-21 13:02:58,555 [DEBUG plugins] Importing plugin ciscovlan= 2023-03-21 13:02:58,563 [DEBUG plugins] found plugin class CiscoVlan in <module 'nav.ipdevpoll.plugins.ciscovlan' from '/opt/venvs/nav/lib/python3.9/site-packages/nav/ipdevpoll/plugins/ciscovlan.py'> 2023-03-21 13:02:58,563 [DEBUG plugins] Importing plugin prefix= 2023-03-21 13:02:58,592 [DEBUG plugins] found plugin class Prefix in <module 'nav.ipdevpoll.plugins.prefix' from '/opt/venvs/nav/lib/python3.9/site-packages/nav/ipdevpoll/plugins/prefix.py'> 2023-03-21 13:02:58,592 [DEBUG plugins] Importing plugin virtualrouter= 2023-03-21 13:02:58,596 [DEBUG plugins] found plugin class VirtualRouter in <module 'nav.ipdevpoll.plugins.virtualrouter' from '/opt/venvs/nav/lib/python3.9/site-packages/nav/ipdevpoll/plugins/virtualrouter.py'> 2023-03-21 13:02:58,596 [DEBUG plugins] Importing plugin arp= 2023-03-21 13:02:58,596 [DEBUG plugins] found plugin class Arp in <module 'nav.ipdevpoll.plugins.arp' from '/opt/venvs/nav/lib/python3.9/site-packages/nav/ipdevpoll/plugins/arp.py'> 2023-03-21 13:02:58,596 [DEBUG plugins] Importing plugin cam= 2023-03-21 13:02:58,597 [DEBUG plugins] found plugin class Cam in <module 'nav.ipdevpoll.plugins.cam' from '/opt/venvs/nav/lib/python3.9/site-packages/nav/ipdevpoll/plugins/cam.py'> 2023-03-21 13:02:58,597 [DEBUG plugins] Importing plugin lldp= 2023-03-21 13:02:58,601 [DEBUG plugins] found plugin class LLDP in <module 'nav.ipdevpoll.plugins.lldp' from '/opt/venvs/nav/lib/python3.9/site-packages/nav/ipdevpoll/plugins/lldp.py'> 2023-03-21 13:02:58,601 [DEBUG plugins] Importing plugin cdp= 2023-03-21 13:02:58,603 [DEBUG plugins] found plugin class CDP in <module 'nav.ipdevpoll.plugins.cdp' from '/opt/venvs/nav/lib/python3.9/site-packages/nav/ipdevpoll/plugins/cdp.py'> 2023-03-21 13:02:58,603 [DEBUG plugins] Importing plugin modules= 2023-03-21 13:02:58,606 [DEBUG plugins] found plugin class Modules in <module 'nav.ipdevpoll.plugins.modules' from '/opt/venvs/nav/lib/python3.9/site-packages/nav/ipdevpoll/plugins/modules.py'> 2023-03-21 13:02:58,606 [DEBUG plugins] Importing plugin extremevlan= 2023-03-21 13:02:58,611 [DEBUG plugins] found plugin class ExtremeVlan in <module 'nav.ipdevpoll.plugins.extremevlan' from '/opt/venvs/nav/lib/python3.9/site-packages/nav/ipdevpoll/plugins/extremevlan.py'> 2023-03-21 13:02:58,611 [DEBUG plugins] Importing plugin linkstate= 2023-03-21 13:02:58,611 [DEBUG plugins] found plugin class LinkState in <module 'nav.ipdevpoll.plugins.linkstate' from '/opt/venvs/nav/lib/python3.9/site-packages/nav/ipdevpoll/plugins/linkstate.py'> 2023-03-21 13:02:58,611 [DEBUG plugins] Importing plugin sensors= 2023-03-21 13:02:58,612 [DEBUG plugins] found plugin class Sensors in <module 'nav.ipdevpoll.plugins.sensors' from '/opt/venvs/nav/lib/python3.9/site-packages/nav/ipdevpoll/plugins/sensors.py'> 2023-03-21 13:02:58,612 [DEBUG plugins.sensors] importing modules: ['nav.mibs.alcatel_ind1_port_mib', 'nav.mibs.arista_vrf_mib', 'nav.mibs.bgp4_mib', 'nav.mibs.bgp4_v2_mib_juniper', 'nav.mibs.bridge_mib', 'nav.mibs.cd6c_mib', 'nav.mibs.cisco_bgp4_mib', 'nav.mibs.cisco_c2900_mib', 'nav.mibs.cisco_cdp_mib', 'nav.mibs.cisco_enhanced_memory_pool_mib', 'nav.mibs.cisco_entity_fru_control_mib', 'nav.mibs.cisco_entity_sensor_mib', 'nav.mibs.cisco_envmon_mib', 'nav.mibs.cisco_hsrp_mib', 'nav.mibs.cisco_ietf_ip_mib', 'nav.mibs.cisco_memory_pool_mib', 'nav.mibs.cisco_power_ethernet_ext_mib', 'nav.mibs.cisco_process_mib', 'nav.mibs.cisco_stack_mib', 'nav.mibs.cisco_vlan_iftable_relationship_mib', 'nav.mibs.cisco_vlan_membership_mib', 'nav.mibs.cisco_vtp_mib', 'nav.mibs.comet', 'nav.mibs.coriant_groove_mib', 'nav.mibs.cpqpower_mib', 'nav.mibs.eltek_distributed_mib', 'nav.mibs.entity_mib', 'nav.mibs.entity_sensor_mib', 'nav.mibs.esswitch_mib', 'nav.mibs.etherlike_mib', 'nav.mibs.extreme_vlan_mib', 'nav.mibs.geist_mibv3', 'nav.mibs.geist_mibv4', 'nav.mibs.hp_httpmanageable_mib', 'nav.mibs.hpicf_fan_mib', 'nav.mibs.hpicf_powersupply_mib', 'nav.mibs.ibm_pdu_mib', 'nav.mibs.ieee8023_lag_mib', 'nav.mibs.if_mib', 'nav.mibs.ip_forward_mib', 'nav.mibs.ip_mib', 'nav.mibs.ipv6_mib', 'nav.mibs.itw_mib', 'nav.mibs.itw_mibv3', 'nav.mibs.itw_mibv4', 'nav.mibs.juniper_dom_mib', 'nav.mibs.juniper_mib', 'nav.mibs.lldp_mib', 'nav.mibs.mg_snmp_ups_mib', 'nav.mibs.mibretriever', 'nav.mibs.netswitch_mib', 'nav.mibs.old_cisco_cpu_mib', 'nav.mibs.pdu2_mib', 'nav.mibs.power_ethernet_mib', 'nav.mibs.powernet_mib', 'nav.mibs.pwt_3phase_mibv1', 'nav.mibs.qbridge_mib', 'nav.mibs.rittal_cmc_iii', 'nav.mibs.snmpv2_mib', 'nav.mibs.spagent_mib', 'nav.mibs.statistics_mib', 'nav.mibs.ups_mib', 'nav.mibs.vrrp_mib', 'nav.mibs.wlsx_systemext_mib', 'nav.mibs.xups_mib'] 2023-03-21 13:03:00,877 [DEBUG plugins.sensors] sensor candidate classes: {'ALCATEL-IND1-PORT-MIB': <class 'nav.mibs.alcatel_ind1_port_mib.AlcatelInd1PortMib'>, 'CD6C': <class 'nav.mibs.cd6c_mib.CD6CMib'>, 'ENTITY-SENSOR-MIB': <class 'nav.mibs.entity_sensor_mib.EntitySensorMib'>, 'CISCO-ENTITY-SENSOR-MIB': <class 'nav.mibs.cisco_entity_sensor_mib.CiscoEntitySensorMib'>, 'CISCO-ENVMON-MIB': <class 'nav.mibs.cisco_envmon_mib.CiscoEnvMonMib'>, 'P8652-MIB': <class 'nav.mibs.comet.Comet'>, 'COMETMS-MIB': <class 'nav.mibs.comet.CometMS'>, 'CORIANT-GROOVE-MIB': <class 'nav.mibs.coriant_groove_mib.CoriantGrooveMib'>, 'CPQPOWER-MIB': <class 'nav.mibs.cpqpower_mib.CPQPowerMib'>, 'ELTEK-DISTRIBUTED-MIB': <class 'nav.mibs.eltek_distributed_mib.EltekDistributedMib'>, 'IT-WATCHDOGS-MIB': <class 'nav.mibs.itw_mib.ItWatchDogsMib'>, 'IT-WATCHDOGS-MIB-V3': <class 'nav.mibs.itw_mibv3.ItWatchDogsMibV3'>, 'GEIST-MIB-V3': <class 'nav.mibs.geist_mibv3.GeistMibV3'>, 'IT-WATCHDOGS-V4-MIB': <class 'nav.mibs.itw_mibv4.ItWatchDogsMibV4'>, 'GEIST-V4-MIB': <class 'nav.mibs.geist_mibv4.GeistMibV4'>, 'IBM-PDU-MIB': <class 'nav.mibs.ibm_pdu_mib.IbmPduMib'>, 'JUNIPER-DOM-MIB': <class 'nav.mibs.juniper_dom_mib.JuniperDomMib'>, 'JUNIPER-MIB': <class 'nav.mibs.juniper_mib.JuniperMib'>, 'UPS-MIB': <class 'nav.mibs.ups_mib.UpsMib'>, 'MG-SNMP-UPS-MIB': <class 'nav.mibs.mg_snmp_ups_mib.MgSnmpUpsMib'>, 'PDU2-MIB': <class 'nav.mibs.pdu2_mib.PDU2Mib'>, 'PowerNet-MIB': <class 'nav.mibs.powernet_mib.PowerNetMib'>, 'PWTv1-MIB': <class 'nav.mibs.pwt_3phase_mibv1.Pwt3PhaseV1Mib'>, 'RITTAL-CMC-III-MIB': <class 'nav.mibs.rittal_cmc_iii.RittalCMCIIIMib'>, 'SPAGENT-MIB': <class 'nav.mibs.spagent_mib.SPAgentMib'>, 'XUPS-MIB': <class 'nav.mibs.xups_mib.XupsMib'>} 2023-03-21 13:03:00,878 [DEBUG plugins] Importing plugin psu= 2023-03-21 13:03:00,878 [DEBUG plugins] found plugin class PowerSupplyUnit in <module 'nav.ipdevpoll.plugins.psu' from '/opt/venvs/nav/lib/python3.9/site-packages/nav/ipdevpoll/plugins/psu.py'> 2023-03-21 13:03:00,878 [DEBUG plugins] Importing plugin psuwatch= 2023-03-21 13:03:00,878 [DEBUG plugins] found plugin class PowerSupplyOrFanStateWatcher in <module 'nav.ipdevpoll.plugins.psuwatch' from '/opt/venvs/nav/lib/python3.9/site-packages/nav/ipdevpoll/plugins/psuwatch.py'> 2023-03-21 13:03:00,879 [DEBUG plugins] Importing plugin snmpcheck= 2023-03-21 13:03:00,879 [DEBUG plugins] found plugin class SnmpCheck in <module 'nav.ipdevpoll.plugins.snmpcheck' from '/opt/venvs/nav/lib/python3.9/site-packages/nav/ipdevpoll/plugins/snmpcheck.py'> 2023-03-21 13:03:00,879 [DEBUG plugins] Importing plugin propserial= 2023-03-21 13:03:00,879 [DEBUG plugins] found plugin class ProprietarySerial in <module 'nav.ipdevpoll.plugins.propserial' from '/opt/venvs/nav/lib/python3.9/site-packages/nav/ipdevpoll/plugins/propserial.py'> 2023-03-21 13:03:00,879 [DEBUG plugins] Importing plugin statports= 2023-03-21 13:03:00,880 [DEBUG plugins] found plugin class StatPorts in <module 'nav.ipdevpoll.plugins.statports' from '/opt/venvs/nav/lib/python3.9/site-packages/nav/ipdevpoll/plugins/statports.py'> 2023-03-21 13:03:00,880 [DEBUG plugins] Importing plugin statsystem= 2023-03-21 13:03:00,880 [DEBUG plugins] found plugin class StatSystem in <module 'nav.ipdevpoll.plugins.statsystem' from '/opt/venvs/nav/lib/python3.9/site-packages/nav/ipdevpoll/plugins/statsystem.py'> 2023-03-21 13:03:00,880 [DEBUG plugins] Importing plugin statsensors= 2023-03-21 13:03:00,881 [DEBUG plugins] found plugin class StatSensors in <module 'nav.ipdevpoll.plugins.statsensors' from '/opt/venvs/nav/lib/python3.9/site-packages/nav/ipdevpoll/plugins/statsensors.py'> 2023-03-21 13:03:00,881 [DEBUG plugins] Importing plugin statmulticast= 2023-03-21 13:03:00,881 [DEBUG plugins] found plugin class StatMulticast in <module 'nav.ipdevpoll.plugins.statmulticast' from '/opt/venvs/nav/lib/python3.9/site-packages/nav/ipdevpoll/plugins/statmulticast.py'> 2023-03-21 13:03:00,881 [DEBUG plugins] Importing plugin entity= 2023-03-21 13:03:00,882 [DEBUG plugins] found plugin class Entity in <module 'nav.ipdevpoll.plugins.entity' from '/opt/venvs/nav/lib/python3.9/site-packages/nav/ipdevpoll/plugins/entity.py'> 2023-03-21 13:03:00,882 [DEBUG plugins] Importing plugin staticroutes= 2023-03-21 13:03:00,882 [DEBUG plugins] found plugin class StaticRoutes in <module 'nav.ipdevpoll.plugins.staticroutes' from '/opt/venvs/nav/lib/python3.9/site-packages/nav/ipdevpoll/plugins/staticroutes.py'> 2023-03-21 13:03:00,882 [DEBUG plugins] Importing plugin linkaggregate= 2023-03-21 13:03:00,882 [DEBUG plugins] found plugin class LinkAggregate in <module 'nav.ipdevpoll.plugins.linkaggregate' from '/opt/venvs/nav/lib/python3.9/site-packages/nav/ipdevpoll/plugins/linkaggregate.py'> 2023-03-21 13:03:00,882 [DEBUG plugins] Importing plugin bgp= 2023-03-21 13:03:00,883 [DEBUG plugins] found plugin class BGP in <module 'nav.ipdevpoll.plugins.bgp' from '/opt/venvs/nav/lib/python3.9/site-packages/nav/ipdevpoll/plugins/bgp.py'> 2023-03-21 13:03:00,883 [DEBUG plugins] Importing plugin poe= 2023-03-21 13:03:00,883 [DEBUG plugins] found plugin class Poe in <module 'nav.ipdevpoll.plugins.poe' from '/opt/venvs/nav/lib/python3.9/site-packages/nav/ipdevpoll/plugins/poe.py'> 2023-03-21 13:03:00,883 [INFO plugins] Imported 31 plugin classes, 31 classes in plugin registry 2023-03-21 13:03:00,883 [INFO nav.ipdevpoll] Running single 'inventory' job for f-s84 2023-03-21 13:03:00,910 [DEBUG plugins.typeoid.typeoid] [inventory f-s84.endurance-mnet.local] Collecting sysObjectId 2023-03-21 13:03:00,928 [DEBUG plugins.typeoid.typeoid] [inventory f-s84.endurance-mnet.local] sysObjectID is .1.3.6.1.4.1.9.6.1.1004.10.1 2023-03-21 13:03:00,946 [DEBUG plugins.uptime.uptime] [inventory f-s84.endurance-mnet.local] uptime data (changed=False): ((1679400180.0, 8212300),) 2023-03-21 13:03:00,946 [DEBUG plugins.uptime.uptime] [inventory f-s84.endurance-mnet.local] last sysuptime reset/rollover reported by device: 2023-03-20 14:14:17 2023-03-21 13:03:00,946 [DEBUG plugins.entity.entity] [inventory f-s84.endurance-mnet.local] Collecting physical entity data 2023-03-21 13:03:02,496 [DEBUG plugins.entity.entity] [inventory f-s84.endurance-mnet.local] found 18 entities 2023-03-21 13:03:02,497 [DEBUG plugins.modules.modules] [inventory f-s84.endurance-mnet.local] Collecting ENTITY-MIB module data 2023-03-21 13:03:02,653 [DEBUG nav.mibs.bridge_mib.multibridgemib] now querying None 2023-03-21 13:03:02,705 [DEBUG plugins.bridge.bridge] [inventory f-s84.endurance-mnet.local] Found 18 base (switch) ports: {1: 1, 2: 2, 3: 3, 4: 4, 5: 5, 6: 6, 7: 7, 8: 8, 9: 9, 10: 10, 1000: 1000, 1001: 1001, 1002: 1002, 1003: 1003, 1004: 1004, 1005: 1005, 1006: 1006, 1007: 1007} 2023-03-21 13:03:02,706 [DEBUG plugins.interfaces.interfaces] [inventory f-s84.endurance-mnet.local] Collecting interface data 2023-03-21 13:03:03,865 [DEBUG plugins.interfaces.interfaces] [inventory f-s84.endurance-mnet.local] Got duplex information: {1: 'unknown', 2: 'unknown', 3: 'unknown', 4: 'unknown', 5: 'unknown', 6: 'unknown', 7: 'unknown', 8: 'unknown', 9: 'unknown', 10: 'fullDuplex', 1000: 'unknown', 1001: 'unknown', 1002: 'unknown', 1003: 'unknown', 1004: 'unknown', 1005: 'unknown', 1006: 'unknown', 1007: 'unknown'} 2023-03-21 13:03:03,865 [DEBUG plugins.interfaces.interfaces] [inventory f-s84.endurance-mnet.local] Found 25 interfaces 2023-03-21 13:03:04,971 [DEBUG plugins.interfaces.interfaces] [inventory f-s84.endurance-mnet.local] 1 alias set from lower layer gi10: f-s72 uplink 2023-03-21 13:03:04,971 [DEBUG plugins.interfaces.interfaces] [inventory f-s84.endurance-mnet.local] 2 alias set from lower layer gi10: f-s72 uplink 2023-03-21 13:03:04,972 [DEBUG plugins.linkaggregate.linkaggregate] [inventory f-s84.endurance-mnet.local] Collecting link aggregations 2023-03-21 13:03:05,051 [DEBUG plugins.juniperdot1q.juniperdot1q] [inventory f-s84.endurance-mnet.local] Collecting 802.1q VLAN information 2023-03-21 13:03:05,104 [DEBUG plugins.juniperdot1q.juniperdot1q] [inventory f-s84.endurance-mnet.local] PVID mapping: {1: 1, 2: 2, 3: 1, 4: 1, 5: 1, 6: 1, 7: 1, 8: 1, 9: 1, 10: 1, 1000: 1, 1001: 1, 1002: 1, 1003: 1, 1004: 1, 1005: 1, 1006: 1, 1007: 1} 2023-03-21 13:03:05,131 [DEBUG plugins.juniperdot1q.juniperdot1q] [inventory f-s84.endurance-mnet.local] Found vlan 1: 2023-03-21 13:03:05,131 [DEBUG plugins.juniperdot1q.juniperdot1q] [inventory f-s84.endurance-mnet.local] Found vlan 2: 2023-03-21 13:03:05,189 [DEBUG plugins.juniperdot1q.juniperdot1q] [inventory f-s84.endurance-mnet.local] vlan: 1 egress: {1000, 1001, 10, 1002, 1003, 1004, 1005, 1006, 1007} untagged: {1000, 1001, 10, 1002, 1003, 1004, 1005, 1006, 1007} 2023-03-21 13:03:05,189 [DEBUG plugins.juniperdot1q.juniperdot1q] [inventory f-s84.endurance-mnet.local] vlan: 2 egress: {1, 2, 3, 4, 5, 6, 7, 8, 9, 10} untagged: {1, 2, 3, 4, 5, 6, 7, 8, 9} 2023-03-21 13:03:05,189 [DEBUG plugins.juniperdot1q.juniperdot1q] [inventory f-s84.endurance-mnet.local] trunkports: defaultdict(<class 'list'>, {10: [2]}) 2023-03-21 13:03:05,405 [DEBUG plugins.prefix.prefix] [inventory f-s84.endurance-mnet.local] Collecting prefixes 2023-03-21 13:03:05,405 [DEBUG plugins.prefix.prefix] [inventory f-s84.endurance-mnet.local] Trying address tables from IP-MIB 2023-03-21 13:03:05,455 [WARNING nav.mibs.ip_mib.ipmib] [inventory f-s84.endurance-mnet.local] ignored 3 invalid or unsupported addresses from ipAddressIfIndex: {OID('.4.20.254.128.0.0.0.0.0.0.238.244.12.255.254.39.17.185.0.1.134.160'), OID('.4.20.255.2.0.0.0.0.0.0.0.0.0.1.255.39.17.185.0.1.134.160'), OID('.4.20.255.2.0.0.0.0.0.0.0.0.0.0.0.0.0.1.0.1.134.160')} 2023-03-21 13:03:05,455 [DEBUG nav.mibs.ip_mib.ipmib] [inventory f-s84.endurance-mnet.local] interface addresses: Got 3 rows from ipAddressIfIndex 2023-03-21 13:03:05,510 [DEBUG nav.mibs.ip_mib.ipmib] [inventory f-s84.endurance-mnet.local] interface addresses: Got 3 rows from ipAdEntIfIndex 2023-03-21 13:03:05,510 [DEBUG plugins.prefix.prefix] [inventory f-s84.endurance-mnet.local] Found 3 addresses in IP-MIB: {(20000, IP('127.0.0.1'), IP('0.0.0.0/0')), (100001, IP('10.0.100.216'), IP('10.0.100.0/24')), (8000, IP('169.254.0.1'), IP('169.254.0.0/24'))} 2023-03-21 13:03:05,510 [DEBUG plugins.prefix.prefix] [inventory f-s84.endurance-mnet.local] Trying address tables from IPV6-MIB 2023-03-21 13:03:05,540 [DEBUG nav.mibs.ipv6_mib.ipv6mib] [inventory f-s84.endurance-mnet.local] interface addresses: Got 0 rows from ipv6AddrPfxLength 2023-03-21 13:03:05,540 [DEBUG plugins.prefix.prefix] [inventory f-s84.endurance-mnet.local] Found 0 addresses in IPV6-MIB: set() 2023-03-21 13:03:05,540 [DEBUG plugins.prefix.prefix] [inventory f-s84.endurance-mnet.local] Trying address tables from CISCO-IETF-IP-MIB 2023-03-21 13:03:05,598 [DEBUG nav.mibs.cisco_ietf_ip_mib.ciscoietfipmib] [inventory f-s84.endurance-mnet.local] interface addresses: Got 0 rows from cIpAddressIfIndex 2023-03-21 13:03:05,598 [DEBUG plugins.prefix.prefix] [inventory f-s84.endurance-mnet.local] Found 0 addresses in CISCO-IETF-IP-MIB: set() 2023-03-21 13:03:05,620 [DEBUG plugins.sensors.sensors] [inventory f-s84.endurance-mnet.local] Discovering sensors sensors using: ['EntitySensorMib', 'CiscoEntitySensorMib', 'CiscoEnvMonMib'] 2023-03-21 13:03:05,621 [DEBUG plugins.sensors.sensors] [inventory f-s84.endurance-mnet.local] Trying 'EntitySensorMib' 2023-03-21 13:03:06,172 [DEBUG nav.mibs.entity_mib.entitymib] [inventory f-s84.endurance-mnet.local] alias mapping: defaultdict(<class 'list'>, {68425857: [1], 68425858: [2], 68425859: [3], 68425860: [4], 68425861: [5], 68425862: [6], 68425863: [7], 68425864: [8], 68425881: [9], 68425882: [10]}) 2023-03-21 13:03:06,172 [DEBUG nav.mibs.entity_sensor_mib.entitysensormib] [inventory f-s84.endurance-mnet.local] get_all_sensors: result=[] 2023-03-21 13:03:06,172 [DEBUG plugins.sensors.sensors] [inventory f-s84.endurance-mnet.local] Trying 'CiscoEntitySensorMib' 2023-03-21 13:03:06,300 [DEBUG nav.mibs.entity_mib.entitymib] [inventory f-s84.endurance-mnet.local] alias mapping: defaultdict(<class 'list'>, {68425857: [1], 68425858: [2], 68425859: [3], 68425860: [4], 68425861: [5], 68425862: [6], 68425863: [7], 68425864: [8], 68425881: [9], 68425882: [10]}) 2023-03-21 13:03:06,300 [DEBUG nav.mibs.cisco_entity_sensor_mib.ciscoentitysensormib] [inventory f-s84.endurance-mnet.local] get_all_sensors: result=[] 2023-03-21 13:03:06,300 [DEBUG plugins.sensors.sensors] [inventory f-s84.endurance-mnet.local] Trying 'CiscoEnvMonMib' 2023-03-21 13:03:06,672 [DEBUG nav.mibs.cisco_envmon_mib.ciscoenvmonmib] [inventory f-s84.endurance-mnet.local] get_all_sensors: result=[] 2023-03-21 13:03:06,672 [DEBUG plugins.psu.powersupplyunit] [inventory f-s84.endurance-mnet.local] Collecting PSUs and FANs 2023-03-21 13:03:07,132 [DEBUG nav.mibs.cisco_entity_fru_control_mib.ciscoentityfrucontrolmib] [inventory f-s84.endurance-mnet.local] found 0/0 field-replaceable fan entities 2023-03-21 13:03:07,132 [DEBUG plugins.psu.powersupplyunit] [inventory f-s84.endurance-mnet.local] PSU:FAN: PowerSupplyOrFan(name='Main PowerSupply', model='', descr='PowerSupply', physical_class='powerSupply', internal_id=67109505) 2023-03-21 13:03:07,155 [DEBUG plugins.system.system] [inventory f-s84.endurance-mnet.local] sysDescr: 'CBS350-8T-E-2G 8-Port Gigabit Managed Switch' 2023-03-21 13:03:07,155 [DEBUG plugins.system.system] [inventory f-s84.endurance-mnet.local] Parsed version: None
-----Messaggio originale----- Da: Morten Brekkevold morten.brekkevold@sikt.no Inviato: martedì 21 marzo 2023 10:37 A: Davide Miccone davide@wpweb.com Cc: nav-users@lister.sikt.no Oggetto: Re: R: [Nav-users] R: Business 350-8T-E-2G support in NAV versione 5.4.0
On Fri, 17 Mar 2023 14:53:50 +0000 Davide Miccone davide@wpweb.com wrote:
just installed a new 5.6 NAV.
Cisco Business 350-8T-E-2G still not correctly detect interface vlan (trunk on port GigabitEthernet10 is detected).
I took a look at your logs (please send logs as attachments in the future, it makes your email a lot easier to read).
These are the essential excerpts:
2022-11-07 17:35:41,250 [DEBUG plugins.juniperdot1q.juniperdot1q] [inventory f-s83.endurance-mnet.local] Collecting 802.1q VLAN information 2022-11-07 17:35:41,306 [DEBUG plugins.juniperdot1q.juniperdot1q] [inventory f-s83.endurance-mnet.local] PVID mapping: {1: 1, 2: 1, 3: 1, 4: 1, 5: 1, 6: 1, 7: 1, 8: 1, 9: 1, 10: 1, 1000: 1, 1001: 1, 1002: 1, 1003: 1, 1004: 1, 1005: 1, 1006: 1, 1007: 1}
[...]
2022-11-07 17:35:41,407 [DEBUG plugins.juniperdot1q.juniperdot1q] [inventory f-s83.endurance-mnet.local] vlan: 1 egress: {1000, 1001, 10, 1002, 1003, 1004, 1005, 1006, 1007} untagged: {1000, 1001, 10, 1002, 1003, 1004, 1005, 1006, 1007} 2022-11-07 17:35:41,408 [DEBUG plugins.juniperdot1q.juniperdot1q] [inventory f-s83.endurance-mnet.local] vlan: 2 egress: {1, 2, 3, 4, 5, 6, 7, 8, 9, 10} untagged: {1, 2, 3, 4, 5, 6, 7, 8, 9}
The problem here seems to be that NAV is written to interpret a port's PVID value as its native/untagged VLAN. The egress VLAN list is mostly interpreted by NAV to figure which ports carry tagged VLANs, i.e. are trunks.
Your switch seems to report the egress VLAN for all your access ports to be VLAN 2, while it reports a PVID value of 1 for all ports, which throws NAV off here.
Precisely this bit of MIB interpretation is a bit confusing, since the terminology varies a lot between vendors here. Since I don't have experience as a network engineer, I'm not sure whether there is a meaningful difference between PVID and egress for non-tagged ports.
Is there a way to explicitly set the PVID value in the Cisco SMB config language? Some googling seems to suggest `switchport general pvid XXX` is valid, but I can't say whether that would make sense or be compatible with your setup with `switchport access vlan X`.
-- Sincerely, Morten Brekkevold
Sikt – Norwegian Agency for Shared Services in Education and Research