Commits

stingh711  committed 2bcdd40

add more switches

  • Participants
  • Parent commits e3a18a9

Comments (0)

Files changed (3)

File c.properties

-agent.ip=172.25.21.36
+agent.ip=172.25.21.54
 
 mac=00:a0:c5:00:00:11
 cpu.usage=90
 cpu.temperature=80
 host.active=100
 
-device.number=3
-device.1.ip=192.168.1.33
+device.number=10
+device.1.ip=192.168.1.1
 device.1.type=Switch
 device.1.model=GS2200-24
 device.1.mac=00:a0:c5:00:00:33
 device.1.parentPort=5
 device.1.rootPort=1
 device.1.serial=123456
-device.2.ip=192.168.1.100
-device.2.type=Host
-device.2.mac=00:a0:c5:00:00:35
+
+device.2.ip=192.168.1.2
+device.2.type=Switch
+device.2.model=GS2200-24
+device.2.mac=01:a0:c5:00:00:33
+device.2.portnumber=24
 device.2.parentPort=2
-device.3.serial=
-device.3.ip=192.168.1.101
-device.3.type=Host
-device.3.mac=00:a0:c5:00:00:36
-device.3.parentPort=6
-device.3.serial=
+device.2.rootPort=1
+device.2.serial=123456
+
+device.3.ip=192.168.1.3
+device.3.type=Switch
+device.3.model=GS2200-24
+device.3.mac=02:a0:c5:00:00:33
+device.3.portnumber=24
+device.3.parentPort=3
+device.3.rootPort=1
+device.3.serial=123456
+
+device.4.ip=192.168.1.4
+device.4.type=Switch
+device.4.model=GS2200-24
+device.4.mac=03:a0:c5:00:00:33
+device.4.portnumber=24
+device.4.parentPort=4
+device.4.rootPort=1
+device.4.serial=123456
+
+device.5.ip=192.168.1.5
+device.5.type=Switch
+device.5.model=GS2200-24
+device.5.mac=04:a0:c5:00:00:33
+device.5.portnumber=24
+device.5.parentPort=5
+device.5.rootPort=1
+device.5.serial=123456
+
+device.6.ip=192.168.1.6
+device.6.type=Switch
+device.6.model=GS2200-24
+device.6.mac=05:a0:c5:00:00:33
+device.6.portnumber=24
+device.6.parentPort=6
+device.6.rootPort=1
+device.6.serial=123456
+
+device.7.ip=192.168.1.7
+device.7.type=Switch
+device.7.model=GS2200-24
+device.7.mac=06:a0:c5:00:00:33
+device.7.portnumber=24
+device.7.parentPort=7
+device.7.rootPort=1
+device.7.serial=123456
+
+device.8.ip=192.168.1.8
+device.8.type=Switch
+device.8.model=GS2200-24
+device.8.mac=07:a0:c5:00:00:33
+device.8.portnumber=24
+device.8.parentPort=8
+device.8.rootPort=1
+device.8.serial=123456
+
+device.9.ip=192.168.1.9
+device.9.type=Switch
+device.9.model=GS2200-24
+device.9.mac=08:a0:c5:00:00:33
+device.9.portnumber=24
+device.9.parentPort=9
+device.9.rootPort=1
+device.9.serial=123456
+
+device.10.ip=192.168.1.10
+device.10.type=Switch
+device.10.model=GS2200-24
+device.10.mac=09:a0:c6:00:00:33
+device.10.portnumber=24
+device.10.parentPort=10
+device.10.rootPort=1
+device.10.serial=123456
+
+
+
+
+
+
+
+
+
+
 
 link.number=2
 link.1.node=00:a0:c5:00:00:11
-link.1.child=00:a0:c5:00:00:33 00:a0:c5:00:00:35
+link.1.child=00:a0:c5:00:00:33
 link.2.node=00:a0:c5:00:00:33
-link.2.child=00:a0:c5:00:00:36
+link.2.child=01:a0:c5:00:00:33 02:a0:c5:00:00:33 03:a0:c5:00:00:33 04:a0:c5:00:00:33 05:a0:c5:00:00:33 06:a0:c5:00:00:33 07:a0:c5:00:00:33 08:a0:c5:00:00:33 09:a0:c5:00:00:33
 
 #switch QS info data
