Cygwin

  1. The Cygwin mailing lists are the places for all questions. Address space is a very limiting factor for Cygwin. These days, a full 32 bit Cygwin distro is not feasible anymore, and will in all likelihood fail in random places due to an issue with the fork(2) system call.
  2. Cygwin is still relevant if you wish to have native.nix commands available to you on the Windows platform. Yes, I know about Windows Subsystem for Linux (WSL), but Cygwin and WSL aren't the same. Cygwin gives you the power of.nix commands in your native Windows environment.

First, find your Cygwin installation path. By default, it is C: cygwin64 for the 64-bit version. The bash.exe executable in a Cygwin installation should be placed in the bin folder under Cygwin’s installation path. Therefore, the absolute path to the executable file is C: cygwin64 bin bash.exe by default.

Apt get - apt-get for Cygwin? - Stack Overflow

I love CygWin. I helps me to combine the best of 2 worlds, the easy of use and convenience of Windows and the command line functionality of Linux. (This statement is blasphemy in some circles. I know). The challenge though is that sometimes it is difficult to have all the tools you need without first connecting to a Linux box, especially for times when this is not possible.

This is one example. I needed snmpwalk but it was not installed on the Linux boxes at my disposal. This is how I got it working in CygWin.

Installing Cygwin

CachedCygwin

The first requirement is to have Cygwin installed. Cygwin can be download from the following Web site:

You will find a a simple “Setup” program. Simply follow the instructions in the setup program to complete the install. If space is not a concern, I suggest you install the entire suite of tools. But there are certain packages which might be more relevant for this setup. These include:

How to run make from Cygwin environment? - Stack Overflow
  • make
  • gcc
  • openssl

Basically you want to look for and install packages necessary to compile/build binaries. If you run the “./configure” command (while installing a package from source) and it complains about missing libraries or packages you can rerun this process and add them. Then run “./configure” again.

Installing Net-SNMP

Cygwin

Net-SNMP is quite a safe install as well. Once you have Cygwin installed, you simply need to download the Net-SNMP source and execute a few commands from a bash shell and you will have finished.

Cygwin.com

Net-SNMP can be downloaded by following the link below:

You should download to a directory such as c:cygwinsrcnet-snmp-5.x.x. Once downloaded to that directory, open a bash shell and follow the steps below:

tar xvfz /src/net-snmp-5.x.x

cd /src/net-snmp-5.x.x
./configure
make
make install

If you haven’t done so already, you need to specify the following system environment variables:

MIBS=ALL
MIBSDIR=C:/PHP/MIBS

Cygwin Install

snmpwalk -v 2c -c public [ipAddr] system