06-26-2013 06:45 AM
I am curious if anybody knows of an efficient way to check for an existing scheduled task at a particular IP address? As it stands, I have a script that allows me to add unlimited scheduled tasks to a particular IP... eventually giving that IP address five host objects. I am curious as to what kind of logic I need to have the script spit an error at the user telling them to pick another address since this one already has an existing object.
To make it even more efficient, maybe have the script deny if it sees a scheduled Host object already (the script is for a simple scheduled add of a Host object).