Counting and modifying lines, words and characters in Linux text files

Linux includes some useful commands for counting when it comes to text files. This post examines some of the options for counting lines and words and making changes that might help you see what you want.Counting lines Counting lines in a file is very easy with the wc command. Use a command like that shown below, and you'll get a quick response.$ wc -l myfile 132 myfile What the wc command is actually counting is the number of newline characters in a file. So, if you had a single-line file with no newline character at the end, it would tell you the file has 0 lines,The wc -l command can also count the lines in any text that is piped to it. In the example below, wc -l is counting the number of files and directories in the current directory.To read this article in full, please click here

Counting and modifying lines, words and characters in Linux text files

Linux includes some useful commands for counting when it comes to text files. This post examines some of the options for counting lines and words and making changes that might help you see what you want.Counting lines Counting lines in a file is very easy with the wc command. Use a command like that shown below, and you'll get a quick response.$ wc -l myfile 132 myfile What the wc command is actually counting is the number of newline characters in a file. So, if you had a single-line file with no newline character at the end, it would tell you the file has 0 lines,The wc -l command can also count the lines in any text that is piped to it. In the example below, wc -l is counting the number of files and directories in the current directory.To read this article in full, please click here

Build Your K8s Environment For The Real World Part 1 – Day Zero Ops

When you’re designing a Kubernetes environment, whether it’s small or large, there are a few things that you must think about prior to writing the code to deploy the cluster or implementing the GitOps Controller for all of your Continuous Delivery needs. First, you must plan. Planning is the most important phase. In blog one […]

The post Build Your K8s Environment For The Real World Part 1 – Day Zero Ops appeared first on Packet Pushers.

BrandPost: Wi-Fi Location-based Services: How Did We Get Here?

By: Dorothy Stanley, Fellow and Head, Wireless Standards Strategy, Aruba, a Hewlett Packard Enterprise company.Wi-Fi systems are so ubiquitous indoors that location-based services are a natural extension. Retail analytics, indoor navigation, and high-value asset tracking (such as medical devices in health care) are a just a few of the use cases that organizations are deploying using Wi-Fi location-based services to improve business outcomes. In this post, I’ll delve into the evolution of Wi-Fi location-based services and give you a preview of where the standards are taking us and how your organization can take advantage of them.To read this article in full, please click here

HPE to acquire OpsRamp to boost GreenLake capabilities

Hewlett Packard Enterprise (HPE) has announced its intent to acquire OpsRamp, an IT operations management (ITOM) services provider, for an undisclosed sum as it looks to boost its GreenLake capabilities.ITOM software and services are used to manage enterprise IT — monitoring capacity, performance and availability of infrastructure as well as computing, networking, and application resources.San Jose-headquartered OpsRamp, which was founded in 2014 by Raju Chekuri and Varma Kunaparaju, offers an AIOps platform that specializes in monitoring, automating and managing IT infrastructure, cloud resources, workloads and applications for hybrid and multicloud environments.  To read this article in full, please click here

New reference architecture: Deploying Ansible Automation Platform 2 on Red Hat OpenShift

Ansible 2 on OCP blog

It has arrived! The latest reference architecture showcasing the best practices for deploying Red Hat Ansible Automation Platform 2.3 on Red Hat OpenShift

 

Why are you going to love it?

With Ansible Automation Platform running on top of Red Hat OpenShift, you get the best of both worlds. You can now focus on what really matters - automation - while taking advantage of Red Hat Ansible Automation Platform Operator to do the heavy lifting of deploying, managing, scaling and upgrading your Ansible Automation Platform environment.

This reference architecture not only focuses on the step-by-step to deploy Red Hat Ansible Automation Platform 2.3 on Red Hat OpenShift, but focuses on key aspects including:

  • Sizing your automation controller: Learn how to size your automation controller by understanding its control capacity and how many automation jobs can run concurrently.

  • Resource management: Discover how to set resource requests and limits for the Ansible Automation Platform, ensuring that your deployment has enough resources to run smoothly and efficiently.

  • Installation guidance: Understand key considerations prior to your deployment of Red Hat Ansible Automation Platform.

  • Monitoring your Ansible Automation Platform: Learn how to use Prometheus and Grafana to monitor your Ansible Continue reading

