
ZENworks® ESM 3.5 Administrator’s Manual 164
adplength = adplist.Length;
Action.Trace("adplength = " + adplength);
if(adplength > 0)
{
adp = adplist.Item(0);
Action.Trace("DeviceID = " + adp.DeviceID);
Action.Trace("Enabled = " + adp.Enabled);
Action.Trace("IP = " + adp.IP);
Action.Trace("MAC = " + adp.MAC);
Action.Trace("MaxSpeed = " + adp.MaxSpeed);
Action.Trace("Name = " + adp.Name);
Action.Trace("SubNetMask = " + adp.SubNetMask);
Action.Trace("Type = " + adp.Type);
}
VBScript
dim adplist
dim adplength
dim adp
set adplist = Query.GetAdapters()
adplength = CInt(adplist.Length)
Action.Trace("adplength = " & adplength)
if(adplength > 0) then
set adp = adplist.Item(0)
Action.Trace("DeviceID = " & adp.DeviceID)
Action.Trace("Enabled = " & adp.Enabled)