<?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 Gopikrishna Pandurangan on Medium]]></title>
        <description><![CDATA[Stories by Gopikrishna Pandurangan on Medium]]></description>
        <link>https://medium.com/@gopikrishnapandurangan?source=rss-72d8b35140db------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*p2fzDAWKHcKn_YcYN2TsWw@2x.jpeg</url>
            <title>Stories by Gopikrishna Pandurangan on Medium</title>
            <link>https://medium.com/@gopikrishnapandurangan?source=rss-72d8b35140db------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 12:36:52 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@gopikrishnapandurangan/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[How to Install Ansible and Set Up Apache on Ubuntu 24.10]]></title>
            <link>https://medium.com/@gopikrishnapandurangan/how-to-install-ansible-and-set-up-apache-on-ubuntu-24-10-9ff5954e1f30?source=rss-72d8b35140db------2</link>
            <guid isPermaLink="false">https://medium.com/p/9ff5954e1f30</guid>
            <dc:creator><![CDATA[Gopikrishna Pandurangan]]></dc:creator>
            <pubDate>Tue, 01 Apr 2025 16:52:52 GMT</pubDate>
            <atom:updated>2025-04-01T16:57:15.781Z</atom:updated>
            <content:encoded><![CDATA[<p>Ansible is an automation tool used to manage and configure computer systems. It simplifies tasks like software installation, system configuration, and application deployment.</p><p><strong>Ansible Core Architecture</strong></p><ul><li><strong>Control Node:</strong> The machine where Ansible is installed and from which you run Ansible commands and playbooks.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/918/1*EIxwHJIy2bBAHH53B7w-ug.png" /></figure><ul><li><strong>Managed Nodes:</strong> The servers that Ansible manages. Ansible is agentless, so no special software needs to be installed on these nodes.</li></ul><p><strong>Key Components</strong></p><ul><li><strong>Inventory:</strong> A list of the managed nodes. It defines the hosts and groups of hosts that Ansible can manage.</li><li><strong>Playbooks:</strong> YAML files that define the desired state of your systems. They contain one or more “plays”.</li><li><strong>Plays:</strong> A play defines a set of tasks to be executed on a specific group of hosts.</li><li><strong>Tasks:</strong> A task is a single unit of work that Ansible executes. It typically calls an Ansible module.</li><li><strong>Modules:</strong> Discrete units of code that Ansible executes on managed nodes to perform specific actions (e.g., installing packages, creating files, managing services).</li><li><strong>Plugins:</strong> Extensions to Ansible’s core functionality. They augment Ansible’s behavior in various ways.</li><li><strong>Roles:</strong> A way to organize and reuse Ansible content. A role is a directory structure that contains tasks, handlers, variables, and other Ansible components.</li><li><strong>Ansible Vault:</strong> A feature that allows you to encrypt sensitive data (like passwords or keys) in your playbooks and roles.</li></ul><p><strong>Ansible Connection Mechanism</strong></p><p>Ansible uses SSH to communicate with managed nodes. The process involves these steps:</p><ol><li>Ansible connects to the managed node via SSH.</li><li>Ansible copies the necessary modules to the managed node.</li><li>Ansible executes the modules on the managed node using Python.</li></ol><p><strong>Pros of Ansible</strong></p><p>Ansible offers many benefits:</p><ul><li><strong>Agentless:</strong> No agent software is required on managed nodes, simplifying installation and configuration.</li><li><strong>Simple:</strong> Easy to learn and use, with human-readable YAML configuration files and the Python language.</li><li><strong>Powerful:</strong> Manages complex IT workflows, with a large library of modules and plugin extensibility.</li><li><strong>Flexible:</strong> Manages diverse environments, including heterogeneous systems, cloud platforms, Windows servers, and network devices.</li><li><strong>Efficient:</strong> Executes tasks in parallel across multiple nodes, and allows you to define the order of execution.</li><li><strong>Secure:</strong> Uses SSH for secure communication and module execution.</li><li><strong>Open Source:</strong> An open-source project with many contributors, actively maintained on GitHub.</li><li><strong>Reproducible:</strong> Playbooks are written in YAML and can be version-controlled with Git, ensuring consistent results across systems. Ansible Galaxy allows sharing and reuse of playbooks.</li></ul><h4>Cons of Ansible</h4><p>Like any tool, Ansible has its drawbacks:</p><ul><li><strong>No State Management:</strong> Ansible does not manage state in the same way as tools like Terraform.</li></ul><p><strong>Ansible Installation and Configuration:</strong></p><p>I have installed ansible Controller and Ansible Managed node in Google Cloud.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*25WyGwHuScNtBd6AqgSw6w.png" /></figure><p>I have Created inventory/hosts, roles/apache/tasks/main.yml and apache-setup-playbook.yml in Ansible Controller Node.</p><p>Please find a configuration details of each file below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/548/1*Z1XneuYKMnGAfbseJ4X4vg.png" /></figure><blockquote>Inventory/hosts</blockquote><figure><img alt="inventory/hosts" src="https://cdn-images-1.medium.com/max/275/1*hJPe8JHi5um5p9sirgtp8g.png" /></figure><p>Note: I have tested only one Ansible Managed Node. If adding more nodes, modify the Inventory/hosts file accordingly.</p><blockquote>/roles/apache/tasks/main.yml</blockquote><figure><img alt="/roles/apache/tasks/main.yml" src="https://cdn-images-1.medium.com/max/662/1*JMo_vyNJeq4C6oly0A_2UA.png" /></figure><blockquote>apache-setup-playbook.yml</blockquote><figure><img alt="apache-setup-playbook.yml" src="https://cdn-images-1.medium.com/max/342/1*ZfTamvxO-lh5WrtXzwNRXg.png" /></figure><p>Installed ansible-core on ansible controller node:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1UDhcBt8Ln5O1O0KY60JQg.png" /></figure><p>Verified Ansible version using ansible — version command:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PGMvy3UOow0wd_638WTDPQ.png" /></figure><p>Generate ssh-keygen and copied the public key into Ansible managed node.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*Y6lCJ_Ros8Hsf_1JY4NRrg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mdOy2HCEeugGPyIEHX7bAQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8tIo8ysmx8odzJ_l07GCYQ.png" /></figure><p>Ran the Ansible Playbook to install Apache web server on the Ansible Managed Node:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jfmv0p8Xeg0VX7YK3Xdryg.png" /></figure><p>To check the status of the Apache2 service in ansibe managed node, you can use the following command:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CV4EgPtopkw6nXenoEAmzQ.png" /></figure><p>Open a web browser and enter the <a href="http://external-ip/">http://external-ip</a> of ansible managed node and verify the apache2 default webpage.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*CreapGZMbYAVnPHmpFC1Gw.png" /></figure><p>The default Apache webpage should load.</p><p>=============================================================</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9ff5954e1f30" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Case Study: Healthcare-Cloud Adoption]]></title>
            <link>https://medium.com/@gopikrishnapandurangan/case-study-healthcare-cloud-adoption-5965cd4dc738?source=rss-72d8b35140db------2</link>
            <guid isPermaLink="false">https://medium.com/p/5965cd4dc738</guid>
            <dc:creator><![CDATA[Gopikrishna Pandurangan]]></dc:creator>
            <pubDate>Tue, 21 Jan 2025 12:21:18 GMT</pubDate>
            <atom:updated>2025-01-21T19:19:33.427Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Background:</strong></p><p>Healthcare provider operating multiple hospitals and clinics across the US, aims to enhance patient care and operational efficiency through cloud adoption. Their current environment relies heavily on on-premises infrastructure, including legacy EHR systems, medical imaging systems, and administrative applications.</p><p><strong>Business Goals:</strong></p><ul><li><strong>Reduce Costs:</strong> Lower IT infrastructure costs and improve resource utilization.</li><li><strong>Enhance Patient Care:</strong> Improve patient experience through telemedicine services and faster access to medical records.</li><li><strong>Improve Operational Efficiency:</strong> Streamline administrative tasks and improve data-driven decision making.</li><li><strong>Regulatory Compliance:</strong> Ensure compliance with HIPAA, HITECH, and other relevant regulations.</li></ul><p><strong>Current Environment:</strong></p><p><strong>On-Premises Data Centers:</strong> Two locations in Chicago and Dallas.</p><p><strong>Network:</strong> MPLS backbone interconnecting hospitals and clinics.</p><p><strong>Workloads:</strong></p><ul><li>EHR: 5 Unix servers running a proprietary application.</li><li>Patient Portal: 3 Windows servers.</li><li>Medical Imaging: 4 Linux servers dedicated to PACS.</li><li>Administrative &amp; Billing: 3 Windows servers.</li></ul><p><strong>Databases:</strong></p><ul><li>Oracle cluster for EHR data.</li><li>SQL Server cluster for billing and administrative records.</li></ul><p><strong>Proposed Architecture:</strong></p><p>A hybrid cloud architecture is proposed, leveraging AWS services while maintaining critical systems on-premises.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*g_MJwFrYXiNy3Rt-fIs9wA.gif" /></figure><p><strong>Key Components:</strong></p><p><strong>AWS Regions:</strong> US-East (Ohio) and US-West (Oregon) for DR and geographic diversity.</p><p><strong>Connectivity:</strong> AWS Direct Connect for dedicated, high-bandwidth connectivity between on-premises data centers and AWS.</p><p><strong>Networking:</strong> VPCs with private subnets for secure isolation of resources.</p><p><strong>Security:</strong></p><ul><li>AWS Security Groups and Network ACLs for traffic filtering.</li><li>AWS WAF for web application firewall protection.</li><li>AWS Shield for DDoS protection.</li><li>AWS GuardDuty and Security Hub for threat detection and compliance monitoring.</li></ul><p><strong>Compute:</strong> EC2 instances for hosting patient portal, telemedicine services, and analytics workloads.</p><p><strong>Storage:</strong></p><ul><li>Amazon S3 for object storage and backups.</li><li>Amazon EBS for persistent storage for EC2 instances.</li><li>Amazon HealthLake Imaging for secure storage and retrieval of medical images.</li></ul><p><strong>Databases:</strong></p><ul><li>AWS RDS for Oracle for the EHR database, with multi-AZ deployment for high availability.</li><li>Amazon RDS for SQL Server for billing and administrative data.</li></ul><p><strong>Data Processing:</strong> AWS Lambda for event-driven processing and integration tasks.</p><p><strong>Integration:</strong></p><ul><li>API Gateway for exposing APIs for EHR and PACS systems.</li><li>iPaaS (e.g., AWS Step Functions, Amazon AppFlow) for orchestrating data flows between on-premises and cloud systems.</li></ul><p><strong>Monitoring and Observability:</strong></p><ul><li>CloudWatch for monitoring metrics and logs.</li><li>Amazon OpenSearch Service for log analysis and visualization.</li><li>CloudTrail for auditing API calls.</li></ul><p><strong>Identity and Access Management:</strong> AWS IAM for granular access control and user authentication, integrated with on-premises Active Directory.</p><p><strong>Disaster Recovery:</strong></p><ul><li>Cross-region replication of data across AWS regions.</li><li>Automated failover mechanisms for critical applications.</li><li>Regular DR drills and testing.</li></ul><p><strong>Integration Strategy:</strong></p><p><strong>EHR Integration:</strong></p><ul><li>Expose EHR functionality through APIs.</li><li>Utilize iPaaS to orchestrate data exchange between on-premises EHR and cloud-based applications (e.g., patient portal, analytics).</li><li>Consider using HL7 FHIR for data interoperability.</li></ul><p><strong>Imaging Workflow:</strong></p><ul><li>Integrate on-premises PACS with Amazon HealthLake Imaging for secure storage and retrieval of medical images.</li><li>Leverage DICOMweb standards for seamless image exchange.</li><li>Implement data replication strategies to ensure data availability in the cloud.</li></ul><p><strong>Disaster Recovery:</strong></p><ul><li><strong>RTO/RPO:</strong> Define and implement RTO/RPO targets for critical applications.</li><li><strong>Automated Failover:</strong> Configure automated failover mechanisms for critical systems like databases and applications.</li><li><strong>Regular Testing:</strong> Conduct regular DR drills to validate recovery procedures and identify areas for improvement.</li></ul><p><strong>Monitoring and Observability:</strong></p><ul><li>Implement comprehensive monitoring and logging using CloudWatch, OpenSearch, and other AWS services.</li><li>Set up alerts for critical events and anomalies.</li><li>Utilize security tools like GuardDuty and Security Hub for threat detection and compliance monitoring.</li></ul><p><strong>Regulatory Compliance:</strong></p><ul><li>Ensure compliance with HIPAA, HITECH, and other relevant regulations through strong security measures, data encryption, and regular audits.</li><li>Leverage AWS services like CloudTrail and Config to audit and monitor resource configurations.</li></ul><p><strong>Further Considerations:</strong></p><ul><li><strong>Cost Optimization:</strong> Explore cost-effective options like Reserved Instances, Spot Instances, and AWS Savings Plans to optimize cloud costs.</li><li><strong>Data Analytics:</strong> Leverage AWS services like Amazon Athena and Amazon Redshift for advanced data analytics and insights.</li><li><strong>Machine Learning:</strong> Explore the use of machine learning services like Amazon SageMaker for tasks such as image analysis, fraud detection, and predictive modeling.</li></ul><p><strong>Conclusion:</strong></p><p>This proposed architecture provides a solid foundation for Healthcare’s hybrid cloud journey. By leveraging AWS services, they can enhance patient care, improve operational efficiency, and achieve their business goals while ensuring data security and compliance.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5965cd4dc738" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Configuring DFS Namespaces for Amazon FSx]]></title>
            <link>https://medium.com/@gopikrishnapandurangan/configuring-dfs-namespaces-for-amazon-fsx-90eece6fd795?source=rss-72d8b35140db------2</link>
            <guid isPermaLink="false">https://medium.com/p/90eece6fd795</guid>
            <dc:creator><![CDATA[Gopikrishna Pandurangan]]></dc:creator>
            <pubDate>Wed, 24 Apr 2024 13:04:00 GMT</pubDate>
            <atom:updated>2024-04-24T13:04:00.326Z</atom:updated>
            <content:encoded><![CDATA[<p>DFS stands for Distributed File System, which is a set of client and server services that allow an organization using Microsoft Windows servers to organize many distributed SMB file shares into a distributed file system. The primary benefit of DFS is to simplify file management across multiple servers and locations by providing a unified namespace, making it easier for users to access files without needing to know their physical location. This simplifies file access and management for both users and administrators.</p><h3>Prerequisites</h3><p>1) Microsoft AD or AWS Managed Microsoft AD and it’s reachable by the AWS resources</p><p>2) Create a Windows Server EC2 instance that acts as a Namespaces server and join the EC2 instance to the AD</p><h3>Create Amazon FSx file systems</h3><ol><li>Navigate to file systems and click to Create file system</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*x6XSHzjN4m7V-R9LGlv00w.png" /></figure><p>2. Select Amazon FSx for Windows File Server and Click Next</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2SEY761CqZXcyKM5HeeS-Q.png" /></figure><p>3. Select Quick create and provide the information about filesystem</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HKp8-_qtjNdCnU09pSv5vw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/702/1*hIDlMUo5Na8hi-dW8hhRvQ.png" /></figure><p>4. provide Windows authentication details.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/801/1*s9BnuGzEizgixxvCFvjgwA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Gv9LugMFSRbHO6Uf-iRseg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5DgP4BGZkeoUahviawDegg.png" /></figure><p>5. Click to create file system and complete the file system creation action.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*maTodM0v2aJGnbY_T4WXHw.png" /></figure><p>6. open the DFS Management console and create a New Name Space</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gHSRZN9er5z3J4bUziEXEQ.png" /></figure><p>7. Edit the Name space settings</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*PLKyUShvAr2poSA8080jTg.png" /></figure><p>8. join the name space into domain based namespace</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iwIAZcgb1AMACdNtxIBUYg.png" /></figure><p>9. click Next to complete Name space creation action.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qY6n2_sn_O10wKzWguM4RQ.png" /></figure><p>10. Now go to the Namespace server DFS Management console, right-click the namespace you just created, and click <strong>New Folder(ganga)</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zmp6H0yt-8qrxMKnE4Lm1A.png" /></figure><p>11. Click Add to path folder target and add the DNS name of the filesystem</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jdGINbrGwxi9KaPcB92_pQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/926/1*-4Tv7v859Febv1_BtgzM6A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/535/1*tyLXvQR3T0nKgkUFKVYmGw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*u4YzPYLHW9BekzAF4A6ixg.png" /></figure><p>12. Click OK to complete the New Folder creation action. Repeat the same process for all the other shares you would like to map to a folder.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/935/1*io1fxCet-HDF2hOOabRJuw.png" /></figure><p>13. Right click the New folder and open in Explorer to To connect to the namespace.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*E55p-LqR1jA3spz_zLo-4Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eHR7gGkAmo3IboS2DyCaFw.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=90eece6fd795" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SQL Server Monitoring & log Collection Using Elastic Cloud]]></title>
            <link>https://medium.com/@gopikrishnapandurangan/what-is-elastic-cloud-090e218d540e?source=rss-72d8b35140db------2</link>
            <guid isPermaLink="false">https://medium.com/p/090e218d540e</guid>
            <dc:creator><![CDATA[Gopikrishna Pandurangan]]></dc:creator>
            <pubDate>Wed, 17 Apr 2024 12:53:24 GMT</pubDate>
            <atom:updated>2024-04-18T05:36:08.213Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/179/1*Ky3MCsHlI8fPnNOtRqmJAw.jpeg" /></figure><p><strong>What is Elastic Cloud</strong></p><p>Elastic Cloud is a cloud service offered by Elastic, the company behind popular open-source projects like Elasticsearch, Kibana, Beats, and Logstash.</p><p>Elastic Cloud provides managed Elasticsearch and Kibana deployments, offering scalability, security, and reliability without the need for users to manage the underlying infrastructure. It allows organizations to quickly deploy and manage Elasticsearch clusters for search, analytics, logging, and other use cases, without worrying about the complexities of infrastructure management.</p><p>Elastic Cloud offers features such as automatic scaling, built-in security controls, monitoring and alerting, and integration with other Elastic Stack components. Organizations can choose from various subscription plans based on their needs, including options for small businesses, enterprises, and specific use cases like logging or application performance monitoring.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/744/1*_lz4L1kqD1hkXYZNj1pQ7g.png" /></figure><p><strong><em>Elastic search</em> Vs Elastic Cloud</strong></p><p>Elastic Cloud and Elasticsearch are related but different concepts:</p><ol><li><strong><em>Elasticsearch</em></strong>: <em>Elasticsearch</em> is a distributed, RESTful search and analytics engine designed for horizontal scalability, reliability, and real-time search capabilities. It’s open-source and is commonly used for various use cases such as log and event data analysis, full-text search, and application performance monitoring. <em>Elasticsearch</em> forms the core of the Elastic Stack (formerly known as the ELK Stack), which also includes Kibana, Beats, and Logstash.</li><li><strong>Elastic Cloud</strong>: Elastic Cloud, on the other hand, is a cloud service offered by Elastic that provides managed Elasticsearch and Kibana deployments. It’s a platform as a service (PaaS) offering where users can deploy, manage, and scale Elasticsearch clusters without worrying about the underlying infrastructure. Elastic Cloud takes care of tasks such as provisioning, monitoring, security, and maintenance, allowing users to focus on utilizing Elasticsearch for their applications and analytics needs.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Vxh2usktkefRqOKrRYdJLg.png" /></figure><p><em>Elasticsearch</em> is the search and analytics engine itself, while Elastic Cloud is a managed service that offers Elasticsearch (along with Kibana) as a scalable and reliable cloud service, abstracting away the complexities of infrastructure management.</p><p><strong>Step by Step to configure SQL Integration on Elastic Cloud</strong></p><p><strong>1.Create a Elastic Cloud Account</strong></p><p>Please Login into <a href="https://cloud.elastic.co/login">https://cloud.elastic.co/login</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/435/1*nfoyT7i-19KFIGGEYesCoQ.png" /></figure><p>2. Create a New Elastic Cloud Deployment</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NbXflIUyyPXCjuYPm4MVNg.png" /></figure><p>3. Choose which cloud environment to deploy the elastic Cloud.( in my case my SQL server is in AWS environment and i will choose AWS Cloud Provider)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/822/1*skOGvG482FUKJEi6XWAotw.png" /></figure><p>4. Download elastic username and password and it will display only one time. keep noted the credential details or download it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/723/1*waEZXvcp_9CohPQRduRJZQ.png" /></figure><p>5. Once Elastic deployment is complete, please click and continue.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/693/1*4LNPQbBuY8YVFM6jez14Mg.png" /></figure><p>6. Click Explore my own way below options</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xIsjaWP-NVct2PeP1moTGg.png" /></figure><p>7.Click to Add Integration</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IskYrd6o_i0KGJ7Y9g3_mg.png" /></figure><p>8. we have collect the SQL logs and click Microsoft SQL server with Elastic Agent integration.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*MLmeN9AmJnM7cY0oWpLeGg.png" /></figure><p>9. Click to install Microsoft SQL Server Assets</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*W1bZL_Cn_TlhacGDurxy9w.png" /></figure><p>10. Once install Microsoft SQL Server Assets and please click to Add Microsoft SQL server( Right hand side option)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aQ2ZZfqQvfIhHhahK3jXag.png" /></figure><p>11. Click Install the Elastic agent option below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nyMi1U_xTL5FrfJw-fpd6w.png" /></figure><p>12. In my case , I have selected Windows OS and run the below Command in PowerShell.( Choose PowerShell Administrator while running Commands)</p><h3>Getting started with SQL Server monitoring using Elastic Agent</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tc5yPyGeRX4Bm6_-_dULiQ.png" /></figure><blockquote>$ProgressPreference = ‘SilentlyContinue’</blockquote><blockquote>Invoke-WebRequest -Uri <a href="https://artifacts.elastic.co/downloads/beats/elastic-agent/elastic-agent-8.13.2-windows-x86_64.zip">https://artifacts.elastic.co/downloads/beats/elastic-agent/elastic-agent-8.13.2-windows-x86_64.zip</a> -OutFile elastic-agent-8.13.2-windows-x86_64.zip</blockquote><blockquote>Expand-Archive .\elastic-agent-8.13.2-windows-x86_64.zip -DestinationPath .</blockquote><blockquote>cd elastic-agent-8.13.2-windows-x86_64</blockquote><blockquote>.\elastic-agent.exe install — url=https://c0b30414bd524c6393b92572ce24add7.fleet.us-east-1.aws.found.io:443 — enrollment-token=R05xbjY0NEJkem1hZWdtWmdxM0Q6dVdyeS1lbmlSeWVlaGpOYjhKLTZ1Zw==</blockquote><p>13. Please check the agent is installed successfully.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TpZZkmBcJbpkoW5nf9o5Sg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bauukeY16F4IK8xnZS4bQQ.png" /></figure><p>14. Click to Add the Integration and Complete the Elastic agent</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*n-_pHo8x8CBs8-MGa5DKGA.png" /></figure><p>15. Edit the Microsoft SQL Server integration policies</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2JGboXtc6zdJBXVT-k9UDA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tZdbBxET87Yv1GSN8OdbFw.png" /></figure><p>16. Change the SQL log path of to</p><p>C:\Program Files\Microsoft SQL Server\MSSQL15.MSSQLSERVER\MSSQL\Log\ERROR*</p><p>and username is “sa” and password of “sa” username not domain password or windows EC2 password.</p><p>Also, if it’s not a part of domain use only username and don’t use domain\username</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*a1YmTGw-esDzLJt2b63kUg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/907/1*1O3wevHllVVq-RR2zyW3pw.png" /></figure><p>17 . Click Microsoft SQL server Assets tab and explore the below logs.</p><blockquote>[Metrics Microsoft SQL Server] Transaction log</blockquote><blockquote>[Logs Microsoft SQL Server Audit Events] Overview</blockquote><blockquote>[Logs Microsoft SQL Server] Error Log Overview</blockquote><blockquote>[Metrics Microsoft SQL Server] Performance</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fkY5rzk7b6Iw-WmAtVCKpA.png" /></figure><h3>Microsoft SQL Server dashboards</h3><p><strong><em>SQL Transaction Logs Dashboard below:</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TlwuiTPg78FZ_X1zmq4odw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2dnzq02-GOVkL-78Pu8J3w.png" /></figure><p><strong><em>SQL Audit Log Dashboard below:</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*z5GMMO2oU-EFSmHzv-XWZQ.png" /></figure><p><strong><em>SQL Error Log Dashboard below:</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3_OYHEGDwTrZsLXXwcWaQQ.png" /></figure><p><strong><em>SQL Server Performance Log Dashboard below:</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UuyjkiYah_6829o3S53fCg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/951/1*y78NAZwsTe1CUvZR1OOVdQ.png" /></figure><p><strong><em>Observability Dashboard below:</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZzFX5OP17Y5DB_8zPtzeeA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fuT4QmrCpd5rNtS5gcDrjQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rhZqF5J-QOd7wJ-g4JSlKQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pRFkp7hYz5k7MRUcK4yTFQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*j1Qe96tTwprB23rUWzHMlw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ipxyuqx1Cp6eiuLj99h-kw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*471fRIQBEv2xsHucbeK3kg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*X5PNFKUZpwJR4EwJGCscUQ.png" /></figure><p><strong>SQL Server Configuration Before the Elastic Cloud Logs Collection:</strong></p><p>Enable audit logs and error logs before configure the Elastic Cloud. Please follow the documents links:</p><p><a href="https://support.microsoft.com/en-us/topic/kb4052136-fix-sql-server-audit-events-don-t-write-to-the-security-log-d9708450-6981-2fab-4e58-5f09d561110e">https://support.microsoft.com/en-us/topic/kb4052136-fix-sql-server-audit-events-don-t-write-to-the-security-log-d9708450-6981-2fab-4e58-5f09d561110e</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kowstmlrW1TiaHF_q1ihiw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PmNuR-izSO1zJ4pUrnZrJQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7j8K0itiydugif7D9AwRKA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/660/1*mh4HSMvNwaQS1P05c0CrcQ.png" /></figure><p>After configured the audit logs. Please restart the below services:</p><p>a) Elastic agent</p><p>b)SQL server agent</p><p>c)SQL Server</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*K5vMThAuPi2QbSm16qAYIA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HOEwYxTzXXf7kdZdSEVNSQ.png" /></figure><p><strong>Troubleshooting Links for Audit Logs:</strong></p><p><a href="https://solarwindscore.my.site.com/SuccessCenter/s/article/Enable-File-Auditing-in-Windows?language=en_US">https://solarwindscore.my.site.com/SuccessCenter/s/article/Enable-File-Auditing-in-Windows?language=en_US</a></p><p><a href="https://knowledge.broadcom.com/external/article/268079/sqlserver-probe-view-server-state-permis.html#:~:text=Right%20click%20on%20the%20login,permission%20is%20granted%20or%20not">https://knowledge.broadcom.com/external/article/268079/sqlserver-probe-view-server-state-permis.html#:~:text=Right%20click%20on%20the%20login,permission%20is%20granted%20or%20not</a>.</p><p><a href="https://blog.netwrix.com/2019/05/23/how-to-enable-sql-server-audit-and-review-the-audit-log/">https://blog.netwrix.com/2019/05/23/how-to-enable-sql-server-audit-and-review-the-audit-log/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=090e218d540e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Monitor SQL Server using Custom Metrics with Amazon CloudWatch]]></title>
            <link>https://medium.com/@gopikrishnapandurangan/microsoft-sql-server-based-applications-monitoring-is-an-important-step-to-ensuring-application-96815c0cb2dc?source=rss-72d8b35140db------2</link>
            <guid isPermaLink="false">https://medium.com/p/96815c0cb2dc</guid>
            <dc:creator><![CDATA[Gopikrishna Pandurangan]]></dc:creator>
            <pubDate>Sat, 06 Apr 2024 17:11:13 GMT</pubDate>
            <atom:updated>2024-04-07T16:45:59.095Z</atom:updated>
            <content:encoded><![CDATA[<p>Monitoring SQL Server using custom metrics with Amazon CloudWatch can be very useful for tracking performance, identifying bottlenecks, and ensuring the smooth operation of your SQL Server database.</p><p>Custom metrics for Microsoft SQL Server hosted on Amazon EC2 Windows instances are not readily available out of the box for monitoring . CloudWatch that helps to provides monitoring using custom metrics, events, and logs you define for SQL Server workloads running on AWS in real time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/693/1*jl_dxTUID_lN7a66INV_oQ.png" /></figure><p>Identify the SQL Server performance metrics you want to monitor. Common metrics include:</p><ul><li>CPU Utilization</li><li>Memory usage</li><li>Disk I/O (reads, writes)</li><li>Database connections</li><li>Query performance (e.g., average execution time, number of queries per second)</li></ul><p><strong>Steps:</strong></p><ol><li>Configuring IAM roles for the Amazon EC2 Windows instance</li><li>Setting up CloudWatch agent on the Amazon EC2 Windows instance</li><li>Creating the CloudWatch agent configuration file</li><li>Storing CloudWatch agent configuration in AWS <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/systems-manager-paramstore.html">Systems Manager Parameter Store</a></li><li>Applying SQL Server custom metrics configuration on the instances</li><li>Monitoring SQL Server metrics in Amazon CloudWatch</li></ol><p><strong>Step 1: Configuring IAM roles for the Amazon EC2 Windows instance</strong></p><p>Create and Assign an IAM Role to the EC2 Instance with below policies.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/836/1*dGorIdvnFiYwOYjVpZgnHw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EL76nWfBDFADhTuMGIIXog.png" /></figure><p>Go to the EC2 Instance select the instance on the left side Select the <strong>Actions → Security → Modify IAM Role</strong>. The Modify IAM Role option brings you to a menu that allows you to select and attach the IAM role created earlier.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/433/1*9e3-ZWVvzeA_SdK06ebV8g.png" /></figure><p><strong>Step 2. CloudWatch agent setup on the Amazon EC2 Windows instance</strong></p><p>On a server running Windows Server, installing the CloudWatch agent enables you to collect the system level metrics and SQL Server metrics associated with the counters in Windows Performance Monitor.</p><p><strong><em>2 a. Download and Install the CloudWatch Agent</em></strong><em>:</em></p><p>Download the CloudWatch agent installer for Windows from the AWS documentation page: <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/install-CloudWatch-Agent-on-Windows-ec2-instance.html">Amazon CloudWatch Agent</a>.</p><p>Run the installer and follow the prompts to install the CloudWatch agent on your Windows EC2 instance.</p><p><strong><em>2 b. Configure the CloudWatch Agent</em></strong><em>:</em></p><p>After the installation, locate the CloudWatch agent configuration file. It’s usually located at C:\Program Files\Amazon\AmazonCloudWatchAgent\amazon-cloudwatch-agent.json.</p><p>Edit this configuration file to specify the metrics you want to collect and the logs you want to monitor. You can refer to the CloudWatch agent documentation for the detailed configuration options: <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/create-cloudwatch-agent-configuration-file-wizard.html">CloudWatch Agent Configuration File</a>.</p><p><strong>Step 3: Creating the CloudWatch agent configuration file</strong></p><p>Create config.json file and copy into below location</p><p>C:\Program Files\Amazon\AmazonCloudWatchAgent\amazon-cloudwatch-agent.json/config.json</p><p><strong>Note :</strong> config.json file below:</p><blockquote>{<br> “agent”:{<br> “metrics_collection_interval”:5,<br> “logfile”:”c:\\ProgramData\\Amazon\\AmazonCloudWatchAgent\\Logs\\amazon-cloudwatch-agent.log”<br> },<br> “metrics”:{<br> “namespace”: “sqlserver”,<br> “metrics_collected”:{<br> “LogicalDisk”:{<br> “measurement”:[<br> {<br> “name”:”% Free Space”,<br> “rename”:”FreeStorageSpaceInPercent”,<br> “unit”:”Percent”<br> },<br> {<br> “name”:”Free Megabytes”,<br> “rename”:”FreeStorageSpaceInMB”,<br> “unit”:”Megabytes”<br> }<br> ],<br> “resources”:[<br> “C:”,<br> “D:”,<br> “_Total”<br> ]<br> },<br> “Processor”:{<br> “measurement”:[<br> {<br> “name”:”% Processor Time”,<br> “rename”:”CPUUtilization”,<br> “unit”:”Percent”<br> }<br> ],<br> “resources”:[<br> “_Total”<br> ]<br> },<br> “Memory”:{<br> “metrics_collection_interval”:5,<br> “measurement”:[<br> {<br> “name”:”Available MBytes”,<br> “rename”:”FreeableMemory”,<br> “unit”:”Bytes”<br> },<br> {<br> “name”:”Pages/Sec”,<br> “rename”:”PagesRetreivedPerSecFromDisk”,<br> “unit”:”Count/Second”<br> }<br> ]<br> },<br> “SQLServer:SQL Statistics”:{<br> “measurement”:[<br> {<br> “name”:”SQL Compilations/sec”,<br> “rename”:”SQLCompilationsPerSec”,<br> “unit”:”Count/Second”<br> },<br> {<br> “name”:”SQL Re-Compilations/sec”,<br> “rename”:”SQLReCompilationsPerSec”,<br> “unit”:”Count/Second”<br> },<br> {<br> “name”:”Batch Requests/sec”,<br> “rename”:”BatchRequestsPerSec”,<br> “unit”:”Count/Second”<br> }<br> ]<br> },<br> “SQLServer:Access Methods”:{<br> “measurement”:[<br> “Page Splits/sec”,<br> “Forwarded Records/sec”,<br> “Full scans/sec”<br> ]<br> },<br> “SQLServer:General Statistics”:{<br> “measurement”:[<br> “Processes blocked”,<br> {<br> “name”:”User Connections”,<br> “rename”:”DatabaseConnections”,<br> “unit”:”Count”<br> }<br> ]<br> },<br> “SQLServer:Buffer Manager”:{<br> “measurement”:[<br> “Page life expectancy”,<br> “Page writes/sec”,<br> “Page reads/sec”,<br> “Buffer cache hit ratio”,<br> “Checkpoint pages/sec”<br> ]<br> },<br> “SQLServer:Memory Manager”:{<br> “measurement”:[<br> “Memory Grants Pending”<br> ]<br> }<br> }<br> },<br> “logs”: {<br> “logs_collected”: {<br> “files”: {<br> “collect_list”: [<br> {<br> “file_path”: “c:\\Program Files\\Microsoft SQL Server\\MSSQL13.MSSQLSERVER\\MSSQL\\Log\\ERRORLOG”,<br> “log_group_name”: “sql-error.log”,<br> “timezone”: “UTC”,<br> “log_stream_name”:”sql_error_log_stream”,<br> “timestamp_format”:”%H:%M:%S %y %b %-d”<br> }<br> ]<br> },<br> “windows_events”: {<br> “collect_list”: [<br> {<br> “event_name”: “System”,<br> “event_levels”: [<br> “INFORMATION”,<br> “ERROR”<br> ],<br> “log_group_name”: “System”,<br> “log_stream_name”: “System”,<br> “event_format”: “xml”<br> },<br> {<br> “event_name”: “Application”,<br> “event_levels”: [<br> “WARNING”,<br> “ERROR”<br> ],<br> “log_group_name”: “Application”,<br> “log_stream_name”: “Application”,<br> “event_format”: “xml”<br> }<br> ]<br> }<br> },<br> “log_stream_name”: “windows_log_stream”<br> }<br>}</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*reUN9CuVc0JZU19JrqXJaw.png" /></figure><p><strong>Step 4: Storing the CloudWatch agent configuration in AWS Systems Manager Parameter Store</strong></p><p>Please create the system manager parameter and copy the Cloudwatch agent config.json files into Value</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_uHn4DIEocSKI6sxOZM8Qg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dbhikRdZwbEg3xeAWSu5PQ.png" /></figure><p><strong>Note</strong>: The JSON file has a limitation of 4096 characters. I recommend trim out spaces to use a unprettified JSON. You can also <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/parameter-store-advanced-parameters.html">enable the advanced tier of SSM Parameter Store</a> as it supports parameters of 8192 characters (incurs <a href="http://aws.amazon.com/systems-manager/pricing/">additional costs</a>).</p><p><strong>Step 5: Applying SQL Server custom metrics configuration on the instances</strong></p><p>Run a command on system manager and and apply the custom metrics configuration.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dK_qcxpXqUvSkKoEvOngxQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7OE2rySZV19_lP3tk4sD-A.png" /></figure><p><strong>Step 6 : Monitoring SQL Server metrics in Amazon CloudWatch</strong></p><p>Please click the all metrics on Cloud watch and Click Browser and click sqlserver.</p><p>Please click each metrics and add into dashboard.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kw6GatnbpfthSOjZAdBeuQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7cBpNxNk7brPcm2B65SEZA.png" /></figure><p><strong>Step 6 : Monitoring SQL Server metrics in Amazon CloudWatch</strong></p><p>Please click the all metrics on Cloud watch and Click Browser and click</p><p>sqlserver.</p><p>Please click each metrics and add into dashboard.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kw6GatnbpfthSOjZAdBeuQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7cBpNxNk7brPcm2B65SEZA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vP3J4k112d1_C786-4mSxg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RHYI5xIHhqKAz45mX8d2Ag.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xLKbFEwXJbOQxa_9ESq3Aw.png" /></figure><p>you can effectively monitor your SQL Server using custom metrics with Amazon CloudWatch. It’s important to regularly review your monitoring setup to ensure it’s capturing the necessary metrics and triggering alerts appropriately.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=96815c0cb2dc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Filesystem Migration Using Robocopy Tool]]></title>
            <link>https://medium.com/@gopikrishnapandurangan/filesystem-migration-using-robocopy-tool-8a467ffd9d40?source=rss-72d8b35140db------2</link>
            <guid isPermaLink="false">https://medium.com/p/8a467ffd9d40</guid>
            <dc:creator><![CDATA[Gopikrishna Pandurangan]]></dc:creator>
            <pubDate>Wed, 28 Feb 2024 12:20:10 GMT</pubDate>
            <atom:updated>2024-03-26T12:57:30.004Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Filesystem Migration Using Robocopy Tool</strong></p><p>Robocopy, short for “Robust File Copy,” is a command-line utility in Windows operating systems that facilitates the copying of files and directories. It is more powerful and flexible than the traditional copy and Xcopy commands and is designed for efficient file copying, mirroring, and synchronization. Robocopy is included in Windows Vista and later versions.</p><p>Here are some key features of the Robocopy tool:</p><ol><li><strong>Robust Copying:</strong> Robocopy is designed to handle network interruptions and recover from errors during the copying process, making it a reliable tool for large file transfers.</li><li><strong>Multithreaded Copying:</strong> It can copy multiple files simultaneously, which can significantly improve performance, especially when dealing with large amounts of data.</li><li><strong>Mirror Functionality:</strong> Robocopy can be configured to mirror the source and destination directories, ensuring that the destination exactly replicates the source, including deletions and changes.</li><li><strong>File and Directory Filtering:</strong> Users can specify file and directory filters to include or exclude specific files or types of files during the copying process.</li><li><strong>Logging and Output:</strong> Robocopy provides detailed logging options, allowing users to create log files that record the status and results of the copying operation.</li><li><strong>Support for Long Paths:</strong> It can handle file and path names longer than the traditional Windows limits, making it suitable for dealing with deeply nested directory structures.</li></ol><p><strong>Prerequisites:</strong></p><p>robocop version should be latest on both source and target system. Source system robocopy version is higher or equal to a target system.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/359/1*pLGgIkrfi9edRfJtdUXGpw.png" /></figure><p><strong>Robocopy syntax:</strong></p><p>robocopy &lt;source_directory&gt; &lt;destination_directory&gt; /r:3 /w:5 /copy:datso /mir /z /sec /secfix /mt:32 /np /eta /LOG:C:\logfilename.txt</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9Ip2e0NghsUhmktBXirDgg.png" /></figure><p><strong>Note</strong>: c:\robocopytest is a source directory and y: \ is the map drive of the target system.</p><ul><li>/R:3: Retry 3 times on failed copies.</li><li>/W:5: Wait 5 seconds between retries.</li><li>/copy specifies which file properties to copy. The valid values for this option are:</li><li><strong>D</strong> — Data</li><li><strong>A</strong> — Attributes</li><li><strong>T</strong> — Time stamps</li><li><strong>X</strong> — Skip alt data streams</li><li><strong>S</strong> — NTFS access control list (ACL)</li><li><strong>O</strong> — Owner information</li><li><strong>U</strong> — Auditing information</li><li>/mir : Mirrors a directory tree (equivalent to <strong>/e</strong> plus <strong>/purge</strong>). Using this option with the <strong>/e</strong> option and a destination directory overwrites the destination directory security settings.</li><li>/z : Copies files in restartable mode. In restartable mode, should a file copy be interrupted, robocopy can pick up where it left off rather than recopying the entire file.</li><li>/mt: <strong>Creates multi-threaded copies with n threads</strong>. n must be an integer between 1 and 128. The default value for n is 8</li><li>/np: Specifies that the progress of the copying operation (the number of files or directories copied so far) won’t be displayed.</li><li>/eta: Shows the estimated time of arrival (ETA) of the copied files.</li><li>/LOG:C:\Path\To\LogFile.txt: Log the results to a specified file.</li></ul><p><strong>Note:<em> </em></strong><em>I have tested the above script between Rackspace cloud to AWS cloud for filesystem migration.</em></p><p><strong>robocopy logfile:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/643/1*hoGFR9dlPsCdiH5T705QCQ.png" /></figure><p>Note : Please monitor the CPU and memory utilization whenever running robocopy tool and robocopy must be installed on a Good configuration machine. otherwise, the system may hang and the robocopy process stuck.</p><p>Please validate the source and target filesystem permission. please use /secfix before the Migration cutover and it helps fixes file security on all files, even skipped ones.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8a467ffd9d40" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[kubernetes Ingress with Letsencrypt]]></title>
            <link>https://medium.com/@gopikrishnapandurangan/kubernetes-ingress-with-letsencrypt-67db8d7dabb1?source=rss-72d8b35140db------2</link>
            <guid isPermaLink="false">https://medium.com/p/67db8d7dabb1</guid>
            <dc:creator><![CDATA[Gopikrishna Pandurangan]]></dc:creator>
            <pubDate>Thu, 04 Jan 2024 10:20:19 GMT</pubDate>
            <atom:updated>2024-01-04T10:20:19.704Z</atom:updated>
            <content:encoded><![CDATA[<p>Setting up Kubernetes Ingress with Let’s Encrypt involves a few steps to ensure proper configuration. Below is a general guide to help you achieve this.</p><p>Let’s Encrypt supports multiple authentication methods to verify domain ownership when issuing TLS certificates. The two primary methods used with Cert-Manager in Kubernetes are HTTP-01 and DNS-01. I have to use HTTP-01 authentication method to verify the domain ownership.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TaqvwDReSqBFZGSJIzaTHA.png" /></figure><h3>Prerequisites:</h3><ol><li>Kubernetes Cluster: Ensure you have a running Kubernetes cluster.</li><li>kubectl: Make sure you have kubectl installed and configured to connect to your Kubernetes cluster.</li><li>Helm: Install Helm, a package manager for Kubernetes.</li></ol><h3>Steps:</h3><p><strong>1.Install Cert-manger:</strong></p><p>Cert-Manager is a Kubernetes add-on to automate the management and issuance of TLS certificates. You can install it using Helm.</p><blockquote><strong># Add the Jetstack Helm repository</strong><br>helm repo add jetstack https://charts.jetstack.io</blockquote><blockquote><strong># Update your local Helm chart repository</strong><br>helm repo update</blockquote><blockquote><strong># Install Cert-Manager</strong><br>kubectl create namespace cert-manager<br>helm install cert-manager jetstack/cert-manager — namespace cert-manager — version &lt;cert-manager-version&gt;</blockquote><p><strong>Note:</strong> Replace &lt;cert-manager-version&gt; with the desired Cert-Manager version.</p><h4>2. Configure Issuer:</h4><p>Create a Let’s Encrypt Issuer or ClusterIssuer. Here’s a basic example:</p><blockquote>apiVersion: cert-manager.io/v1<br>kind: ClusterIssuer<br>metadata:<br> name: letsencrypt-prod<br>spec:<br> acme:<br> server: <a href="https://acme-v02.api.letsencrypt.org/directory">https://acme-v02.api.letsencrypt.org/directory</a><br> email: <a href="/service/mailto:your-email@example.com">your-email@example.com</a><br> privateKeySecretRef:<br> name: letsencrypt-prod<br> solvers:<br> — http01:<br> ingress:<br> class: nginx</blockquote><p>Save this YAML configuration in a file (e.g., letsencrypt-issuer.yaml) and apply it to your cluster:</p><p>kubectl apply -f letsencrypt-issuer.yaml</p><h4>3. Deploy Ingress Controller:</h4><p>You need an Ingress controller to handle external traffic. Here, we’ll use NGINX as an example. Deploy the NGINX Ingress Controller:</p><blockquote>helm repo add ingress-nginx <a href="https://kubernetes.github.io/ingress-nginx">https://kubernetes.github.io/ingress-nginx</a><br>helm repo update<br>helm install nginx-ingress ingress-nginx/ingress-nginx</blockquote><h4>4. Create Ingress Resource:</h4><p>Create an Ingress resource that specifies the rules for routing traffic and enables TLS:</p><blockquote>apiVersion: networking.k8s.io/v1<br>kind: Ingress<br>metadata:<br> name: example-ingress<br> annotations:<br> cert-manager.io/cluster-issuer: “letsencrypt-prod”<br>spec:<br> tls:<br> — hosts:<br> — example.com<br> secretName: example-tls<br> rules:<br> — host: example.com<br> http:<br> paths:<br> — path: /<br> pathType: Prefix<br> backend:<br> service:<br> name: your-service<br> port:<br> number: 80</blockquote><p>Make sure to replace example.com with your domain and your-service with the name of your service.</p><p>Apply the Ingress resource:</p><p>kubectl apply -f your-ingress-resource.yaml</p><h4>5. Verify:</h4><p>Check the status of the certificate:</p><blockquote>kubectl get certificates</blockquote><p>Ensure that the certificate is in a Ready state.</p><p>Now, accessing your domain should automatically redirect to HTTPS, and Let’s Encrypt will provide the TLS certificate.</p><p>Remember to customize the configurations based on your specific requirements and environment. Always refer to the official documentation for the tools you are using for the most up-to-date information.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=67db8d7dabb1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Country-based traffic filtering using CSF Firewall on EC2]]></title>
            <link>https://medium.com/@gopikrishnapandurangan/configuring-country-based-traffic-filtering-using-the-configserver-security-firewall-csf-can-0ae40359910c?source=rss-72d8b35140db------2</link>
            <guid isPermaLink="false">https://medium.com/p/0ae40359910c</guid>
            <dc:creator><![CDATA[Gopikrishna Pandurangan]]></dc:creator>
            <pubDate>Fri, 22 Dec 2023 17:37:18 GMT</pubDate>
            <atom:updated>2023-12-22T18:01:25.534Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Country-based traffic filtering using CSF Firewall on EC2</strong></p><p>Configuring country-based traffic filtering using the ConfigServer Security &amp; Firewall (CSF) can help enhance the security of your server by allowing or blocking traffic from specific countries. CSF is a popular firewall application for Linux servers. Here’s a basic guide on how to set up country-based traffic filtering using CSF:</p><p><strong>Note:</strong> Before making any changes to your firewall settings, ensure you have access to your server through an alternative means, as incorrect configurations may lock you out.</p><p><strong>Step 1: Downloading CSF</strong></p><p><strong>#wget </strong><a href="http://download.configserver.com/csf.tgz"><strong>http://download.configserver.com/csf.tgz</strong></a></p><p><strong>Step 2: Extract the CSF package</strong></p><p>#tar -xzf csf.tgz</p><p><strong>Step 3: Installing CSF</strong></p><p>Before installing CSF, please disable the existing firewall configuration script.</p><p>#ufw disable</p><p>Execute CSF script</p><p>#cd csf</p><p>#sh install.sh</p><p><strong>Step 4 : Validate the CSF</strong></p><p>Validate the CSF is running using the below command</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/472/1*rhsJkJO45afgdj8ey7vLBg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/684/1*OlPKml-TLqb0MEebSdsGCw.png" /></figure><p><strong>Step 5: CSF Configuration</strong></p><p>#nano /etc/csf/csf.conf</p><p>To allow access to the US, Canada, and India, you set <strong>CC_ALLOW_PORTS</strong> and <strong>CC_ALLOW_PORTS_TCP</strong> to the following:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KsfNMS2GIy1Cl7VQ7XbK-A.png" /></figure><p>After editing /etc/csf/csf.conf you need to restart the CSF Firewall via</p><p>#csf -ra</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0ae40359910c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Configure AWS SES with Postfix MTA on Ubuntu Linux]]></title>
            <link>https://medium.com/@gopikrishnapandurangan/configure-aws-ses-with-postfix-mail-server-on-ubuntu-linux-14d352df9103?source=rss-72d8b35140db------2</link>
            <guid isPermaLink="false">https://medium.com/p/14d352df9103</guid>
            <dc:creator><![CDATA[Gopikrishna Pandurangan]]></dc:creator>
            <pubDate>Tue, 19 Dec 2023 16:35:20 GMT</pubDate>
            <atom:updated>2023-12-19T17:05:44.100Z</atom:updated>
            <content:encoded><![CDATA[<p>Amazon SES no longer supports TLS 1.0 and TLS 1.1 connections, and if you’re encountering issues with your existing configuration, you’ll need to update your Postfix configuration to use TLS 1.2 or later. Here are the steps to do that:</p><p><strong>Step 1 — Install postfix on Ubuntu Linux</strong></p><p>$ sudo apt install postfix</p><p><strong>Step 2 — SASL authentication package</strong></p><p>if you use a Debian or Ubuntu-based Linux system, you should install the libsasl2-modules package as follows:</p><p>$ sudo apt install libsasl2-modules</p><p><strong>Step 3 — Configuring postfix for Amazon SES</strong></p><p>$ sudo vi /etc/postfix/main.cf</p><p>Please edit the below lines</p><p>smtp_tls_note_starttls_offer = yes</p><p>smtp_tls_security_level = encrypt</p><p>smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd</p><p>smtp_sasl_security_options = noanonymous</p><p>relayhost = [email-smtp.us-east-1.amazonaws.com]:587</p><p>smtp_sasl_auth_enable = yes</p><p>smtp_use_tls = yes</p><p>smtpd_tls_key_file = /etc/ssl/certs/ca-certificates.crt</p><p>smtpd_tls_cert_file = /etc/ssl/certs/ca-certificates.crt</p><p>smtp_tls_CAfile = /etc/ssl/certs/ca-certificates.crt</p><p>smtpd_tls_loglevel = 3</p><p>smtpd_tls_received_header = yes</p><p>smtpd_tls_session_cache_timeout = 3600s</p><p>tls_random_source = dev:/dev/urandom</p><p>mynetworks = servers ip address which send email to ses</p><p><strong>Step 4 — Set up Amazon SES USERNAME and PASSWORD for MTA</strong></p><p>$ sudo nano /etc/postfix/sasl_passwd</p><p>Append (replace SMTP_USER and SMTP_PASSWORD as provided by AWS IAM/SES):</p><p>[email-smtp.us-east-1.amazonaws.com]:587 SMTP Username:SMTP Password</p><p><strong>Note:</strong> SMTP endpoint must be in Bracket [ ]</p><p>Save and close the file.</p><p><strong>Step 5 — Create a hashmap database file containing your SMTP credentials</strong></p><p>At a command prompt, type the following command to create a hashmap database file containing your SMTP credentials:</p><p>$ sudo postmap hash:/etc/postfix/sasl_passwd</p><p>/etc/postfix/sasl_passwd and /etc/postfix/sasl_passwd.db files you created in the previous steps aren’t encrypted. Because these files contain your SMTP credentials, we recommend that you modify the files’ ownership and permissions to restrict access to them. To restrict access to these files:</p><p>At a command prompt, type the following command to change the ownership of the files:</p><pre>$ sudo chown root:root /etc/postfix/sasl_passwd /etc/postfix/sasl_passwd.db<br><br><br>The following command change the permissions of the files so that only the root user can read or write to them:<br><br>$ sudo chmod 0600 /etc/postfix/sasl_passwd /etc/postfix/sasl_passwd.db</pre><p><strong>Step 6 — Configure CA certificate Path for Verification</strong></p><p>$ sudo postconf -e smtp_tls_CAfile = /etc/ssl/certs/ca-certificates.crt</p><p><strong>Step 7 – Test the configuration</strong></p><pre>$ sudo systemctl enable postfix</pre><pre>$ sudo systemctl start postfix</pre><p>Verify that our Postfix MTA service using the below command.</p><pre>$ sudo systemctl status postfix</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/1*4WGiOr04pl1lLDw9vE36yg.png" /></figure><p><strong>Step 8 — Send Test Email</strong></p><pre>$ sendmail -f sender@example.com recipient@example.com</pre><p><strong>Step 9 — Verify the postfix email logs</strong></p><pre>$ sudo tail -f /var/log/mail.log</pre><p>Note: Please validate both sender and receiver email on AWS SES if you are in sandbox mode in AWS SES</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=14d352df9103" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>