{"id":575,"date":"2016-02-04T16:23:35","date_gmt":"2016-02-04T16:23:35","guid":{"rendered":"http:\/\/www.mtin.net\/blog\/?p=575"},"modified":"2016-02-04T16:23:35","modified_gmt":"2016-02-04T16:23:35","slug":"mac-geeklet-for-network-info","status":"publish","type":"post","link":"https:\/\/www.mtin.net\/blog\/mac-geeklet-for-network-info\/","title":{"rendered":"Mac GeekLet for Network Info"},"content":{"rendered":"<p>As a network person running a Mac I find it hand to know what IP my various connections have, in addition to some other info. \u00a0In order to do this, I use a program called <a href=\"https:\/\/www.google.com\/url?sa=t&amp;rct=j&amp;q=&amp;esrc=s&amp;source=web&amp;cd=1&amp;cad=rja&amp;uact=8&amp;ved=0ahUKEwir-KDhvt7KAhVKyGMKHcRqDCoQFggdMAA&amp;url=http%3A%2F%2Fprojects.tynsoe.org%2Fen%2Fgeektool%2F&amp;usg=AFQjCNEA_2IU4SBlrbTuzA0xgT_FMF0R7Q&amp;sig2=2e8n_x295ktqhs98YrJKXQ\" target=\"_blank\">Geektool<\/a> . Once you have GeekTool up and going you can add the following code into a new Geeklet.<\/p>\n<p><code>!\/bin\/bash<br \/>\nvarSSID1=`system_profiler SPAirPortDataType | grep -A 2 -e \"Current Network Information:\" | tr '\\n' ' ' | tr ':' ' ' | awk '{print $4}'`<br \/>\nvarCHAN1=`system_profiler SPAirPortDataType | grep -e \"Channel: \" | awk '{print $2}'`<br \/>\nvarEXTERNAL1=`curl --connect-timeout 5 -s http:\/\/checkip.dyndns.org\/ | grep \"Current IP Address\" | awk '{print $6}' | cut -f 1 -d \"&lt;\"`<br \/>\nvarEXTERNALv6=`curl --connect-timeout 5 -s http:\/\/checkipv6.dyndns.org\/ | grep \"Current IP Address\" | awk '{print $6}' | cut -f 1 -d \"&lt;\"`<br \/>\nvarWIRED1=`ifconfig en0 | grep \"inet \" | grep -v 127.0.0.1 | awk '{print $2}'`<br \/>\nvarWIREDv6=`ifconfig en0 | grep \"inet6 \" | grep -v 127.0.0.1 | awk '{print $2}'`<br \/>\nvarWIRELESS1=`ifconfig en1 | grep \"inet \" | grep -v 127.0.0.1 | awk '{print $2}'`<br \/>\nvarWIRELESSv6=`ifconfig en1 | grep \"inet6 \" | grep -v 127.0.0.1 | awk '{print $2}'`<br \/>\nvarSSL1=`ifconfig jnc0 | grep \"inet \" | grep -v 127.0.0.1 | awk '{print $2}'`<\/code><\/p>\n<p>if [ &#8220;$varEXTERNAL1&#8221; != &#8220;&#8221; ]<br \/>\nthen<br \/>\necho &#8220;External : $varEXTERNAL1&#8221;<br \/>\nelse<br \/>\necho &#8220;External : INACTIVE&#8221;<br \/>\nfi<\/p>\n<p>if [ &#8220;$varEXTERNALv6&#8221; != &#8220;&#8221; ]<br \/>\nthen<br \/>\necho &#8220;External : $varEXTERNALv6&#8221;<br \/>\nelse<br \/>\necho &#8220;External : INACTIVE&#8221;<br \/>\nfi<\/p>\n<p>if [ &#8220;$varWIRED1&#8221; != &#8220;&#8221; ]<br \/>\nthen<br \/>\necho &#8220;Wired : $varWIRED1&#8221;<br \/>\nelse<br \/>\necho &#8220;Wired : INACTIVE&#8221;<br \/>\nfi<\/p>\n<p>if [ &#8220;$varWIREDv6&#8221; != &#8220;&#8221; ]<br \/>\nthen<br \/>\necho &#8220;WiredV6 : $varWIREDv6&#8221;<br \/>\nelse<br \/>\necho &#8220;WiredV6 : INACTIVE&#8221;<br \/>\nfi<\/p>\n<p>if [ &#8220;$varWIRELESS1&#8221; != &#8220;&#8221; ]<br \/>\nthen<br \/>\necho &#8220;AirPort : $varWIRELESS1 SSID: $varSSID1&#8221;<br \/>\nelse<br \/>\necho &#8220;Airport : INACTIVE&#8221;<br \/>\nfi<\/p>\n<p>if [ &#8220;$varWIRELESSv6&#8221; != &#8220;&#8221; ]<br \/>\nthen<br \/>\necho &#8220;AirPortV6 : $varWIRELESSv6&#8221;<br \/>\nelse<br \/>\necho &#8220;AirportV6 : INACTIVE&#8221;<br \/>\nfi<\/p>\n<p><img data-attachment-id=\"580\" data-permalink=\"https:\/\/www.mtin.net\/blog\/mac-geeklet-for-network-info\/geektool\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.mtin.net\/blog\/wp-content\/uploads\/2016\/02\/geektool.png?fit=1440%2C900&amp;ssl=1\" data-orig-size=\"1440,900\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"geektool\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/www.mtin.net\/blog\/wp-content\/uploads\/2016\/02\/geektool.png?fit=300%2C188&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/www.mtin.net\/blog\/wp-content\/uploads\/2016\/02\/geektool.png?fit=580%2C363&amp;ssl=1\" decoding=\"async\" loading=\"lazy\" class=\"alignnone size-medium wp-image-580\" src=\"https:\/\/i0.wp.com\/www.mtin.net\/blog\/wp-content\/uploads\/2016\/02\/geektool.png?resize=300%2C188\" alt=\"geektool\" width=\"300\" height=\"188\" srcset=\"https:\/\/i0.wp.com\/www.mtin.net\/blog\/wp-content\/uploads\/2016\/02\/geektool.png?resize=300%2C188&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.mtin.net\/blog\/wp-content\/uploads\/2016\/02\/geektool.png?resize=768%2C480&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.mtin.net\/blog\/wp-content\/uploads\/2016\/02\/geektool.png?resize=1024%2C640&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.mtin.net\/blog\/wp-content\/uploads\/2016\/02\/geektool.png?w=1440&amp;ssl=1 1440w, https:\/\/i0.wp.com\/www.mtin.net\/blog\/wp-content\/uploads\/2016\/02\/geektool.png?w=1160 1160w\" sizes=\"(max-width: 300px) 100vw, 300px\" data-recalc-dims=\"1\" \/><\/p>\n<p>As you can see in the above screenshot it displays IP addresses (both IPv4 IPv6),external IP, and the Wireless SSID.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>As a network person running a Mac I find it hand to know what IP my various connections have, in addition to some other info. \u00a0In order to do this, I use a program called Geektool . Once you have GeekTool up and going you can add the following code into a new Geeklet. !\/bin\/bash [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false}}},"categories":[17],"tags":[294,180,42,295,296,297],"jetpack_publicize_connections":[],"aioseo_notices":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p6VLMf-9h","jetpack-related-posts":[{"id":2277,"url":"https:\/\/www.mtin.net\/blog\/winbox-brute-force\/","url_meta":{"origin":575,"position":0},"title":"Winbox brute Force","author":"j2sw","date":"June 1, 2018","format":false,"excerpt":"You really should not have your winbox port open to anything but a management network, but if you need a script to help with brute force on the Mikrotik. add action=drop chain=input comment=\"drop winbox brute forcers\" dst-port=8291 \\ protocol=tcp src-address-list=winbox_blacklist add action=add-src-to-address-list address-list=winbox_blacklist \\ address-list-timeout=1w3d chain=input connection-state=new dst-port=8291 \\ protocol=tcp\u2026","rel":"","context":"Similar post","block_context":{"text":"Similar post","link":""},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1353,"url":"https:\/\/www.mtin.net\/blog\/mikrotik-router-os-6-36-2\/","url_meta":{"origin":575,"position":1},"title":"Mikrotik Router OS 6.36.2","author":"j2sw","date":"August 26, 2016","format":false,"excerpt":"To upgrade, click \"Check for updates\" at \/system package in your RouterOS configuration interface, or head to our download page: http:\/\/www.mikrotik.com\/download v6.36.2 forum topic discussion, http:\/\/forum.mikrotik.com\/viewtopic.php?f=21&t=111450 What's new in 6.36.2 (2016-Aug-22 12:54): *) arm - show cpu frequency under resources menu; *) capsman - fixed upgrade policy; *) ccr\/crs -\u2026","rel":"","context":"In &quot;Mikrotik&quot;","block_context":{"text":"Mikrotik","link":"https:\/\/www.mtin.net\/blog\/category\/mikrotik\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1333,"url":"https:\/\/www.mtin.net\/blog\/mikrotik-routeros-3-36\/","url_meta":{"origin":575,"position":2},"title":"Mikrotik RouterOS 3.36","author":"j2sw","date":"July 22, 2016","format":false,"excerpt":"Lots of things fixed in this release. What's new in 6.36 (2016-Jul-20 14:09): *) arm - added Dude server support; *) dude - (changes discussed here: http:\/\/forum.mikrotik.com\/viewtopic.php?f=8&t=110428); *) dude - server package is now made smaller. client side content upgrade is now removed from it and is downloaded straight from\u2026","rel":"","context":"In &quot;Mikrotik&quot;","block_context":{"text":"Mikrotik","link":"https:\/\/www.mtin.net\/blog\/category\/mikrotik\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1078,"url":"https:\/\/www.mtin.net\/blog\/new-routeros-6-34-4\/","url_meta":{"origin":575,"position":3},"title":"New routerOS 6.34.4","author":"j2sw","date":"March 30, 2016","format":false,"excerpt":"From Mikrotik: To upgrade, click \"Check for updates\" at \/system package in your RouterOS configuration interface, or head to our download page: http:\/\/www.mikrotik.com\/download What's new in 6.34.4 (2016-Mar-24 13:13): *) bonding - fixed crash on bonding slave release; *) bonding - fixed mac-address disappearance after reboot in specific setups; *)\u2026","rel":"","context":"In &quot;Mikrotik&quot;","block_context":{"text":"Mikrotik","link":"https:\/\/www.mtin.net\/blog\/category\/mikrotik\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":2232,"url":"https:\/\/www.mtin.net\/blog\/mikrotik-releases-6-42\/","url_meta":{"origin":575,"position":4},"title":"Mikrotik Releases 6.42","author":"j2sw","date":"April 25, 2018","format":false,"excerpt":"From Mikrotik We have released new RouterOS versions in current channel. To upgrade, click \"Check for updates\" at \"System\/Package\" in your RouterOS configuration interface, or head to our download page: http:\/\/www.mikrotik.com\/download What's new in 6.42 (2018-Apr-13 11:03): !) tile - improved system performance and stability (\"\/system routerboard upgrade\" required); !)\u2026","rel":"","context":"In \"mikrotik\"","block_context":{"text":"mikrotik","link":"https:\/\/www.mtin.net\/blog\/tag\/mikrotik-2\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":2837,"url":"https:\/\/www.mtin.net\/blog\/baicells-public-ips-on-client-routers\/","url_meta":{"origin":575,"position":5},"title":"Baicells: Public IPs on client routers","author":"j2sw","date":"February 7, 2019","format":false,"excerpt":"Public IPs on Baicells Client Routers. I needed to Provide a few customers with Public IPs while most of the UEs and clients got private IP. The following is what I did to allow this to work: Requirements: EnodeB in Bridge mode UE in NAT mode MikroTik Router with DHCP\u2026","rel":"","context":"In &quot;Wireless&quot;","block_context":{"text":"Wireless","link":"https:\/\/www.mtin.net\/blog\/category\/wireless\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.mtin.net\/blog\/wp-content\/uploads\/2017\/05\/17821343_1510820508928612_1776831623_n.jpg?fit=405%2C720&ssl=1&resize=350%2C200","width":350,"height":200},"classes":[]}],"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/www.mtin.net\/blog\/wp-json\/wp\/v2\/posts\/575"}],"collection":[{"href":"https:\/\/www.mtin.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.mtin.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.mtin.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mtin.net\/blog\/wp-json\/wp\/v2\/comments?post=575"}],"version-history":[{"count":5,"href":"https:\/\/www.mtin.net\/blog\/wp-json\/wp\/v2\/posts\/575\/revisions"}],"predecessor-version":[{"id":581,"href":"https:\/\/www.mtin.net\/blog\/wp-json\/wp\/v2\/posts\/575\/revisions\/581"}],"wp:attachment":[{"href":"https:\/\/www.mtin.net\/blog\/wp-json\/wp\/v2\/media?parent=575"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.mtin.net\/blog\/wp-json\/wp\/v2\/categories?post=575"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.mtin.net\/blog\/wp-json\/wp\/v2\/tags?post=575"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}