Re: net-snmp
hi sagar i'm not a guru but something that i know may helpful to you. step 1 select net-snmp using 'make menuconfig' ( i selected only net-snmp snmpd) step 2 modify some source (find 'Sangsu Baek' in net-snmp-users mailling-list). step 3 cd to net-snmp make clean step 4 create config file to romfs/etc/snmpd.conf I attached example file, just use it ! step 5 cd to root - directory and make if there some errors , just make again. step 6 load & run your linux images. exec following command in console # snmpd -f -c /etc/snmpd.conf& I'm sure these will make you a happy man ! regards Sangsu Baek - Original Message - From: "Newase Sagar Deepak" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, February 15, 2007 7:33 PM Subject: net-snmp > hi, > > I'm sagar. I Want to add snmp support for ixp425 board . > please suggest me the path or changes you made to port the net-snmp > 5.2.1 to uclinux for ixp 425 platform. > Whether the some will work on 2.4 kernel or need any changes.. > > Thanks, > SAgar > > snmpd.conf Description: Binary data - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
Net-snmp 5.3.1 trouble sending v3 trap
I am using net-snmp 5.3.1. The agent cannot send out v3 trap. Using '-Lf /tmp/snmp.out', it shows entries: Snmpd: send_trap: USM unknown security name (no such user exists) My snmpd.conf: trapsess -v3 -lauthNoPriv -uuser3 -aMD5 -Apassword3 rouser user3 auth I looked at /var/net-snmp/snmpd.conf. It seems that user is created there. I wonder if there is anything else I should do. Please help. Stephen - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
snmp trap forwarding
Hi, I would like to forward the receiving trap by machine B to machine C. In my snmptrapd.conf in machine B, I have createUser -e MD5 DES authUser log,net When I run snmptrapd, I can receive traps from machine A. When I generate a trap from machine B, machine C can receive the trap. However, traps sending out from machine A to machine B is not forwarded to machine C. Am I missing something? Thanks Connie - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
Re: Help to understand Agent silence on WinXP
Thomas Anders ha scritto: > Fizzo wrote: >> Timeout: No Response from 127.0.0.1. > > http://www.net-snmp.org/wiki/index.php/FAQ:Applications_04 > Thanks, but I had already checked the FAQ and that specific answer helped me in finding out how to dump the packets sent and received, and it helped :) >> If you need more information on the matter let me know and I will >> try to answer as good as I can. > > What are your access control settings in snmpd.conf? > > See http://www.net-snmp.org/wiki/index.php/FAQ:Agent_23 > at the end of this email I included my snmpd.conf generated by snmpconf I compiled everything on a different machine and the outcome is perfect I manage to get response with the same snmpd.conf file. I just need help in finding out what is interfering with net-snmp on the original machine. thanks in advance Fizzo ### # # snmpd.conf # # - created by the snmpconf configuration program # ### # SECTION: Trap Destinations # # Here we define who the agent will send traps to. # trap2sink: A SNMPv2c trap receiver # arguments: host [community] [portnum] trap2sink 127.0.0.1 # informsink: A SNMPv2c inform (acknowledged trap) receiver # arguments: host [community] [portnum] informsink 127.0.0.1 # trapcommunity: Default trap sink community to use # arguments: community-string trapcommunity trap_community # authtrapenable: Should we send traps when authentication failures occur # arguments: 1 | 2 (1 = yes, 2 = no) authtrapenable 1 ### # SECTION: Access Control Setup # # This section defines who is allowed to talk to your running # snmp agent. # rwuser: a SNMPv3 read-write user # arguments: user [noauth|auth|priv] [restriction_oid] rwuser fizzo # rouser: a SNMPv3 read-only user # arguments: user [noauth|auth|priv] [restriction_oid] rouser nobody # rocommunity: a SNMPv1/SNMPv2c read-only access community name # arguments: community [default|hostname|network/bits] [oid] rocommunity public 192.168.32.0/24 # rwcommunity: a SNMPv1/SNMPv2c read-write access community name # arguments: community [default|hostname|network/bits] [oid] rwcommunity private 127.0.0.1 ### # SECTION: System Information Setup # # This section defines some of the information reported in # the "system" mib group in the mibII tree. # syslocation: The [typically physical] location of the system. # Note that setting this value here means that when trying to # perform an snmp SET operation to the sysLocation.0 variable will make # the agent return the "notWritable" error code. IE, including # this token in the snmpd.conf file will disable write access to # the variable. # arguments: location_string syslocation Treviso # syscontact: The contact information for the administrator # Note that setting this value here means that when trying to # perform an snmp SET operation to the sysContact.0 variable will make # the agent return the "notWritable" error code. IE, including # this token in the snmpd.conf file will disable write access to # the variable. # arguments: contact_string syscontact fizzo - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
netSnmpHostsTable.so segmentation fault
Hi All, i am trying to create the netSnmpHostsTable.so from the example in " net-snmp-5.2\agent\mibgroup\examples". It s created successfully but when i add it to dlmod, it appears like its added normally: UCD-DLMOD-MIB::dlmodName.1 = STRING: netSnmpHostsTable UCD-DLMOD-MIB::dlmodPath.1 = STRING: /home/jinny/example/netSnmpHostsTable.so UCD-DLMOD-MIB::dlmodError.1 = STRING: UCD-DLMOD-MIB::dlmodStatus.1 = INTEGER: loaded(1) When i running the snmpwalk on netSnmpHostsTable OID, the snmpd will exit with the segmentation fault. the part of the debug file related to netSnmpHostsTable is below: read_config: /home/jinny/net-snmp/local//share/snmp/snmpd.conf:68 examining: dlmod netSnmpHostsTable /home/jinny/example/netSnmpHostsTable.so trace: run_config_handler(): read_config.c, 474: read_config: Found a parser. Calling it: dlmod / netSnmpHostsTable /home/jinny/example/netSnmpHostsTable.so trace: dlmod_create_module(): ucd-snmp/dlmod.c, 106: dlmod: dlmod_create_module trace: dlmod_load_module(): ucd-snmp/dlmod.c, 145: dlmod: dlmod_load_module netSnmpHostsTable: /home/jinny/example/netSnmpHostsTable.so trace: initialize_table_netSnmpHostsTable(): netSnmpHostsTable.c, 93 initialize_table_netSnmpHostsTable: Registering table netSnmpHostsTable as a table iterator trace: netsnmp_inject_handler_before(): agent_handler.c, 336: handler:inject: injecting table_iterator before netSnmpHostsTable netsnmp_get_table_handler(NULL) called netsnmp_inject_handler() called illegally netsnmp_assert handler != ((void *)0) failed agent_handler.c:329 netsnmp_inject_handler_before() trace: netsnmp_register_handler(): agent_handler.c, 212: handler::register: Registering netSnmpHostsTable (::table_iterator::netSnmpHostsTable) at NET-SNMP-MIB::netSnmp.2.2.2 trace: netsnmp_inject_handler_before(): agent_handler.c, 336: handler:inject: injecting bulk_to_next before table_iterator trace: netsnmp_register_mib(): agent_registry.c, 587: register_mib: registering "netSnmpHostsTable" at NET-SNMP-MIB:: netSnmp.2.2.2 trace: netsnmp_subtree_find_first(): agent_registry.c, 155: subtree: looking for subtree for context: "" I am waiting ur reply, Thanks Best Regards Elias - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
Re: Help to understand Agent silence on WinXP
Fizzo wrote: > Timeout: No Response from 127.0.0.1. http://www.net-snmp.org/wiki/index.php/FAQ:Applications_04 > If you need more information on the matter let me know and I will try > to answer as good as I can. What are your access control settings in snmpd.conf? See http://www.net-snmp.org/wiki/index.php/FAQ:Agent_23 +Thomas -- Thomas Anders (thomas.anders at blue-cable.de) - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
Help to understand Agent silence on WinXP
Hello everyone, I am quite new to the list and also with net-snmp. I am trying to build an SNMP application on top of net-snmp toolkit in order to manage a custom MIB. I downloaded and successfully compiled all the libraries and executables for the 5.4 branch using Visual Studio 7.0 I am now trying to use the executable to perform some simple tests; after running the compiled snmpd.exe, as suggested by the tutorials I am trying to execute the following: snmpget -d -v 2c -c private 127.0.0.1 system.sysDescr the -d option was added in order to see if the packets were effectively being generated. Here is the Outcome: Sending 41 bytes to UDP: [127.0.0.1]:161 : 30 27 02 01 01 04 07 70 72 69 76 61 74 65 A0 190'.privateá. 0016: 02 02 50 16 02 01 00 02 01 00 30 0D 30 0B 06 07..P...0.0... 0032: 2B 06 01 02 01 01 01 05 00 + after some retries: Timeout: No Response from 127.0.0.1. I didnt mention that snmpd tries to send what I think are the startup trap to port port 162: Sending 93 bytes to UDP: [127.0.0.1]:162 : 30 5B 02 01 01 04 06 70 75 62 6C 69 63 A6 4E 020[.publicªN. 0016: 02 6A 11 02 01 00 02 01 00 30 42 30 0D 06 08 2B.j...0B0...+ 0032: 06 01 02 01 01 03 00 43 01 64 30 17 06 0A 2B 06...C.d0...+. 0048: 01 06 03 01 01 04 01 00 06 09 2B 06 01 06 03 01. +. 0064: 01 05 01 30 18 06 0A 2B 06 01 06 03 01 01 04 03...0...+ 0080: 00 06 0A 2B 06 01 04 01 BF 08 03 02 0D ...+? Here as well, there are some retries. Now ... to go on with further description of the machine i am trying to run things on: I have Windows Firewall disabled and the service is disabled; I have Zone Alarm installed but I shut it down in order to perform tests without being disturbed; 'netstat -a', as expected, displays UDP port 161 being opnened for listening. I need some help in trying to find out what is actually blocking Agent from receiving packets. I expect that in case community string were badly configured I would get some dumps of packets received in the snmpd.exe window, but unfortunately I get no sign of life :( If you need more information on the matter let me know and I will try to answer as good as I can. Thank you in advance for the attention Fizzo - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
Re: Continuously displaying the same error message on the screen
On 14/02/07, Dave Shield <[EMAIL PROTECTED]> wrote: > Sudden thought - a better fix would be to tweak the > 'netsnmp_cpu_get_byIdx()' call immediately previous > to read: > > cpu = netsnmp_cpu_get_byIdx( i, 1 ); Confirmed - that does seem to do the trick. I've updated the CVS branches accordingly. Dave - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
Re: Problems with table indexed by MacAddress
2007/2/15, Dave Shield <[EMAIL PROTECTED]>: On 15/02/07, marco <[EMAIL PROTECTED]> wrote: > $ snmpset -v2c -c RW_community -m ALL localhost > wmanIfBsSsProvisionedForSfRowStatus.\'abcdef\'.2 i 4 > wmanIfBsSsProvisionedForSfRowStatus.'abcdef'.2: Unknown OID > (Index out of range: 'abcdef (wmanIfBsSsProvMacAddress)) > Why "out of range"? First thing - is it the agent or "snmpset" that's objecting to this? Try adding the -Ir flag to disable snmpset validation checks. Ok, with -Ir I obtain: $ snmpset -v2c -c RW_community -m ALL -Ir localhost wmanIfBsSsProvisionedForSfRowStatus.'abcdef'.2 i 4 wmanIfBsSsProvisionedForSfRowStatus.abcdef.2: Unknown Object Identifier (Index out of range: abcdef (wmanIfBsSsProvMacAddress)) or (using \'): $ snmpset -v2c -c RW_community -m ALL -Ir localhost wmanIfBsSsProvisionedForSfRowStatus.\'abcdef\'.2 i 4 Error in packet. Reason: (noSuchName) There is no such variable name in this MIB. Failed object: WMAN-IF-MIB::wmanIfBsSsProvisionedForSfRowStatus.239.2 or (without '): $ snmpset -v2c -c RW_community -m ALL -Ir localhost wmanIfBsSsProvisionedForSfRowStatus.abcdef.2 i 4 wmanIfBsSsProvisionedForSfRowStatus.abcdef.2: Unknown Object Identifier (Index out of range: abcdef (wmanIfBsSsProvMacAddress)) So it seems a problem in the agent. If the agent still complains, try running both the "snmpset" and "snmpwalk" commands with either '-d' or '-Ddump', and compare the OID that's being generated. How do the two compare? Dave Ok, I try snmpwalk with -Ddump and I obtain for the send message: ... dumph_send: Name dumpx_send: 06 0C 2B 06 01 02 01 0A 81 38 01 01 01 02 dumpv_send:ObjID: WMAN-IF-MIB::wmanIfBsSsProvisionedForSfTable ... and for the recv message: dumph_recv: Name dumpx_recv: 06 15 2B 06 01 02 01 0A 81 38 01 01 01 02 01 03 61 62 63 64 65 66 01 dumpv_recv:ObjID: WMAN-IF-MIB::wmanIfBsSsProvisionedForSfRowStatus.'abcdef'.1 It seems OK except for the second byte (0C != 15) As to the snmpset, I get a response dump only if I use the .\'abcdef\'. notation. In other cases I obtain only messages such as (without PDU dumping): wmanIfBsSsProvisionedForSfRowStatus.abcdef.2: Unknown Object Identifier (Index out of range: abcdef (wmanIfBsSsProvMacAddress)) So with: $ snmpset -v2c -c RW_community -m ALL -Ir -Ddump localhost wmanIfBsSsProvisionedForSfRowStatus.\'abcdef\'.2 i 4 I get fot the request: dumph_send: Name dumpx_send: 06 11 2B 06 01 02 01 0A 81 38 01 01 01 02 01 03 81 6F 02 dumpv_send:ObjID: WMAN-IF-MIB:: wmanIfBsSsProvisionedForSfRowStatus.239.2 and for the response: dumph_recv: Name dumpx_recv: 06 11 2B 06 01 02 01 0A 81 38 01 01 01 02 01 03 81 6F 02 dumpv_recv:ObjID: WMAN-IF-MIB:: wmanIfBsSsProvisionedForSfRowStatus.239.2 So the same values of OID but with a strange "239". Whta can we deduce from this comparing? Thank you, Ynjo -- And then one day you find ten years have got behind you. No one told you when to run You missed the starting gun - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
Re: Problems with table indexed by MacAddress
On 15/02/07, marco <[EMAIL PROTECTED]> wrote: > $ snmpset -v2c -c RW_community -m ALL localhost > wmanIfBsSsProvisionedForSfRowStatus.\'abcdef\'.2 i 4 > wmanIfBsSsProvisionedForSfRowStatus.'abcdef'.2: Unknown OID > (Index out of range: 'abcdef (wmanIfBsSsProvMacAddress)) > Why "out of range"? First thing - is it the agent or "snmpset" that's objecting to this? Try adding the -Ir flag to disable snmpset validation checks. If the agent still complains, try running both the "snmpset" and "snmpwalk" commands with either '-d' or '-Ddump', and compare the OID that's being generated. How do the two compare? Dave - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
Re: Problems with table indexed by MacAddress
2007/2/14, Dave Shield <[EMAIL PROTECTED]>: > snmpwalk -v2c -c RW_community -m ALL localhost > wmanIfBsSsProvisionedForSfTable > > I obtain this response: > > WMAN-IF-MIB::wmanIfBsSsProvisionedForSfRowStatus.'.abcde'.102.1 > = INTEGER: active(1) > > that is right except for indexes values. A "." appears as first character of > index and the "f" appears as .102. Does anybody know why? How are you registering the table with the agent? In particular, what types are you specifying for the string index? ASN_OCTET_STR or ASN_PRIV_IMPLIED_OCTET_STR ? Thank you, Dave! The first question seems to be resolved! :-) Using "ASN_PRIV_IMPLIED_OCTET_STR" instead of "ASN_OCTET_STR" I obtain: $ snmpwalk -v2c -c RW_community -m ALL localhost wmanIfBsSsProvisionedForSfTable WMAN-IF-MIB::wmanIfBsSsProvisionedForSfRowStatus.'abcdef'.1 = INTEGER: active(1) that is exactly what I expect. Anyway the problem with set rimains... :--( In set operations (to create new rows) I don't know how to correctly specify > the new index. > $ snmpset -v2c -c RW_community -m ALL localhost > wmanIfBsSsProvisionedForSfRowStatus.'abcdef'.2 i 4 Close. Try wmanIfBsSsProvisionedForSfRowStatus.\'abcdef\'.2 i 4 (so that the quotes are picked up by the snmpset command, not swallowed by the shell). I obtain: $ snmpset -v2c -c RW_community -m ALL localhost wmanIfBsSsProvisionedForSfRowStatus.\'abcdef\'.2 i 4 wmanIfBsSsProvisionedForSfRowStatus.'abcdef'.2: Unknown Object Identifier (Index out of range: 'abcdef (wmanIfBsSsProvMacAddress)) $ snmpset -v2c -c RW_community -m ALL localhost wmanIfBsSsProvisionedForSfRowStatus.'abcdef'.2 i 4 wmanIfBsSsProvisionedForSfRowStatus.abcdef.2: Unknown Object Identifier (Index out of range: abcdef (wmanIfBsSsProvMacAddress)) $ snmpset -v2c -c RW_community -m ALL localhost wmanIfBsSsProvisionedForSfRowStatus.abcdef.2 i 4 wmanIfBsSsProvisionedForSfRowStatus.abcdef.2: Unknown Object Identifier (Index out of range: abcdef (wmanIfBsSsProvMacAddress)) Why "out of range"? I generated code with mib2c using table_iterator helper, so the only thing I do on indexes is to register them as you, Dave, suggested me (in the netsnmp_table_helper_add_indexes() call). Thank you, Ynjo -- And then one day you find ten years have got behind you. No one told you when to run You missed the starting gun - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
Re: Regarding hrStorage
On 15/02/07, Pradhap D <[EMAIL PROTECTED]> wrote: > AFAIK ...Currently hrStorage doesnot support terabyte filesystems ... I presume you're concerned about the limitation of hrStorageSize to a 31 bit value (i.e 2 Terabytes when measured in Kb)? But remember that this is to be used in conjunction with the hrStorageAllocationUnits object, which can handle units up to 2Gb. So the hrStorageTable can actually support filesystems up to 4 Exabytes in size (i.e. 2^62 bytes = 4,000,000 TB), albeit with some loss in granularity. That should comfortably support most filesystems for the foreseeable future. > is there any ongoing work on HOST-RESOURCE-MIB to > make net-snmp monitor terabyte filesystems ? . Not actively. I've slowly been working on improving the Host Resources implementation, merging this with the UCD-specific MIB table code, under a new "Hardware Application Layer". Disk storage is the next area that I intend to cover as part of this. But the moment, we're about to start a new release cycle, so I'm concentrating on getting this under way. You've got the source - have a look at tweaking the hrStorage code to work in units of 1Mb, instead of 1Kb. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users