ORDER of varbind IN SNMP response PDU
Hi ALL, I have doubt related to SNMPGET .while responding to SNMPGET query is it expected that SNMP agent during forming response PDU will follow the same order for varbind in which it received the varvind ? For example .if agent has received the Varbind in the following order 1)Atr1 2)atr2 3)atr3 Is it mandatory to respond in the following order? 1)response for Atr1 2)response for atr2 3)response for atr3 Regards, Somanath - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ 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: ORDER of varbind IN SNMP response PDU
On 30/07/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: is it expected that SNMP agent during forming response PDU will follow the same order for varbind in which it received the varvind ? Yes For example .if agent has received the Varbind in the following order 1)Atr1 2)atr2 3)atr3 Is it mandatory to respond in the following order? 1)response for Atr1 2)response for atr2 3)response for atr3 Yes Dave - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ 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: ORDER of varbind IN SNMP response PDU
Hi Dev, Thanks for your response. But I want to have little more clear understanding. Suppose all the three varbinds are part of same request PDU then is it also expected that response PDU will have the same order? Regards, Somanath -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dave Shield Sent: Monday, July 30, 2007 1:33 PM To: Somenath Pal (WT01 - TES-Access Networks) Cc: net-snmp-users@lists.sourceforge.net Subject: Re: ORDER of varbind IN SNMP response PDU On 30/07/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: is it expected that SNMP agent during forming response PDU will follow the same order for varbind in which it received the varvind ? Yes For example .if agent has received the Varbind in the following order 1)Atr1 2)atr2 3)atr3 Is it mandatory to respond in the following order? 1)response for Atr1 2)response for atr2 3)response for atr3 Yes Dave - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ 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: ORDER of varbind IN SNMP response PDU
On 30/07/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Suppose all the three varbinds are part of same request PDU then is it also expected that response PDU will have the same order? Yes This is required. The varbinds in the response PDU *must* match the order from the original request. (For both GET and GETNEXT requests). Dave - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ 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: ORDER of varbind IN SNMP response PDU
Hi Dave, Could you please tell me which RFC describe this? Regards, Somanath -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dave Shield Sent: Monday, July 30, 2007 2:14 PM To: Somenath Pal (WT01 - TES-Access Networks) Cc: net-snmp-users@lists.sourceforge.net Subject: Re: ORDER of varbind IN SNMP response PDU On 30/07/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Suppose all the three varbinds are part of same request PDU then is it also expected that response PDU will have the same order? Yes This is required. The varbinds in the response PDU *must* match the order from the original request. (For both GET and GETNEXT requests). Dave - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ 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
AW: ORDER of varbind IN SNMP response PDU
Hi @all How can we force to use PDU 1 or 2 ? The Subagent sends no Data to the Agent (SNMPD), while the Agent (SNMPD) not initalisation the subagent :-( Log Entrys: snmpd: send_trap: Cannot send V1 PDU on V2 session snmpd: send_trap: Cannot send V1 PDU on V2 session snmpd: send_trap: Cannot send V1 PDU on V2 session snmpd: send_trap: Cannot send V1 PDU on V2 session snmpd: send_trap: Cannot send V1 PDU on V2 session snmpd: send_trap: Cannot send V1 PDU on V2 session snmpd: send_trap: Cannot send V1 PDU on V2 session NET-SNMP version 5.4 agentx/master: unexpected callback op 4 agentx/master: handle pdu (req=0x55a0e861,trans=0x0,sess=0x0) agentx/master: open 0x81922c0 agentx/master: opened 0x8192a90 = 17 with flags = a0 agentx/master: send response, stat 0 (req=0x55a0e861,trans=0x0,sess=0x0) agentx_build: packet built okay Stefan -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Auftrag von Dave Shield Gesendet: Montag, 30. Juli 2007 10:44 An: [EMAIL PROTECTED] Cc: net-snmp-users@lists.sourceforge.net Betreff: Re: ORDER of varbind IN SNMP response PDU On 30/07/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Suppose all the three varbinds are part of same request PDU then is it also expected that response PDU will have the same order? Yes This is required. The varbinds in the response PDU *must* match the order from the original request. (For both GET and GETNEXT requests). Dave - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ 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: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ 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
Traps and polling
Hello, I would like to know how to mix traps reception and polling requests in a monitoring program. I think I need to check some timestamps in both messages to know which one was sent last, otherwise my program may flicker. José - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ 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 with snmptrap
On 30/07/07, Mateus Interciso [EMAIL PROTECTED] wrote: But I also want it to execute the command /bin/sh /tmp/trapTst.sh On the host that is running the trap receiver. OK - what is the trap PDU that should trigger this command? Dave - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ 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
Customize output sprint_realloc_variable
Hi, I'm using net snmp api to exec some request on localhost and to give the response to another piece of software. My problem is that i use snmp_synch_response to send my request and i catch it in a response pdu, after i read the variables list to comput the result. But i find no way to take that i want in this structure. It's like type was not set, so I try to use sprint_realloc_variable but i cant custom the result. In fact sprint realloc varaible will print in a char TEXTUAL_OID = TYPE: VALUE idealy i wish have NUMERICAL_OID;TYPE;VALUE. Is There is a way to do that with sprint_realloc_variable or an other simple function ? And if it's impossible does anybody know why i success to comput value and oid in the response-variable structure but no way to have a reliable type (so impossible to know how to read value, is it a string or a integer or a timetrick ?!). Thanks for your work, and soon for your help ;) Nico - Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/___ 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: SNMP times out if running as a service
On 30/07/07, Javier Santiago [EMAIL PROTECTED] wrote: When snmpwalk is executed for localhost, proper response is received. But, if executed for a host's public IP, Times out always. That sounds like either access control, or firewall settings. What is in your snmpd.conf file? What is in the /etc/sysconfig/iptables file? Dave - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ 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 with SNMP_PARSE_OID
Hi all! I've used SNMP_PARSE_OID in order to get OID from object name. I report what i've done: ** DECLARATIONS OF USED VARIABLES ** oid name [MAX_OID_LEN]; u_int name_length = OID_LENGTH(name); char *names; ** ** IN MAIN PROGRAM ** if (snmp_parse_oid(names, name, name_length) == NULL) snmp_perror (names); Now, i've implemented my application both in windows and linux; in windows snmp_parse_oid api gives me in name the corresponding OID of names; in linux it gives me an error. Why? - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ 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: SNMP times out if running as a service
On 30/07/07, Javier Santiago de la Peña [EMAIL PROTECTED] wrote: Tested. Did not work, also. I can't query using IP, just localhost or 127.0.0.1. If you've removed the entry com2sec local 127.0.0.1/32public and the agent still responds to localhost requests, then I'd suspect that the agent isn't actually reading the snmpd.conf file that you expect. Dave - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ 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: SNMP times out if running as a service
Hi Dave, Sorry, maybe I did not explain it properly.. I removed the 127.0.0.1 entry and yes, it did not provide any response...but public IP also timed out. So I have activated the 127.0.0.1 entry again (of course, I restarted snmp every time I made a modification). Regards, -- *Javier Santiago* *mobile:*+0034 630186151 *work:*+0034 916573128 // ext 410 [image: My status] skype:zas-zas?call On 7/30/07, Dave Shield [EMAIL PROTECTED] wrote: On 30/07/07, Javier Santiago de la Peña [EMAIL PROTECTED] wrote: Tested. Did not work, also. I can't query using IP, just localhost or 127.0.0.1. If you've removed the entry com2sec local 127.0.0.1/32public and the agent still responds to localhost requests, then I'd suspect that the agent isn't actually reading the snmpd.conf file that you expect. Dave - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/___ 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
It's just a test..
So if I write here, I'll see it in the Email Archive? 2800 állásból Te is találsz megfelelőt! Mérnöki, értékesítői, asszisztensi, pénzügyi és IT állások a Jobline.hu-n! www.jobline.hu http://ad.adverticum.net/b/cl,1,6022,186603,243027/click.prm - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/___ 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: SNMP times out if running as a service
On 30/07/07, Javier Santiago de la Peña [EMAIL PROTECTED] wrote: How do I know which file is snmpd reading to apply configuration?. Run snmpd -Dread_config That will display the file(s) that are being loaded, and the directives as they are read in. Dave - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ 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: SNMP times out if running as a service
Hi Dave, Hum... I have looked for another snmpd.conf file and the only one is at /var/lib/snmpd.conf, and is a persistent file. How do I know which file is snmpd reading to apply configuration?. regards, Javier Santiago de la Pea // Zasylogic.com mobile:+0034 630186151 work:+0034 916573128 // ext 410 Dave Shield wrote: On 30/07/07, Javier Santiago de la Pea [EMAIL PROTECTED] wrote: Tested. Did not work, also. I can't query using IP, just "localhost" or "127.0.0.1". If you've removed the entry com2sec local 127.0.0.1/32public and the agent still responds to localhost requests, then I'd suspect that the agent isn't actually reading the snmpd.conf file that you expect. Dave - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/___ 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.4 and Multiple CPU's
Hello: Could someone please help me with this problem: I am a newly hired SA. In order to monitor CPU usage with Solaris systems my predecessor loaded Net-SNMPD 5.4 on systems here with multiple CPU's and then moved on. The Networking group is using a Product called SolarWinds to monitor the systems via snmp. Today they showed me a graph of cpu utilization on a system that is running the SNMPD 5.4 software and has two cpu's and all they and I can see is one graph without any breakdown by CPU O or 1. Is there some command I can use to validate that the Net-SNMPD 5.4 software is functioning properly? Is there some way I can manually generate a graph myself that will show both cpu's? Is there any special compile options for multi cpu reporting that my predecessor may have forgotten to use? Please help! - Mark K. --- This e-mail is intended for the addressee shown. It contains information that is confidential and protected from disclosure. Any review, dissemination or use of this transmission or its contents by persons or unauthorized employees of the intended organizations is strictly prohibited. The contents of this email do not necessarily represent the views or policies of PSCU Financial Services. - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ 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: Can not set a mib variable to a value in the range.
Hi All, I have a mib variable which has range (0..130). I can set the variable to anything from 1 to 130 (including 1 and 130). But when I was trying to set the variable to 0, I got an error like: Error in packet. Reason: wrongValue (The set value is illegal or unsupported in some way) Could anybody tell me why this happens? Another question related to this is: When an SNMP SET request is received by snmpd, which agent is checking the range of the value to be set? is it master agent (snmpd)? or subagent? Thanks a lot, George - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/___ 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: Can not set a mib variable to a value in the range.
On 30/07/07, George Li [EMAIL PROTECTED] wrote: I have a mib variable which has range (0..130). I can set the variable to anything from 1 to 130 (including 1 and 130). But when I was trying to set the variable to 0, I got an error like: Error in packet. Reason: wrongValue (The set value is illegal or unsupported in some way) Could anybody tell me why this happens? You'd need to look at the code that implements this object. When an SNMP SET request is received by snmpd, which agent is checking the range of the value to be set? is it master agent (snmpd)? or subagent? If the object is implemented by a subagent, then it would be the subagent that checks whether the new value is valid. The master agent wouldn't know anything about it (other than which subagent to pass the request on to). Dave - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ 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
IF-MIB Solaris 9/SPARC
I've seen one other post on here regarding this. I have compiled and installed version 5.4 of the net-snmp package on a Solaris 9/SPARC system. Here are the options used to when running the configure script: --with-perl-modules=no \ --disable-embedded-perl \ --disable-shared \ --enable-mfd-rewrites \ --with-default-snmp-version=2 \ --with-sys-contact=Unknown \ --with-sys-location=Undefined \ --with-logfile=/var/snmp/log/snmpd.log \ --with-persistent-directory=/var/snmp/private \ --with-mib-modules=if-mib agentx ucd_snmp mibII --with-ldflags=-Bstatic What I have been bumping my head against for too long now is that an snmpwalk of the interfaces oid only returns information about the loopback interface. I have boxes with three types of interfaces: bge, eri, and dmfe None of these are reporting under net-snmp. Does anyone know what I am doing incorrectly? I would really like net-snmp to be able to discover the interfaces like it has in the past. Having to hand configure the interface name type speed etc. on literally hundreds of boxes is not my idea of a good time. Thanks in advance, Joe Ready for the edge of your seat? Check out tonight's top picks on Yahoo! TV. http://tv.yahoo.com/- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/___ 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: Can not set a mib variable to a value in the range.
Thanks Dave! -George On 7/30/07, Dave Shield [EMAIL PROTECTED] wrote: On 30/07/07, George Li [EMAIL PROTECTED] wrote: I have a mib variable which has range (0..130). I can set the variable to anything from 1 to 130 (including 1 and 130). But when I was trying to set the variable to 0, I got an error like: Error in packet. Reason: wrongValue (The set value is illegal or unsupported in some way) Could anybody tell me why this happens? You'd need to look at the code that implements this object. When an SNMP SET request is received by snmpd, which agent is checking the range of the value to be set? is it master agent (snmpd)? or subagent? If the object is implemented by a subagent, then it would be the subagent that checks whether the new value is valid. The master agent wouldn't know anything about it (other than which subagent to pass the request on to). Dave - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/___ 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