-switch.number = 1
+switch.number = 2
 switch.1.mac=00:a0:c5:00:00:33
 switch.1.cpu.usage=10
 switch.1.mem.usage=30
 switch.1.broadcast.rate=10
 switch.1.voltage=15
 switch.1.cpu.temperature=70
-
-switch.1.interface.1.mac=00:13:49:11:11:01
-switch.1.interface.1.in=9859485
-switch.1.interface.1.out=934
-switch.1.interface.2.mac=00:13:49:11:11:02
-switch.1.interface.2.in=0
-switch.1.interface.2.out=0
-switch.1.interface.3.mac=00:13:49:11:11:03
-switch.1.interface.3.in=0
-switch.1.interface.3.out=0
-switch.1.interface.4.mac=00:13:49:11:11:04
-switch.1.interface.4.in=0
-switch.1.interface.4.out=0
-switch.1.interface.5.mac=00:13:49:11:11:05
-switch.1.interface.5.in=0
-switch.1.interface.5.out=0
-switch.1.interface.6.mac=00:13:49:11:11:06
-switch.1.interface.6.in=0
-switch.1.interface.6.out=0
-switch.1.interface.7.mac=00:13:49:11:11:07
-switch.1.interface.7.in=0
-switch.1.interface.7.out=0
-switch.1.interface.8.mac=00:13:49:11:11:08
-switch.1.interface.8.in=0
-switch.1.interface.8.out=0
-switch.1.interface.9.mac=00:13:49:11:11:09
-switch.1.interface.9.in=0
-switch.1.interface.9.out=0
-switch.1.interface.10.mac=00:13:49:11:11:0a
-switch.1.interface.10.in=0
-switch.1.interface.10.out=0
-switch.1.interface.11.mac=00:13:49:11:11:0b
-switch.1.interface.11.in=0
-switch.1.interface.11.out=0
-switch.1.interface.12.mac=00:13:49:11:11:0c
-switch.1.interface.12.in=0
-switch.1.interface.12.out=0
-switch.1.interface.13.mac=00:13:49:11:11:0d
-switch.1.interface.13.in=0
-switch.1.interface.13.out=0
-switch.1.interface.14.mac=00:13:49:11:11:0e
-switch.1.interface.14.in=0
-switch.1.interface.14.out=0
-switch.1.interface.15.mac=00:13:49:11:11:0f
-switch.1.interface.15.in=0
-switch.1.interface.15.out=0
-switch.1.interface.16.mac=00:13:49:11:11:10
-switch.1.interface.16.in=0
-switch.1.interface.16.out=0
-switch.1.interface.17.mac=00:13:49:11:11:11
-switch.1.interface.17.in=0
-switch.1.interface.17.out=0
-switch.1.interface.18.mac=00:13:49:11:11:12
-switch.1.interface.18.in=0
-switch.1.interface.18.out=0
-switch.1.interface.19.mac=00:13:49:11:11:13
-switch.1.interface.19.in=0
-switch.1.interface.19.out=0
-switch.1.interface.20.mac=00:13:49:11:11:14
-switch.1.interface.20.in=0
-switch.1.interface.20.out=0
-switch.1.interface.21.mac=00:13:49:11:11:15
-switch.1.interface.21.in=0
-switch.1.interface.21.out=0
-switch.1.interface.22.mac=00:13:49:11:11:16
-switch.1.interface.22.in=0
-switch.1.interface.22.out=0
-switch.1.interface.23.mac=00:13:49:11:11:17
-switch.1.interface.23.in=0
-switch.1.interface.23.out=0
-switch.1.interface.24.mac=00:13:49:11:11:18
-switch.1.interface.24.in=0
-switch.1.interface.24.out=0
-switch.1.interface.25.mac=00:13:49:11:11:19
-switch.1.interface.25.in=0
-switch.1.interface.25.out=0
-switch.1.interface.26.mac=00:13:49:11:11:1a
-switch.1.interface.26.in=0
-switch.1.interface.26.out=0
-switch.1.interface.27.mac=00:13:49:11:11:1b
-switch.1.interface.27.in=0
-switch.1.interface.27.out=0
-switch.1.interface.28.mac=00:13:49:11:11:1c
-switch.1.interface.28.in=0
-switch.1.interface.28.out=0
-switch.1.interface.29.mac=00:13:49:11:11:1d
-switch.1.interface.29.in=0
-switch.1.interface.29.out=0
-switch.1.interface.30.mac=00:13:49:11:11:1e
-switch.1.interface.30.in=0
-switch.1.interface.30.out=0
-switch.1.interface.31.mac=00:13:49:11:11:1f
-switch.1.interface.31.in=0
-switch.1.interface.31.out=0
-switch.1.interface.32.mac=00:13:49:11:11:20
-switch.1.interface.32.in=0
-switch.1.interface.32.out=0
-switch.1.interface.33.mac=00:13:49:11:11:21
-switch.1.interface.33.in=0
-switch.1.interface.33.out=0
-switch.1.interface.34.mac=00:13:49:11:11:22
-switch.1.interface.34.in=0
-switch.1.interface.34.out=0
-switch.1.interface.35.mac=00:13:49:11:11:23
-switch.1.interface.35.in=0
-switch.1.interface.35.out=0
-switch.1.interface.36.mac=00:13:49:11:11:24
-switch.1.interface.36.in=0
-switch.1.interface.36.out=0
-switch.1.interface.37.mac=00:13:49:11:11:25
-switch.1.interface.37.in=0
-switch.1.interface.37.out=0
-switch.1.interface.38.mac=00:13:49:11:11:26
-switch.1.interface.38.in=0
-switch.1.interface.38.out=0
-switch.1.interface.39.mac=00:13:49:11:11:27
-switch.1.interface.39.in=0
-switch.1.interface.39.out=0
-switch.1.interface.40.mac=00:13:49:11:11:28
-switch.1.interface.40.in=0
-switch.1.interface.40.out=0
-switch.1.interface.41.mac=00:13:49:11:11:29
-switch.1.interface.41.in=0
-switch.1.interface.41.out=0
-switch.1.interface.42.mac=00:13:49:11:11:30
-switch.1.interface.42.in=0
-switch.1.interface.42.out=0
-switch.1.interface.43.mac=00:13:49:11:11:31
-switch.1.interface.43.in=0
-switch.1.interface.43.out=0
-switch.1.interface.44.mac=00:13:49:11:11:32
-switch.1.interface.44.in=0
-switch.1.interface.44.out=0
-switch.1.interface.45.mac=00:13:49:11:11:33
-switch.1.interface.45.in=0
-switch.1.interface.45.out=0
-switch.1.interface.46.mac=00:13:49:11:11:34
-switch.1.interface.46.in=0
-switch.1.interface.46.out=0
-switch.1.interface.47.mac=00:13:49:11:11:35
-switch.1.interface.47.in=0
-switch.1.interface.47.out=0
-switch.1.interface.48.mac=00:13:49:11:11:36
-switch.1.interface.48.in=0
-switch.1.interface.48.out=0
+switch.2.mac=01:a0:c5:00:00:33
+switch.2.cpu.usage=10
+switch.2.mem.usage=30
+switch.2.broadcast.rate=10
+switch.2.voltage=15
+switch.2.cpu.temperature=70
 
 app.statistics.10mins.number=7
 app.statistics.10mins.name.1=1
 
 #data for tools
 ping.ip=192.168.1.1
