Problem in net-snmp table

"Amit Srivastava" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hi,

 

I am new to net SNMP. I created a table with row status column. 

Now I have generated the code using the

 

mib2c -c mib2c.iterate.conf amitStackTable
---> this is the table name

 

and after doing some changes I copied the .c and .h files it into the
mibgroup folder and then compiled the file.

 

Now I executed the ./snmpd and then executed the following commnad

 

snmpwalk -v1 -c public localhost amitStackTable

 

but after few seconds it is showing the following message.

.

.

[root@d253 agent]# snmpwalk -v 1 -c  public localhost  amitStackTable

Timeout: No Response from localhost

[root@d253 agent]#

 

 

So please tell me that how I would be able to do the get and set on the
below table.If I am wrong in code generation then please tell me which
configuration file to choose and what changes I have to do. If possible send
me an example file.

 


Please help me its urgent...

 

 

Below is the table format

 

 

amitStackTable  OBJECT-TYPE

     SYNTAX        SEQUENCE OF AmitStackEntry

     MAX-ACCESS    not-accessible

     STATUS        current

     DESCRIPTION

            "The table containing information on the relationships"

     ::= { sarnath 6 }

 

amitStackEntry  OBJECT-TYPE

     SYNTAX        AmitStackEntry

     MAX-ACCESS    not-accessible

     STATUS        current

     DESCRIPTION

            "Information on a particular relationship between two sub-."

     INDEX { amitStackHigherLayer, amitStackLowerLayer }

     ::= { amitStackTable 1 }

 

AmitStackEntry ::=

    SEQUENCE {

       amitStackHigherLayer  InterfaceIndexOrZero,

        amitStackLowerLayer   InterfaceIndexOrZero,

        amitStackStatus       RowStatus

     }

 

amitStackHigherLayer  OBJECT-TYPE

     SYNTAX        InterfaceIndexOrZero

     MAX-ACCESS    not-accessible

     STATUS        current

     DESCRIPTION

           "The value of ifIndex corresponding to the higher sub-layer"

     ::= { amitStackEntry 1 }

 

amitStackLowerLayer  OBJECT-TYPE

     SYNTAX        InterfaceIndexOrZero

     MAX-ACCESS    not-accessible

     STATUS        current

     DESCRIPTION

            "The value of ifIndex corresponding to the lower sub-layer"

     ::= { amitStackEntry 2 }

 

amitStackStatus  OBJECT-TYPE

    SYNTAX         RowStatus

    MAX-ACCESS     read-create

    STATUS         current

    DESCRIPTION

            "The status of the relationship between two sub-layers."

    ::= { amitStackEntry 3 }

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/

_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.