I manually entered a site into the mactrack_sites table to test.
I added an Cisco 3560 the normal way through the GUI.
Code: Select all
05/30/2008 03:24:59 PM - CMDPHP: Poller[0] ERROR: A DB Exec Failed!, Error:'1364', SQL:"INSERT INTO mac_track_interfaces (site_id, device_id, ifIndex, ifType, ifName, ifAlias, linkPort, vlan_id, vlan_name, vlan_trunk, ifSpeed, ifDescr, ifMtu, ifPhysAddress, ifAdminStatus, ifOperStatus, ifLastChange, ifInDiscards, ifInErrors, ifInUnknownProtos, ifOutDiscards, ifOutErrors, int_discards_present, int_errors_present, last_down_time, last_up_time, stateChanges, present) VALUES ('1', '3', '1', '53', 'Vl1', '', '1', '', '', '', '1000000000', 'Vlan1', '1500', '00:16:9D:01:0F:C0', '1', '1', '5239', '0', '0', '48', '0', '0', '', '', '0', '2008-05-30 15:24:57', '0', '1'),('1', '3', '10001', '6', 'Fa0/1', '', '', '', '', '', '100000000', 'FastEthernet0/1', '1500', '00:16:9D:01:0F:83', '1', '2', '1763622311', '0', '5', '0', '0', '0', '', '', '2008-05-30 15:24:57', '0', '0', '1'),('1', '3', '10002', '6', 'Fa0/2', 'Shop-N AP', '', '', '', '', '100000000', 'FastEthernet0/2', '1500', '00:16:9D:01:0F:84', '1', '1', '2891387710', '0', '26', '0', '0', '0', '', '', '0', '2008-05-30 15:24:57', '0', '1'),('1', '3', '10003', '6', 'Fa0/3', '', '', '', '', '', '100000000', 'FastEthernet0/3', '1500', '00:16:9D:01:0F:85', '1', '2', '1779192905', '0', '10', '0', '0', '0', '', '', '2008-05-30 15:24:57', '0', '0', '1'),('1', '3', '10004', '6', 'Fa0/4', '', '', '', '', '', '100000000', 'FastEthernet0/4', '1500', '00:16:9D:01:0F:86', '1', '2', '1762505943', '0', '3', '636', '0', '0', '', '', '2008-05-30 15:24:57', '0', '0', '1'),('1', '3', '10005', '6', 'Fa0/5', '', '', '', '', '', '100000000', 'FastEthernet0/5', '1500', '00:16:9D:01:0F:87', '1', '2', '716731718', '0', '0', '0', '0', '0', '', '', '2008-05-30 15:24:57', '0', '0', '1'),('1', '3', '10006', '6', 'Fa0/6', '', '', '', '', '', '100000000', 'FastEthernet0/6', '1500', '00:16:9D:01:0F:88', '1', '2', '1762396753', '0', '11', '47244', '0', '0', '', '', '2008-05-30 15:24:57', '0', '0', '1'),('1', '3', '10007', '6', 'Fa0/7', '', '', '', '', '', '100000000', 'FastEthernet0/7', '1500', '00:16:9D:01:0F:89', '1', '2', '4863', '0', '0', '0', '0', '0', '', '', '2008-05-30 15:24:57', '0', '0', '1'),('1', '3', '10008', '6', 'Fa0/8', '', '', '', '', '', '100000000', 'FastEthernet0/8', '1500', '00:16:9D:01:0F:8A', '1', '2', '1762398091', '0', '1', '0', '0', '0', '', '', '2008-05-30 15:24:57', '0', '0', '1'),('1', '3', '10009', '6', 'Fa0/9', '', '', '', '', '', '100000000', 'FastEthernet0/9', '1500', '00:16:9D:01:0F:8B', '1', '2', '1763518764', '0', '0', '0', '0', '0', '', '', '2008-05-30 15:24:57', '0', '0', '1'),('1', '3', '10010', '6', 'Fa0/10', '', '', '', '', '', '100000000', 'FastEthernet0/10', '1500', '00:16:9D:01:0F:8C', '1', '2', '1762479486', '0', '1', '0', '0', '0', '', '', '2008-05-30 15:24:57', '0', '0', '1'),('1', '3', '10011', '6', 'Fa0/11', '', '', '', '', '', '100000000', 'FastEthernet0/11', '1500', '00:16:9D:01:0F:8D', '1', '2', '4864', '0', '0', '0', '0', '0', '', '', '2008-05-30 15:24:57', '0', '0', '1'),('1', '3', '10012', '6', 'Fa0/12', '', '', '', '', '', '100000000', 'FastEthernet0/12', '1500', '00:16:9D:01:0F:8E', '1', '2', '629713128', '0', '0', '0', '0', '0', '', '', '2008-05-30 15:24:57', '0', '0', '1'),('1', '3', '10013', '6', 'Fa0/13', '', '', '', '', '', '100000000', 'FastEthernet0/13', '1500', '00:16:9D:01:0F:8F', '1', '2', '2084218169', '0', '16', '192469', '0', '0', '', '', '2008-05-30 15:24:57', '0', '0', '1'),('1', '3', '10014', '6', 'Fa0/14', '', '', '', '', '', '100000000', 'FastEthernet0/14', '1500', '00:16:9D:01:0F:90', '1', '2', '3180030704', '0', '0', '0', '0', '0', '', '', '2008-05-30 15:24:57', '0', '0', '1'),('1', '3', '10015', '6', 'Fa0/15', '', '', '', '', '', '100000000', 'FastEthernet0/15', '1500', '00:16:9D:01:0F:91', '1', '2', '4864', '0', '0', '0', '0', '0', '', '', '2008-05-30 15:24:57', '0', '0', '1'),('1', '3', '10016', '6', 'Fa0/16', '', '', '', '', '', '100000000', 'FastEthernet0/16', '1500', '00:16:9D:01:0F:92', '1', '2', '4865', '0', '0', '0', '0', '0', '', '', '2008-05-30 15:24:57', '0', '0', '1'),('1', '3', '10017', '6', 'Fa0/17', '', '', '', '', '', '100000000', 'FastEthernet0/17', '1500', '00:16:9D:01:0F:93', '1', '2', '4865', '0', '0', '0', '0', '0', '', '', '2008-05-30 15:24:57', '0', '0', '1'),('1', '3', '10018', '6', 'Fa0/18', '', '', '', '', '', '100000000', 'FastEthernet0/18', '1500', '00:16:9D:01:0F:94', '1', '2', '2057502579', '0', '0', '3', '0', '0', '', '', '2008-05-30 15:24:57', '0', '0', '1'),('1', '3', '10019', '6', 'Fa0/19', '', '', '', '', '', '100000000', 'FastEthernet0/19', '1500', '00:16:9D:01:0F:95', '1', '2', '4865', '0', '0', '0', '0', '0', '', '', '2008-05-30 15:24:57', '0', '0', '1'),('1', '3', '10020', '6', 'Fa0/20', '', '', '', '', '', '100000000', 'FastEthernet0/20', '1500', '00:16:9D:01:0F:96', '1', '2', '760576176', '0', '0', '0', '0', '0', '', '', '2008-05-30 15:24:58', '0', '0', '1'),('1', '3', '10021', '6', 'Fa0/21', '', '', '', '', '', '100000000', 'FastEthernet0/21', '1500', '00:16:9D:01:0F:97', '1', '2', '4865', '0', '0', '0', '0', '0', '', '', '2008-05-30 15:24:58', '0', '0', '1'),('1', '3', '10022', '6', 'Fa0/22', '', '', '', '', '', '100000000', 'FastEthernet0/22', '1500', '00:16:9D:01:0F:98', '1', '2', '580574513', '0', '0', '0', '0', '0', '', '', '2008-05-30 15:24:58', '0', '0', '1'),('1', '3', '10023', '6', 'Fa0/23', '', '', '', '', '', '100000000', 'FastEthernet0/23', '1500', '00:16:9D:01:0F:99', '1', '2', '4866', '0', '0', '0', '0', '0', '', '', '2008-05-30 15:24:58', '0', '0', '1'),('1', '3', '10024', '6', 'Fa0/24', '', '', '', '', '', '100000000', 'FastEthernet0/24', '1500', '00:16:9D:01:0F:9A', '1', '1', '1779249481', '0', '0', '0', '0', '0', '', '', '0', '2008-05-30 15:24:58', '0', '1'),('1', '3', '10101', '6', 'Gi0/1', 'to G02 - GR-3524-B', '', '', '', '', '1000000000', 'GigabitEthernet0/1', '1500', '00:16:9D:01:0F:81', '1', '1', '1098767689', '0', '0', '0', '0', '0', '', '', '0', '2008-05-30 15:24:58', '0', '1'),('1', '3', '10102', '6', 'Gi0/2', '', '', '', '', '', '1000000000', 'GigabitEthernet0/2', '1500', '00:16:9D:01:0F:82', '1', '1', '1745599459', '0', '0', '0', '0', '0', '', '', '0', '2008-05-30 15:24:58', '0', '1'),('1', '3', '14501', '1', 'Nu0', '', '', '', '', '', '4294967295', 'Null0', '1500', 'NOT USER', '1', '1', '0', '0', '0', '0', '0', '0', '', '', '0', '2008-05-30 15:24:58', '0', '1') ON DUPLICATE KEY UPDATE ifType=VALUES(ifType), ifName=VALUES(ifName), ifAlias=VALUES(ifAlias), linkPort=VALUES(linkPort), vlan_id=VALUES(vlan_id), vlan_name=VALUES(vlan_name), vlan_trunk=VALUES(vlan_trunk), ifSpeed=VALUES(ifSpeed), ifDescr=VALUES(ifDescr), ifMtu=VALUES(ifMtu), ifPhysAddress=VALUES(ifPhysAddress), ifAdminStatus=VALUES(ifAdminStatus), ifOperStatus=VALUES(ifOperStatus), ifLastChange=VALUES(ifLastChange), ifInDiscards=VALUES(ifInDiscards), ifInErrors=VALUES(ifInErrors), ifInUnknownProtos=VALUES(ifInUnknownProtos), ifOutDiscards=VALUES(ifOutDiscards), ifOutErrors=VALUES(ifOutErrors), int_discards_present=VALUES(int_discards_present), int_errors_present=VALUES(int_errors_present), last_down_time=VALUES(last_down_time), last_up_time=VALUES(last_up_time), stateChanges=VALUES(stateChanges), present='1''