Hi,

the solution was to use the attributes:

·         SecureDomainAddress (0x12d83)

·         SecureDomainDisplay   (0x12c05)

·         SecureDomainName (0x12c04)

To specify the SDC, which has to use. The method "CsCSecureDomain[] sdclist = 
md.getSecureDomainList();" returns the list of all configured SDCs on a 
landscape. With this values you can configure the attributes above.

ava = new CsCAttrValue[3];
String IP = valhelper.toStringInternetAddressValue(sdc.secureDomainAddress);
ava[0] = new CsCAttrValue(Integer.decode(attrSecureDomainAddress), 
valhelper.parseInternetAddressValue(IP, null), CsCError_e.SUCCESS );
ava[1] = new CsCAttrValue(Integer.decode(attrSecureDomainDisplay), 
valhelper.parseTextString(sdc.secureDomainDisplay, null), CsCError_e.SUCCESS );
ava[2] = new CsCAttrValue(Integer.decode(attrSecureDomainName), 
valhelper.parseTextString(sdc.secureDomainName, null), CsCError_e.SUCCESS );
CsCAttrValList avl = new CsCAttrValList(ava, CsCError_e.SUCCESS);

Then:
md.createModelByIP(ipAddress, Community, 1, 1, 161, avl);

And Spectrum uses the SDC to contact the device.

Regards,
  Christoph

Von: SMT - Ton Smink [mailto:[email protected]]
Gesendet: Freitag, 18. Januar 2013 12:32
An: spectrum
Cc: spectrum
Betreff: Re: [spectrum] Dev API and modeling devices via SDC

Hi,

You probably have te set attribute 0x12c04 during creation of the model with 
createModelWithAttrVallistById;

Regards, Ton

Ton Smink
Application Specialist

Mobile: +31 (0)6 3424 4820
Email: [email protected]<mailto:[email protected]>


SMT Simple Management Technologies B.V.
Herenwaard 185 | 2716 XV Zoetermeer | The Netherlands
Tel: +31 (0)79 3317450 | Fax: +31 (0)79 3317830

Website<http://www.smtware.com/> | Blog<http://www.smtware.com/blog> | 
Twitter<http://twitter.com/SMT_IT_Mgt> | Subscribe to 
Newsletter<http://eepurl.com/cuTJj>










On Fri, Jan 18, 2013 at 11:03 AM, Keßler, Christoph 
<[email protected]<mailto:[email protected]>> wrote:
Hi list,

I try to write a java program for modeling devices via SDC. Anybody did this 
before and can give me a hint what method I have to use for this?
"createModelByIP" doesn't have a parameter to pass the SDC. I only found the 
datatype "CsCSDConnectorMap" in the docs, but don't have any clue how to use 
this.
Thanks

Regards,
  Christoph

---
To unsubscribe from spectrum, send email to 
[email protected]<mailto:[email protected]> with the body: unsubscribe spectrum 
[email protected]<mailto:[email protected]>


 *   --To unsubscribe from spectrum, send email to 
[email protected]<mailto:[email protected]> with the body: unsubscribe spectrum 
[email protected]<mailto:[email protected]>

---
To unsubscribe from spectrum, send email to [email protected] with the body: 
unsubscribe spectrum [email protected]

Reply via email to