Re: about multiple indexes in a CLI command

2008-06-27 Thread Dave Shield
2008/6/27 Paul <[EMAIL PROTECTED]>: > How can I use CLI command to get some entry in the table? : > My main question is how to represent string and integer index values in OID? If you're not sure how indexes will be represented, then try running "snmpwalk" (or "snmpwalk -On") on one of the colu

about multiple indexes in a CLI command

2008-06-27 Thread Paul
Hi, If my table is indexed by three indexes: index 1: mac address(string) index 2: ip address index 3: port number (integer) How can I use CLI command to get some entry in the table? ex: table oid: 1.3.6.1.4.100.100 index 1: aa:bb:cc:dd:ee:ff index 2: 192.168.100.100 index 3: 99 snmpget -v

Re: multiple indexes

2008-06-27 Thread Dave Shield
2008/6/27 Tewen Hsieh <[EMAIL PROTECTED]>: > Could you tell me where can I find such an example? > I try to find it in the /agent/mibgroup/examples directory. Did you bother to look in any of the other directories under 'mibgroup'? There are *lots* of MIB modules implemented in the code, many of

Re: multiple indexes

2008-06-27 Thread Tewen Hsieh
] - Original Message - From: "Dave Shield" <[EMAIL PROTECTED]> To: "Tewen Hsieh" <[EMAIL PROTECTED]> Cc: Sent: Friday, June 27, 2008 6:03 PM Subject: Re: multiple indexes > 2008/6/27 Tewen Hsieh <[EMAIL PROTECTED]>: >> That is how agent ma

Re: multiple indexes

2008-06-27 Thread Dave Shield
2008/6/27 Tewen Hsieh <[EMAIL PROTECTED]>: > That is how agent mapping integer index value to a noninteger index > value(ex: ip)? > Or ip can not be a index? Each table should only has integer index value? Please look at the code for existing tables that are indexed using IP addresses.There ar

Re: multiple indexes

2008-06-27 Thread Tewen Hsieh
,Shuiyuan St., Hsinchu City, Taiwan, R.O.C. Tel:03-5716099 Ext.1208 E-mail:[EMAIL PROTECTED] - Original Message - From: "Dave Shield" <[EMAIL PROTECTED]> To: "Tewen Hsieh" <[EMAIL PROTECTED]> Cc: Sent: Friday, June 27, 2008 4:24 PM Subject: Re: multiple i

Re: multiple indexes

2008-06-27 Thread Dave Shield
1.column.idx (assuming that 1.3.6.1.4.1.7788.100 is the OID of the table itself). > But if my table is indexed by multiple indexes (ex: ip and vlan), how can > agent mapping 1.3.6.1.4.1.7788.100.1.idx to the correct row? It cannot, Even with the missing column subidentifier added, this OID

multiple indexes

2008-06-26 Thread Tewen Hsieh
vlanport ... 1 192.168.100.1 110 2 192.168.100.2 220 3 192.168.100.3 330 ... But if my table is indexed by multiple indexes (ex: ip

Re: problem in set request for multiple indexes column!

2007-06-14 Thread Robert Story
On Tue, 12 Jun 2007 18:29:49 +0530 Awadhesh wrote: AK> I am creating row initially at startup. I am using following code in init AK> method of code. Ok, that looks ok.. AK> When i do SNMP set request, i am not creating any row, A call back AK> (gsomcGrpCfgTable_create_row) to create the row is ca

Re: problem in set request for multiple indexes column!

2007-06-13 Thread Awadhesh Kumar
Hi Robert, I am creating row initially at startup. I am using following code in init method of code. int init_gsomcGrpCfgTable(void){ netsnmp_index index; oid index_oid[2]; for(int indexVal = 0; indexVal< 5; indexVal++){ /*initialize the index value*/ index_oid[0] = indexVal; //first index value

Re: problem in set request for multiple indexes column!

2007-06-13 Thread Awadhesh Kumar
Hi Robert, Thanks for reply. I ran the agent in debug mode, no proper messgae is coming while debugging which shows error. If i do the SET request on OID .1.3.6.1.4.1.303.3.3.9.35.5.2.8.1.4.1.1 with value 3, it is showing the following output at linux console [EMAIL PROTECTED] socks]# agentx/mas

Re: problem in set request for multiple indexes column!

2007-06-12 Thread Robert Story
On Mon, 11 Jun 2007 16:48:19 +0530 Awadhesh wrote: AK> I have not written any code the ACTION and COMMIT phase of mib2c generated AK> code right now and same code is working if I use it for single index table. That's just odd. How are these rows created? By snmpset, or do you create them at startu

Re: problem in set request for multiple indexes column!

2007-06-07 Thread Robert Story
On Wed, 6 Jun 2007 15:49:10 +0530 Awadhesh wrote: A> [...] If i try to set A> the particular column instances with some value, it sets properly as per A> response (please note that , no error come) but If I read the same A> instances(same column) it is giving the old value which i have initialized

problem in set request for multiple indexes column!

2007-06-06 Thread Awadhesh
Hi I am implementing the sub-agent using net-snmp 5.4.1 pre. I have created code with mib2c with configuration mib2c.array-user.conf. The table object defined in the mib has two index value. Initially i set the 10 rows with some default column values. I am able to get the same value from mib brows