Verification of VACM parameter in case of SNMPv2 request
Hi All , I have one question regarding the checking of SNMPV3 related parameters. Is it not mandatory that only in case of SNMPv3 request the VACM related parameters will be verified . For example in case of getbulk (SNMPv3) request agent has to verify if the next OID is in the correct view. But my question is in case of SNMPv2 getbulk request do agent may verify if the next OID is in correct view ? Assuming there are some default view available with agent . Regards, Somenath - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace___ 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: Question regarding SNMP GET response PDU
Hi Dave, Many thanks for your response and suggestion. I would like to inform that I am trying to learn SNMP form William Stallings SNMP,SNMPV2,Snmpv3,and RMON 1 and 2. In this book it is mentioned that noSuchInstance will be put in the value field .But it was not clear for me that it is a different type it self. I would earnestly request you to suggest how SNMP can be learned in better manner. Regards, Somenath >> I would like to verify my understanding. >> So "noSuchInstance" is a ASN1 type. > >Sort of. >See RFC 1905, section 3 for the definition of the VarBind structure. > > > >> I would like to know more about how the coding is being done. Could you >> please suggest me which RFC I can follow? > >RFC 1905 is the document that describes SNMPv2 >(though the lowest level of encoding a request into the >packet that's actually sent over the network follows the >Basic Encoding Rules, which is an ISO standard). > >>Or how it is done in NetSnmp . > >See snmplib - especially snmp_api.c and asn1.c > >But I would suggest that this probably isn't the best way >to learn about SNMP. You would be much better off buying >a good book and studying that. > >Dave - SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 ___ 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: Question regarding SNMP GET response PDU
Hi Dave, Many thanks for the response. I would like to verify my understanding. So "noSuchInstance" is a ASN1 type .So while encoding the PDU it will be different than other type such as INTEGER, GAUGE32 etc. So manger while decoding will come to knows that it is ""noSuchInstance". Please let me know if my understanding is correct? I would like to know more about how the coding is being done. Could you please suggest me which RFC I can follow? Or how it is done in NetSnmp . Regards, Somenath >> suppose noSuchInstance pseudo-values is 10 > >No. It doesn't work that way, >The exception pseudo-value *is* "noSuchInstance" >This is essentially a type in its own right - distinct from >integer, octet string, OID, etc > > >> Then how manager will differentiate whether it is exception or value ? > >The response varbind list will look something like: > >v1 = integer 17 >v2 = noSuchInstance >v3 = noSuchInstance >v4 = string "hello" > - SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 ___ 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: Question regarding SNMP GET response PDU
Hi Dave, Many thanks for your response. I have one doubt here . suppose noSuchInstance pseudo-values is 10 then it will be set as value for v2 and v3 . Then how manager will differentiate whether it is exception or value ? Regards, Somenath >-Original Message- >From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On >Behalf Of Dave Shield >Sent: Tuesday, December 04, 2007 2:22 PM >To: Somenath Pal (WT01 - TES-Access Networks) >Cc: net-snmp-users@lists.sourceforge.net >Subject: Re: Question regarding SNMP GET response PDU > >On 04/12/2007, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: >> I have one basic question regarding SNMPv2 GET response PDU. >> Suppose manager has queried for 3 attributes say v1, v2, v3, v4 >> >> Now suppose the response for the attributes are as follows. >> > >> V1success >> V2 error (No Such instance) >> V3 error (No such instance) >> V4 success > >Not quite. >The two 'noSuchInstance' cases are actually "exceptions" >rather than full errors. > > >> Now in response PDU error index will be set to 2. > >No. >With SNMPv2, the error index (and error status) will be set to 0. >The request has succeeded, and will report the two real values >together with the two noSuchInstance pseudo-values. > > >> So how manager will come >> to know that v2 and v3 has error in response? > >Because it's not an error - the agent returns values >(or exception values) for all four varbinds. > >This is one of the most significant improvements on SNMPv1, >which would have had to report a 'noSuchName' error for >the second variable. The manager would not know that there >was a problem with V3 as well, without trying another request >(V1, V3, V4). > >Dave - SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4___ 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
Question regarding SNMP GET response PDU
Hi All, I have one basic question regarding SNMPv2 GET response PDU. Suppose manager has queried for 3 attributes say v1, v2, v3, v4 Now suppose the response for the attributes are as follows. V1success V2 error (No Such instance) V3 error (No such instance) V4 success Now in response PDU error index will be set to 2. So how manager will come to know that v2 and v3 has error in response? For v2 the error index is set but how manger will come to know about v3 error? Please provide some inputs. Regards, Somenath - SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4___ 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
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
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: SNMP get querry for table with display string as index
Hi Suresh, SNMPGET is working with ASCII value. Many thanks for the information. Regards, Somenath -Original Message- From: Pamidipati Suresh-G20238 [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 25, 2007 6:09 PM To: Somenath Pal (WT01 - TES-Access Networks); net-snmp-users@lists.sourceforge.net Subject: RE: SNMP get querry for table with display string as index Hi Somanath, Did you try snmpget by specifying ascii values of each character in display string index..? If you do so, and if display string index object in your MIB is not fixed length octet string, then you need to specify length before specifying the ascii values in the OID. For eg, If the index of the table is variable length string and has the value "abcd" for a row, then OID in snmp request can be specified as objName.4.97.98.99.100 Regards, Suresh. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 25, 2007 5:06 PM To: Pamidipati Suresh-G20238; net-snmp-users@lists.sourceforge.net Subject: RE: SNMP get querry for table with display string as index Hi Suresh, I have tried snmpwalk it is fine. snmpwalk -r 0 -t 1000 -v2c -c AdminAdmin 192.168.221.176 maxAlarmDefReportMode MAX-ALARM-MIB::maxAlarmDefReportMode."LOSS OF SIGNAL".1.3.6.1.4.1.637.74.1.1.5.1 .1.1.4 = INTEGER: enabled(1). We don't require to sent length of OID because it is defined as IMPLIED in MIB. Regards, Somanath -Original Message- From: Pamidipati Suresh-G20238 [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 25, 2007 4:16 PM To: Somenath Pal (WT01 - TES-Access Networks); net-snmp-users@lists.sourceforge.net Subject: RE: SNMP get querry for table with display string as index Hi Somanath, Did you try snmpwalk command on maxAlarmDefReportMode..? Was it successful.? As one of the index is object identifier, try by specifying length of OID preceding the actual OID index. For the OID that you mentioned, length is 15, so specify that before the actual OID as below. snmpget -r 0 -t 1000 -v2c -c AdminAdmin 192.168.221.176 maxAlarmDefReportMode.\"LOSS OF SIGNAL\".15.1.3.6.1.4.1.637.74.1.1.5.1.1.1.4 For index of type display string, you can also give ascii values of each character of the index (display string) instead of the display string inside \" and \", while sending snmpget/set request. Regards, Suresh. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Wednesday, July 25, 2007 3:48 PM To: net-snmp-users@lists.sourceforge.net Subject: SNMP get querry for table with display string as index Hi ALL, I need to quarry a MIB table .In that table index is display string and OID. In the string space can be there. (For example LOSS OF SIGNAL) My doubt how can I query on that table. I tried the bellow request snmpget -r 0 -t 1000 -v2c -c AdminAdmin 192.168.221.176 maxAlarmDefReportMode.\"LOSS OF SIGNAL\".1.3.6.1.4.1.637.74.1.1.5.1.1.1.4 But it is failing. maxAlarmDefReportMode."LOSS: (Index out of range: "LOSS (maxAlarmDefAlarmText)) SIGNAL".1.3.6.1.4.1.637.74.1.1.5.1.1.1.4: (Sub-id not found: (top) -> SIGNAL") So could any body give me some information for queering such kind of table? 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 The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.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://li
RE: SNMP get querry for table with display string as index
Hi Suresh, I have not tried with ascii value yet. I will try and tell the result. Regards, Somenath -Original Message- From: Pamidipati Suresh-G20238 [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 25, 2007 6:09 PM To: Somenath Pal (WT01 - TES-Access Networks); net-snmp-users@lists.sourceforge.net Subject: RE: SNMP get querry for table with display string as index Hi Somanath, Did you try snmpget by specifying ascii values of each character in display string index..? If you do so, and if display string index object in your MIB is not fixed length octet string, then you need to specify length before specifying the ascii values in the OID. For eg, If the index of the table is variable length string and has the value "abcd" for a row, then OID in snmp request can be specified as objName.4.97.98.99.100 Regards, Suresh. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 25, 2007 5:06 PM To: Pamidipati Suresh-G20238; net-snmp-users@lists.sourceforge.net Subject: RE: SNMP get querry for table with display string as index Hi Suresh, I have tried snmpwalk it is fine. snmpwalk -r 0 -t 1000 -v2c -c AdminAdmin 192.168.221.176 maxAlarmDefReportMode MAX-ALARM-MIB::maxAlarmDefReportMode."LOSS OF SIGNAL".1.3.6.1.4.1.637.74.1.1.5.1 .1.1.4 = INTEGER: enabled(1). We don't require to sent length of OID because it is defined as IMPLIED in MIB. Regards, Somanath -Original Message- From: Pamidipati Suresh-G20238 [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 25, 2007 4:16 PM To: Somenath Pal (WT01 - TES-Access Networks); net-snmp-users@lists.sourceforge.net Subject: RE: SNMP get querry for table with display string as index Hi Somanath, Did you try snmpwalk command on maxAlarmDefReportMode..? Was it successful.? As one of the index is object identifier, try by specifying length of OID preceding the actual OID index. For the OID that you mentioned, length is 15, so specify that before the actual OID as below. snmpget -r 0 -t 1000 -v2c -c AdminAdmin 192.168.221.176 maxAlarmDefReportMode.\"LOSS OF SIGNAL\".15.1.3.6.1.4.1.637.74.1.1.5.1.1.1.4 For index of type display string, you can also give ascii values of each character of the index (display string) instead of the display string inside \" and \", while sending snmpget/set request. Regards, Suresh. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Wednesday, July 25, 2007 3:48 PM To: net-snmp-users@lists.sourceforge.net Subject: SNMP get querry for table with display string as index Hi ALL, I need to quarry a MIB table .In that table index is display string and OID. In the string space can be there. (For example LOSS OF SIGNAL) My doubt how can I query on that table. I tried the bellow request snmpget -r 0 -t 1000 -v2c -c AdminAdmin 192.168.221.176 maxAlarmDefReportMode.\"LOSS OF SIGNAL\".1.3.6.1.4.1.637.74.1.1.5.1.1.1.4 But it is failing. maxAlarmDefReportMode."LOSS: (Index out of range: "LOSS (maxAlarmDefAlarmText)) SIGNAL".1.3.6.1.4.1.637.74.1.1.5.1.1.1.4: (Sub-id not found: (top) -> SIGNAL") So could any body give me some information for queering such kind of table? 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 The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.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:/
RE: SNMP get querry for table with display string as index
Hi Suresh, I have tried snmpwalk it is fine. snmpwalk -r 0 -t 1000 -v2c -c AdminAdmin 192.168.221.176 maxAlarmDefReportMode MAX-ALARM-MIB::maxAlarmDefReportMode."LOSS OF SIGNAL".1.3.6.1.4.1.637.74.1.1.5.1 .1.1.4 = INTEGER: enabled(1). We don't require to sent length of OID because it is defined as IMPLIED in MIB. Regards, Somanath -Original Message- From: Pamidipati Suresh-G20238 [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 25, 2007 4:16 PM To: Somenath Pal (WT01 - TES-Access Networks); net-snmp-users@lists.sourceforge.net Subject: RE: SNMP get querry for table with display string as index Hi Somanath, Did you try snmpwalk command on maxAlarmDefReportMode..? Was it successful.? As one of the index is object identifier, try by specifying length of OID preceding the actual OID index. For the OID that you mentioned, length is 15, so specify that before the actual OID as below. snmpget -r 0 -t 1000 -v2c -c AdminAdmin 192.168.221.176 maxAlarmDefReportMode.\"LOSS OF SIGNAL\".15.1.3.6.1.4.1.637.74.1.1.5.1.1.1.4 For index of type display string, you can also give ascii values of each character of the index (display string) instead of the display string inside \" and \", while sending snmpget/set request. Regards, Suresh. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Wednesday, July 25, 2007 3:48 PM To: net-snmp-users@lists.sourceforge.net Subject: SNMP get querry for table with display string as index Hi ALL, I need to quarry a MIB table .In that table index is display string and OID. In the string space can be there. (For example LOSS OF SIGNAL) My doubt how can I query on that table. I tried the bellow request snmpget -r 0 -t 1000 -v2c -c AdminAdmin 192.168.221.176 maxAlarmDefReportMode.\"LOSS OF SIGNAL\".1.3.6.1.4.1.637.74.1.1.5.1.1.1.4 But it is failing. maxAlarmDefReportMode."LOSS: (Index out of range: "LOSS (maxAlarmDefAlarmText)) SIGNAL".1.3.6.1.4.1.637.74.1.1.5.1.1.1.4: (Sub-id not found: (top) -> SIGNAL") So could any body give me some information for queering such kind of table? 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 - 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
SNMP get querry for table with display string as index
Hi ALL, I need to quarry a MIB table .In that table index is display string and OID. In the string space can be there. (For example LOSS OF SIGNAL) My doubt how can I query on that table. I tried the bellow request snmpget -r 0 -t 1000 -v2c -c AdminAdmin 192.168.221.176 maxAlarmDefReportMode.\"LOSS OF SIGNAL\".1.3.6.1.4.1.637.74.1.1.5.1.1.1.4 But it is failing. maxAlarmDefReportMode."LOSS: (Index out of range: "LOSS (maxAlarmDefAlarmText)) SIGNAL".1.3.6.1.4.1.637.74.1.1.5.1.1.1.4: (Sub-id not found: (top) -> SIGNAL") So could any body give me some information for queering such kind of table? 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: Conversation of seconds to DateAndTime
Hi All, Thanks for your kind response. I would like to know if I there is any method which can convert DateAndTime to seconds . Regards, Somenath -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dave Shield Sent: Monday, June 25, 2007 2:10 PM To: Somenath Pal (WT01 - TES-Access Networks) Cc: net-snmp-users@lists.sourceforge.net Subject: Re: Conversation of seconds to DateAndTime On 25/06/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I need to converts seconds in to DateAndTime format. > Is there any function that can do this? See 'date_n_time()' in snmplib/snmp-tc.c 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
Conversation of seconds to DateAndTime
Hi All, As per our requirement I need to converts seconds in to DateAndTime format. Is there any function that can do this? Or I need to write the function to do this? Please provide your inputs. Regards, Somenth - 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: Doubt related to SNMPGET
I need to handle the following error scenarios 1) Database management system unable to create row in table 2) While creating a row in the table which already exist in Data base 3) Unknown error return by subsystem 4) File operation error 5) Inter process communication failed Regards, Somenath -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dave Shield Sent: Friday, March 16, 2007 3:24 PM To: Somenath Pal (WT01 - Broadband Networks) Cc: net-snmp-users@lists.sourceforge.net Subject: Re: Doubt related to SNMPGET On 16/03/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > 1) Is there any error condition such that SNMP agent will not send any > response PDU to manager? Yes. If you specify an unknown community (with SNMPv1 or SNMPv2c), then the agent simply drops the request altogether. It does not send back any form of error response. > In case of error condition which is not known to SNMP agent (which is > return by the subsystem responsible for implementing MIB attribute) > what SNMP agent should respond to manager? Can you be a bit more specific about exactly what situation you envisage? There is an error 'genError' which might be suitable, but we'd need to know a bit more detail. 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
Doubt related to SNMPGET
Hi all, I have the following doubt about SNMPGET. 1) Is there any error condition such that SNMP agent will not send any response PDU to manager? In case of error condition which is not known to SNMP agent (which is return by the subsystem responsible for implementing MIB attribute) what SNMP agent should respond to manager? Regards, Somenath - 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: Problem related to OID representation
Many thanks Dev, for your reply. Just to get the clear picture suppose the tables is having display string and integer as data type of the indices .Suppose for "1.2.3.4.5.6.1.1.2.abc.1" I should be sending "1.2.3.4.5.6.1.1.2.97.98.99.1" or "1.2.3.4.5.6.1.1.2.97.98.99.49" (49 is ASCII representation of 1) and what if other index is IP address .So for 1.2.3.4.5.6.1.1.2.abc.192.168.221.10 what will be OID representation. In case of index as mac address .How OID will be represented ? For example for 1.2.3.4.5.6.1.1.2.aa.bb.cc.dd.ee.ff what will be the OID ? In case of IP address index what will be the OID representation . If the index is not implied then for table which need two column as index what will be the OID representation. For example 1.2.3.4.5.6.1.1.2.abc.xyz Will it be 1.2.3.4.5.6.1.1.2.3.97.98.99.3.120.121.122 Or it will be 1.2.3.4.5.6.1.1.2.6.97.98.99.120.121.122 Regards, Somenath -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dave Shield Sent: Wednesday, February 14, 2007 5:34 PM To: Somenath Pal (WT01 - Broadband Networks) Cc: net-snmp-users@lists.sourceforge.net Subject: Re: Problem related to OID representation On 14/02/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > suppose I need to send 1.2.3.4.5.6.1.1.2.abc (represented as) OID in > the var bind of trap PDU . > So my question is > 1) Shall I need to send 1.2.3.4.5.6.1.1.2.97.98.99 ? You would either send 1.2.3.4.5.6.1.1.2.97.98.99 or 1.2.3.4.5.6.1.1.2.3.97.98.99 depending on how the table was defined in the MIB. (in particular, whether IMPLIED was specified in the INDEX clause) > If it is then how SNMP manager is going to understand that I have send > 1.2.3.4.5.6.1.1.2.abc The trap manager would need to have the relevant MIB loaded. This then tells it how to interpret the incoming OID. > 2) If the table need two column as index and data type of one column > different than other then how I need to send. You'd list each index value in turn. Please see section 7.7 of RFC 2578, which explains how to handle the index values of a table in some detail. 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
Problem related to OID representation
Hello All, I need some information related to OID representation >From SNMP agent I need to send one MIB attribute (which may be columnar) value as OID in trap PDU's varbind. For example 1.2.3.4.5.6 is MIB tables OID and index is display string So suppose I need to send 1.2.3.4.5.6.1.1.2.abc (represented as) OID in the var bind of trap PDU . So my question is 1) Shall I need to send 1.2.3.4.5.6.1.1.2.97.98.99 ? If it is then how SNMP manager is going to understand that I have send 1.2.3.4.5.6.1.1.2.abc 2) If the table need two column as index and data type of one column different than other then how I need to send. For example 1.2.3.4.5.6 is MIB tables OID and it needs two column to identify row uniquely .Data type of one column is display string another is integer .The how can I send 1.2.3.4.5.6.1.1.2.abc.12 as OID. Please help. Regards, Somenath - 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: MAX-ACCESS of table index
Hi Mahesh, Many thanks for your answer. But what if the table has one read-create or read-write columnar objects? For example in case of "ifTable" it has read-only and read-write columnar objects and theindex "ifIndex" is read only. What can be the logic behind this? Regards, Somenath -Original Message- From: Kurapati M-G19456 [mailto:[EMAIL PROTECTED] Sent: Thursday, December 14, 2006 11:06 AM To: Somenath Pal (WT01 - Broadband Networks); net-snmp-users@lists.sourceforge.net Subject: RE: MAX-ACCESS of table index As per SMI-v2 a MAX-ACCESS for index objects is Not-accessible: If there are other read-only columnar object in the table. Accessible-for-notify: If this index has to be part of the trap Read-only: There is only this column in the table. Hope I am clear. Regards Mahesh -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Thursday, December 14, 2006 11:01 AM To: net-snmp-users@lists.sourceforge.net Subject: MAX-ACCESS of table index Hi all, I need to write private MIBS. I have a doubt regarding table index. In MIB table sometimes the index is not-accessible and some time the index is read-only. My doubt is how to decide whether the table index will be read-only or not-accessible. Please help. Regards, Somenath - 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=DEVDE V ___ 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 - 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
MAX-ACCESS of table index
Hi all, I need to write private MIBS. I have a doubt regarding table index. In MIB table sometimes the index is not-accessible and some time the index is read-only. My doubt is how to decide whether the table index will be read-only or not-accessible. Please help. Regards, Somenath - 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 interface for configuring SNMP
Hi All, We need to develop an SNMP agent for which we need to provide SNMP interface for changing SNMP v2 (community string), SNMP v3 parameters (security name, authentication protocol, etc), creation of context etc and the configuration should be persistent across reboot of device. Does Net-SNMP provide help for this? Please help. Regards, Somenath - 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
compilation of net-snmp-5.3.1 using g++
Hi All, I am using net-snmp-5.3.1. I need to compile it using g++. Is it possible to compile net-snmp-5.3.1 using g++ ? Regards, Somenath - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ 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
lexicographic ordering
Hi All, I have one small doubt about lexicographic ordering. Suppose we have one table whose index is IPADDRESS? For example the table has following entries. a) 10.0.0.1 b) 10.0.0.2 c) 10.0.0.123 c)10.0.0.5 What will be the lexicographic ordering of these IPADDRESS? Please help. Regards, Somenath - 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: Multiple row creation
Hi Dev , Many thanks for your response. I am using mib2c.iterate.conf . I have one question is it possible for scalar attribute . For example in a single SNMPSET request if manager is trying to set three attribute (say ipaddress, netmask, and gateway). Suppose setting of gateway fails then is it possible to set the old value of IP address and netmask ? In case of scalar also we will have different handler. Regards, Somenath -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dave Shield Sent: Friday, October 06, 2006 3:35 PM To: Somenath Pal (WT01 - Broadband Networks) Cc: net-snmp-users@lists.sourceforge.net Subject: Re: Multiple row creation On 06/10/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Many thanks for your answer. Suppose I want to create two rows for two > different tables in a single SNMPSET request. But the handler (CREAT AND > GO) for two different rows will be different. Suppose the second > creation fails. Now how we can delete the first row? As execution of > first handler is finished. Is there any way to return back to the first > handler? That's why the Net-SNMP agent uses a multi-pass approach to SET requests. Please read the section on SET handling in the file AGENT.txt. This refers to the old v4 MIB module API, but the basic model applies to the v5 handler-based API as well. Bottom line, the agent won't move from one pass to the next until *ALL* the varbinds have been processed. So the agent will do something like: handle_table1( RESERVE1 ); handle_table2( RESERVE1 ); handle_table1( RESERVE2 ); handle_table2( RESERVE2 ); handle_table1( ACTION ); handle_table2( ACTION ); handle_table1( COMMIT ); handle_table2( COMMIT ); If any of these fail (say handle_table2(ACTION)), then the agent will call *both* handlers with the appropriate failure mode: handle_table1( UNDO ); handle_table2( UNDO ); That's where you'd need to take care of deleting the newly-created row again. Which helper(s) are you using? Most of the automatically-generated code ought to include the basic framework to do this. 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: Multiple row creation
Hi Dev, Many thanks for your answer. Suppose I want to create two rows for two different tables in a single SNMPSET request. But the handler (CREAT AND GO) for two different rows will be different. Suppose the second creation fails. Now how we can delete the first row? As execution of first handler is finished. Is there any way to return back to the first handler? Regards, Somenath -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dave Shield Sent: Friday, October 06, 2006 2:36 PM To: Somenath Pal (WT01 - Broadband Networks) Cc: net-snmp-users@lists.sourceforge.net Subject: Re: Multiple row creation On 06/10/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Thanks for your response. But suppose one create (SNMPSET) success and > one create (SNMPSET) request fails Are these two separate SNMP SET requests, or two row creation assignments, bundled within a single SNMP SET request?I'm assuming the latter (given your original question), but this phrasing tends to imply the former. > then do we need to delete the first > row as SET request is atomic? Yes - assuming this is a single SNMP SET request. That's exactly right. If the SET request fails, then neither row should be created. Of course, if the two rows are created using two separate SET requests, then it's perfectly valid for one creation to succeed, and the other to fail. But if you're putting both creation assignments into the same SET request, then they must stand or fall together. 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: Multiple row creation
Hi Dev, Thanks for your response. But suppose one create (SNMPSET) success and one create (SNMPSET) request fails then do we need to delete the first row as SET request is atomic? Regards, Somenath -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dave Shield Sent: Friday, October 06, 2006 2:11 PM To: Somenath Pal (WT01 - Broadband Networks) Cc: net-snmp-users@lists.sourceforge.net Subject: Re: Multiple row creation On 06/10/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Is it possible to create multiple rows in single SNMPSET request? Yes 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
Multiple row creation
Hi ALL, I have one doubt. Is it possible to create multiple rows in single SNMPSET request? Regards, Somenath - 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
Defination of lexicographic ordering
Hi ALL, I have a doubt about lexicographic ordering. Suppose we have table as defined bellow UserEntry OBJECT-TYPE SYNTAX FmxUserEntry MAX-ACCESS not-accessible STATUS current DESCRIPTION "The entry contains data for a user." INDEX { UserName } ::= { UserTable 1 } UserEntry ::= SEQUENCE { UserName DisplayString, UserPassword DisplayString, UserAccessRights DisplayString, UserLanguage DisplayString, UserWebCtPoolIntervel Integer32, UserStatus RowStatus } Now suppose user has created three rows with the following index somenath,raghu,arun. Suppose the OID of username is 1.2.3.4.5.6 . So the OID of the index willbe 1.2.3.4.5.6.somenath, 1.2.3.4.5.6.raghu,1.2.3.4.5.6.arun .But how are we going to decide the Lexicographic order of these entries ? Please help, Regards, somenath - 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
Getnext Implementation
Hi all, It will be helpful for me if some one provide the following information. 1) What are the options for mib2c to create cache handler for one table. Thanks in advance. Regards, Somenath - 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
GETNEXT doubt
Hi ALL, I have a doubt regarding GETNEXT in snmpv3. Suppose we have three tables T1, T2, T3 they are in lexicographic order. Table T1 and T3 are in same view and T2 in different view. Now for GETNEXT in the last row, last column of table T1 should the agent return error or first row first column of T3? Please help. Regards, Somenath - 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: Getnext Implementation
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dave Shield Sent: Tuesday, September 26, 2006 3:04 PM To: Somenath Pal (WT01 - Broadband Networks) Cc: net-snmp-users@lists.sourceforge.net Subject: Re: Getnext Implementation On 26/09/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > It was one simple example. The index may be IPADDRESS also > For this particular table there can be large gap Ok - so a different approach is needed. >> How is the table populated initially, how is it updated > > The table does not have any row initially .The user need to create the row . How? Via an SNMP SET command? Or via some other control mechanism? The table may be created by another agent (for example http agent) If the table is purely controlled via SNMP, then there's no problem whatsoever. The agent is the only thing that creates rows, so it knows exactly what rows exist, and can keep a track of the indexes. Determining the next index is simply a matter of searching this internal list. The Net-SNMP agent has several helpers that can take care of this automatically. If rows can be created "behind the back" of the agent, then things are slightly harder. The most straighforward approach would be for the agent to hold a cache of the table (or at least of the row indexes), Does it mean if the table is created by http agent, SNMP agent should know about the index which is created by http agent? How it is possible? and use that. Occasionally, when the cache is regarded as "too old" to be useful, it can be refreshed from the underlying system. The mib2c tool can generate code for either of these approaches. Dave Regards, Somenath - 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: Getnext Implementation
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dave Shield Sent: Tuesday, September 26, 2006 2:22 PM To: Somenath Pal (WT01 - Broadband Networks) Cc: net-snmp-users@lists.sourceforge.net Subject: Re: Getnext Implementation On 26/09/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Suppose we have one table having index's data type as integer. > Suppose it has three rows with index 1, 2, 3. Then the agent needs to know this. Not just what the syntax of the indexing is, but what the currently valid indexes actually are. Or at the very least, it needs some way to find out about the next index. Will the rows of this table always be consecutive starting from 1? Not necessarily. It was one simple example. The index may be IPADDRESS also Or will there sometimes be gaps? If so, then small gaps or large gaps? For this particular table there can be large gap > But the info about the rows are not stored in the index .It is stored in the data base. That's not a problem. > Now if some query comes with only column name of that particular table how agent is > going to decide that the next index is 1? If the table indexes are consecutive (or nearly so), then the first index will *always* be 1. It may not always starts with 1. The MIB module can just take the index from the incoming request, add 1 (or use 1 in the case above), and request that row from the database. If the rows are strictly consecutive, then the first row that doesn't exist will mark the end of the table, and the MIB module can return failure. If there are occasional gaps, then if a row doesn't exist, the MIB module will need to try again with the next index. This also implies some other mechanism for detecting the last row of the table. If there are large gaps (e.g. using processIDs, or semi-random index values), then this approach probably isn't appropriate. There needs to be some way to calculate or ask for "the next valid index". > For example suppose we have the following table > > NetworkDhcpPoolSubnetEntry ::= SEQUENCE { [snip] > } > The structure of a table row is irrelevant. The first task is always to determine which row of the table is required (ignoring the column information). How is the table populated initially, how is it updated, and how rapidly will it change? The table does not have any row initially .The user need to create the row .Then the column can be modified. This table is not rapidly changed. Regards, Somenath - 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: Getnext Implementation
Hi Dev, Many thanks for your response. But my problem is little different. Suppose we have one table having index’s data type as integer. Suppose it has three rows with index 1, 2, 3. But the info about the rows are not stored in the index .It is stored in the data base. Now if some query comes with only column name of that particular table how agent is going to decide that the next index is 1? For example suppose we have the following table NetworkDhcpPoolSubnetEntry ::= SEQUENCE { NetworkDhcpPoolSubnetIndex INTEGER, NetworkDhcpPoolSubnet IpAddress, NetworkDhcpPoolNetmask IpAddress, NetworkDhcpPoolSubnetMask IpAddress, NetworkDhcpPoolSubnetStatus RowStatus } Suppose the query is like getnext NetworkDhcpPoolSubnet . Then how agent will come to know that it has to return the value of NetworkDhcpPoolSubnet.1 . Please let me know if it is possible. Thanks in advance. Regards, Somenath -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dave Shield Sent: Tuesday, September 26, 2006 1:48 PM To: Somenath Pal (WT01 - Broadband Networks) Cc: net-snmp-users@lists.sourceforge.net Subject: Re: Getnext Implementation On 26/09/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Is it possible to implement snmpgetnext even the agent does not contain the data. > For example in a table where row can be created how it is possible to > know the next index? The agent is reporting on the information that it knows about - that currently exists. If it received a GETNEXT request that affects a table, it should return the next index for the contents of the table at that particular point in time. Yes - other rows might be created in the future, and that would mean different results for the same request. But the agent can't predict the future - all it can do is report on what it knows about at the time. So whether rows can be created./deleted or not is irrelevant - take the current contents of the table, and report one the next existing row. 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
Getnext Implementation
Hi All, Is it possible to implement snmpgetnext even the agent does not contain the data. For example in a table where row can be created how it is possible to know the next index? Regards, Somenath - 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
How Trap generation works
Hi ALL, It will be very helpful for me if some body provide me the following information. 1) How trap generation works. I have one MIB table AlarmNotification NOTIFICATION-TYPE OBJECTS { AlarmNotificationSequenceNumber, AlarmNotificationAlarmText, AlarmNotificationMoc, AlarmNotificationMoi, AlarmNotificationSeverity, AlarmNotificationTimeStamp, AlarmNotificationClearability, AlarmNotificationBasicAlarmText } 2) How snmpd will come to know that it has to generate trap PDU for the AlarmNotification and send it to manager . 3) How we are going to generate c code for this table using mib2c? Please help. Regards, Somenath - 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: Difference in snmpset
Hi Dev, Many thanks for your answer. Regards, Somenath -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dave Shield Sent: Monday, September 25, 2006 2:29 PM To: Somenath Pal (WT01 - Broadband Networks) Cc: net-snmp-users@lists.sourceforge.net Subject: Re: Difference in snmpset On 25/09/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Is there any difference between snmpset in snmpv2 and snmpv3? In terms of behaviour of the SET request - no. The protocol used by SNMPv2c and SNMPv3 is identical. (Strictly speaking, both SNMPv2c and SNMPv3 actually use SNMPv2 protocol requests. But that's not important right now). The difference lies in the administrative information, used to decide whether or not to accept a particular request. SNMPv2c has the very simple community-based admin mechanism. SNMPv3 has a much more powerful (secure, complex) administrative framework - supporting proper authentication, encryption, etc. But the basic protocol operations are the same. 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
Difference in snmpset
Hi All, I have one basic question. Is there any difference between snmpset in snmpv2 and snmpv3? Please help. Regards, Somenath - 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
Agent is not responding
Hi, I am sending SNMPv3 queries to two different net-snmp agents one running on 161 and the other on 2050 port number through vc++.The first time querying is fine and I am getting all the values correctly..but during the second time requests seem to go to only one snmp agent(the one that is recently started)and the requests for the other seem to timeout…if I restart the agent for which requests are timing out before sending request then the requests are going to the restarted daemon and not to the other one…I also checked well all the parameter values that are being passed before sending the request and everything seems to be fine.I am stuck with this problem for many days….Please help. Regards, Somenath ___ 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
key generation problem
I am working on VC++.Here generate_Ku is working fine for generation of authentication key but fails for privacy key..I have included the libeay32.lib in my libraries.Please help as I am stuck with this for more than 2 weeks... The code for my program is given below. session.version= version ; session.securityName=strdup(m_SNMPParams.getSecurityName()); session.securityNameLen = strlen(session.securityName); session.securityLevel=m_SNMPParams.getSecurityLevel();//)+1; temp_authproto=m_SNMPParams.getAuthProtocol(); if(temp_authproto==0) { session.securityAuthProto=usmHMACMD5AuthProtocol; session.securityAuthProtoLen = USM_AUTH_PROTO_MD5_LEN;//sizeof(usmHMACMD5AuthProtocol)/sizeof(oid); } else if(temp_authproto==1) { session.securityAuthProto=usmHMACSHA1AuthProtocol; session.securityAuthProtoLen = USM_AUTH_PROTO_SHA_LEN;//sizeof(usmHMACSHA1AuthProtocol)/sizeof(oid); } session.securityAuthKeyLen = USM_AUTH_KU_LEN; v3_authpassphrase=_T(m_SNMPParams.getAuthPasword()); if (generate_Ku(session.securityAuthProto, session.securityAuthProtoLen, (u_char *) v3_authpassphrase, strlen(v3_authpassphrase), session.securityAuthKey, &session.securityAuthKeyLen) != SNMPERR_SUCCESS) { //snmp_perror(); snmp_log(LOG_ERR, "Error generating Ku from authentication pass phrase. \n"); exit(1); } session.remote_port=m_SNMPParams.getPort(); session.contextEngineID=(unsigned char *) (LPCSTR)m_SNMPParams.getEngineId(); engineid_len=m_SNMPParams.getEngineId(); contextengineid_length=strlen(engineid_len); session.contextEngineIDLen=contextengineid_length; session.contextName=strdup(m_SNMPParams.getContext()); int context_name_length=(m_SNMPParams.getContext().GetLength()); session.contextNameLen=context_name_length; session.engineBoots=m_SNMPParams.getEngineBoots(); session.engineTime=m_SNMPParams.getEngineTime(); temp_privproto=m_SNMPParams.getPrivacyProtocol(); if(temp_privproto==0) { session.securityPrivProto=usmDESPrivProtocol; session.securityPrivProtoLen=USM_PRIV_PROTO_DES_LEN; } if(temp_privproto==1) { session.securityPrivProto=usmAESPrivProtocol; session.securityPrivProtoLen=USM_PRIV_PROTO_AES_LEN; } session.securityPrivKeyLen=USM_PRIV_KU_LEN; v3_privpassphrase=_T(m_SNMPParams.getPrivacyPasword()); if (generate_Ku(session.securityPrivProto, session.securityPrivProtoLen, (u_char *) v3_privpassphrase, strlen(v3_privpassphrase), session.securityPrivKey, &session.securityPrivKeyLen) != SNMPERR_SUCCESS) { //snmp_perror(); snmp_log(LOG_ERR, "Error generating Ku from authentication pass phrase. \n"); exit(1); } } session.timeout=m_SNMPParams.getSnmpTimeout()* 100L; session.retries=m_SNMPParams.getSnmpRetries(); return session; } --- All the advantages of Linux Managed Hosting--Without the Cost and Risk! Fully trained technicians. The highest number of Red Hat certifications in the hosting industry. Fanatical Support. Click to learn more http://sel.as-us.falkag.net/sel?cmd=lnk&kid7521&bid$8729&dat1642 ___ 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
Mib Loading Problem
Title: Mib Loading Problem Hi ALL, I am facing one problem. I need to implement some private MIBS. I have generated the .c and .h using mib2c and then generated "libmhso.so" .I kept the .so in /tmp/MH directory and all the other netsnmp libraries in /tmp/rh/lib. While configuring netsnmp I am following the below steps 1)export LDFLAGS="-L/tmp/MH -L/tmp/rh/lib -L/usr/local/lib" 2)LIBS="-lmhso -lnetsnmp -lcrypto" ./configure --prefix=/tmp/march2 3)make 4)make install I am excluding --with-mib-modules option for loading the mibs. But while trying snmpget on that particular private mib attribute whose implementation is part of .so I am getting the error snmpget -c public -v2c localhost mclbVcbMhHeartBeatTimeout.0 MCLB-VCB-MIB::mclbVcbMhHeartBeatTimeout.0 = No Such Object available on this agent at this OID My question is 1) Is it possible to keep the mib2c generated .c .h files in some other directory (other than agent/mibgroup) and force the configure scripts to include those files while making snmpd ? 2) Is there any way to force "--with-mib-modules " to look for .c and .h other than agent/mibgrop directory 3) Is it possible to implement the mibs and generate .so and while configuring snmpd include that .so instead of --with-mib-modules option and still the private mibs which implementation is part of .so gets loaded. Please help. Thanks, Somenath
RE: Example of create
Title: RE: Example of create Hi Dave, Many many thanks for your time . It is working fine again . Thanks, Somenath -Original Message- From: Dave Shield [mailto:[EMAIL PROTECTED]] Sent: Mon 2/20/2006 7:19 PM To: Somenath Pal (WT01 - Broadband Networks) Cc: net-snmp-users@lists.sourceforge.net Subject: RE: Example of create On Mon, 2006-02-20 at 17:27 +0530, [EMAIL PROTECTED] wrote: > Using this helper can I restrict user to create entry befor set ?. > I mean user should create row first then only he can change the > values of column of particular row. Ummm Try deleting the 'allow_creation' line. That enables the user to create rows automatically, simply by assigning to them. Without this flag set, rows will have to be set up explicitly using createAndGo, or createAndWait. Dave
RE: Example of create
Title: RE: Example of create Hi Dave, Many many thanks for your time.Now things are fine .Now I am able to delete rows. I have one more question.Using this helper can I restrict user to create entry befor set ?. I mean user should create row first then only he can change the values of column of partiuclar row. That is, he should not be able to set any thing before creating that row.In current implementation he is able to set values of particular row with out setting the rowstatus = 4 . Thanks, Somenath -Original Message- From: Dave Shield [mailto:[EMAIL PROTECTED]] Sent: Mon 2/20/2006 4:48 PM To: Somenath Pal (WT01 - Broadband Networks) Cc: net-snmp-users@lists.sourceforge.net Subject: RE: Example of create On Mon, 2006-02-20 at 12:47 +0530, [EMAIL PROTECTED] wrote: > I have generated code using mib2c -c mib2c.create-dataset.conf. > I am using the netsnmp_table_data_set helper . OK - that helper can take care of deleting rows automatically. You just need to tell it which column is the RowStatus object. > void > initialize_table_mclbModemNetworkCertificateTable(void) > { > table_set=netsnmp_create_table_data_set("..."); > table_set->allow_creation = 1; table_set->rowstatus_column = COLUMN_MCLBMODEMNETWORKCERTIFICATEROWSTATUS; > netsnmp_table_set_add_indexes(table_set, ASN_INTEGER, > 0); > netsnmp_table_set_multi_add_default_row(table_set, ); > netsnmp_register_table_data_set( > netsnmp_create_handler_registration(), > table_set, NULL); > } Dave
RE: Example of create
Hi Dave, Thanks for your reply. I have generated code using mib2c -c mib2c.create-dataset.conf. I am using the netsnmp_table_data_set helper . I am attaching the code .With this code I am able to add rows and get the rows but not able to delete. When I am setting the row status as 6 the log "INSIDE RS_DESTROY" getting printed but it is not deleting the row. Please point out the errors. Thanks, Somenath /* * Note: this file originally auto-generated by mib2c using * : mib2c.create-dataset.conf,v 5.4 2004/02/02 19:06:53 rstory Exp $ */ #include #include #include #include "mclbModemNetworkCertificateTable.h" netsnmp_table_data_set *table_set; /** Initialize the mclbModemNetworkCertificateTable table by defining its contents and how it's structured */ void initialize_table_mclbModemNetworkCertificateTable(void) { static oid mclbModemNetworkCertificateTable_oid[] = { 1, 3, 6, 1, 4, 1, 161, 204, 1, 25, 50, 175, 3 }; size_t mclbModemNetworkCertificateTable_oid_len = OID_LENGTH(mclbModemNetworkCertificateTable_oid); /* * create the table structure itself */ table_set = netsnmp_create_table_data_set("mclbModemNetworkCertificateTable"); /* * comment this out or delete if you don't support creation of new rows */ table_set->allow_creation = 1; /*** * Adding indexes */ DEBUGMSGTL(("initialize_table_mclbModemNetworkCertificateTable", "adding indexes to table mclbModemNetworkCertificateTable\n")); netsnmp_table_set_add_indexes(table_set, ASN_INTEGER, /* index: mclbModemNetworkCertificateIndex */ 0); DEBUGMSGTL(("initialize_table_mclbModemNetworkCertificateTable", "adding column types to table mclbModemNetworkCertificateTable\n")); netsnmp_table_set_multi_add_default_row(table_set, COLUMN_MCLBMODEMNETWORKCERTIFICATEINDEX, ASN_INTEGER, 0, NULL, 0, COLUMN_MCLBMODEMNETWORKCERTIFICATENAME, ASN_OCTET_STR, 1, NULL, 0, COLUMN_MCLBMODEMNETWORKCERTIFICATETYPE, ASN_INTEGER, 1, NULL, 0, COLUMN_MCLBMODEMNETWORKCERTIFICATEFILENAME, ASN_OCTET_STR, 1, NULL, 0, COLUMN_MCLBMODEMNETWORKCERTIFICATEROWSTATUS, ASN_INTEGER, 1, NULL, 0, 0); /* * registering the table with the master agent */ /* * note: if you don't need a subhandler to deal with any aspects * of the request, change mclbModemNetworkCertificateTable_handler to "NULL" */ netsnmp_register_table_data_set(netsnmp_create_handler_registration ("mclbModemNetworkCertificateTable", mclbModemNetworkCertificateTable_handler, mclbModemNetworkCertificateTable_oid, mclbModemNetworkCertificateTable_oid_len, HANDLER_CAN_RWRITE), table_set, NULL); } /** Initializes the mclbModemNetworkCertificateTable module */ void init_mclbModemNetworkCertificateTable(void) { /* * here we initialize all the tables we're planning on supporting */ initialize_table_mclbModemNetworkCertificateTable(); } /** handles requests for the mclbModemNetworkCertificateTable table, if anything else needs to be done */ int mclbModemNetworkCertificateTable_handler(netsnmp_mib_handler *handler, netsnmp_handler_registration *reginfo, netsnmp_agent_request_info *reqinfo, netsnmp_request_info *requests) { int create_certificate_status = -1; netsnmp_request_info *request; netsnmp_table_request_info *table_info; unsigned int noofindexes = 1, retVal; netsnmp_table_row *row; /* * perform anything here that you need to do. The requests have * already been processed by the master table_dataset handler, but * this gives you chance to act on the request in some other way * if need be. */ switch (reqinfo->mode) { case MODE_SET_ACTION: for (request = requests; request; request = request->next) { table_info = netsnmp_extract_table_info(request);
RE: Example of create
Hi Dave, Thanks for replying .I have written the code for create. I am able to create and get. But I am not able to delete the row .I am using netsnmp stack for storage. In create I am dong nothing. switch (*request->requestvb->val.integer) { case RS_CREATEANDGO: snmp_log (LOG_DEBUG,"INSIDE RS_CREATEANDGO\n"); break; case RS_DESTROY: snmp_log (LOG_DEBUG,"INSIDE RS_DESTROY \n"); break; With this code I am able to create but not delete. I am attaching the result. Please help. Thanks, Somenath CREATE snmpset -v2c -c public localhost mclbModemNetworkCertificateName.3 s "certifiacte3" mclbModemNetworkCertificateType.3 i 1 mclbModemNetworkCertificateFilename.3 s "ss" mclbModemNetworkCertificateRowStatus.3 i 4 MCLB-MODEM-NETWORK-MIB::mclbModemNetworkCertificateName.3 = STRING: certifiacte3 MCLB-MODEM-NETWORK-MIB::mclbModemNetworkCertificateType.3 = INTEGER: ca(1) MCLB-MODEM-NETWORK-MIB::mclbModemNetworkCertificateFilename.3 = STRING: ss MCLB-MODEM-NETWORK-MIB::mclbModemNetworkCertificateRowStatus.3 = INTEGER: createAndGo(4) SHOW [EMAIL PROTECTED] mclb]# snmptable -v2c -c public localhost mclbModemNetworkCertificateTable SNMP table: MCLB-MODEM-NETWORK-MIB::mclbModemNetworkCertificateTable mclbModemNetworkCertificateName mclbModemNetworkCertificateType mclbModemNetworkCertificateFilename mclbModemNetworkCertificateRowStatus certifiacte3 ca ss createAndGo DELETE [EMAIL PROTECTED] mclb]# snmpset -v2c -c public localhost mclbModemNetworkCertificateRowStatus.3 i 6 MCLB-MODEM-NETWORK-MIB::mclbModemNetworkCertificateRowStatus.3 = INTEGER: destroy(6) SHOW [EMAIL PROTECTED] mclb]# snmptable -v2c -c public localhost mclbModemNetworkCertificateTable SNMP table: MCLB-MODEM-NETWORK-MIB::mclbModemNetworkCertificateTable mclbModemNetworkCertificateName mclbModemNetworkCertificateType mclbModemNetworkCertificateFilename mclbModemNetworkCertificateRowStatus certifiacte3 ca ss -Original Message- From: Dave Shield [mailto:[EMAIL PROTECTED] Sent: Friday, February 17, 2006 6:33 PM To: Somenath Pal (WT01 - Broadband Networks) Cc: net-snmp-users@lists.sourceforge.net Subject: Re: Example of create On Fri, 2006-02-17 at 18:29 +0530, [EMAIL PROTECTED] wrote: > Can any one help me by providing an example code for creating and > removing table entry using NET-SNMP API. Have you looked at the code under 'agent/mibgroup' ? There are *plenty* of examples there, using a wide variety of approaches. Dave
Example of create
Hi ALL, I am new to this SNMP world. I need to develop agent which implements some private MIBS. Can any one help me by providing an example code for creating and removing table entry using NET-SNMP API. Thanks, Somenath