Hi,
I have a standard Mib. It has a read only Table which has a
primary key. I am able to retrieve values for the table view.
But I want to retrieve only a single row from whole table view.
I have the key details for that specific row.
How is it possible? If I am not clear, I
Hi,
I use mib2c.create-dataset.conf to generate codes for a table, but I got the
following error:
conflicting types for myTable_free and myTable_load. I use the cache method, it
creates the following codes in the header file:
NetsnmpCacheLoad myTable_load;
NetsnmpCacheFree myTable_free;
But
THANK YOU. Life is beautiful and your suggestion made it.
I followed your suggestion about configuration change and it works. However
still I have some questions :)
I changed extend without oid. Now it has rationale oids instead of weird
looking oids.
NET-SNMP-EXTEND-MIB::nsExtendNumEntries.0 =
2009/11/8 LiWei Sun :
> I don't know how to pass an ip address value to "snmp_set_var_typed_value"
> function.
> I got a string value like "192.168.1.1", is it right to simply cast it to
> u_char* type
No - you need to pass it a *binary* string - of length 4.
Something like:
char addr[4];
2009/11/5 Barun Biswas :
> I am getting "Timeout: No response from x.x.x.x" error while tryign to
> execute snmpwalk from a solaris machine. The target machine is a Windows
> server. I have checked from the windows server whether snmp is working fine
> or not using snmputil. And I found that it is
2009/11/5 seshu babu :
> 1. The net-snmp-devel rpm doesn't have a mib2c compiler that means I can do
> away with the mib2c compiler instead depend on dlmod for code & mib
> changes?
mib2c is written in perl, so you need to install the RPM
'net-snmp-perl' as well.
This includes the mib2c scrip
hi,
How to compile this simple example program in windows (VC++)? Could anyone help
me?
#include
#include
#include
int main(int argc, char ** argv)
{
struct snmp_session session;
struct snmp_session *sess_handle;
struct snmp_pdu *pdu;
struct snmp_pdu *response;
Hi,
I'm trying to write a simple snmp program to query some values of a
sensor server. Following the tutorial as an example, all seemed fine,
until I tried executing the program on different platforms.
Compiliation is fine on all, but running the programm often segfaults
or gives other error
2009/11/8 rangeli nepal :
> So i put a command in snmpd.conf like this:
>
> extend .1.3.6.1.4.1.3658.50 dhcpd_partner_down /root/dhcpd_partner_down.sh
> It worked for me. I can see
>
> snmpwalk localhost -c public -v 2c .1.3.6.1.4.1.3658.50
>
> SNMPv2-SMI::enterprises.3658.50.1.0 = INTEGER: 1
> SNM