> here is my little prog > > var > snmp : TSNMPSend; > > begin > snmp := TSNMPSend.Create; > snmp.Query.Clear; > snmp.Query.Version := 3; > snmp.Query.Flags := AuthPriv; > snmp.Query.FlagReportable := True; > snmp.Query.UserName := 'snmpv3'; > snmp.Query.AuthMode := AuthMD5; > snmp.Query.Password := 'testtest'; > snmp.Query.PrivMode := PrivDES; > snmp.Query.PrivPassword := 'testtest'; > snmp.TargetHost := '192.168.10.2'; > snmp.Query.PDUType := PDUGetRequest; > > snmp.Query.MIBAdd( '1.3.6.1.2.1.1.5.0', '', asn1util.ASN1_NULL ); > if snmp.SendRequest = True then > WriteLn( 'Ok : ' + snmp.Reply.MIBByIndex( 0 ).OID + ' - ' + > snmp.Reply.MIBByIndex( 0 ).Value ) > else > WriteLn( 'Fail' ); > end. > >
Works fine here on Solaris x86 when contacting an Ubuntu 64 server. I'm using fpc 2.5.1 svn. Ludo ------------------------------------------------------------------------------ All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2d-c2 _______________________________________________ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public