PDA

Bekijk de volledige versie : SNMPd



vector
09-06-2004, 02:13
Could SNMPd be included in the next firmware?

Or some minor SNMP deamon that replies to SNMP queries for:


[li]packet stats
[li]interface errors


Excelent work on custom firmwares BTW...

Thanks...

mavin
02-09-2004, 22:41
HI,

sorry for my english.
I create customized firmware with snmpd, but I remove ripd and zebra (because it's not need for me).
If anybody want try, here is link: (page no more exist)
I used ucd-snmpd, snmpd binary is 460 Kbyte big.
For try you only need copy and execute snmpd binary.
I removed privacy for space saving, then I recommended using firewall rules.
this snmpd binary has only mibII/interfaces module compiled in.

mvn.

rdude
05-09-2004, 10:06
No replies on this?!?! :confused:
This was the only feature missing from Oleg's firmware, it's really cool, Mavin.
Thank you a lot!!
:)

Oleg
05-09-2004, 12:23
Guys, if you want to contribute, please provide detailed info on building process, rather than putting binaries - otherwise this is not a real solution, but a quick hack.

mavin
06-09-2004, 20:44
I use ucd-snmp-4.2.6 (http://prdownloads.sourceforge.net/net-snmp/ucd-snmp-4.2.6.tar.gz?download).
Configured with these settings: --host=mipsel-linux --with-endianness=little --enable-mini-agent --disable-debugging --disable-privacy --enable-static=yes --enable-shared=no --without-opaque-special-types --with-mib-modules=mibII/interfaces --with-out-mib-modules="snmpv3 ucd_snmp agentx notification"

/* NOTE: "--disable-privacy" has no size efect and can be omited */

can this help you?

mvn.

Oleg
06-09-2004, 20:47
Well, --enable-static=yes is a bad thing. Size does matter. :)

mavin
06-09-2004, 22:08
yes, I know :( .
I tryed compile with --enable-static=no and I give realy small snmpd binary but big snmp libary...
Can I do anything to minimalize created libary ?

mvn.

Oleg
07-09-2004, 08:05
Well, mostly I mean, that libc should not be statically linked. Linking internal libraries statically is ok, unless you use several apps.

mavin
18-05-2005, 00:29
hello everybody again,

sorry, I'm realy bad in english.

I use ucd-snmp-4.2.7.pre1 (http://sourceforge.net/project/showfiles.php?group_id=12694) to compile snmpd binary.
This snmpd binary has can added to oleg custom firmware without remove any other file.
Snmpd is compiled only with interfaces module (I need only this module ;)) and look for configuration in
/usr/local/etc/snmp/snmpd.conf

I attach at this post:
snmpd.gz - this is my snmpd binary
cfg_snmpd-mipsel.gz - this script I used to configure ucd-snmp (contain configuration votes to ucd-snmp that I use)

firmware with snmpd: (file removed from server, you find it on this forum)
ps: antiloop, can I upload firmware file to this forum? (I must remove pages from server)

Antiloop
20-05-2005, 01:56
mirrored:

http://files.wl500g.info/asus/custom/mavin/1.9.2.7-4+snmp/WL500g-1.9.2.7-4_snmpd.trx

rdude
20-05-2005, 07:55
Hi, Mavin,

would you be able to make this for 1.9.2.7-5 please, because it has a lot better wifi driver...

Thank you anyway, I was using your 1.7.5.9-5 for long time...
:)

Styno
20-05-2005, 08:20
Hi, Mavin,

would you be able to make this for 1.9.2.7-5 please, because it has a lot better wifi driver...

Thank you anyway, I was using your 1.7.5.9-5 for long time...
:)
It would probably be a good idea to make this available through ipkg as well...

Jean-Fabrice
20-05-2005, 08:34
As I'm pretty new to snmp, could someone explain me the difference between net-snmp (which seems to be part of Oleg's firmware) and ucd-snmpd ?

Is this last a userspace software ?

Oleg
20-05-2005, 09:51
As I'm pretty new to snmp, could someone explain me the difference between net-snmp (which seems to be part of Oleg's firmware) and ucd-snmpd ?

Is this last a userspace software ?
They're the same. In fact snmpd is not included to the image.