Modernizing the WAN from Client to Cloud

The evolution of WAN architectures has historically paralleled that of application architectures. When we primarily connected terminals to mainframes, the WAN architecture was largely point-to-point links connecting back to data center facilities. As traffic converged to remove OpEx-intensive parallel network structures, the WAN evolved to architectures that enabled site-to-site connectivity in a full mesh or configurable mesh and then enabled multi-tenancy for carrier cost optimization.

External Links on Spine Switches

A networking engineer attending the Building Next-Generation Data Center online course asked this question:

What is the best practice to connect DC fabric to outside world assuming there are 2 spine switches in the fabric and EVPN VXLAN is used as overlay? Is it a good idea to introduce edge (border) switches, or it is better to connect outside world directly to the spine?

As always, the answer is “it depends,” this time based on:

External Links on Spine Switches

A networking engineer attending the Building Next-Generation Data Center online course asked this question:

What is the best practice to connect DC fabric to outside world assuming there are 2 spine switches in the fabric and EVPN VXLAN is used as overlay? Is it a good idea to introduce edge (border) switches, or it is better to connect outside world directly to the spine?

As always, the answer is “it depends,” this time based on:

Demo Bytes: Upgrading Network Devices With BackBox – Video

The BackBox network automation platform comes with many pre-built functions to make routine tasks performed by network administrators simple & foolproof. In this demo, BackBox’s Senior Product Manager Perry Greenwood shows Packet Pushers’ Ethan Banks how to automate network device upgrades using BackBox. We look at the entire lifecycle of the upgrade process, including scheduling, […]

The post Demo Bytes: Upgrading Network Devices With BackBox – Video appeared first on Packet Pushers.

SD-WAN, SASE prove essential tools for Porsche’s electric-racecar success

The ninth season of Formula E World Championship racing is under way, with events slated this spring everywhere from Berlin to Jakarta to Portland, Oregon. Formula E has all of the thrills and spills of IndyCar or F1 racing—sleek aerodynamic vehicles, talented drivers, spirited competition. But there’s one key difference: the cars are electric.In traditional auto racing, the skills of the driver are certainly important, but so is the strategy of when to make a pit stop for fuel and tires as well as the real-time communication between driver and pit crew. Similarly, in Formula E the driver is the star of the show, but data analytics running in the background plays an important role.To read this article in full, please click here

Assume Disaster

One of the things that people have mentioned to me in the past regarding my event management skills is my reaction time. They say, “You are always on top of things when they go wrong. How do you do it?”

My response never fails to make them laugh. I offer, “I always assume something is going to go wrong. I may not know what it is but when it does happen I’m ready to fix it.”

That may sound like a cynical take on planning and operations but it’s served me well for many years. Why is it that things we spend so much time working on always seem to go off the rails?

Complexity Fails

Whether it’s an event or a network or even a carpentry project you have to assume that something is going to go wrong. Why? Because the more complex the project the more likely you are to hit a snag. Systems that build on themselves and require input to proceed are notorious for hitting blocks that cause the whole thing to snarl into a mess of missed timelines.

When I was in college studying project management I learned there’s even a term for Continue reading

Providing Terraform with that Ansible Magic

ansible terraform magic blog

Late last year, we introduced a Red Hat Ansible Certified Collection Collection for Terraform. This was an important step in automation, as these two tools really are great together and leveraging Ansible's ability to orchestrate other tools in the enterprise made this a no-brainer. Terraform with its infrastructure as code (IaC) provisioning and Ansible’s strength in configuration as code are a synergy that cannot be ignored - we are better together! Organizations are now in the position to utilize their existing infrastructure as code manifests and extend their automation with Terraform and Ansible together.  

Now, we are back  with help from our partners at Kyndryl and XLAB and adding more value and magic to infrastructure as code - This time we have some extra muscle with an addition to the Red Hat Ansible Certified Content Collection: The Ansible provider for Terraform.

So what does the provider help us with?

Without a provider, we would need to rely on inventory plugins for the different cloud platforms and use filters to grab instance information from our freshly "Terraformed" infrastructure. This allows us to update our inventory so we can run automated tasks against these hosts. This is pretty smooth in Continue reading