diff --git a/data/grid5000/sites/sophia/network_equipments/gw.json b/data/grid5000/sites/sophia/network_equipments/gw.json index 9e12f08c9433b44acb0bf2e51820788ae1867c98..2788972cf42bc84d5d65070d2f8f5da49af56fd1 100644 --- a/data/grid5000/sites/sophia/network_equipments/gw.json +++ b/data/grid5000/sites/sophia/network_equipments/gw.json @@ -203,6 +203,10 @@ "uid": "gwol-south" }, { + "kind": "switch", + "rate": 10000000000, + "snmp_name": "1/1/38", + "uid": "sw-4" }, { }, diff --git a/data/grid5000/sites/sophia/network_equipments/sw-4.json b/data/grid5000/sites/sophia/network_equipments/sw-4.json new file mode 100644 index 0000000000000000000000000000000000000000..65f6a04d5f4bcbe90d84dc0ca8468bc5186cd016 --- /dev/null +++ b/data/grid5000/sites/sophia/network_equipments/sw-4.json @@ -0,0 +1,242 @@ +{ + "backplane_bps": 1760000000000, + "ip": "172.17.143.244", + "kind": "switch", + "linecards": [ + { + "kavlan_pattern": "%PORT%", + "kind": "node", + "ports": [ + { + }, + { + "kind": "node", + "port": "eth0", + "snmp_name": "Gigabitethernet 1/0/1", + "uid": "mercantour3-3" + }, + { + "kind": "node", + "port": "eth0", + "snmp_name": "Gigabitethernet 1/0/2", + "uid": "mercantour3-4" + }, + { + "kind": "node", + "port": "eth0", + "snmp_name": "Gigabitethernet 1/0/3", + "uid": "mercantour3-7" + }, + { + "kind": "node", + "port": "eth0", + "snmp_name": "Gigabitethernet 1/0/4", + "uid": "mercantour3-8" + }, + { + "kind": "node", + "port": "eth0", + "snmp_name": "Gigabitethernet 1/0/5", + "uid": "mercantour3-11" + }, + { + "kind": "node", + "port": "eth0", + "snmp_name": "Gigabitethernet 1/0/6", + "uid": "mercantour3-12" + }, + { + "kind": "node", + "port": "eth0", + "snmp_name": "Gigabitethernet 1/0/7", + "uid": "mercantour3-15" + }, + { + "kind": "node", + "port": "eth0", + "snmp_name": "Gigabitethernet 1/0/8", + "uid": "mercantour3-16" + }, + { + }, + { + }, + { + }, + { + }, + { + }, + { + }, + { + }, + { + }, + { + }, + { + }, + { + }, + { + }, + { + }, + { + }, + { + }, + { + }, + { + "kind": "node", + "port": "eth0", + "snmp_name": "Gigabitethernet 1/0/25", + "uid": "mercantour3-1" + }, + { + "kind": "node", + "port": "eth0", + "snmp_name": "Gigabitethernet 1/0/26", + "uid": "mercantour3-2" + }, + { + "kind": "node", + "port": "eth0", + "snmp_name": "Gigabitethernet 1/0/27", + "uid": "mercantour3-5" + }, + { + "kind": "node", + "port": "eth0", + "snmp_name": "Gigabitethernet 1/0/28", + "uid": "mercantour3-6" + }, + { + "kind": "node", + "port": "eth0", + "snmp_name": "Gigabitethernet 1/0/29", + "uid": "mercantour3-9" + }, + { + "kind": "node", + "port": "eth0", + "snmp_name": "Gigabitethernet 1/0/30", + "uid": "mercantour3-10" + }, + { + "kind": "node", + "port": "eth0", + "snmp_name": "Gigabitethernet 1/0/31", + "uid": "mercantour3-13" + }, + { + "kind": "node", + "port": "eth0", + "snmp_name": "Gigabitethernet 1/0/32", + "uid": "mercantour3-14" + } + ], + "rate": 1000000000, + "snmp_pattern": "Gigabitethernet 1/%LINECARD%/%PORT%" + }, + { + "kavlan_pattern": "%PORT%", + "kind": "node", + "ports": [ + { + }, + { + "kind": "router", + "snmp_name": "TenGigabitEthernet 1/0/1", + "uid": "gw" + } + ], + "rate": 10000000000, + "snmp_pattern": "TenGigabitEthernet %LINECARD%/0/%PORT%" + } + ], + "managed_by_us": true, + "metrics": [ + { + "description": "Input byte counter for the network device port", + "name": "network_ifacein_bytes_total", + "period": 15000, + "source": { + "id": "1.3.6.1.2.1.31.1.1.1.6.{{ 1.3.6.1.2.1.2.2.1.2 == %SNMP_IFACE% }}", + "protocol": "snmp" + } + }, + { + "description": "Output byte counter for the network device port", + "name": "network_ifaceout_bytes_total", + "period": 15000, + "source": { + "id": "1.3.6.1.2.1.31.1.1.1.10.{{ 1.3.6.1.2.1.2.2.1.2 == %SNMP_IFACE% }}", + "protocol": "snmp" + } + }, + { + "description": "Input packet counter for the network device port", + "name": "network_ifacein_packets_total", + "period": 15000, + "source": { + "id": "1.3.6.1.2.1.2.2.1.11.{{ 1.3.6.1.2.1.2.2.1.2 == %SNMP_IFACE% }}", + "protocol": "snmp" + } + }, + { + "description": "Output packet counter for the network device port", + "name": "network_ifaceout_packets_total", + "period": 15000, + "source": { + "id": "1.3.6.1.2.1.2.2.1.17.{{ 1.3.6.1.2.1.2.2.1.2 == %SNMP_IFACE% }}", + "protocol": "snmp" + } + }, + { + "description": "Input counter of discarded packets for the network device port", + "name": "network_ifacein_packets_discard_total", + "period": 15000, + "source": { + "id": "1.3.6.1.2.1.2.2.1.13.{{ 1.3.6.1.2.1.2.2.1.2 == %SNMP_IFACE% }}", + "protocol": "snmp" + } + }, + { + "description": "Output counter of discarded packets for the network device port", + "name": "network_ifaceout_packets_discard_total", + "period": 15000, + "source": { + "id": "1.3.6.1.2.1.2.2.1.19.{{ 1.3.6.1.2.1.2.2.1.2 == %SNMP_IFACE% }}", + "protocol": "snmp" + } + }, + { + "description": "Input counter of packet errors for the network device port", + "name": "network_ifacein_packets_error_total", + "period": 15000, + "source": { + "id": "1.3.6.1.2.1.2.2.1.14.{{ 1.3.6.1.2.1.2.2.1.2 == %SNMP_IFACE% }}", + "protocol": "snmp" + } + }, + { + "description": "Output counter of packet errors for the network device port", + "name": "network_ifaceout_packets_error_total", + "period": 15000, + "source": { + "id": "1.3.6.1.2.1.2.2.1.20.{{ 1.3.6.1.2.1.2.2.1.2 == %SNMP_IFACE% }}", + "protocol": "snmp" + } + } + ], + "model": "Dell PowerSwitch N1548", + "serial": "BSWVNK2", + "site": "sophia", + "snmp_community": "public", + "type": "network_equipment", + "uid": "sw-4", + "warranty": "2024-04-21" +} \ No newline at end of file diff --git a/input/grid5000/sites/sophia/networks/gw-sophia.yaml b/input/grid5000/sites/sophia/networks/gw-sophia.yaml index bcdf8a3b2319331cee7dc4fe4069c7d3fcf1f2b1..2dbd7da951eaefdda6702c0a4eb14ee2a6b61849 100644 --- a/input/grid5000/sites/sophia/networks/gw-sophia.yaml +++ b/input/grid5000/sites/sophia/networks/gw-sophia.yaml @@ -114,9 +114,6 @@ gw: 16: uid: lag7 kind: channel - 37: - uid: gwol-south - kind: server 31: uid: musa-1 32: @@ -129,6 +126,13 @@ gw: uid: musa-5 36: uid: musa-6 + 37: + uid: gwol-south + kind: server + 38: + uid: sw-4 + kind: switch + rate: 10000000000 40: uid: lag4 kind: channel diff --git a/input/grid5000/sites/sophia/networks/sw-4.yaml b/input/grid5000/sites/sophia/networks/sw-4.yaml new file mode 100644 index 0000000000000000000000000000000000000000..32eecc008f2a9161be36b7c829e4c5692b15c0a5 --- /dev/null +++ b/input/grid5000/sites/sophia/networks/sw-4.yaml @@ -0,0 +1,109 @@ +--- +sw-4: + model: Dell PowerSwitch N1548 + serial: BSWVNK2 + warranty: 2024-04-21 + kind: switch + managed_by_us: true + site: sophia + snmp_community: public + ip: 172.17.143.244 + backplane_bps: 176_000_000_0000 + metrics: + - name: network_ifacein_bytes_total + description: Input byte counter for the network device port + period: 15000 + source: + protocol: snmp + id: 1.3.6.1.2.1.31.1.1.1.6.{{ 1.3.6.1.2.1.2.2.1.2 == %SNMP_IFACE% }} + - name: network_ifaceout_bytes_total + description: Output byte counter for the network device port + period: 15000 + source: + protocol: snmp + id: 1.3.6.1.2.1.31.1.1.1.10.{{ 1.3.6.1.2.1.2.2.1.2 == %SNMP_IFACE% }} + - name: network_ifacein_packets_total + description: Input packet counter for the network device port + period: 15000 + source: + protocol: snmp + id: 1.3.6.1.2.1.2.2.1.11.{{ 1.3.6.1.2.1.2.2.1.2 == %SNMP_IFACE% }} + - name: network_ifaceout_packets_total + description: Output packet counter for the network device port + period: 15000 + source: + protocol: snmp + id: 1.3.6.1.2.1.2.2.1.17.{{ 1.3.6.1.2.1.2.2.1.2 == %SNMP_IFACE% }} + - name: network_ifacein_packets_discard_total + description: Input counter of discarded packets for the network device port + period: 15000 + source: + protocol: snmp + id: 1.3.6.1.2.1.2.2.1.13.{{ 1.3.6.1.2.1.2.2.1.2 == %SNMP_IFACE% }} + - name: network_ifaceout_packets_discard_total + description: Output counter of discarded packets for the network device port + period: 15000 + source: + protocol: snmp + id: 1.3.6.1.2.1.2.2.1.19.{{ 1.3.6.1.2.1.2.2.1.2 == %SNMP_IFACE% }} + - name: network_ifacein_packets_error_total + description: Input counter of packet errors for the network device port + period: 15000 + source: + protocol: snmp + id: 1.3.6.1.2.1.2.2.1.14.{{ 1.3.6.1.2.1.2.2.1.2 == %SNMP_IFACE% }} + - name: network_ifaceout_packets_error_total + description: Output counter of packet errors for the network device port + period: 15000 + source: + protocol: snmp + id: 1.3.6.1.2.1.2.2.1.20.{{ 1.3.6.1.2.1.2.2.1.2 == %SNMP_IFACE% }} + linecards: + 0: + snmp_pattern: "Gigabitethernet 1/%LINECARD%/%PORT%" + kavlan_pattern: "%PORT%" + rate: 1_000_000_000 + kind: node + ports: + 1: + uid: mercantour3-3 + 2: + uid: mercantour3-4 + 3: + uid: mercantour3-7 + 4: + uid: mercantour3-8 + 5: + uid: mercantour3-11 + 6: + uid: mercantour3-12 + 7: + uid: mercantour3-15 + 8: + uid: mercantour3-16 + 25: + uid: mercantour3-1 + 26: + uid: mercantour3-2 + 27: + uid: mercantour3-5 + 28: + uid: mercantour3-6 + 29: + uid: mercantour3-9 + 30: + uid: mercantour3-10 + 31: + uid: mercantour3-13 + 32: + uid: mercantour3-14 + 1: + snmp_pattern: "TenGigabitEthernet %LINECARD%/0/%PORT%" + kavlan_pattern: "%PORT%" + rate: 10_000_000_000 + kind: node + ports: + 1: + uid: gw + kind: router +