-ping.result=PING 172.25.21.254 (172.25.21.254): 56 octets data\n64 octets from 172.25.21.254: icmp_seq=0 ttl=64 time=4.5 ms\n64 octets from 172.25.21.254: icmp_seq=1 ttl=64 time=0.3 ms\n64 octets from 172.25.21.254: icmp_seq=2 ttl=64 time=0.3 ms\n--- 172.25.21.254 ping statistics ---\n3 packets transmitted, 3 packets received, 0% packet loss\nround-trip min/avg/max = 0.3/1.7/4.5 ms
+#ping.result=PING 172.25.21.254 (172.25.21.254): 56 octets data\n64 octets from 172.25.21.254: icmp_seq=0 ttl=64 time=4.5 ms\n64 octets from 172.25.21.254: icmp_seq=1 ttl=64 time=0.3 ms\n64 octets from 172.25.21.254: icmp_seq=2 ttl=64 time=0.3 ms\n--- 172.25.21.254 ping statistics ---\n3 packets transmitted, 3 packets received, 0% packet loss\nround-trip min/avg/max = 0.3/1.7/4.5 ms
+ping.result=00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56 00:a0:c5:12:34:56
+
 tracert.ip=192.168.1.1
 tracert.result=1  172.25.21.254 (172.25.21.254)  0.496 ms  0.403 ms  0.370 ms\n2  172.25.6.251 (172.25.6.251)  1.422 ms  0.461 ms  0.944 ms\n3  172.25.6.253 (172.25.6.253)  1.983 ms  2.199 ms  1.941 ms
 
 #traps parameters
