Retrieval of a single row from read-only Table

2009-11-09 Thread forumde...@tataelxsi.co.in
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

Question about mib2c.create-dataset.conf

2009-11-09 Thread X Z
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

Re: DisMan & monitor

2009-11-09 Thread rangeli nepal
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 =

Re: [newbie] ASN1 types mapping to c

2009-11-09 Thread Dave Shield
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];

Re: timeout error while executing snmpwalk

2009-11-09 Thread Dave Shield
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

Re: snmp newbie trying to use net-snmp as an Agent

2009-11-09 Thread Dave Shield
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

how to compile snmp_test.c programs in vc++

2009-11-09 Thread raj kumar
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;

snmp_init

2009-11-09 Thread Robert Frank
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

Re: DisMan & monitor

2009-11-09 Thread Dave Shield
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