{"id":148,"date":"2014-12-22T20:28:04","date_gmt":"2014-12-22T20:28:04","guid":{"rendered":"http:\/\/www.troliver.com\/?page_id=148"},"modified":"2017-09-28T11:04:33","modified_gmt":"2017-09-28T10:04:33","slug":"lanmap-bollocks","status":"publish","type":"page","link":"https:\/\/www.troliver.com\/?page_id=148","title":{"rendered":"Project: Switchy McPortface"},"content":{"rendered":"<h1>Introduction:<\/h1>\n<p>Switchy McPortFace (SMPF) is a way to get useful information about client computers and the switches that they are connected to on a network. Rather than use SNMP to get information about devices connected to a switchport, SMPF gets information about the switch connected to a device&#8217;s network interface.<\/p>\n<p>The original motivation was to find a cheap alternative to Fluke testing tools, so that I could trace cables from patch ports and figure which switch a given PC was connected to. The scope quickly grew and I developed a desktop application to run on startup and report that port to a central database.<\/p>\n<p>The project consists of three applications which can all be viewed on github;<\/p>\n<ul>\n<li><a href=\"https:\/\/github.com\/trevelyanuk\/SMPF-Client\">Desktop client<\/a> &#8211;\u00a0a device client (Windows\/Linux\/Mac) written in C\/C++ with libpcap\/winpcap for packet capture<\/li>\n<li><a style=\"color: #ff4b33;\" href=\"https:\/\/github.com\/trevelyanuk\/SMPF\">Database and web front-end<\/a>\u00a0&#8211;\u00a0the server component, which uses PHP to receive client data and a Javascript and d3.js frontend to display and utilise the data (growing in scope constantly)<\/li>\n<li><a href=\"https:\/\/github.com\/trevelyanuk\/SMPF-Client-Config\">Windows config file generator\/editor<\/a>\u00a0&#8211;\u00a0a configuration file generation tool, written in C#<\/li>\n<\/ul>\n<p>My focus since has been on creating a nice web portal to view and manage infrastructure within a building, for which this data is very useful.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction: Switchy McPortFace (SMPF) is a way to get useful information about client computers and the switches that they are connected to on a network. Rather than use SNMP to get information about devices connected to a switchport, SMPF gets information about the switch connected to a device&#8217;s network interface. The original motivation was to [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"jetpack_post_was_ever_published":false},"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/P6PQZ3-2o","_links":{"self":[{"href":"https:\/\/www.troliver.com\/index.php?rest_route=\/wp\/v2\/pages\/148"}],"collection":[{"href":"https:\/\/www.troliver.com\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.troliver.com\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.troliver.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.troliver.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=148"}],"version-history":[{"count":21,"href":"https:\/\/www.troliver.com\/index.php?rest_route=\/wp\/v2\/pages\/148\/revisions"}],"predecessor-version":[{"id":463,"href":"https:\/\/www.troliver.com\/index.php?rest_route=\/wp\/v2\/pages\/148\/revisions\/463"}],"wp:attachment":[{"href":"https:\/\/www.troliver.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=148"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}