<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Samir Abdullatif on Medium]]></title>
        <description><![CDATA[Stories by Samir Abdullatif on Medium]]></description>
        <link>https://medium.com/@samirsomer?source=rss-5f0b74cbcd68------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*mYas3pcHylZUUu6T71YXTw.jpeg</url>
            <title>Stories by Samir Abdullatif on Medium</title>
            <link>https://medium.com/@samirsomer?source=rss-5f0b74cbcd68------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 03:36:13 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@samirsomer/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[HTML for Humans, APIs for Apps, But What About LLMs?]]></title>
            <link>https://samirsomer.medium.com/html-for-humans-apis-for-apps-but-what-about-llms-c8c23a0df1b0?source=rss-5f0b74cbcd68------2</link>
            <guid isPermaLink="false">https://medium.com/p/c8c23a0df1b0</guid>
            <category><![CDATA[api]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[automation]]></category>
            <dc:creator><![CDATA[Samir Abdullatif]]></dc:creator>
            <pubDate>Mon, 21 Jul 2025 09:16:20 GMT</pubDate>
            <atom:updated>2025-07-21T09:16:20.839Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4Ldsn-L2rGKGGpIa45kzOQ.png" /></figure><p>The web was designed for people. APIs were designed for programs. But now, we have a new kind of consumer: large language models (LLMs).</p><p>Here’s the problem: neither HTML nor most APIs and certainly not PDFs or slide decks were built with LLMs in mind.</p><blockquote><em>If humans get HTML and apps get structured APIs, what should LLMs get?</em></blockquote><h3>Why LLMs Struggle With Today’s Digital Content</h3><p>Modern LLMs face friction at nearly every layer of digital information. Let’s break down why and what it costs us.</p><h3>1. HTML: A Visual Interface Disguised as Structure</h3><p>HTML is semi-structured, but layout and semantics are deeply entangled. What looks clear to a user is often ambiguous to a model. For example, a product name might be buried in nested &lt;div&gt; tags, surrounded by ads, carousels, or accessibility markup.</p><p>Cleaning HTML for machine understanding often requires stripping irrelevant elements, flattening layout logic, and guessing what matters all of which burn compute cycles and context tokens.</p><h3>2. PDFs and Docs: The Corporate Black Hole</h3><p>PDFs weren’t built for machines, they were built for perfect visual fidelity. Structure collapses into text flows, where tables, headers, and footnotes all blur together. Adobe estimates that over <strong>3 trillion PDFs</strong> are circulating globally today <a href="https://time.com/7094842/adobe-acrobat-ai-assistant/">(Time Magazine)</a>.</p><p>Enterprise knowledge lives in this mess: financial statements, compliance docs, HR policies, training manuals, and technical diagrams. LLMs trying to parse these documents often need advanced OCR, table detection, and layout reconstruction processes that remain brittle and costly.</p><h3>3. APIs: Structured, but Too Rigid for Language Models</h3><p>APIs are optimized for precision and structure not for reasoning or nuance. They work well for software tasks but break down when models need to synthesize across multiple endpoints, interpret intent, or understand fuzzy inputs.</p><p>Most LLMs don’t call APIs directly. Instead, they attempt to reverse-engineer answers from context a process that can lead to hallucinations, outdated assumptions, or missed connections when API semantics aren’t embedded.</p><p>In practice, APIs provide facts, not context. But LLMs thrive on context.</p><h3>The Real Cost of Feeding LLMs Messy Inputs</h3><p>Every time an LLM processes a poorly structured file, there’s a cost and not just in compute.</p><h3>Computational Overhead</h3><p>Parsing a 20-page resume PDF can take thousands of tokens just to guess where headers, job roles, and timelines start and stop. At scale across thousands of documents this inflates processing time and GPU costs significantly.</p><p><strong>Example</strong>: Adobe’s Total Economic Impact report found that Acrobat Pro users save <strong>65 hours/year</strong> on document search and formatting tasks (<a href="https://www.adobe.com/content/dam/dx-dc/images/acrobat/b2b-redesign/pdfs/total-economic-impact-adobe-acrobat-dc-ue.pdf">Adobe TEI PDF</a>) an indicator for how much effort is wasted even with human oversight.</p><h3>Misinterpretation and Risk</h3><p>Ambiguity in structure leads to errors in interpretation. A customer complaint embedded between two ads may get misread as a product feature. In enterprise contexts, LLMs have mixed up fiscal quarters across reports or mismatched resumes with job descriptions.</p><p>The result? Flawed summaries, inaccurate answers and in legal or medical scenarios, potentially harmful outputs.</p><h3>Time Wasted Searching for Answers</h3><p>Employees spend up to <strong>20%</strong> of their time looking for information, according to research from Gartner, McKinsey <a href="https://www.valamis.com/blog/why-do-we-spend-all-that-time-searching-for-information-at-work">(valamis)</a>. That’s <strong>9 hours per week</strong> on redundant lookup work often because the underlying documents weren’t designed for machine-assisted retrieval.</p><h3>Clean Inputs Make LLMs Cheaper, Faster, and Safer</h3><p>When structure is missing, LLMs hallucinate. When structure is present, they accelerate.</p><p>To improve performance and trust, we need to rethink how we serve content to LLMs:</p><h3>Final Thought: We Need a New Approach: LLM-First Interface</h3><p>The web wasn’t built for language models. APIs weren’t either. And while humans can infer structure from messy formats, LLMs can only guess at great cost.</p><p>To fully harness AI’s potential, we need to shift our mindset from <strong>human-readable content</strong> to <strong>machine-understandable content</strong>.</p><p>That doesn’t mean throwing away what we’ve built it means evolving it.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c8c23a0df1b0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building Beyond Code: How Soft Skills Empower Engineers]]></title>
            <link>https://samirsomer.medium.com/building-beyond-code-how-soft-skills-empower-engineers-9e4dd80be32d?source=rss-5f0b74cbcd68------2</link>
            <guid isPermaLink="false">https://medium.com/p/9e4dd80be32d</guid>
            <category><![CDATA[leadership]]></category>
            <category><![CDATA[emotional-intelligence]]></category>
            <category><![CDATA[growth-mindset]]></category>
            <category><![CDATA[soft-skills]]></category>
            <category><![CDATA[communication-skills]]></category>
            <dc:creator><![CDATA[Samir Abdullatif]]></dc:creator>
            <pubDate>Sat, 21 Sep 2024 08:53:12 GMT</pubDate>
            <atom:updated>2024-09-21T08:53:12.813Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*t0BWAkJs-hbsxaWY" /><figcaption>Photo by <a href="https://unsplash.com/@jasongoodman_youxventures?utm_source=medium&amp;utm_medium=referral">Jason Goodman</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>I once found myself in a situation that taught me a valuable lesson about communication. I was part of a project with a team of talented engineers, and we had come up with a solution we were proud of. But when it came time to present it to top management, we hit a wall. We were so focused on the technical details that we couldn’t explain our solution in a way they could easily understand. This was a huge wake-up call for me — being good at coding wasn’t enough. As Vinh Giang says:</p><p><strong>“You might be 10/10 technically brilliant, but if your ability to communicate is a 2/10, do you think the customer perceives you as a 10/10 or a 2/10? You’re only as good as you can communicate.”</strong></p><p>No matter how technically sound our work was, it was practically worthless if we couldn’t get others to understand its value. This was my reminder that being an engineer isn’t just about building solutions — it’s also about communicating and working effectively with others. And this is where soft skills come into play.</p><h3>Why Software Engineers Need Soft Skills More Than Ever</h3><p>Software Engineers can no longer work in isolation, focusing only on technical tasks. Today’s engineering landscape is collaborative team sport. where projects necessitate effective communication, teamwork, and adaptability. Whether you’re leading a project, working with cross-functional teams, or presenting ideas to stakeholders, communication and other soft skills are crucial to success.</p><p>below are some scenarios where soft skills matter just as much as technical expertise:</p><ul><li><strong>Leading a Team</strong>: When you’re in charge of a team, it’s not just about delegating tasks; you need strong collaboration and conflict resolution skills to keep everyone on the same page. Teams often have different personalities, ideas, and ways of working, which can sometimes lead to disagreements. Knowing how to handle these situations calmly and finding solutions that work for everyone is crucial for keeping the project on track and maintaining team morale.</li><li><strong>Adapting to Change</strong>: The tech industry is constantly evolving, and being adaptable is key to thriving in this fast-paced environment. Whether it’s adopting new tools, adjusting to shifting project goals, or learning new skills, having a growth mindset helps you stay flexible and open to change. Rather than feeling overwhelmed, adaptability allows you to see change as an opportunity to grow and improve.</li><li><strong>Pitching Ideas</strong>: Being able to clearly explain your innovation to clients, investors, or non-technical team members is a must. You need to simplify complex ideas, highlight the benefits, and tell a compelling story to capture their interest. Good storytelling helps people see the bigger picture and understand the value of your solution, making it easier to get buy-in for your ideas.</li><li><strong>Managing Multiple Stakeholders</strong>: When working on projects, engineers often have to balance the needs and expectations of different stakeholders — clients, managers, or other teams. Strong communication and negotiation skills are essential to ensure that everyone’s needs are met while keeping the project on track. Knowing how to manage expectations and address concerns can prevent misunderstandings and delays.</li></ul><h3>The Soft Skills Every Engineer Needs</h3><p>So, what soft skills should engineers develop? Here are a few that can make a big difference in your career:</p><ol><li><strong>Communication</strong>: Being able to explain technical concepts to both technical and non-technical audiences is essential. Whether you’re writing reports, speaking with clients, or presenting ideas to your team, clear communication helps everyone stay on the same page.</li><li><strong>Emotional Intelligence</strong>: Understanding and managing both your emotions and those of your team can significantly impact how well everyone works together. Emotional intelligence helps build stronger relationships, improve team dynamics, and boost overall productivity.</li><li><strong>Time Management</strong>: Prioritizing tasks, meeting deadlines, and maintaining a good work-life balance are key to staying efficient and avoiding burnout.</li><li><strong>Problem-Solving</strong>: Creative thinking is just as important as technical know-how. When challenges arise, having the ability to think outside the box and come up with innovative solutions sets you apart.</li><li><strong>Negotiation</strong>: Whether you’re negotiating project details, timelines, or resolving conflicts, being able to find win-win solutions is an important skill for advancing both personal and team goals.</li></ol><h3>How to Build Your Soft Skills</h3><p>The good news is, soft skills can be learned and improved with practice. Here are some practical ways to enhance them:</p><ul><li><strong>Ask for Feedback</strong>: Reach out to colleagues or mentors to get honest feedback on areas like communication, teamwork, or leadership.</li><li><strong>Join Clubs or Groups</strong>: Get involved in activities outside of work. This helps build interpersonal skills and gives you leadership experience.</li><li><strong>Take Online Courses</strong>: There are plenty of courses available that can help you strengthen specific skills like time management or emotional intelligence.</li><li><strong>Volunteer</strong>: Sharing your expertise by volunteering not only helps others but also improves your communication skills and confidence.</li></ul><h3>Conclusion: Engineering Success Beyond the Code</h3><p>While technical skills are essential for engineers, soft skills are just as important in today’s collaborative, fast-paced environment. Developing your communication, leadership, and emotional intelligence can take your career to the next level, making you not only a better engineer but a more effective leader. So, invest time in honing these skills — they’ll empower you to excel in both your personal and professional life.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9e4dd80be32d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The True Price of Technical Debt: Why Shortcuts Are Never Free]]></title>
            <link>https://samirsomer.medium.com/the-true-price-of-technical-debt-why-shortcuts-are-never-free-be89fc0e711e?source=rss-5f0b74cbcd68------2</link>
            <guid isPermaLink="false">https://medium.com/p/be89fc0e711e</guid>
            <category><![CDATA[agile]]></category>
            <category><![CDATA[software-architecture]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[technical-debt]]></category>
            <category><![CDATA[code-review]]></category>
            <dc:creator><![CDATA[Samir Abdullatif]]></dc:creator>
            <pubDate>Sat, 21 Sep 2024 08:33:49 GMT</pubDate>
            <atom:updated>2024-09-21T08:33:49.235Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*wa5YO9TvGdojhc74" /><figcaption>Photo by <a href="https://unsplash.com/@irzvn_?utm_source=medium&amp;utm_medium=referral">Fatemeh Rezvani</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>A few years ago, while working on a project with a tight deadline. We had a small bug in the code, but it wasn’t critical, so I decided to take a shortcut to get things done faster. I knew it wasn’t the cleanest solution, but it worked well enough at the time. I told myself I’d come back and fix it later when I had more time. Weeks turned into months, and that “temporary” solution remained in the code. Eventually, as we added new features, things started to break in unexpected ways. Bugs multiplied, and each new issue became harder to fix because it was all tangled up with that original shortcut. What should have been a quick fix now took days to unravel. That’s when I truly understood the impact of <strong>technical debt</strong>. Just like borrowing money, cutting corners in coding might help you move faster in the short term, but if you don’t “pay it back” by cleaning up the code, it accumulates interest. Eventually, it costs you more time and effort to fix it than if you’d done it right from the start.</p><h3>Causes of Technical Debt</h3><p>Technical debt occurs when development teams take shortcuts to deliver projects faster. These shortcuts might help meet immediate goals, but if not addressed promptly, they create long-term problems that grow over time. Agile development, which emphasizes quick iterations and frequent releases, can sometimes contribute to technical debt if speed is prioritized over quality and sustainable coding practices.</p><ul><li><strong>Rushed Development</strong>: When projects face tight deadlines, developers are often pressured to deliver new features or products quickly. To meet these deadlines, they may implement quick, temporary solutions rather than well-thought-out, long-term ones. While this helps the team move fast in the short term, it leaves behind messy code that requires fixing later.</li><li><strong>Lack of Documentation</strong>: Good documentation ensures that developers (including future team members) understand the codebase, the system’s architecture, and the reasoning behind key decisions. Skipping documentation can speed up development, but it creates problems down the line. Without proper documentation, developers might misunderstand how certain features were implemented or why certain decisions were made.</li><li><strong>Changing Requirements</strong>: In fast-paced or Agile environments, business requirements often change mid-project. When the goals or features are altered after development has already begun, the code that was written for the original requirements might no longer fit the new ones. Instead of rewriting the code to match the new goals, developers may use patches, workarounds, or “hacks” to accommodate these changes quickly. While this may seem efficient, it creates technical debt by introducing inconsistencies and complexity into the codebase.</li><li><strong>Poor Design Choices</strong>: Technical debt can result from poor architectural or design decisions, especially in the early stages of a project. Sometimes, teams may lack the experience to choose the right frameworks, tools, or system architecture. Other times, due to lack of time or resources, they opt for quick, short-term solutions instead of scalable, efficient ones.</li><li><strong>Not Refactoring</strong>: As a project grows, the code can become messy and disorganized. Refactoring — cleaning up the code, optimizing performance, and restructuring without changing its functionality — helps keep the codebase maintainable and scalable. However, when refactoring is consistently postponed, the codebase can become increasingly difficult to work with.</li></ul><h3>Consequences of Technical Debt</h3><p>Technical debt may seem small at first but can grow into a major problem over time. The longer you wait to address it, the harder it becomes to fix. This can affect your team’s productivity and even the quality of your software.</p><ol><li><strong>Higher Maintenance Costs</strong>: Fixing small issues becomes time-consuming and costly.</li><li><strong>Slower Development</strong>: Adding new features takes longer due to existing issues.</li><li><strong>More Bugs and Failures</strong>: Quick fixes increase the chances of bugs and system crashes.</li><li><strong>Decreased Morale</strong>: Developers get frustrated working with messy, outdated code.</li><li><strong>System Failure</strong>: In severe cases, technical debt can cause complete system failure, leading to expensive overhauls.</li></ol><h3>Strategies to Manage and Reduce Technical Debt</h3><p>Managing technical debt requires an active approach. The goal is to balance delivering features quickly while also keeping the codebase clean and stable. Regularly reviewing and improving the code can prevent technical debt from piling up.</p><ul><li><strong>Prioritize Quality from the Start:</strong> Focus on building clean, maintainable code from the beginning of the project. Avoid taking unnecessary shortcuts or implementing “quick fixes” without a plan to revisit them. Even under tight deadlines, aiming for quality reduces the likelihood of costly issues later on.</li><li><strong>Regularly Refactor Code:</strong> Refactoring is the process of improving and cleaning up the existing codebase without changing its functionality. Make refactoring a regular part of the development cycle to prevent code from becoming unmanageable. Small, consistent improvements over time help maintain the health of the code and reduce the accumulation of technical debt.</li><li><strong>Invest in Documentation:</strong> Comprehensive documentation helps developers understand the system and codebase, making it easier to maintain and modify in the future. Ensure that your code, architecture, and design choices are well-documented, so future team members can easily grasp the project’s structure and intent.</li><li><strong>Allocate Time for Technical Debt Reduction:</strong> Set aside time in each sprint or development cycle specifically to address technical debt. This could include refactoring, improving documentation, or addressing lingering bugs. Consistently reducing debt prevents it from becoming a larger issue in the future.</li><li><strong>Plan for Scalability Early:</strong> Make sure your system architecture is built with scalability in mind from the beginning. Poor design decisions early in the project can lead to massive technical debt when the system grows. Consider the long-term needs of the project to avoid costly rewrites later on.</li></ul><h3>Conclusion</h3><p>Avoiding technical debt requires deliberate, ongoing effort. By prioritizing code quality, regularly refactoring, investing in documentation, and maintaining good coding standards, teams can minimize the risks of technical debt. Managing workload effectively and making technical debt reduction part of the process ensures long-term sustainability for any software project.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=be89fc0e711e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Protect your Network from BGP Attacks with BGPAlerter]]></title>
            <link>https://samirsomer.medium.com/how-to-protect-your-network-from-bgp-attacks-with-bgpalerter-b62eb13d146b?source=rss-5f0b74cbcd68------2</link>
            <guid isPermaLink="false">https://medium.com/p/b62eb13d146b</guid>
            <category><![CDATA[internet-service-provider]]></category>
            <category><![CDATA[networking]]></category>
            <category><![CDATA[internet]]></category>
            <category><![CDATA[bgp]]></category>
            <dc:creator><![CDATA[Samir Abdullatif]]></dc:creator>
            <pubDate>Sat, 05 Feb 2022 13:42:41 GMT</pubDate>
            <atom:updated>2022-02-05T13:42:41.691Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*wAtC0y-9q1gD72qq" /><figcaption>Photo by <a href="https://unsplash.com/@alinnnaaaa?utm_source=medium&amp;utm_medium=referral">Alina Grubnyak</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>BGP lies at the hear of the internet. It’s responsible for exchanging the network information and updates (prefixes announcements) between networks. as such, monitoring your BGP is an important task to ensure no configuration or malicious attacks are present at your network. <a href="https://github.com/nttgin/BGPalerter">BGPAlerter </a>is a tool developed by NTT that monitors eBGP in real-time with the ability to send alerts to multiple notification channels. with BGPAlerter you can monitor you network for any of the following scenarios:</p><ul><li>Prefixes loses visibility.</li><li>Prefixes is hijacking.</li><li>Invalid RPKI announcements (e.g., not matching prefix length).</li><li>Prefixes announcements not covered by ROAs.</li><li>Expiring ROAs.</li><li>RPKI Trust Anchors malfunctions</li><li>your AS is announcing a new prefix that was never announced before.</li><li>an unexpected upstream (left-side) AS appears in an AS path.</li><li>an unexpected downstream (right-side) AS appears in an AS path.</li><li>one of the AS paths used to reach your prefix matches a specific condition defined by you.</li></ul><h3>Installing BGPAlerter</h3><p>BGPAlerter can be installed either by using the per-compiled binaries, compiling from source, or using Docker. for simplicity We’ll be using the Binary version running on Linux Ubuntu 18.04.</p><p>First we are going to download the binary release from <a href="https://github.com/nttgin/BGPalerter/releases">here.</a></p><pre>mkdir /opt/bgpalerter</pre><pre>cd /opt/bgpalerter</pre><pre>wget <a href="https://github.com/nttgin/BGPalerter/releases/download/v1.29.0/bgpalerter-linux-x64">https://github.com/nttgin/BGPalerter/releases/download/v1.29.0/bgpalerter-linux-x64</a></pre><p>Next, simply change the permission to make it executable and run the binary</p><pre>chmod +x bgpalerter-linux-x64</pre><pre>mv bgpalerter-linux-x64 bgpalerter</pre><pre>./bgpalerter</pre><h3>Configuring BGPAlerter</h3><p>First time running bgrpalerter you will be with a configuration wizard that will walk you through the configuration, you will be asked to:</p><ul><li>Autonomous Systems Numbers you want to monitor, you can monitor multiple ASNs separated by commas</li><li>decide if you want to receive alerts when new prefixes are announced</li><li>decide if you want to receive alerts if a new upstream/downstream appears in the path</li></ul><pre>? The file prefixes.yml cannot be loaded. Do you want to auto-configure BGPalerter? Yes<br>? Which Autonomous System(s) you want to monitor? (comma-separated, e.g., 2914,3333) 15706<br>? Do you want to be notified when your AS is announcing a new prefix? Yes<br>? Do you want to be notified when a new upstream AS appears in a BGP path? Yes<br>? Do you want to be notified when a new downstream AS appears in a BGP path? Yes</pre><p>After completing the wizard, BGPAlerter will create the config file “config.yml” and “prefixes.yml”</p><h4>Prefixes Configuration</h4><p>the prefixes.yml file will contains all the prefixes belonging to the ASNs you are monitoring with additional attributes.</p><p>Mandatory attributes are:</p><ul><li>description: A description that will be reported. in the alerts.</li><li>asn: The expected origin AS(es) of the prefix.</li><li>ignoreMorespecifics: Prefixes more specific of the current one will be excluded from monitoring.</li></ul><pre>10.0.0.0/24:<br>  description: Customer1 <br>  asn:<br>    - 65536<br>  ignoreMorespecifics: false<br>  ignore: false<br>  group: group1<br>192.168.0.0/24:<br>  description: No description provided (No ROA available)<br>  asn:<br>    - 65536<br>  ignoreMorespecifics: false<br>  ignore: false<br>  group: group2</pre><h4>BGPAlerter Config.yml</h4><p>All of BGPalerter configuration is stored in config.yml, the main sections you will be configuring are:</p><ul><li>Monitors: analyze the data flow and produce alerts. Different monitors try to detect different issues.</li><li>Reports: configure your notification channels.</li></ul><h3>Defining a Notification channel</h3><p>by default alerts will appear on logs/report.log, alternatively additional methods of notification can be configured such as email, slack, telegram, alerta, kafka, …etc.</p><p>below sample shows configuring email alerts.</p><pre>- file: reportEmail<br>    channels:<br>      - hijack<br>      - newprefix<br>      - visibility<br>      - path<br>      - misconfiguration<br>      - rpki<br>      - roa<br>    params:<br>      showPaths: 5 # Amount of AS_PATHs to report in the alert<br>      senderEmail: bgpalerter@thenetmechanic.com<br>      # BGPalerter uses nodemailer.<br>      # The smtp section can be configured with all the parameters available at https://nodemailer.com/smtp/<br>      # the following are just the most useful one<br>      smtp:<br>        host: mail.thenetmechanic.com<br>        port: 25<br>        secure: false # If true the connection will use TLS when connecting to server. If false it will be still possible doing connection upgrade via STARTTLS<br>        ignoreTLS: true # If true TLS will be completely disabled, including STARTTLS. Set this to true if you see certificate errors in the logs.<br>        auth:<br>          user: samir@thenetmechanic.com<br>          pass: &lt;email_password&gt;<br>          type: login<br>        tls:<br>          rejectUnauthorized: true  # Reject unauthorized certificates<br>      notifiedEmails:<br>        default:<br>          - samir@thenetmechanic.com</pre><p>the email you will receive will look like</p><pre>type:announcement timestamp:1643956781131 prefix:2a00:5884::/32 peer:124.0.0.3 path:[1,2,3,204092] nextHop:124.0.0.3 aggregator:null<br></pre><pre>DETAILS:<br>------------------------------------------------------<br>Monitored prefix:     10.0.0.0/24<br>Prefix Description:   Customer1 <br>Usually announced by: 65536<br>Event type:           monitor-passthrough<br>Now announced by:     65538<br>Now announced with:   2a00:5884::/32<br>When event started:   2022-02-04 06:39:41 UTC<br>Last event:           2022-02-04 06:39:41 UTC<br>Detected by peers:    1<br>See in BGPlay:        https://bgplay.massimocandela.com/?resource=0.0.0.0/0&amp;ignoreReannouncements=true&amp;starttime=1643956481&amp;endtime=1643956781&amp;rrcs=0,1,2,5,6,7,10,11,13,14,15,16,18,20&amp;type=bgp</pre><pre>Top 1 most used AS paths:<br>2,3,204092</pre><h3>Monitoring BGPAlerter</h3><p>You can monitor your BGPAlerter process to make sure the service is always up using the “uptimeAPI”. this enables retrieving the current status of BGPAlerter through API.</p><p>To configure uptimeAPI in the config.yml</p><pre>processMonitors:<br> - file: uptimeApi<br>   params:<br>     useStatusCodes: true</pre><p>The API is reachable at http://localhost:8011/status and provides a summary of the status of various components of BGPalerter. If any of the components is having a problem, the attribute warning is set to true.</p><p>Below is example of of the API output:</p><pre>samir@tnm01:~$ curl -s http://localhost:8011/status | jq<br>{<br>  &quot;warning&quot;: false,<br>  &quot;connectors&quot;: [<br>    {<br>      &quot;name&quot;: &quot;ConnectorRIS&quot;,<br>      &quot;connected&quot;: true      <br>    }<br>  ],<br>  &quot;rpki&quot;: {<br>    &quot;data&quot;: true,<br>    &quot;stale&quot;: false,<br>    &quot;provider&quot;: &quot;rpkiclient&quot; <br>  }<br>}<br>samir@tnm01:~$</pre><p>You can change the port or the IP address from the localhost in the config.yml</p><pre>rest:<br>  host: localhost<br>  port: 8011</pre><p>in this guide we demonstrated how to install and configure BGPAlerter to monitor and alert you against BGP changes in your network.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b62eb13d146b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to manage your backup easily with Restic]]></title>
            <link>https://samirsomer.medium.com/how-to-manage-your-backup-easily-with-restic-3fbc5766b0b2?source=rss-5f0b74cbcd68------2</link>
            <guid isPermaLink="false">https://medium.com/p/3fbc5766b0b2</guid>
            <category><![CDATA[snapshot]]></category>
            <category><![CDATA[system-administration]]></category>
            <category><![CDATA[backup]]></category>
            <category><![CDATA[networking]]></category>
            <dc:creator><![CDATA[Samir Abdullatif]]></dc:creator>
            <pubDate>Sun, 27 Jun 2021 07:25:45 GMT</pubDate>
            <atom:updated>2021-06-27T07:25:45.602Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*wQpR1v-7GwuI6k1A" /><figcaption>Photo by <a href="https://unsplash.com/@markusspiske?utm_source=medium&amp;utm_medium=referral">Markus Spiske</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p><a href="https://restic.net/">Restic </a>is a modern backup program that can back up your files, it works across platforms <strong>Linux, BSD, Mac and Windows.</strong></p><p>Restic comes with many features that makes it easy to manage your backup such as:</p><ul><li><strong>Multiple storage types</strong>, including self-hosted and online services</li><li><strong>Easy to setup and deploy</strong>, being a single executable that you can run without a server or complex setup</li><li><strong>Effective</strong>, only transferring the parts that actually changed in the files you back up</li><li><strong>Secure</strong>, by careful use of cryptography in every part of the process</li><li><strong>Verifiable</strong>, enabling you to make sure that your files can be restored when needed</li><li><strong>free</strong> — restic is entirely free to use and completely open source</li></ul><h3>Installing restic on Centos 7</h3><pre>yum install yum-plugin-copr<br>yum copr enable copart/restic<br>yum install restic</pre><p>for other OS or distributions, you can follow the <a href="https://restic.readthedocs.io/en/stable/020_installation.html">Installation Instructions Page</a> in the manual or download the latest native binary on the <a href="https://github.com/restic/restic/releases/latest">GitHub Download Page</a>.</p><h3><strong>Initializing Backup Repository</strong></h3><p>A “<strong>repository</strong>” is the term used by restic to define where your backup will reside. the repository can be stored locally, or on remote server or service. to start using a repository you first initialize it by running the command:</p><pre>restic init --repo /srv/mybackup</pre><p>you will be prompted to enter password</p><h3>Backing-up a directory</h3><p>after initializing your repository, now you are ready to backup some data. in restic, the content of a directory at a given time is called “<strong>snapshot</strong>“. to create snapshot of your data you can run</p><pre>restic -r /srv/mybackup/ --verbose backup /home/samirsomer</pre><p>you can also utilize the options –include and –exclude with wildcards to fune tune your backup</p><pre># exclude all files ending with with &quot;.c&quot; from the home directory</pre><pre>restic -r /srv/mybackup backup ~/work --exclude=&quot;*.c&quot;</pre><pre># exclude all file in list from the home directory<br>restic -r /srv/mybackup backup ~/work --exclude-file=excludes.txt</pre><h3>Managing snapshots</h3><p>To list all snapshots in a given repository you can run</p><pre>restic -r /srv/restic-repo snapshots</pre><pre># to filter the listing by directory path<br>restic -r /srv/restic-repo snapshots --path=&quot;/srv&quot;</pre><p>if you want to copy you snapshots across repositories, for example from a local repository to a remote one, you can run</p><pre># to copy all snapshots<br>restic -r /srv/mybackup copy --repo2 /tmp/remote-backup</pre><pre># to copy specific snapshots<br>restic -r /srv/mybackup copy --repo2 /tmp/remote-backup 410b18a2 4e5d5487 latest</pre><h3>Restoring a Backup</h3><p>To restore backup you can simply run the below command and pass the snapshot id that you can get from listing the snapshots</p><pre>restic -r /srv/mybackup/ restore 115b2977 --target /tmp/</pre><p>This has been a short tutorial on resitc. you can found more details by reading the tool documentation <a href="https://restic.readthedocs.io/en/stable/010_introduction.html">here.</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3fbc5766b0b2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[5 Tips for a Better IT Strategic Plan]]></title>
            <link>https://samirsomer.medium.com/5-tips-for-a-better-it-strategic-plan-4c1e52cbad5c?source=rss-5f0b74cbcd68------2</link>
            <guid isPermaLink="false">https://medium.com/p/4c1e52cbad5c</guid>
            <category><![CDATA[strategic-planning]]></category>
            <category><![CDATA[it]]></category>
            <category><![CDATA[business]]></category>
            <category><![CDATA[strategy]]></category>
            <category><![CDATA[planning]]></category>
            <dc:creator><![CDATA[Samir Abdullatif]]></dc:creator>
            <pubDate>Sun, 05 Jul 2020 06:10:01 GMT</pubDate>
            <atom:updated>2020-07-07T08:45:24.241Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Ughx6p1z2jyuQgNm" /><figcaption>Photo by <a href="https://unsplash.com/@diggitymarketing?utm_source=medium&amp;utm_medium=referral">Diggity Marketing</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>A strategic plan is crucial to the success of any organization, and it is what separates the top performing IT organization from the rest. nevertheless, most organization does not follow a formal strategic planning process, instead they focus on the day to day operations and navigate in the market without clear direction. Below are some tips that will help you improve your IT Strategy:</p><h3>1- Make Sure your Plan is Aligned with the Business Goals</h3><p>The first step is to understand and align with the business goals, you need to understand your core business, and how will your business win? what will differentiate you organization from the rest of the competitors (e.g. lower cost, innovative solutions, customer experience …etc). After knowing your business edge you need to identify what capabilities you will need to meet those needs and how IT can contribute towards achieving them.</p><h3>2- Engage your employees</h3><p>A common mistakes that organizations tends to make instead of having a defined strategy that is to rely instead on a group of senior leaders for making key decisions. Employees are the core of every organization’s success, and having your employee involved and aware of the organization vision and strategy is a key component for achieving success. so try to make sure every employee understands their role in achieving the organization’s strategy.</p><h3>3- Have a Separate Strategic plan and IT Plan</h3><p>A strategy is not a plan. A plan essentially is a detailed Gantt Charts the details who will do what, where, when, at what cost, and under which risks. having a separate action plan is useful since plans are not fixed. they can be affected by a number of factors internally and externally and accordingly you plan needs to change and adapt. On the other hand your strategy will remain fixed for the medium term (5–7 years) and provide clear direction for you organization whenever a change in plan is needed.</p><h3>4- Have Clear Processes and Control</h3><p>There needs to be a set of principles and guidelines to make sure day to day decisions and activities are tracked and are consistent with the business strategy. Other factors you will need to think of are: IT Governance, Financial Management, and what metrics will are needed to measure the success of the IT contribution, and how does it map to the business success metrics.</p><h3>5- Define the Execution Plan</h3><p>This is the area which most IT Professionals tends to think of when developing an IT strategy. Here you need to establish what is your current service catalogue and what it should be. what needs to be improved in the current architecture to reach the desired goal. what will be outsourced and what will be insourced. finally what is the IT staff talents level and what gaps needs to be filled in terms of training and capacity building.</p><h3>Final thoughts</h3><p>Having a solid IT strategic plan that is very much aligned with the organization’s goals and that provides a fix direction for all level of employees, increases your chance for improving the organization business and realizing it’s goals.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4c1e52cbad5c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to access a network device through a jump server using Jump]]></title>
            <link>https://samirsomer.medium.com/how-to-access-a-network-device-through-a-jump-server-using-jump-b6bbb6960058?source=rss-5f0b74cbcd68------2</link>
            <guid isPermaLink="false">https://medium.com/p/b6bbb6960058</guid>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[networking]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[Samir Abdullatif]]></dc:creator>
            <pubDate>Fri, 18 Oct 2019 10:11:34 GMT</pubDate>
            <atom:updated>2019-10-18T10:11:34.722Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/671/1*iA9nZza772XN-etnQON7oA.png" /></figure><p>A jump host is a server inside a secure zone, that you access from a less secure zone. You can then jump from this host to greater security zones. An example would be a high security zone inside a corporation.</p><p>in this tutorial we are going to get a backup of a router configuration through a jumpserver using jumpssh</p><p><a href="https://github.com/AmadeusITGroup/JumpSSH">JumpSSH</a> is a module for Python 2.7+/3.4+ that can be used to run commands on remote servers through a gateway.</p><p>installing the required packages</p><pre>pip install jumpssh<br>pip install python-dotenv</pre><p>we will use <a href="https://github.com/theskumar/python-dotenv">python-dotenv</a> to manage our credentials to environment variable.</p><p>creating a .env file in the same path of our script</p><pre>jumpserver_ip = &#39;your_jump_server_ip&#39;<br>jumpserver_username = &#39;your_jump_server_username&#39;<br>jumpserver_password = &#39;your_jump_server_password&#39;<br>remote_ip = &#39;your_remote_node_ip&#39;<br>remote_username = &#39;your_remote_node_username&#39;<br>remote_password = &#39;your_remote_node_password&#39;</pre><p>then creating our script</p><pre><em>from</em> dotenv <em>import</em> load_dotenv<br><em>import</em> jumpssh<br><em>import</em> os</pre><pre>load_dotenv()</pre><pre>jumpserver_ip = os.getenv(&quot;jumpserver_ip&quot;)<br>jumpserver_username = os.getenv(&quot;jumpserver_username&quot;)<br>jumpserver_password = os.getenv(&quot;jumpserver_password&quot;)<br>remote_ip = os.getenv(&quot;remote_ip&quot;)<br>remote_password = os.getenv(&quot;remote_password&quot;)</pre><pre>gateway_session = SSHSession(jumpserver_ip, jumpserver_username, password=jumpserver_password).open()</pre><pre><br>remote_session = gateway_session.get_remote_session(remote_ip, password=remote_password, allow_agent=False, look_for_keys=False)</pre><pre>fl = open(&#39;R1.txt&#39;, &#39;w&#39;)</pre><pre>fl.write(remote_session.get_cmd_output(&#39;show running config&#39;))</pre><pre>fl.close()<br>remote_session.close()<br>gateway_session.close()</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b6bbb6960058" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Detect Twitter Bots]]></title>
            <link>https://samirsomer.medium.com/how-to-detect-twitter-bots-384d0a496aff?source=rss-5f0b74cbcd68------2</link>
            <guid isPermaLink="false">https://medium.com/p/384d0a496aff</guid>
            <category><![CDATA[bots]]></category>
            <category><![CDATA[twitter]]></category>
            <category><![CDATA[spam]]></category>
            <dc:creator><![CDATA[Samir Abdullatif]]></dc:creator>
            <pubDate>Mon, 09 Sep 2019 14:36:00 GMT</pubDate>
            <atom:updated>2019-09-09T14:37:42.453Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*b58MtOpcf0m_6NDI" /><figcaption>Credit: <a href="https://unsplash.com/@brett_jordan?utm_source=medium&amp;utm_medium=referral">Brett Jordan</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>With the ever-increasing use of the internet social media on our daily life, a new wave of risks and challenges arose.</p><p>One of the of the risks that have rapidly surfaced in the last years is the attempted to shape public opinion by artificially injecting ideas (Fake News or malicious views) or interacting with accounts in such a manner that serves the interest of a specific group. as we’ve seen with the 2016 US Election.</p><p>Twitter is one of pillars for political discourse the with around <a href="https://www.statista.com/statistics/282087/number-of-monthly-active-twitter-users/">330 million active user</a>. and according to a recent <a href="https://arxiv.org/pdf/1703.03107.pdf">study</a> almost as much as 48 million account that are likely bots.</p><p><strong>So what is an internet bot ?</strong></p><p>An internet social bot is an autonomous program which can interact with systems or users and run social accounts in a way that mimics human. It is worthy to point out that not all bots are harmful, some bots are used for automating repetitive tasks like trading bots and web crawling bot.</p><p><strong>How to spot a twitter bot ?</strong></p><p>There is no defined method you can adopt to identify bots on Twitter but there are some signs that can help you identify bot accounts from legitimate ones:</p><ul><li>Typically a Twitter bots will have a relatively recent creation date.</li><li>A bot account will generally have an account name which is a bunch of numbers and letter which can make no sense and points to an auto generated name rather a guanine name.</li><li>There is often no bio associated with the bot accounts.</li><li>The Account will be tweeting using trending hashtags that might not be within the same context of the tweet itself.</li><li>The account primarily retweets content, rather than tweeting original content.</li><li>The account’s tweet frequency is higher than a human user could feasibly achieve.</li></ul><p>Next time you are on twitter keep an eye on these signs and be wary of suspicious accounts. also spread awareness to combat harmful bots.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=384d0a496aff" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Monitoring Network Devices using InfluxDB TICK Stack]]></title>
            <link>https://samirsomer.medium.com/monitoring-network-devices-using-influxdb-tick-stack-e53d57cd10fa?source=rss-5f0b74cbcd68------2</link>
            <guid isPermaLink="false">https://medium.com/p/e53d57cd10fa</guid>
            <category><![CDATA[monitoring]]></category>
            <category><![CDATA[influxdb]]></category>
            <category><![CDATA[timeseries]]></category>
            <category><![CDATA[tick-stack]]></category>
            <dc:creator><![CDATA[Samir Abdullatif]]></dc:creator>
            <pubDate>Mon, 09 Sep 2019 05:01:55 GMT</pubDate>
            <atom:updated>2019-09-09T05:01:55.385Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*o6Ftu1rB03zj-g10khAOiQ.jpeg" /></figure><p>In this post I’m are going to show you how to install and configure InfluxDB TICK Stack for monitoring your network routers and devices using SNMP. InfluxData provides a <a href="https://www.influxdata.com/modern-time-series-platform/">Modern</a> Time Series Platform, designed from the ground up to handle metrics and events. <a href="https://www.influxdata.com/products/editions/">InfluxData’s products</a> are based on an open source core. This open source core consists of the projects — <a href="https://www.influxdata.com/time-series-platform/telegraf/">Telegraf</a>, <a href="https://www.influxdata.com/time-series-platform/influxdb/">InfluxDB</a>, <a href="https://www.influxdata.com/time-series-platform/chronograf/">Chronograf</a>, and <a href="https://www.influxdata.com/time-series-platform/kapacitor/">Kapacitor</a>; collectively called the TICK Stack.</p><h3>What is a Time Series?</h3><p>A time series is simply any set of values with a timestamp where time is a meaningful component of the data.</p><h3>What is the TICK Stack?</h3><ul><li><a href="https://www.influxdata.com/time-series-platform/telegraf/">Telegraf</a>: A metrics collection agent. Use it to collect and send metrics to InfluxDB. Telegraf’s plugin architecture supports collection of metrics from 100+ popular services right out of the box.</li><li><a href="https://www.influxdata.com/time-series-platform/influxdb/">InfluxDB</a> is a high performance Time Series Database. It can store hundreds of thousands of points per second. The InfluxDB SQL-like query language was built specifically for time series.</li><li><a href="https://www.influxdata.com/time-series-platform/chronograf/">Chronograf</a>: A UI layer for the whole TICK stack. Use it to set up graphs and dashboards of data in InfluxDB and hook up Kapacitor alerts.</li><li><a href="https://www.influxdata.com/time-series-platform/kapacitor/">Kapacitor</a>: A metrics and events processing and alerting engine. Use it to crunch time series data into actionable alerts and easily send those alerts to many popular products like PagerDuty and Slack.</li></ul><p>The entire TICK Stack is interoperable, yet each component can provide significant value as a standalone installation.</p><h3>Installing InfluxDB</h3><pre>#download the rpm<br>wget <a href="https://dl.influxdata.com/influxdb/releases/influxdb-1.4.3.x86_64.rpm">https://dl.influxdata.com/influxdb/releases/influxdb-1.4.3.x86_64.rpm</a></pre><pre>#installing the package<br>sudo yum localinstall influxdb-1.4.3.x86_64.rpm</pre><pre>#enabling and starting the influx daemon<br>sudo systemctl enable influxdb<br>sudo systemctl start influxd</pre><p>by defaults, InfluxDB will run out of the box with the default configurations, we will not be changing any of the configuration for this guide. you can find more information for the configuration parameters <a href="https://docs.influxdata.com/influxdb/v1.3/introduction/installation/#installation">here.</a></p><h3>Installing Telegraf</h3><pre>wget <a href="https://dl.influxdata.com/telegraf/releases/telegraf-1.5.2-1.x86_64.rpm">https://dl.influxdata.com/telegraf/releases/telegraf-1.5.2-1.x86_64.rpm</a></pre><pre>sudo yum localinstall telegraf-1.5.2-1.x86_64.rpm<br>sudo systemctl enable telegraf<br>sudo systemctl start telegraf</pre><p>Now that Telegraf is properly installed, we will move to configuring it to pull our routers and switches using SNMP. make sure that the following packages are installed: net-snmpd, snip-mibs-downloader</p><p>In order to find out the fields you need monitor you can perform <em>snmpwalk </em>on your network device</p><pre>snmpwalk -v 2c -c public 192.169.1.1</pre><p>here my router is having the IP of 192.168.1.1 and is configured to use SNMP version 2c with the community set to “<em>public</em>“. your need to change them with the values configured in your system.</p><p>if everything is configured correctly you will get something similar to the following:</p><pre>snmpwalk -v 2c -c public 192.168.1.1<br><br>SNMPv2-MIB::sysDescr.0 = STRING: <br>SNMPv2-MIB::sysObjectID.0 = OID: SNMPv2-SMI::enterprises.12823.250.10<br>DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (24163277) 2 days, 19:07:12.77<br>SNMPv2-MIB::sysContact.0 = STRING: <br>SNMPv2-MIB::sysName.0 = STRING: <br>SNMPv2-MIB::sysLocation.0 = STRING: <br>SNMPv2-MIB::sysServices.0 = INTEGER: 2<br>SNMPv2-MIB::sysORLastChange.0 = Timeticks: (0) 0:00:00.00<br>SNMPv2-MIB::sysORID.1 = OID: IF-MIB::ifMIB<br>SNMPv2-MIB::sysORID.2 = OID: SNMPv2-MIB::snmpMIB<br>SNMPv2-MIB::sysORID.3 = OID: TCP-MIB::tcpMIB<br>SNMPv2-MIB::sysORID.4 = OID: IP-MIB::ip<br>SNMPv2-MIB::sysORID.5 = OID: UDP-MIB::udpMIB<br>SNMPv2-MIB::sysORID.6 = OID: SNMP-VIEW-BASED-ACM-MIB::vacmBasicGroup<br>SNMPv2-MIB::sysORID.7 = OID: SNMP-FRAMEWORK-MIB::snmpFrameworkMIBCompliance<br>SNMPv2-MIB::sysORID.8 = OID: SNMP-MPD-MIB::snmpMPDCompliance<br>SNMPv2-MIB::sysORID.9 = OID: SNMP-USER-BASED-SM-MIB::usmMIBCompliance<br>...<br>...</pre><p>The fields we can use here are:</p><ul><li>SNMPv2-MIB::sysName.0: this will return the system hostname.</li><li>DISMAN-EVENT-MIB::sysUpTimeInstance: the uptime of the device.</li><li>IF-MIB::ifTable: it contains counter on input and output traffic as well as errors and discards.</li><li>IF-MIB::ifDescr: used to identify interface name.</li><li>IF-MIB::ifXTable: contains newer High Capacity (HC) counters.</li></ul><p>Now we need to configure Telegraf to poll our switch. Configuration is stored at /etc/telegraf/telegraf.conf. It will also read in any configuration files in /etc/telegraf/telegraf.d, as long as the filename ends with .conf.</p><p>here what our configuration file will look like:</p><pre>[root@localhost ~]# cat /etc/telegraf/telegraf.d/routers.conf<br><br>[[inputs.snmp]]<br>  agents = [ &quot;192.168.1.1&quot; ]<br>  version = 2<br>  community = &quot;public&quot;<br>  interval = &quot;60s&quot;<br>  timeout = &quot;10s&quot;<br>  retries = 3<br><br>  [[inputs.snmp.field]]<br>    name = &quot;hostname&quot;<br>    oid = &quot;RFC1213-MIB::sysName.0&quot;<br>    is_tag = true<br><br>  [[inputs.snmp.field]]<br>    name = &quot;uptime&quot;<br>    oid = &quot;DISMAN-EVENT-MIB::sysUpTimeInstance&quot;<br><br>  # IF-MIB::ifTable contains counters on input and output traffic as well as errors and discards.<br>  [[inputs.snmp.table]]<br>    name = &quot;interface&quot;<br>    inherit_tags = [ &quot;hostname&quot; ]<br>    oid = &quot;IF-MIB::ifTable&quot;<br><br>    # Interface tag - used to identify interface in metrics database<br>    [[inputs.snmp.table.field]]<br>      name = &quot;ifDescr&quot;<br>      oid = &quot;IF-MIB::ifDescr&quot;<br>      is_tag = true</pre><p>Telegraf can test your configuration using the “--<em>test</em>” option, it will run one cycle and dumps it to the stdout.</p><pre>[root@localhost ~]# telegraf --test --config /etc/telegraf/telegraf.d/router.conf <br>* Plugin: inputs.snmp, Collection 1<br>* Internal: 1m0s<br>&gt; snmp,agent_host=192.168.1.1,host=localhost.localdomain uptime=24272025i 1520759747000000000<br>&gt; interface,ifDescr=wdsi3,ifIndex=11,agent_host=192.168.1.1,host=localhost.localdomain ifMtu=1500i,ifAdminStatus=2i,ifInUcastPkts=0i,ifInErrors=0i,ifOutOctets=0i,ifDescr=&quot;wdsi3&quot;,ifSpeed=0i,ifPhysAddress=&quot;c4:12:f5:3b:2e:f7&quot;,ifOutDiscards=0i,ifOutErrors=0i,ifType=1i,ifOperStatus=2i,ifInOctets=0i,ifOutQLen=0i,ifSpecific=&quot;.0.0&quot;,ifOutUcastPkts=0i 1520759750000000000<br>&gt; interface,ifDescr=eth2.21.21,ifIndex=18,agent_host=192.168.1.1,host=localhost.localdomain ifOperStatus=1i,ifInOctets=2676597780i,ifType=6i,ifSpeed=10000000i,ifPhysAddress=&quot;c4:12:f5:3b:2e:f5&quot;,ifSpecific=&quot;.0.0&quot;,ifDescr=&quot;eth2.21.21&quot;,ifMtu=1500i,ifOutDiscards=0i,ifOutQLen=0i,ifOutOctets=336085475i,ifOutUcastPkts=2140753i,ifInErrors=0i,ifOutErrors=0i,ifAdminStatus=1i,ifInUcastPkts=2620590i 1520759750000000000<br>&gt; interface,ifIndex=23,agent_host=192.168.1.1,host=localhost.localdomain,ifDescr=wds2 ifInUcastPkts=0i,ifOutQLen=0i,ifSpecific=&quot;.0.0&quot;,ifPhysAddress=&quot;c4:12:f5:3b:2e:f6&quot;,ifInErrors=0i,ifOutDiscards=0i,ifAdminStatus=2i,ifSpeed=0i,ifInOctets=0i,ifOutOctets=0i,ifOutErrors=0i,ifDescr=&quot;wds2&quot;,ifMtu=1500i,ifOperStatus=2i,ifOutUcastPkts=0i,ifType=1i 1520759750000000000<br>&gt; interface,ifDescr=eth2,ifIndex=2,agent_host=192.168.1.1,host=localhost.localdomain ifPhysAddress=&quot;00:0c:43:28:80:71&quot;,ifMtu=1500i,ifInUcastPkts=4627423i,ifOutOctets=1442553903i,ifInOctets=3002918283i,ifType=6i,ifInErrors=0i,ifOutQLen=0i,ifDescr=&quot;eth2&quot;,ifAdminStatus=1i,ifOperStatus=1i,ifOutUcastPkts=3525009i,ifOutDiscards=0i,ifOutErrors=0i,ifSpecific=&quot;.0.0&quot;,ifSpeed=10000000i 1520759750000000000<br>...<br>...</pre><p>Finally we need to tell Telegraf to pick up the new configuration</p><pre>sudo systemctl reload telegraf</pre><h3>Installing Chronograf and Kapacitor</h3><p>Chronograf is used for visualizing the metrics collected and stored by Telegraf and Influxdb respectively, while Kapacitor is used for programmatically processing the data.</p><pre>wget https://dl.influxdata.com/chronograf/releases/chronograf-1.4.1.3.x86_64.rpm<br>wget https://dl.influxdata.com/kapacitor/releases/kapacitor-1.4.0.x86_64.rpm<br><br>sudo yum localinstall chronograf-1.4.1.3.x86_64.rpm<br>sudo yum localinstall kapacitor-1.4.0.x86_64.rpm<br><br>sudo systemctl enable chronograf<br>sudo systemctl enable kapacitor<br>sudo systemstl start chronograf<br>sudo systemstl start kapacitor</pre><p>Then go to <em>http://&lt;your_server_ip&gt;:8888 and keep the default configurations as it is and add the connection.</em></p><h3>Creating your first graph</h3><p>In order to create a graph you will first create a dashboard to host your graph click in the dashboard</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UbC1-gNtYjq5rut9lpTKIg.png" /><figcaption>Chronograf dashboard</figcaption></figure><p>After creating the dashboard, create the first graph</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rxs-4GjCKKRnly1C7GSnwQ.png" /><figcaption>adding graph to dashboard</figcaption></figure><p>After clicking add Graph click on Add Query to start exploring your data, you can experiment with the different measurement fields available, or enter the following query in the query box and save:</p><pre>SELECT DERIVATIVE<strong>(</strong>mean<strong>(</strong>&quot;ifOutOctets&quot;<strong>)</strong>, 1s<strong>)</strong> AS &quot;mean_ifOutOctets&quot; FROM &quot;telegraf&quot;.&quot;autogen&quot;.&quot;interface&quot; WHERE time &gt; :dashboardTime: AND &quot;ifDescr&quot;=&#39;eth2&#39; GROUP BY :interval: FILL<strong>(</strong>null<strong>)</strong></pre><p>Replace <em>“eth2” </em>with your interface name, also “<em>ifOutOctet” </em>is measuring the outgoing traffic as a counter value, we use the derivative function and multiply by 8 to convert from counter to bits per seconds</p><p>This is the basic setup and configuration for InfluxDB with Telegraf and Chronograf. I will share more advanced configuration in later posts.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e53d57cd10fa" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>