Jean-Fabrice
20-05-2005, 10:06
ok.
Is there any particular reason to compile snmpd from ucd-snmp instead of net-snmp ?

JF

Oleg
20-05-2005, 10:28
JF, the only difference is version. At some point ucd-snmpd become net-snmp. So, the latest is net-snmp.

mavin
23-05-2005, 02:14
net-snmp is based on ucd-snmp and ucd-snmp seem to be death, but people around net-snmp relased new version ucd-snmp.

I use ucd-snmp because is smaller than net-snmp.

mavin
23-05-2005, 02:28
I create new 1.9.2.7-5a firmware with snmp and I send it to antiloop.
used snmpd binary is the same as in last firmware.

if exist net-snmp ipkg package I not seen any reason to create ucd-snmp ipkg package.

Oleg
23-05-2005, 10:36
net-snmp is based on ucd-snmp and ucd-snmp seem to be death, but people around net-snmp relased new version ucd-snmp.

I use ucd-snmp because is smaller than net-snmp.
Can't understand you. Do you mean, that ucd-snmpd released new version now? If so, do you've a link?
Also, how large snmpd now?

mavin
23-05-2005, 11:27
Can't understand you. Do you mean, that ucd-snmpd released new version now? If so, do you've a link?
Also, how large snmpd now?

Yes, scroll down on net-snmp download (http://sourceforge.net/project/showfiles.php?group_id=12694) page.
ucd-snmp-4.2.7.pre1.tar.gz uploaded 2005-05-06 11:51

I'm only beginer.
but when I compile net-snmp, I get cca 800kb binary,
if I use ucd-snmp, I get cca 500kb binary. and this binary can be added to firmware without removing anything else. (snmp libary is linked statically, uClibc dynamically)

Oleg
23-05-2005, 12:26
I see now.

usselma
24-05-2005, 22:35
I create new 1.9.2.7-5a firmware with snmp and I send it to antiloop.
used snmpd binary is the same as in last firmware.

if exist net-snmp ipkg package I not seen any reason to create ucd-snmp ipkg package.

mavin, this is great!
this is the number one argument for me to get the router+custom firmware!

What are the chances to get this into the future firmware's (oleg?)
thanks a lot!

usselma

usselma
30-05-2005, 22:33
hello everybody again,

sorry, I'm realy bad in english.

I use ucd-snmp-4.2.7.pre1 (http://sourceforge.net/project/showfiles.php?group_id=12694) to compile snmpd binary.
This snmpd binary has can added to oleg custom firmware without remove any other file.
Snmpd is compiled only with interfaces module (I need only this module ;)) and look for configuration in
/usr/local/etc/snmp/snmpd.conf

...


Is it possible to monitor each of the lan ports individually?
Why is it that the four ports do not have single interfaces?

usselma

tomilius
31-05-2005, 01:09
They comprise a hardware switch.

vpe
21-06-2005, 05:24
Hello,

another firmware (all fw in english language) with full OpenVPN 2.0 rtm (with lzo, encryption, without SSL) and net-snmp-5.2.1 (with snmpd.conf example) based on Oleg 1.9.2.7-5a source code:

http://koppel.cz/cdmawifi/download/157/WL500b-1.9.2.7-5a-CDMA-1.57.trx
http://koppel.cz/cdmawifi/download/157/WL500bv2-1.9.2.7-5a-CDMA-1.57.trx
http://koppel.cz/cdmawifi/download/157/WL500g-1.9.2.7-5a-CDMA-1.57.trx
http://koppel.cz/cdmawifi/download/157/WL500gx-1.9.2.7-5a-CDMA-1.57.trx
http://koppel.cz/cdmawifi/download/157/cdma-1.9.2.7-5a-CDMA-1.57.tar.gz

Try it!

WlanMan
27-06-2005, 22:13
Is it possible to monitor each of the lan ports individually?
Why is it that the four ports do not have single interfaces?

No, since Asus dosnīt uses a vlan switch in the 500g like linksys does, but in the 500gx and maybe other devices. These Chip is needet to become each lan port a virtual device in the system. The 500g has only an ordinary 5port switch.

Greets

vector
19-07-2005, 23:06
OLEG: Thanks!!