-server.ip=172.25.21.16
+server.ip=192.168.100.34
 nsTrapVarAdmin=sting
 nsTrapVarPort=10
 nsTrapVarBandwidth=134234

File src/com/zyxel/enc/netbar/agent/data/Switch.java

 
 import java.util.ArrayList;
 import java.util.List;
+import java.util.Random;
 
 /**
  *
  * @author sting
  */
 public class Switch {
-    public static List<SwitchInterface> buildInterfaces(int portNumber, int number) {
+    private static final Random seed = new Random();
+    public static List<SwitchInterface> buildInterfaces(int portNumber) {
         List<SwitchInterface> result = new ArrayList<SwitchInterface>();
         for (int i = 1; i <= portNumber; i++) {
-            String prefix = "switch." + number + ".interface." + i + ".";
             SwitchInterface in = new SwitchInterface();
             in.index = i;
             in.description = "port" + i;
             in.status = 1;
             in.speed = 2;
-            in.mac = Config.get(prefix + "mac");
-            in.in = Config.getInt(prefix + "in");
-            in.out = Config.getInt(prefix + "out");
+            in.mac = generateMac(i);
+            in.in = seed.nextInt(Integer.MAX_VALUE);
+            in.out = seed.nextInt(Integer.MAX_VALUE);
             result.add(in);
         }
         return result;
     }
+
+    private static String generateMac(int index) {
+        StringBuilder sb = new StringBuilder();
+        String prefix = "FF:13:49:00:00:";
+        sb.append(prefix);
+        String hex = Integer.toHexString(index);
+        if (hex.length() == 1) {
+            sb.append(0).append(hex);
+        } else {
+            sb.append(hex);
+        }
+        return sb.toString();
+    }
+
     public String ip;
     public int cpuUsage;
     public int memUsage;
     public List<SwitchInterface> interfaces;
 
     public static void main(String[] args) {
-        List<SwitchInterface> ins = buildInterfaces(48, 1);
-        System.out.println(ins);
+        System.out.println(generateMac(1));
+        System.out.println(generateMac(20));
     }
 }

File src/com/zyxel/enc/netbar/agent/generator/SwitchInterfaceTableGenerator.java

     public void setVariables(MOMutableTableModel model) {
         int number = Config.getInt("switch.number");
         for (int i = 1; i <= number; i++) {
-            int portNumber = Config.getInt("device." + i + ".portnumber");
-            List<SwitchInterface> list = Switch.buildInterfaces(portNumber, i);
+            int portNumber = 24;
             String mac = Config.get("switch." + i + ".mac");
+            List<SwitchInterface> list = Switch.buildInterfaces(portNumber);
             for (int j = 1; j <= list.size(); j++) {
                 SwitchInterface in = list.get(j-1);
                 Variable[] v = new Variable[]{
                     new Counter32(in.in),
                     new Counter32(in.out)
                 };
-                String index = Utils.convertMacToOid(mac);
-                model.addRow(new DefaultMOMutableRow2PC(new OID(index + "." + j), v));
+                String hex = Utils.convertMacToOid(mac);
+                model.addRow(new DefaultMOMutableRow2PC(new OID(hex + "." + j), v));
             }
         }
     }