Novell ZENworks Endpoint Security Management 3.5 Manuale Utente

Pagina di 245
ZENworks® ESM 3.5
Administrator’s Manual
182
Storage.RetrySeconds = 30
ret = Storage.RetrySeconds
Action.Trace("RetrySeconds = " & ret)
Interfaces
These interfaces are returned by one of the methods of the namespaces described in section 3 or 
by one of the methods or properties of the following interfaces.
IClientAdapter Interface
This interface returns information about an adapter.
GetNetworkEnvironment
JScript
var adplist;
var adplength;
var adp;
var env;
var ret;
adplist = Query.GetAdapters();
adplength = adplist.Length;
Action.Trace("adplength = " + adplength);
if(adplength > 0)
{
  adp = adplist.Item(0);
  env = adp.GetNetworkEnvironment();
  ret = env.DHCPCount;
  Action.Trace("DHCPCount = " + ret);
  ret = env.DNSCount;
  Action.Trace("DNSCount = " + ret);