Featured »

March 2, 2022 – 2:00 pm

Books have been written on the subject of awk and sed. Here’s a small sample of commands I put together over the years that are useful for everyday system administration tasks. Most of these tasks …

Read the full story »
Networking

Unix and Linux network configuration. Multiple network interfaces. Bridged NICs. High-availability network configurations.

Applications

Reviews of latest Unix and Linux software. Helpful tips for application support admins. Automating application support.

Data

Disk partitioning, filesystems, directories, and files. Volume management, logical volumes, HA filesystems. Backups and disaster recovery.

Monitoring

Distributed server monitoring. Server performance and capacity planning. Monitoring applications, network status and user activity.

Commands & Shells

Cool Unix shell commands and options. Command-line tools and application. Things every Unix sysadmin needs to know.

Home » Archive by Category

Articles in Networking

Show NIC Bandwidth Utilization

January 15, 2016 – 12:43 am
network switch

Just a quick script that will measure bandwidth utilization in KB/s for all NICs on your server over the specified period of time. You can call the script with an optional time wait parameter in seconds.

Tracking Network Connections Over Time

January 13, 2016 – 3:31 pm
network_cable_01

Firewall changes, datacenter migrations, application re-hostings, server decommissions are just some of the activities where having a record of network connections over time can help avoid confusion and unplanned downtime. To capture all network connections, …

Linux CLI Network Speed Test

September 1, 2015 – 12:36 am
network switch

The speedtest.net is probably one of the more popular bandwidth testing utilities, Unfortunately, this and many other similar tools require a Web browser with late-version Flash or Java support, which can be problematic on Unix …

Find Available IP Addresses

June 18, 2015 – 10:58 am
shell_0005

After a while, available IP addresses on the subnet may become hard to come by. Whatever spreadsheet you used to track IP allocations is likely out of date. Here’s a simple script that will scan …

Practical TShark Capture Filters

June 12, 2015 – 9:30 am
ethernet cables

The tshark is the command-line interface for Wireshark – a popular open-source network packet analyzer. A seemingly infinite variety of options make tshark an unlikely choice for casual use. Nevertheless, the power of CLI justifies the extra …

Detecting Synology NAS with nmap

May 29, 2015 – 3:07 pm
computer_security_it_privacy_0002

Just a quick note for myself on how to find Synology NAS servers on the network without having to use the bulky Windows utility that ships with these systems.

Fail2ban Whitelist IPs

December 2, 2014 – 9:16 pm
OLYMPUS DIGITAL CAMERA

Fail2ban is an excellent security tool that will do a good job safeguarding your server. However, using fail2ban you may run into two issues: friendly fire and inability to permanently ban hostile networks. I already …

Identifying Available IPs on the Network

December 2, 2014 – 2:31 pm
ping_pong-wallpaper-960x600

At some point available IPs on your network may become few and hard to come by. Documentation becomes outdated and does not accurately reflect which IPs are still in use. A good starting point would …

Permanently Ban IP with Fail2Ban

June 9, 2014 – 12:12 am
video security camera

If you’re not familiar with Fail2Ban: it’s a log analysis tool that detects failed login attempts for your SSH, FTP, etc services and uses IPTools firewall to temporarily drop connection requests from the offending IP addresses. …

Configure Anonymous FTP on Solaris 10

August 25, 2013 – 2:30 pm
logo_sun

Below are basic steps for configuring anonymous FTP service on Solaris 10. Use with caution.

Enable Basic FTP Server on Solaris 10

August 22, 2013 – 2:22 pm
solaris-logo

Here are a few simple steps to enable a basic FTP server on Solaris 10.

Simple Network Discovery

August 21, 2013 – 11:38 am
1139316_45970912

The bash script below will scan the specified IP range and use dig and nmap to try to determine the fully-qualified domain name, type and the operating environment of any device that responds to network …

Basic Samba Configuration on Solaris 10

August 20, 2013 – 2:21 pm
logo_sun

Here’s a sample process for installing and configuring a basic Samba server on Solaris 10.

Solaris 10 NFS Server Configuration

August 16, 2013 – 2:01 pm
logo_sun

As far as NFS servers go, I think the best platform in terms of performance and stability is Solaris running on SPARC architecture. Perhaps this has something to do with the fact that NFS was created for Solaris. Over the years I’ve been working with NFS servers on AIX, HP-UX, Linux, BSD, etc. It always worked better on Solaris.

RPC: Authentication When Mounting Solaris NFS Share

August 16, 2013 – 1:37 pm
logo_sun

When mounting an NFS share from a Solaris 10 server, you may encounter the “RPC: Authentication” error. You may notice that you are able to mount the share via NFSv4, not not NFSv3. On the NFS server the /var/adm/messages may show the following errors for the client…

Fixing the mount.nfs: rpc.statd is not running Error

October 22, 2012 – 4:11 pm
linux_penguin_0002

The rpc.statd service is used by NFS client to help it recover from loss of connectivity to the NFS server. When rpc.statd is not running, NFS is not able to handle remote file locking. You …

Red Hat: Changing Hostname and IP

August 31, 2011 – 1:47 pm
redhat1

Changing hostname and IP is frequently required when a server is being moved from testing or development to production. The process is a fairly simple one, but steps must be performed in a certain order to avoid complications.

Troubleshooting InfiniBand Connections

May 4, 2011 – 10:36 am
network_cable_01

The following is a brief troubleshooting guide for an InfiniBand network found in common HPC Linux clusters. Running these commands requires OFED 1.5.2 or later package installed on your systems. Additionally, the “pdsh” (parallel shell) command is part of the HP CMU cluster management software (version 4.2.1 used in our example) installed on the head node.

Opening Custom Ports in SuSE Firewall

March 4, 2011 – 2:18 pm

Most of the servers I work with are already behind an enterprise firewall, so I rarely get to configure a software firewall. In the following example, I installed Webmin and Usermin on a SLES 11 server that had SuSE firewall enabled. Webmin and Usermin by default use ports 10000 and 20000, respectively. These ports are not in the list of common services you would find in the SuSE firewall configuration GUI. There are a couple of ways of adding custom ports to the list of the allowed services.

LPI Invents Linux Commands

January 18, 2011 – 7:50 pm

It would appear that in order to obtain Linux Professional Institute’s LPIC-2 certification, one needs to know real Linux commands as well as imaginary ones. On the Sample Questions page for LPIC-2 Exam 2 the LPI Linux gurus pose the following question

Windows 7 Black Screen After Booting

October 5, 2010 – 4:07 am

I had to power-cycle my Windows 7 64-bit laptop. The bootup sequence looked normal and reached a point where I could see the black screen with the mouse cursor. After this stage my desktop would usually appears, but not this time. I could move the mouse and I could even establish a remote desktop connection to my laptop. But I could not log in. Every time it would reach the same point – the black screen with the mouse cursor – and it would stop.

NFS “Not Owner” Error

August 30, 2010 – 11:34 pm
network_cable_01

The “not owner” error is displayed on the client system (usually Solaris) when attempting to mount an NFS share from a server. This error may appear even though the share is correctly exported and the client system has full access. If you are getting a “permission denied” error, then this article is not for you and you should check here instead.