Author Archives: Humair

Perl – Get files and directories with the glob function

Recently, as part of a larger Perl application, I had to get all the files and sub-directories of the working directory. Using the built-in ‘glob’ function, I was able to quickly implement a subroutine to do this and also differentiate … Continue reading

Posted in Perl, Programming Languages | Tagged , , , , , , , | 3 Comments

Setup Telnet Access on Cisco Switches

This quick lab assumes you already have an IP address for telnet assigned on the Cisco switch. Once that is setup and you are able to ping the IP address, you can setup telnet access on the Cisco switch with … Continue reading

Posted in Cisco, Labs, Networking | Tagged , , , , | Leave a comment

Possible Reasons for LAN Traffic Congestion

If you are experiencing slowness on your LAN here are some possible reasons that you can investigate:

Posted in Networking | Tagged , , , , , , , , , , , , | Leave a comment

Useful FTOS “show” commands

There are several FTOS “show” commands that can provide very useful information regarding Force10 Networks switches/routers. I have outlined a number of these very useful commands with a short description of each below. However, keep in mind that although most … Continue reading

Posted in Force10 Networks, Networking | Tagged , , , , , , , , , , , , , , , , | Leave a comment

Use Perl’s regex to count the # of words in a file

In the below code I use Perl’s regex capabilites to count the # of words in a file. Notice I used “\s” in the regex expression to account for not only spaces but also tab and new line characters. In … Continue reading

Posted in Perl, Programming Languages | Tagged , , , , , , , , , , , , , , , , , | Leave a comment

Port Monitoring on Force10 Switches

In this lab I will demonstrate how to do port monitoring on Force10 switches and capture the packets using a network protocol analyzer (Wireshark in this case). Port monitoring allows the copying of all incoming/outgoing packets on a specific port … Continue reading

Posted in Force10 Networks, Labs, Networking | Tagged , , , , , , , , , , , | 1 Comment

Scalar and List Contexts in Perl

One of the most important concepts to understand in Perl programming is that of evaluation based on context. In Perl, an operation such as an assignment or function call can give two different results based on the context of the … Continue reading

Posted in Perl, Programming Languages | Tagged , , , , , , , , , , , | Leave a comment

Setup VRRP with Force10 Switches

In this lab I setup Force10 switches with Virtual Router Redundancy Protocol (VRRP). VRRP is a redundancy protocol used to eliminate a single point of failure between a gateway and its respective hosts within the same subnet. I use three … Continue reading

Posted in Force10 Networks, Labs, Networking, Protocols | Tagged , , , , , , , , , , , , , , , , | 2 Comments

Unix shell script – convert Mac ASCII file to Unix ASCII file

With some applications like Microsoft Word you can save a file in ASCII format. However, for new lines Macs use a carriage return (ASCII character 015) while Unix uses a linefeed (ASCII character 012). If you save the file as … Continue reading

Posted in Linux, Operating Systems, Programming Languages, Shell Scripts | Tagged , , , , , , , , , | 1 Comment

Setting up Cisco EtherChannels – Static, PAgP, and LACP

In this lab I used a Cisco Catalyst WS-C3750G-24TS switch [IOS 12.2(25)SEE3] and a Cisco Catalyst WS-C3560G-24TS switch [IOS 12.2(40)SE]. I also physically connected GigabitEthernet 1/0/17 on the Catalyst 3750G to GigabitEthernet 0/17 on the Catalyst 3560G; I did the … Continue reading

Posted in Cisco, Labs, Networking, Protocols | Tagged , , , , , , , , | 1 Comment