Cygwin

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.

  1. Cygwin Downloadf
  2. Windows - Installing Make In Cygwin - Stack Overflow
  3. Cygwin Terminal

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

Softpedia Editor's Pick add to watchlist send us an update. 1 screenshot: runs on: Windows Server 2019. Windows Server 2016. Windows 10 32/64 bit. Install and maintain Cygwin¶ This guide was tested under Windows 10. It should be work with other supported Windows Versions too. Install Cygwin (without admin rights)¶ This documentation is based on Oliver Doepner's IT blog. Thank you for your work Oliver. Download setup-x8664.exe. Open command line window (WIN+R and type cmd).

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:

Cygwin
  • 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.

Cygwin

Installing Net-SNMP

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.

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

Cygwin Downloadf

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:

Windows - Installing Make In Cygwin - Stack Overflow

MIBS=ALL
MIBSDIR=C:/PHP/MIBS

Running,

Cygwin Terminal

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