Hi,

[change the subject line of my previous mail for quick reference]

 Snmpset response differently on Linux(Debian) and MIPS platform

I have another issue
For the reference I have attached the file(dot-c and dot-h)

When I run snmp on linux machine(Debian) And do the snmpset it works
properly:
/home/symbol/Sanjay/net-snmp-5.5/apps/snmpset -c private -v 2c
127.0.0.1:8161 ccAuditLogRowStatus.\"symbol\".81.2.33.21  i  4 Walk
Result:
SYMBOL-CC-WS2000-MIB::ccAuditLogsnmpv3UserName."symbol".81.2.33.21 =
STRING: "symbol"
SYMBOL-CC-WS2000-MIB::ccAuditLogsnmpClientIpAddr."symbol".81.2.33.21 =
IpAddress: 81.2.33.21
SYMBOL-CC-WS2000-MIB::ccAuditLogRowStatus."symbol".81.2.33.21 = INTEGER:
1

Logs:
RESERVE2  -> ASN type 4 indxnum:2
RESERVE2  -> ASN type 64 indxnum:2
RESERVE2 -> IPAddr:51022115
Create Entry -> IPAddr:51022115
SET_ACTION -> Fun:ccAuditLoggingCfgTable_handler Line:486 colnum:3
COMMIT -> UserName:symbol COMMIT -> Create and Go:
MODE_GET -> UserName:symbol **
MODE_GET -> Ip addr:51022115 **
MODE_GET -> row status:1 **


======>>>>>>
But I run the same code on MIPS platefom the 2nd index(ip Address) is
setting to "0.0.0.0"
Set command:

/home/symbol/net-snmp-5.5/apps/snmpset -v 3 -u symbol -l authPriv -a MD5
-A symbol11 -x DES -X symbol11 192.168.1.50
ccAuditLogRowStatus.\"symbol\".81.2.33.21  i  4

Snmpwalk Result:
SYMBOL-CC-WS2000-MIB::ccAuditLogsnmpv3UserName."symbol".0.0.0.0 =
STRING: "symbol"
SYMBOL-CC-WS2000-MIB::ccAuditLogsnmpClientIpAddr."symbol".0.0.0.0 =
IpAddress: 0.0.0.0
SYMBOL-CC-WS2000-MIB::ccAuditLogRowStatus."symbol".0.0.0.0 = INTEGER: 1

user.err snmpd: RESERVE2  ->IP address field vb_integer:6 Jan 14
07:21:11 (none) user.err snmpd: RESERVE2  -> ASN type 4 indxnum:2 Jan 14
07:21:11 (none) user.err snmpd: RESERVE2 **** string symbol len:6 Jan 14
07:21:11 (none) user.err snmpd: RESERVE2  ->IP address field
vb_integer:0 Jan 14 07:21:11 (none) user.err snmpd: RESERVE2  -> ASN
type 64 indxnum:2 Jan 14 07:21:11 (none) user.err snmpd: RESERVE2  ->
vb_integer:0 len:4 Jan 14 07:21:11 (none) user.err snmpd: RESERVE2 ->
IPAddr:0 Jan 14 07:21:11 (none) user.err snmpd: Create Entry -> IPAddr:0
Jan eth0: topology change detected, propagating
14 07:21:11 (none) user.err snmpd: SET_ACTION -> Fun:ccAuditLoggeth0:
port 1(ate ingCfgTable_ Jan 14 07:21:11 (none) user.err snmpd: COMMIT ->
UserName:symbol Jan 14 07:21:11 (none) user.err snmpd: COMMIT -> Create
and Go:
Jan 14 07:21:11 (none) user.err snmpd: Audit Log: IPAddr: 192.168.1.40

Observation:
Basically variable binding for IP Addree is getting zero(0.0.0.0) But I
am getting current "ASN type 64"

Any Help :)

Thanks,
Sanjay


Attachment: ccAuditLoggingCfgTable.h
Description: ccAuditLoggingCfgTable.h

Attachment: ccAuditLoggingCfgTable.c
Description: ccAuditLoggingCfgTable.c

------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
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

Reply via email to