Hi Dave,
       Here I am posting the latest version of Code and output observed:
I am also attached the MIB part for the same.

1. SNMPSET request and output:
/home/symbol/Sanjay/net-snmp-5.5/apps/snmpset -c private -v 2c 127.0.0.1:8161 
ccAuditLogRowStatus.\"abc\".127.0.0.1  i  4

SYMBOL-CC-WS2000-MIB::ccAuditLogRowStatus."abc".127.0.0.1 = INTEGER: 
createAndGo(4) 

Agent log:
In Func:get_next_data_point UserName:sanjay
RESERVE2  -> Fun:ccAuditLoggingCfgTable_handler Line:369
SET_ACTION -> Fun:ccAuditLoggingCfgTable_handler Line:432
COMMIT -> UserName:abc

2. SNMPWALK request and output
/home/symbol/Sanjay/net-snmp-5.5/apps/snmpwalk -c private -v 2c udp:8161 
ccAuditLoggingCfgTable

SYMBOL-CC-WS2000-MIB::ccAuditLogsnmpv3UserName = STRING: "abc"
SYMBOL-CC-WS2000-MIB::ccAuditLogsnmpClientIpAddr = IpAddress: 97.98.99.0
SYMBOL-CC-WS2000-MIB::ccAuditLogRowStatus = INTEGER: 1

Agent log:
In Func:get_next_data_point UserName:abc
In Func:get_next_data_point UserName:sanjay
MODE_GET -> UserName:abc **
In Func:get_next_data_point UserName:abc
In Func:get_next_data_point UserName:sanjay
In Func:get_next_data_point UserName:abc
In Func:get_next_data_point UserName:sanjay
In Func:get_next_data_point UserName:abc
In Func:get_next_data_point UserName:sanjay
In Func:get_next_data_point UserName:abc
In Func:get_next_data_point UserName:sanjay
In Func:get_next_data_point UserName:abc
In Func:get_next_data_point UserName:sanjay

Observation:
1. In MODE_GET , Only last inserted user is available
2. And snmpwalk return the same "user"
3. But in function _get_next_data_point ALL the USER name are available

Question:
Data is available but snmpwalk return only last object.

Thanks,
Sanjay



-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf 
Of Dave Shield
Sent: Tuesday, January 18, 2011 10:38 PM
To: Kumar Sanjay-XJD784
Cc: Net-snmp-users
Subject: Re: SNMP Set is getting Failed

On 18 January 2011 15:26, Kumar Sanjay-XJD784 <[email protected]> 
wrote:
> I am able to do the snmpset and also able to "ADD" a new row entry in 
> the Table
>
> But when I do the snmpwalk I get only  ***last*** added row enrty in 
> tavle
>
> What could be the reason ??

A bug in your code?

Please post the latest version, so we can see what it looks like.
(There's no point in me trying to guess what you might have  changed since the 
last version!)

Dave
--Audit Log Table definition Part

        -- 1.3.6.1.4.1.388.11.2.2.11.10
                auditLoggingCfgTable OBJECT-TYPE
                SYNTAX     SEQUENCE OF AuditLoggingCfgEntry
                MAX-ACCESS not-accessible
                STATUS     current
                DESCRIPTION
                        "This table will be used to configured the audit 
logging feature for 
                        Common Criteria(CC) Certification."
                ::= { ccLogging 10 }


                -- 1.3.6.1.4.1.388.11.2.2.11.10.1
                auditLoggingCfgEntry OBJECT-TYPE
                SYNTAX     AuditLoggingCfgEntry
                MAX-ACCESS not-accessible
                STATUS     current
                DESCRIPTION
                        "Each entry contains the  snmpV3 user to snmp client IP 
address 
                        equivalence to filter the audit logging."
                INDEX   { snmpv3UserName,
                          snmpClientIpAddress}
                ::= { auditLoggingCfgTable 1 }

                
                AuditLoggingCfgEntry ::= 
                        SEQUENCE {
                                snmpv3UserName         
                                        OCTET STRING (SIZE (0..255)),    
                                snmpClientIpAddress      
                                        IpAddress,
                                auditLoggingRowStatus       
                                        AbbrevRowStatus
                        }

                -- 1.3.6.1.4.1.388.11.2.2.11.10.1.1
                snmpv3UserName OBJECT-TYPE
                SYNTAX     OCTET STRING (SIZE (0..255))
                MAX-ACCESS read-create
                STATUS     current
                DESCRIPTION
                        "This index  uniquely identifies the snmpV3 user 
configured by snmp client for 
                        which audit logging need to configured."
                ::= { auditLoggingCfgEntry 1 }

                -- 1.3.6.1.4.1.388.11.2.2.11.10.1.2
                snmpClientIpAddress OBJECT-TYPE
                SYNTAX     IpAddress
                MAX-ACCESS read-create
                STATUS     current
                DESCRIPTION
                        "This index  uniquely identifies the snmp client Ip 
address for which audit logging
                        need to configured."
                ::= { auditLoggingCfgEntry 2 }

        -- 1.3.6.1.4.1.388.11.2.2.11.10.1.3
                auditLoggingRowStatus OBJECT-TYPE
                SYNTAX     AbbrevRowStatus
                MAX-ACCESS read-create
                STATUS     current
                DESCRIPTION
                        "A conceptual row, to pair up snmpV3 user and snmp 
client 
                        Ip address to configurd the Audit Logging."
                ::= { auditLoggingCfgEntry 3 }


------End

Attachment: ccAuditLoggingCfgTable.h
Description: ccAuditLoggingCfgTable.h

Attachment: ccAuditLoggingCfgTable.c
Description: ccAuditLoggingCfgTable.c

------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
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

Reply via email to