Re: net-snmp snptranslate dosnt work for my MIB (snmpget does work)

2012-10-31 Thread avihai marchiano
Thank you all . mibs +MONITOR-MIB dosnt work, but adding below works: mibfile /usr/local/share/snmp/mibs/SERVRE-MONITOR-MIB.txt Thank you From: Jatin Bodarya To: 'avihai marchiano' Cc: [email protected] Sent: Wednesday, October 3

RE: net-snmp snptranslate dosnt work for my MIB (snmpget does work)

2012-10-31 Thread Jatin Bodarya
Add it in snmp.conf, remove from snmpd.conf than restart the service, if you cannot find snmp.conf simply create it at desired location and add just a single line in it !!! From: avihai marchiano [mailto:[email protected]] Sent: 31 October 2012 16:06 To: Jatin Bodarya Cc: Net-snmp-coders@l

Re: net-snmp snptranslate dosnt work for my MIB (snmpget does work)

2012-10-31 Thread avihai marchiano
Thank you I tried your suggestion to add mibs to the  top of my snmpd.conf file (i restart service ) , but didnt work. I added this line at the top of the conf : mibs +MONITOR-MIB However (asd you can see below)  export MIBS=+MONITOR-MIB load the MIB file. root@test:~/workspace/identificat

RE: net-snmp snptranslate dosnt work for my MIB (snmpget does work)

2012-10-31 Thread Jatin Bodarya
As I told you in previous mail To find the location of snmp.conf you can use : snmpd -Dread_config -H 2>&1 | grep "config path" | sort –u u can get the path of snmp.conf from here...then add a single line in it : (the “example” path may be /usr/local/share/snmp/snmp.conf or /snmp/snmp.co

Re: net-snmp snptranslate dosnt work for my MIB (snmpget does work)

2012-10-31 Thread avihai marchiano
Is there a way to make it permenant ? I dont want to define per session or per computer restart. From: Jatin Bodarya To: 'avihai marchiano' Cc: [email protected] Sent: Wednesday, October 31, 2012 11:41 AM Subject: RE: net-snmp snptransla

RE: net-snmp snptranslate dosnt work for my MIB (snmpget does work)

2012-10-31 Thread Jatin Bodarya
To find the location of snmp.conf you can use : snmpd -Dread_config -H 2>&1 | grep "config path" | sort -u then tell the tools to load this MIB (examples):: snmpwalk -m +MY-MIB . (load it for this command only) or export MIBS=+MY-MIB

net-snmp snptranslate dosnt work for my MIB (snmpget does work)

2012-10-31 Thread avihai marchiano
I add my own MIB module to net-snmp. I put my Mib txt file under - '/usr/local/share/snmp/mibs' I see that if i change net-snmp files their the change is reflected , so this mibs are loaded correct. It seems that it not load my MIB file from there. When i run snmptranslate on my Mib like this: sn

RE: SNMPWALK gives Error in packet:Reason (genError)A general failure occurred

2012-10-31 Thread Jatin Bodarya
Found the solution of it... Added "agentxTimeout 10" in snmpd.conf in my pooltable.h file I have changed cache value as below... #define poolTABLE_TIMEOUT10 Now what should be the proper values ?? as my "time" command shows for SnmpWalk is 9 to 9.7 seconds for eg. (1 rows

SNMPWALK gives Error in packet:Reason (genError)A general failure occurred

2012-10-31 Thread Jatin Bodarya
Hie Dave, I have implemented C code using mib2c.create-dataset.conf ( with cache enabled) As in my getfield(tmp, 2); function I am reading CSV file and geting value of 2nd column. If I run this function on normal mode It is reading whole file with lakes of rows... but with SNMP generated code If I