Install libnet-snmp-perl by entering the following commands in the terminal:
sudo apt update sudo apt install libnet-snmp-perl
Script SNMP connections
The module Net::SNMP implements an object oriented interface to the Simple Network Management Protocol. Perl applications can use the module to retrieve or update information on a remote host using the SNMP protocol. Net::SNMP is implemented completely in Perl, requires no compiling, and uses only standard Perl modules. SNMPv1 and SNMPv2c (Community-Based SNMPv2), as well as SNMPv3 with USM are supported by the module. SNMP over UDP as well as TCP with both IPv4 and IPv6 can be used. The Net::SNMP module assumes that the user has a basic understanding of the Simple Network Management Protocol and related network management concepts.