Hi again,
Thanks for the Update, I am really happy that my query was looked into
:-). But still it's half way as from agent side I am able to capture the
value under a string (u_char*) data type and I am able to persist, but
if I give the same snmp set cmd as hex-string following the display msg
1) snmpset -v2c -c motrw 127.0.0.1 clSnmpBootstrapServerAddress.0 x
0x100874cf00a2
CNEOMI-LITE-BOOTSTRAP-MIB::clSnmpBootstrapServerAddress.0 = Hex-STRING:
00 00 00 00 00 00 00 00 00 00 00 00
2) snmpset -v2c -c motrw 127.0.0.1 clSnmpBootstrapServerAddress.0 x
0x00100874cf00a2
CNEOMI-LITE-BOOTSTRAP-MIB::clSnmpBootstrapServerAddress.0 = Hex-STRING:
00 10 08 74 cf 00 a2
Now with this kind of display msg on snmpset I am totally confused &
even more annoyed as I am not able to capture the hex value in any of
data variables but I see junk values in the same string (u_char* )data
which are getting modified when I change the values under 'x' type.
I want to know what should I give as the type of my MIB is it 'x' or
's'? My MIB is of type TransportAddress which is of type
octetString(0...255) as per the TransportAddress definition which is
followed by my MIB.
So what must be wrong there? Is it my agent's fault that is not able to
capture the value under 'x' or I am wrong who is trying to set a value
on a MIB of type 's'? I am confused here. Please help me.
Regards,
Sudhir P
-----Original Message-----
From: Wes Hardaker [mailto:[email protected]]
Sent: Thursday, July 13, 2006 11:41 PM
To: Sudhir Parisaboyina (WT01 - Broadband Networks)
Cc: [email protected]
Subject: Re: [Query] mib of type TransportAddress
>>>>> On Wed, 12 Jul 2006 21:57:31 +0530,
<[email protected]> said:
sudhir> But what value should Manager pass when he has to do a snmp
sudhir> set on this?
sudhir> For example:
sudhir> # snmpset -v2c -c motrw 127.0.0.1
clSnmpBootstrapServerAddress.0 =
sudhir> 100874cf00a2
sudhir> CNEOMI-LITE-BOOTSTRAP-MIB::clSnmpBootstrapServerAddress.0 =
Hex-STRING:
sudhir> 00 00 00 00 00 00 00 00 00 00 00 00
Well, your snmpset command looked fine though I don't understand the
MIB. Certainly the agent didn't accept the value and actually is
doing something illegal (it should return an error if it doesn't like
it, not return the current value or all zeros).
You have a broken agent.
--
Wes Hardaker
Sparta, Inc.
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
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.