snmprec command not found

In this troubleshooting guide we learn how to fix snmprec command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

snmprec: command not found

or when using sudo you get the following error message

sudo: snmprec: command not found

Solutions to snmprec: command not found

How To Fix snmprec: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu snmprec is provided by snmpsim package.

snmpsim is:

SNMP Simulator is a software that would act like a multitude of real physical devices from SNMP Manager’s point of view. Simulator builds and uses a database of physical devices’ SNMP footprints to respond like their real counterparts do.

Typical use case for this software starts with recording a snapshot of SNMP objects of donor agents into text files. Once you have your snapshots at hand, a simulator script could be run over the snapshots responding to SNMP queries in the same way as donor SNMP agents did at the time of recording.

Technically, SNMP Simulator is a multi-context SNMP agent. That means that it handles multiple sets of managed object all at once. Each device is simulated within a dedicated SNMP context.

To fix this problem, we can install more using the command below.

sudo apt-get -y install snmpsim

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install snmpsim.

sudo apt -y install snmpsim

Or if you have aptitude installed you can use the following command.

sudo aptitude install snmpsim

Summary

In this tutorial we learn how to fix snmprec command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.