Hi,
A couple more questions.
1) How to close transport and session down.
I used
if(mgr_p->session_p) {
SNMPD_LOG(LOG_INFO, SNMPD_LOG_GROUP_TRAP, "Closing session.");
snmp_sess_close(mgr_p->session_p);
}
if(mgr_p->transport_trap_server_p) {
SNMPD_LOG(LOG_INFO
On 22 July 2010 10:24, Gaurav Chaturvedi wrote:
> Following are the functions which can be used in your case as per the
> requirement:
>
> print_objid, fprint_objid, snprint_objid
Those will return the name of the MIB object
(formatted according to the current output format settings)
For the des
Hi Martin,
Its good that you got the solution now.
Following are the functions which can be used in your case as per the
requirement:
*print_objid*, *fprint_objid*, *snprint_objid
Synatx:
**void print_objid(const oid ***objid**, size_t* *objidlen**);
void fprint_objid(FILE ***fp**, const oid *
On 21/07/2010 06:05, Gaurav Chaturvedi wrote:
Hi Martin,
Please use the following code after your mentioned part of code.
You need to call "snmp_sess_select_info", "select" and
"snmp_sess_read" after snmp_sess_read() function. These functions help
in reading the data from socket and call the
Hi Martin,
Please use the following code after your mentioned part of code.
You need to call "snmp_sess_select_info", "select" and "snmp_sess_read"
after snmp_sess_read() function. These functions help in reading the data
from socket and call the callback function.
Also, there is no issue in usi