RE: How to create row for a table having two indices.

This is a discussion on RE: How to create row for a table having two indices. within the SNMP Users forums, part of the Networking and Network Related category; Hi Dave, I have one more problem. After giving the command 'snmpset -c public 127.0.0.1 mVgSipDnsServerRowStatus.1.\&...


Go Back   Usenet Forums > Networking and Network Related > SNMP Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 09-17-2007
 
Posts: n/a
Default RE: How to create row for a table having two indices.

Hi Dave,
I have one more problem.
After giving the command
'snmpset -c public 127.0.0.1 mVgSipDnsServerRowStatus.1.\"1.1.1.1\" i 4'
the corresponding row is getting created.
But when I am giving the following command
'snmpset -c public 127.0.0.1 mVgSipDnsServerPriority.1.\"1.1.1.1\" i 2'

The agent is crashing because of SIGSEGV since
'netsnmp_extract_table_info' is returning NULL when trying to modify
column data.
Please help me.
Thanks
Krishna

-----Original Message-----
From: net-snmp-users-bounces@lists.sourceforge.net
[mailto:net-snmp-users-bounces@lists.sourceforge.net] On Behalf Of
kolakalurikrishna.chaitanya@wipro.com
Sent: Monday, September 17, 2007 2:25 PM
To: D.T.Shield@liverpool.ac.uk
Cc: net-snmp-users@lists.sourceforge.net
Subject: RE: How to create row for a table having two indices.

Hi Dave,
Thank you very much dave. That solved my problem of accessing
the second index.
After giving the command
'snmpset -c public 127.0.0.1 mVgSipDnsServerRowStatus.1.\"1.1.1.1\" i 4'
the corresponding row is getting created.
But when I am giving the following command
'snmpset -c public 127.0.0.1 mVgSipDnsServerPriority.1.\"1.1.1.1\" i 2'
the program is crashing because in the corresponding handler function
the 'table_entry' is null and I am not able to copy the
dnsserverpriority into the table_entry.
Please help me.
Thanks
Krishna


-----Original Message-----
From: dave.shield@googlemail.com [mailto:dave.shield@googlemail.com] On
Behalf Of Dave Shield
Sent: Monday, September 17, 2007 1:22 PM
To: Kolakalurikrishna Chaitanya (WT01 - TES-Access Networks)
Cc: net-snmp-users@lists.sourceforge.net
Subject: Re: How to create row for a table having two indices.

On 17/09/2007, <kolakalurikrishna.chaitanya@wipro.com> wrote:
> I have generated the code for the table using iterator helper. After
> receiving the request I am not able to receive the ipaddress passed by

the
> snmpset command in
>
> Table_info->indexes but I am able to receive the ipaddresstype i.e

'1'.

The first structure in the the index list (i.e. table_info->indexes)
should be the value of mVgSipDnsServerIPAddressType

The second structure in the the index list (i.e.
table_info->indexes->next_variable)
should be the value of mVgSipDnsServerIPAddress

Dave

------------------------------------------------------------------------
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
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/...net-snmp-users

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
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/...net-snmp-users
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 06:07 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0