Showing headlines posted by aweber
« Previous ( 1 ... 2 3 4 5 6 7 8 9 10 11 12 ... 16 ) Next »for Loop Example
Using a for loop to examine a series of IP Addresses to use in a firewall script to block Zombie networks.
Understanding the for Loop
If you want to repeat a task more than one time, then you will be interested in loops. A loop will provide a way for you to perform that task with just one set of code.
Using find to Execute a Command
The find command can be used to execute a command based on the data that is located with the initial find command. This provides a powerful alternative for manipulating the data you retrieve.
Installing Dovecot 2 on CentOS
Dovecot 2 has new features, including security enhancements that administrators may want to use on CentOS. However, this version of Dovecot is not in the repository so you will need to install several additional packages.
find with Multiple Expressions
The find command can use multiple expressions to enable complex searches which permit multiple criterion in the search. This feature greatly enhances the ability for creating precise searches.
Hotot: A Promising Desktop Twitter Client
Hotot is a lightweight, python-based, desktop twitter client I tried on my Linux Mint 10 GNOME desktop. I found Hotot to include many features you’d expect in a desktop client and a few you may not.
April Nagios Training Dates Include Advanced Nagios Class
An advanced Nagios class, taught online by Mike Weber of CyberMontana Inc, has been scheduled for April 2011.
Time Criteria with the find Command
One of the most powerful options you can use with find is time criteria such as modified time, accessed time or changed time. Understanding how to use these elements will provide more effective searches.
5 Days of find: The Basics of find
The first of the bashshell.net "5 Days of find" series, this tutorial breaks down the basics. With the Linux find utility, you can perform powerful searches on just about any criterion you can think of, and then, from the same command-line entry, invoke another utility to do whatever you need to do with the results.
Protecting Nagios From Zero-Day Exploits with ModSecurity
You have built a rock solid firewall, tested it with nmap scanning for ports that were open, locked down SSH with port knocking, restricted outgoing ports with iptables, setup psad to block attacks, and tcp_wrappers to limit access so you are set right? Well, not exactly....
Build a Log Parser with Bash
This example shows how to use a Bash shell script to parse multiple logs for text strings and create a report.
Exercise #9: Output/Input Redirection With awk
The Linux utility awk can create output redirection for data you want to save and it can use input redirection from commands or respond interactively with users.
Exercise #8: Counting and Sums with awk
awk may be used to count instances and also sum columns for reports. Often it is useful to use awk scripts for the output so that it can be formatted to your needs.
Exercise #7: Multiple Field Separators
awk allows you to change the fields separators so that you can use on a various kinds of files. You can also use multiple field separators on one file.
Monitoring a Cisco Router with Nagios
Sometimes you will need to create service checks using the MIBs that you can discover with snmpwalk. This tutorial will show you the process of creating service checks for a Cisco router manually.
Exercise #5: Managing the Structure of the awk file
The awk file can be modified to include a BEGIN section and an END section that allows you to perform tasks before and after the records are processed.
Exercise 4: Starting with awk Scripts
Using awk scripts expands the possibilities with awk and provides an easy way to repeat searches on a number of files.
Exercise #2: Learning awk with Operators
When you use awk with operators levels, comparisons and ranges can be part of the data search.
Speed up Your Mail Server with a Caching-Nameserver
The mail server can increase speed by placing a caching-nameserver on the mail server itself. This provides recursive lookups and a cache for the mail server to work with. The caching-nameserver does not require much resources and is easy to install.
Exercise #1: Learning awk Basics
By performing these basic commands you will begin to see the power and flexibility of the Linux utility awk. This exercise is designed to start you down the path of using awk.