no snmpd under /etc/init.d

2008-05-21 Thread CHAHIBI Samira
hi all, i decided to download the net-snmp package and begin installation.My problem is that i found snmpd daemon under /usr/local/sbin. should I copy it under /etc/init.d and run it from there? I say that because when i installed net-snmp with yum install without downloading the package, the

Re: no snmpd under /etc/init.d

2008-05-21 Thread CHAHIBI Samira
thanks, it works _ Invite your mail contacts to join your friends list with Windows Live Spaces. It's easy!

Extending the agent

2008-05-21 Thread CHAHIBI Samira
Hi all, I want to extend my agent with a mib containing one simple integer variable. My problem is that i can't make snmpget on my variable. This is what I made: [EMAIL PROTECTED] ~]# cp /home/CHAHIBI/Desktop/SCALAR-VAR-MIB.txt /usr/local/share/snmp/mibs [EMAIL PROTECTED] ~]# snmptranslate -On

[new MIB module]Can't compile the agent

2008-05-19 Thread CHAHIBI Samira
Hi all, Now that I have my leadTechDesign.h and leadTechDesign.c files completed, i want to compile my agent with this new MIB module. according to net-snmp wiki tutorial, i must copy this files into a agent/mibgroup/leadTechDesign.h and agent/mibgroup/leadTechDesign.c file and make:

Re: [new MIB module]Can't compile the agent

2008-05-19 Thread CHAHIBI Samira
I 've also found a net-snmp folder under /usr/include/: [EMAIL PROTECTED] ~]# ls /usr/include/net-snmp/ agent mib_api.h pdu_api.h utilities.h config_api.h net-snmp-config.h session_api.h varbind_api.h definitions.h net-snmp-config-i386.h snmpv3_api.h

[mib2c .c code] code for MODE_SET_ACTION

2008-05-15 Thread CHAHIBI Samira
Hi all, I have run mib2c and obtained my .c and .h files. I have one single RW scalar variable named id. I I have completed the MODE_GET case by giving the pointor and lenght of id. The problem is that i don't know how to complete the MODE_SET_ACTION, all i want is to affect an integer value to

private MIB test

2008-05-06 Thread CHAHIBI Samira
Hi all, I've installed a newer net-snmp version (5.4) and edited configuration file. It works well. Now I want to extend my agent. I put my mib file under usr/share/snmp/mibs. It is possible now -before writing my functions code on skeleton given by mib2c- to test my private MIB by making an

Re: private mib test

2008-05-06 Thread CHAHIBI Samira
Hi, Thanks for replying so quickly. I'm waiting for IANA's confirmation about my private entreprise number. After editing my private mib, i've tested it on some softs like MG-SOFT and SimpleMIBEditor. my mib seems to be correct. I've changed entreprise oid into 31900 in my mib file until IANA's

Re: private mib test

2008-05-06 Thread CHAHIBI Samira
hi, i only copied my mib file under /usr/share/snmp/mibs here is my mib file: LTD-MIB DEFINITIONS ::= BEGIN IMPORTS MODULE-IDENTITY, OBJECT-TYPE, enterprises FROM SNMPv2-SMI OBJECT-GROUP FROM SNMPv2-CONF; --1.3.6.3.4.3.31900.1 ts MODULE-IDENTITY

Re: private mib test

2008-05-06 Thread CHAHIBI Samira
hi, i have installed my mib file in /usr/share/snmp/mibs the first mib file lines look like this: LTD-MIB DEFINITIONS ::= BEGIN IMPORTS MODULE-IDENTITY, OBJECT-TYPE, enterprises FROM SNMPv2-SMI OBJECT-GROUP FROM SNMPv2-CONF; --1.3.6.3.4.3.31900

Re private mib test

2008-05-06 Thread CHAHIBI Samira
hi, I found why this command failed: [EMAIL PROTECTED] ~]# snmptranslate -m ltd-mib 1.3.6.1.4.31900.1.1 No log handling enabled - turning on stderr logging Cannot find module (ltd-mib): At line 0 in (none) iso.3.6.1.4.5.1.1.0 in this command. I had to put the mib module name, not the

no snmpd.conf or etc/init.d/snmpd

2008-05-02 Thread CHAHIBI Samira
hi all, i have installed net-snmp-5.1.1, after a ./configure...make...make install Itried to verify that I have the configuration file snmpd.conf or the deamon snmpd under init.d, but there aren't. please help _ Connect to the next