Skip to content
Advertisement

Tag: snmp

C NET-SNMP Get and Set specifically via MIB Name, Not OID

I have written and am testing software for a generic SNMP client module in C as well as an implementation using this generic module. I am having trouble getting a get request to work by passing in a MIB name(e.g. sysDescr) instead of an OID(e.g. 1.3.6.1.2.1.1.1). I am successful when I pass in a character array containing the OID to

Undefined references when linking with gcc -lnetsnmp

I’m trying to compile and run my code on a raspberry pi which needs the snmp libraries. However, I get linking errors such as “undefined reference to ‘EVP_DigestUpdate'”. I’ve been researching this issue for the past few days and found out that this usually happens when snmp can’t find the ssl library crypto, for example if you don’t specify -lcrypto

snmp – timeout when connecting master and agent

Everytime that I run a command to interact the manager(server) to the agent(client) I get ‘snmpget: Timeout’. this happens both ways both are configured to accept connection from remote hosts. I’m new to snmp. I may have forget to do something Answer SNMP protocol uses specific ports (161 & 162 )for communications. 161 for snmpget type of commands and 162

Advertisement