Hi,

I have figured it out!

SNMPSet('1.3.6.1.4.1.19011.1.3.1.1.4.3.3.2', 'public', '192.168.12.26', '18', 
ASN1_INT);

Just had difficulty understanding value & value type and that the value I 
wanted was an integer and is passed to the function as a string!

All is clear and simple now!

Jason

-----Original Message-----
From: Jason Richards 
Sent: 14 December 2009 16:40
To: [email protected]
Subject: [Synalist] SNMPSET With SNMP V1

Hi,
 
I am having real difficulty using the SNMPSET method. 

function SNMPSet(const OID, Community, SNMPHost, Value: AnsiString;
ValueType: Integer): Boolean;


I wish to set the following:

Name: inSeptsensorConfigSensor1TemperatureLowWarning

Oid: 1.3.6.1.4.1.19011.1.3.1.1.4.3.3.2

Syntax: Integer

Access: ReadWrite


I started like this:

SNMPSet('1.3.6.1.4.1.19011.1.3.1.1.4.3.3.2', 'public', '192.168.12.26',
? , ?);

I don't understand how to set the value & value type

I would also like to set:

Name: inSeptsensorConfigSensor1TemperatureName
Oid: 1.3.6.1.4.1.19011.1.3.1.1.4.3.3.1

Syntax: OctetString (SIZE (0..15))

Access: ReadWrite

Help please

Thanks

Jason






------------------------------------------------------------------------------
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
_______________________________________________
synalist-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synalist-public

Reply via email to