Re: Problem with snmptrap
First al all thanks for your help. But the problem is yet unresolved. I know that my problem is ACCESS CONTROL. I read this section, but I dont understand very well. I found out that snmptrap loads the mibs from /usr/local/share/snmp/mibs not /usr/share/snmp/mibs/ where I thought. When I changed my mib I obtained the line "No access configuration - dropping trap": condor:~ # snmptrapd -m all -Lo -f Warning: no access control information configured. This receiver will *NOT* accept any incoming notifications. NET-SNMP version 5.4 No access configuration - dropping trap. But the problem of ACCESS CONTROL is yet unresolved. Whit the option -d I obtain: condor:/etc/snmp # snmptrapd -m all -Le -f -d Warning: no access control information configured. This receiver will *NOT* accept any incoming notifications. NET-SNMP version 5.4 Received 52 bytes from UDP: [192.168.1.168]:1096 : 30 32 02 01 00 04 0D 7A 77 65 69 63 6F 6D 5F 6E02.zweicom_n 0016: 6F 74 61 76 A4 1E 06 0A 2B 06 01 04 01 81 97 50otav+..P 0032: 02 01 40 04 7F 00 00 01 02 01 06 02 02 01 2F 43[EMAIL PROTECTED]/C 0048: 01 00 30 00 ..0. No access configuration - dropping trap. I tried to configure ACCESS CONTROL with the follow lines in the snmpd.conf file: # sec.name source community com2sec local localhost zweicom_notav com2sec mynetwork 192.168.1.0/24 zweicom_notav # Second, map the security names into group names: # sec.model sec.name group MyRWGroup v1 local group MyRWGroup v2clocal group MyRWGroup usmlocal group MyROGroup v1 mynetwork group MyROGroup v2cmynetwork group MyROGroup usmmynetwork # Third, create a view for us to let the groups have rights to: # incl/excl subtree mask view allincluded .1 80 # Finally, grant the 2 groups access to the 1 view with different # write permissions: #context sec.model sec.level match read write notif #access MyROGroup "" any noauthexact allnone none #access MyRWGroup "" any noauthexact allallnone access MyROGroup "" any authexact allallall access MyRWGroup "" any authexact allallall But Its doesnt work. Thanks a lot. On 16/07/07, Thomas Anders <[EMAIL PROTECTED]> wrote: > Eduardo Saavedra Cea wrote: > > I want to receive traps with snmptrapd, but It doesn't work. > > This demon dont print anything to standar out neither to syslog when I > > send the trap whit sendtrap: > > snmptrap -v 1 -c zweicom_notav 192.168.1.168:162 > > .1.3.6.1.4.1.19408.2.1 localhost 6 303 .1.3.6.1.4.1.19408.1.1.2.0 > > > > I start with: > > condor:~ # snmptrapd -m all -f -Lo -C -c /etc/snmp/snmpd.conf > > NET-SNMP version 5.4 > > > > I know the traps arrive because I try strace: > > condor:~ # strace snmptrapd -m all -f -Lo -C -c /etc/snmp/snmpd.conf > > . > > What's the content of /etc/snmp/snmpd.conf (a somewhat strange config > file name for snmptrapd, btw) and /etc/hosts.{allow,deny}? If you add > "-d" to the snmptrapd invocation, does it log the incoming packet? Have > you read the "ACCESS CONTROL" section in the snmptrapd manual page? > > > +Thomas > > -- > Thomas Anders (thomas.anders at blue-cable.de) > - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ 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
read-create ACCESS for MIB Objects
Hi, * What is the speciality of MIB Objects with read-create ACCESS. Is these objects are writable. begin:vcard fn:Ansa Ahammed n:Ahammed;Ansa org:PROCSYS adr;dom:;;;Bangalore email;internet:[EMAIL PROTECTED] title:Design Engineer tel;cell:9901089085 version:2.1 end:vcard - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ 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
RMON-MIB
Hi, * I am using net-snmp version 5.4. It has implementation code for Rmon-mib. I have added Rmon mib module to agent/mibgroup/default_modules.h -- config_require(Rmon) But when i tried snmpgetnext command for Objects from RMON-MIB , i was not getting any output. Moreover when i tried snmpset command it was giving segmentation Fault.I want to know whether the Rmon mib module included in this net-snmp-5.4 version is already tested and anyone please help me in this regard. begin:vcard fn:Ansa Ahammed n:Ahammed;Ansa org:PROCSYS adr;dom:;;;Bangalore email;internet:[EMAIL PROTECTED] title:Design Engineer tel;cell:9901089085 version:2.1 end:vcard - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ 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: read-create ACCESS for MIB Objects
On 18/07/07, Ansa Ahammed <[EMAIL PROTECTED]> wrote: > * What is the speciality of MIB Objects with read-create ACCESS. >Is these objects are writable. Such objects are always elements of a table. The significant factor here is that you can (at least potentially) create a new row in the table, and specify values for these particular objects. It may or may not be possible to change these values once the row has been created - the DESCRIPTION should specify if subsequent writes are prohibited. By contrast, a instance of a "read-write" object can (potentially) be written to once it exists, but you can't provide a value as part of creating a new row. Dave - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ 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: RMON-MIB
On 18/07/07, Ansa Ahammed <[EMAIL PROTECTED]> wrote: > I want to know whether the Rmon mib module included in this net-snmp-5.4 > version is already tested and anyone please help me in this regard. Please see the FAQ entry Does the agent support the RMON-MIB? http://www.net-snmp.org/wiki/index.php/FAQ:Agent_37 Dave - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ 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
snmptrapd doesn't log SNMP trap messages
Hello, I want to use the snmptrapd Daemon on a Linux Client to receive and log SNMP trap messages, which are send from an IBM TS3500 Tape Library. I can see the traps on the Linux client with tcpdump, but the snmptrapd-Daemon doesn't log it. I have tried to send Trap Version V1 and V2c, Community=public. If I send test traps from other AIX or LINUX Clients, everything works right. When I look into the message with tcpdump or Ethereal, I can see that the message has no checksum in User Datagram Protocol. Could this cause a problem? I have started the snmptrapd in the following way: /usr/sbin/snmptrapd -M +/usr/share/snmp/mibs.local -m ALL -f -Lo I use NET-SNMP Version 5.1.2 . The MIBs should also be present: itcsec02:/usr/share/snmp/mibs.local# ls 3584v1.mib BRCD_v5_0.mib.txt FA_v3_0.mib.txt ibm2100.mib SML-MIB_112.mib SW_v5_0.mib.txt 3584v2c.mib Brocade-TC-MIB.txt FE_RFC2837.mib.txt ibm2100.mib.alt SNIA-SML-rev1-21.mib tcpdump shows the following messages: itcsec02:~# tcpdump -ni eth1 -v -s0 port 162 tcpdump: listening on eth1, link-type EN10MB (Ethernet), capture size 65535 bytes 12:22:51.527190 IP (tos 0x0, ttl 59, id 19222, offset 0, flags [none], length: 264) 10.10.60.73.18435 > 10.30.0.126.162: [no cksum] { SNMPv1 { Trap(219) .1.3.6.1.4.1.4484.1 10.10.60.73 enterpriseSpecific s=408 174930620 .1.3.6.1.4.1.2.6.182.1.2.11.1="3584 L23 78A1266" .1.3.6.1.4.1.2.6.182.1.2.111.1=" 0" .1.3.6.1.4.1.2.6.182.1.2.101.1="" .1.3.6.1.4.1.2.6.182.1.2.41.1="08" .1.3.6.1.4.1.2.6.182.1.2.71.1="This is a test SNMP trap." .1.3.6.1.4.1.2.6.182.1.2.151.1=1 .1.3.6.1.4.1.2.6.182.1.2.161.1="0" } } 12:23:04.768598 IP (tos 0x0, ttl 59, id 19437, offset 0, flags [none], length: 292) 10.10.60.73.18435 > 10.30.0.126.162: [no cksum] { SNMPv2c { V2Trap(246) R=4 .1.3.6.1.2.1.1.3.0=174931845 .1.3.6.1.6.3.1.1.4.1.0=.1.3.6.1.4.1.2.6.182.1.0.408 .1.3.6.1.4.1.2.6.182.1.2.11.1="3584 L23 78A1266" .1.3.6.1.4.1.2.6.182.1.2.111.1=" 0" .1.3.6.1.4.1.2.6.182.1.2.101.1="" .1.3.6.1.4.1.2.6.182.1.2.41.1="08" .1.3.6.1.4.1.2.6.182.1.2.71.1="This is a test SNMP trap." .1.3.6.1.4.1.2.6.182.1.2.151.1=1 .1.3.6.1.4.1.2.6.182.1.2.161.1="0" } } Can anybody help me to find out, why snmptrapd doesn't receive these messages, please? Thank you. Thomas Falkenberg - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ 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: snmptrapd doesn't log SNMP trap messages
On 18/07/07, Thomas Falkenberg <[EMAIL PROTECTED]> wrote: > I can see the traps on the Linux client with tcpdump, but the > snmptrapd-Daemon doesn't log it. Is the 'snmptrapd' daemon receiving the notifications? Try running it using the flag '-d', and see whether it displays a raw packet dump of the incoming requests. > I use NET-SNMP Version 5.1.2 . Then you shouldn't have a problem with access control. (More recent versions of the trapd require explicit authorisation of acceptable community strings before displaying traps. But this ancient version does not). I'd be suspicious about firewall filtering (e.g. iptables) on the receiving system - particularly if "snmptrapd -d ..." doesn't show any incoming packets. Dave - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ 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
how to make agent able to send traps?
HI all, Thanks to all your suggestion, I've completed the extension of net-snmp agent. Now I want to render it able to send traps. For example, I want that it send me a trap about an integer Managed Object everytime it becomes odd or even. How can i do it? I'have to modify my . c files generated by mib2c (with mib2c.scalar.conf), or I have to create other source files and header using mib2c.notify.conf? And in the last case, can u suggest me a link or a guide that helps me in doing it? Thanks to all will answer me! Bye! - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ 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: snmptrapd doesn't log SNMP trap messages
also with option "snmptrapd -d", I can't see anything. But I can receive the messages with tcpdump. Can it be a firewall problem? Thomas Falkenberg "Dave Shield" <[EMAIL PROTECTED]> Sent by: [EMAIL PROTECTED] 18.07.07 14:54 To Thomas Falkenberg/Germany/[EMAIL PROTECTED] cc net-snmp-users@lists.sourceforge.net Subject Re: snmptrapd doesn't log SNMP trap messages On 18/07/07, Thomas Falkenberg <[EMAIL PROTECTED]> wrote: > I can see the traps on the Linux client with tcpdump, but the > snmptrapd-Daemon doesn't log it. Is the 'snmptrapd' daemon receiving the notifications? Try running it using the flag '-d', and see whether it displays a raw packet dump of the incoming requests. > I use NET-SNMP Version 5.1.2 . Then you shouldn't have a problem with access control. (More recent versions of the trapd require explicit authorisation of acceptable community strings before displaying traps. But this ancient version does not). I'd be suspicious about firewall filtering (e.g. iptables) on the receiving system - particularly if "snmptrapd -d ..." doesn't show any incoming packets. Dave - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ 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 - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ 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: how to make agent able to send traps?
On 18/07/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > For example, I want that it send me a trap about an integer Managed Object > everytime it becomes odd or even. > How can i do it? Have a look at the snmpd.conf(5) man page, and in particular, the section entitled ACTIVE MONITORING I'm not sure how easy it would be to support an odd/even notification. That would rely on the DisMan Expression MIB, which is incomplete (and most untested). But you should certainly be able to monitor simple boolean comparisons using the Event MIB. But see that section of the snmpd.conf(5) man page for details. Dave - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ 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: snmptrapd doesn't log SNMP trap messages
On 18/07/07, Thomas Falkenberg <[EMAIL PROTECTED]> wrote: > > also with option "snmptrapd -d", I can't see anything. > But I can receive the messages with tcpdump. Can it be a firewall problem? That sounds like a firewall problem, yes. Dave - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ 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
R: Re: how to make agent able to send traps?
Thank you for answer. I've read snmpd.conf(5), but it doesn't fit well to my case. I can explain you what i've done in few lines. I've created 1 source and 1 header file from mib2c.notify.conf. I have to modify it. OK, that's done! But I want to know what I have to do with these files. I have to create a library (shared-object) and extend my snmpd agent? Messaggio originale Da: [EMAIL PROTECTED] Data: 18-lug- 2007 3.59 PM A: "[EMAIL PROTECTED]"<[EMAIL PROTECTED]> Cc: Ogg: Re: how to make agent able to send traps? On 18/07/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > For example, I want that it send me a trap about an integer Managed Object > everytime it becomes odd or even. > How can i do it? Have a look at the snmpd.conf(5) man page, and in particular, the section entitled ACTIVE MONITORING I'm not sure how easy it would be to support an odd/even notification. That would rely on the DisMan Expression MIB, which is incomplete (and most untested). But you should certainly be able to monitor simple boolean comparisons using the Event MIB. But see that section of the snmpd.conf (5) man page for details. Dave - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ 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: snmptrapd doesn't log SNMP trap messages
We don't change any packages on the firewall with iptables. And the SNMP traps reach the destination host, because I see them with tcpdump. It this not an indication, that the firewall let pass the packets? "Dave Shield" <[EMAIL PROTECTED]> Sent by: [EMAIL PROTECTED] 18.07.07 15:59 To Thomas Falkenberg/Germany/[EMAIL PROTECTED] cc net-snmp-users@lists.sourceforge.net Subject Re: snmptrapd doesn't log SNMP trap messages On 18/07/07, Thomas Falkenberg <[EMAIL PROTECTED]> wrote: > > also with option "snmptrapd -d", I can't see anything. > But I can receive the messages with tcpdump. Can it be a firewall problem? That sounds like a firewall problem, yes. Dave - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ 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
SNMPTRAP Problems
Hi everyone, I'm having a little problem with SNMPTRAPD.CONF: Everytime I receive a trap the "traphandle" command executes two times. The log is written only one time. Has anyone else see this happend? snmptrapd.conf: -- traphandle IF-MIB::linkDown /usr/local/bin/link_down_up_trap.sh down traphandle IF-MIB::linkUp /usr/local/bin/link_down_up_trap.sh up -- snmptrapd start command: -- snmptrapd -c /etc/snmp/snmptrapd.conf -Lf /var/log/trap.log -- Thank you, LĂvio Zanol Puppim - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ 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: Ping detects LAN failure but snmpget Doesn't detect LAN failure
Thanks for the information. I now poll ifOperStatus and that does detect a LAN interface change from Up to Down when a LAN cable is removed. Mark Mike Ayers wrote: >> From: [EMAIL PROTECTED] >> [mailto:[EMAIL PROTECTED] On >> Behalf Of Mark Harper >> Sent: Tuesday, July 17, 2007 5:51 AM >> > > >> We have a problem where we have a machine on 2 LANS and want >> to monitor >> when a LAN goes down via SNMP Get polling. >> > > Monitor ifOperStatus for the interfaces. You can read alternately from > both interfaces. If everything times out, you know both interfaces are down. > > >> The machine has two LAN connections and two IP addresses, >> >> 10.49.254.1 >> 10.49.255.1 >> >> When one of the LAN connections (10.49.254.1) is broken by >> removing the >> LAN cable from the machine, >> >> ping 10.49.254.1 >> >> times out and fails thus detecting the LAN failure. >> >> However, >> >> snmpget -v2c -c cctv 10.49.254.1 1.3.6.1.2.1.1.6.0 >> >> succeeds thus giving no indication of the fault we were >> trying to detect. >> >> Why does this occur and is there a solution to make snmpget >> detect the >> failure successfully? >> > > I would not expect this to work as you intend. The reason is left as > an exercise for the student. Hint: only ping should be used for pinging. > > > HTH, > > Mike > - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ 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: Problem with snmptrap
> From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Eduardo Saavedra Cea > I tried to configure ACCESS CONTROL with the follow lines in the > snmpd.conf file: The snmptrapd is configured in the snmptrapd.conf file, not snmpd.conf. You can test this: condor:/etc/snmp # snmptrapd -m all -Le -f -d -C -c snmpd.conf HTH, Mike - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ 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
How to implement traps?
HI all, i want to imlpement traps on my agent. I've read that one methode is to insert in snmpd.conf an instruction like this :"monitor [options] NAME expression". for example: if i want that my snmp agent alerts me when an Object (OID2) passes beyond a threshold(30), i can write: monitor -r 30 -u me -o "alert" OID2> 30. But what can i do if I want that agent alerts me if the value of an Object (OID2) specified in a MIB node goes beyond the value of another object(OID1) defined in the same MIB node? Thanks to all will answer me Bye - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ 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
snmptable error when used with LSR MIB
Hello, I am trying to read a table (Experimental LSR MIB The OID"1.3.6.1.3.96.1.9" http://www.oidview.com/mibs/0/MPLS-LSR-MIB.html ) using the snmptable command. It errors out with "Was that a table" error. I have confirmed the OID number (belongs to a valid table) Also curously,the SNMP walk (snmpwalk command ) succeeds .What could be the error ? Thanks, Dakshina - Got a little couch potato? Check out fun summer activities for kids.- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ 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
snmptable error when used with LSR MIB
Hello, I am trying to read a table (Experimental LSR MIB The OID"1.3.6.1.3.96.1.9" http://www.oidview.com/mibs/0/MPLS-LSR-MIB.html ) using the snmptable command. It errors out with "Was that a table" error. I have confirmed the OID number (belongs to a valid table) Also curously,the SNMP walk (snmpwalk command ) succeeds .What could be the error ? I am using these rpms in fedora core5 net-snmp-libs-5.3-4.2 net-snmp-5.3.1-1 And # snmptable -V NET-SNMP version: 5.4 Thanks, Dakshina - Ready for the edge of your seat? Check out tonight's top picks on Yahoo! TV. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ 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: [Fwd: What SNMP data type can i use to represent a floating pointnumber?]
Mushtaq wrote: Thanks for giving the suggestion, In fact i have suggest to ways of implemeneting float to my client, 1.Choose a unit such that float can be represented as integer. 2.Use string to represent floating point numbers and do the conversion on Agent, while applying the values to the system. Thanks, -Mushtaq Mike Ayers wrote: >>From: [EMAIL PROTECTED] >>[mailto:[EMAIL PROTECTED] On >>Behalf Of mushtaq khan >>Sent: Monday, July 16, 2007 1:40 AM >>To: net-user >>Subject: [Fwd: What SNMP data type can i use to represent a >>floating pointnumber?] >> >> > > > >>I am using net-snmp version 5.4. I have some variables of >>floating point data type, and i don't know what SNMP data >>type i used use for it. Please help me in this regard. >> >> > > There is no standard way to move floating point data via SNMP. I have > never seen a use case that merited it. You may want to reexamine what you > are trying to do and make sure that you do in fact need to send floatting > point data ovber the network. > > Of course, you may have a good *reason* to send floating point data > across the network, and I have seen many of those, the most common of which > is "my boss told me to get this floating point data across the network and > I'm addicted to food and shelter." Therefore, I offer two suggestions, both > of which involve sending octet strings: > > 1) The robust way is to use printf and scanf (yes, scanf!) to > stringify the value. There will probably be some loss of precision, but > floats are inherently imprecise. > > 2) The precise way is to use a serialization library such as OSSP xdr > to losslessly convert the data into binary form. This can only be used in > environments that support XDR. > > > Good luck, > >Mike > >- >This SF.net email is sponsored by DB2 Express >Download DB2 Express C - the FREE version of DB2 express and take >control of your XML. No limits. Just data. Click to get it now. >http://sourceforge.net/powerbar/db2/ >___ >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 > > > - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ 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