SCAN FUNCTIONS
From TDiWiki
This script contains functions related to Scans to be used in other CWScripts
[edit] Script Properties
Name: SCAN_FUNCTIONS
Description: functions related to Scans
Profile: CONSOLE_MANAGER
Timeout: 30 (seconds)
[edit] Run Type
none
[edit] Script Text
// * Copyright 1999-2011 TDi Technologies, Inc. All rights reserved. *
// * The information in this software is subject to change without *
// * notice and should not be construed as a commitment by TDi. *
// * Created: 3/31/2011 *
function addscan(cons, scan)
{
if (!cons.hasScan(scan)) {
log("CONWRKS", "Add the "+scan+" scan to "+cons.name);
cons.addScan(scan);
}
}
function delscan(cons, scan)
{
if(cons.hasScan(scan)) {
log("CONWRKS", "Delete the "+scan+" scan from "+cons.name);
cons.removeScan(scan);
}
}
