Perl extension NetSNMP::agent. How to get value in perl through "snmpset"

2020-09-17 Thread Drovalev R.N.
Hello! How to get value in perl extension via command as below. snmpset -c private -v 1 localhost .1.3.6.1.4.1.318.2.1.2.1.2.1 s i.e. How to get the value "" for the variable $string_value Thanks - code - #!/usr/bin/perl use NetSNMP::OID (':all'); use

RE: snmpget: Remove quotes in output string

2020-09-16 Thread Drovalev R.N.
Pashpa, thank you very mach! Сhanging the parameter to “1234” helped me! It remains to figure out how to convert an address from an integer. From: Pushpa Thimmaiah [mailto:pushpa.thimma...@gmail.com] Sent: Wednesday, September 16, 2020 6:39 AM To: Net-SNMP Coders Subject: snmpget: Remove

Perl extension NetSNMP::ASN does not return values in the request, where Exportable constants- ASN_IPADDRESS

2020-09-15 Thread Drovalev R.N.
Hello! There is a need to return the value of the ip address when requesting a specific OID. It is necessary to emulate the snmp device. Implemented via perl, which I am new to. Perl extension NetSNMP::ASN does not return values in the request, where Exportable constants -