A SERVICE OF

logo

ZENworks® ESM 3.5 Administrator’s Manual 189
{
adp = adplist.Item(0);
env = adp.GetNetworkEnvironment();
ret = env.GatewayCount;
Action.Trace("GatewayCount = " + ret);
if(ret > 0)
{
item = env.GetGatewayItem(0);
ret = item.IP;
Action.Trace("IP = " + ret);
}
}
VBScript
dim adplist
dim adplength
dim adp
dim env
dim ret
dim item
set adplist = Query.GetAdapters()
adplength = adplist.Length
Action.Trace("adplength = " & CInt(adplength))
if(CInt(adplength) > 0) then
set adp = adplist.Item(0)
set env = adp.GetNetworkEnvironment()