
sjunkel asked a question.
Hi all,
we have an organization that would like to scan their computers twice a day - once right after the computer starts up and then, for example, again starting at noon. Is this possible and if so, how does snowagent.config need to be modified for this?
Is it also possible to define in snowagent.config that the scan option "atstart" has a delay of 10 - 30 minutes? Similar to the regular scan from a certain time and then with randomize 30?
Thanks for your help!
Kind regards
Susanne
This was asked a few days ago so this thread may be helpful: Multiple Scan of Windows agents (snowsoftware.com)
Short version is even if you could configure the agent to do so you'd get little benefit from doing it.
I tink it IS possible und multiple scans or at least a scan at either startup, login or configured-daily-scan-window is desirable and possible.
I just added that information to the thread mentioned by Joseph.
I paste it here for easier access as well.
>>>
According to my experience and konwledge it all depends on how you configure the agent.
Not all aspects of the snowagent.config are fully documented nor can you set all options throuch SMACC config dialogs.
Here is my block of config which I include/adopt in my agent configs, based on my needs.
Please have a look at the comments to get the idea.
This way i can get a scan either at startup, and/or at login and/or during the cofigured scan-time-interval and can limit it to one scan per day, but will not miss scans, if the computer is kept switched off druing the conifgured daily time-window.
....
<Schedule>
<!-- Note:
- according to snowclient_settings.xsd definition for element name="Task" is: type="ScheduleTask" minOccurs="0" maxOccurs="unbounded"
- We can have AtStart, AtLogon and Daily we can't add multiple 'Daily', as Agent will pick up only first TimeOf Day
- SMACC GUI defines 'TimeOfDay' as e.g.: 'PT09H00M' while XSD defines it as e.g. '09:00:00' (ignoring seconds, if set defaults to 00)
according to our tests both versions are valid and accepted by agent.
so <TimeOfDay>23:30:00</TimeOfDay> is equivalent to <TimeOfDay>PT23H30M</TimeOfDay>
-->
<!-- Scan 'AtStart' (will execute a "send" as well) -->
<!-- Note: Occurance attributes 'delay' and 'atMostOnceDaily' and Task attribute 'enabled' can't be set by creating the config by SMACC GUI -->
<!-- Task attribute 'enabled' (ture/false) seems to have no effect, albeit it should be valid and working according to snowclient_settings.xsd (bug!?) -->
<!--Task enabled="true" --> <!-- left in here to showcase on how to set attribute 'enabled' in Task - may help in future versions to ease switching on/off Tasks -->
<Task>
<Action>scan</Action>
<Occurance>
<AtStart delay="true" atMostOnceDaily="true">true</AtStart>
</Occurance>
<!-- Albeit not making sense in case of 'AtStart', we need TimeOfDay to prevent warning logged about wrong/missing time-definition in this task-type -->
<!-- Albeit this is NOT valid accoring to snowclient_settings.xsd, this prevents the warning and still 'AtStart' works as expected -->
<!-- this seems to set in log: Info; snowagent;win32\bootconfig.cpp;snow::BootConfig::schedule; Scheduling item at 9999-Dec-31 23:59:59.999999 -->
<TimeOfDay>09:00:00</TimeOfDay>
</Task>
<!-- Scan 'AtLogon' (will execute a "send" as well) -->
<!-- Note: Occurance attributes 'delay' and 'atMostOnceDaily' and Task attribute 'enabled' can't be set by creating the config by SMACC GUI -->
<!-- Task attribute 'enabled' (ture/false) seems to have no effect, albeit it should be valid and working according to snowclient_settings.xsd (bug!?) -->
<!--Task enabled="false" --> <!-- left in here to showcase on how to set attribute 'enabled' in Task - may help in future versions to ease switching on/off Tasks -->
<Task>
<Action>scan</Action>
<Occurance>
<AtLogOn delay="true" atMostOnceDaily="true">true</AtLogOn>
</Occurance>
<TimeOfDay>09:00:00</TimeOfDay>
</Task>
<!-- Scan 'Daily' (will execute a "send" as well) -->
<!-- Note: - only ONE 'daily' scan task will be accepted, even if different occurances are given (Aaargh!) -->
<!-- - Occurance attributes 'delay' and 'atMostOnceDaily' and Task attribute 'enabled' can't be set by creating the config by SMACC GUI -->
<!-- - Task attribute 'enabled' (ture/false) seems to have no effect, albeit it should be valid and working according to snowclient_settings.xsd (bug!?) -->
<Task>
<Action>scan</Action>
<Occurance>
<Daily>true</Daily>
</Occurance>
<TimeOfDay>PT09H00M</TimeOfDay> <!-- this is the default value. For Terminalserver: to scan/send before 'reprovisioning of server' (at 24:00), set TimeOfDay to '23:30:00'. Tis way we don't loose collectd usage data -->
<Randomize>90</Randomize> <!-- this is the default value. For Terminalserver: to be finishedd with scan/send just before 'reprovisionint time' (at 24:00), set 'Randomize' interval to at max '15' -->
</Task>
</Schedule>
....
<<<
unfortunately these settings don't work on SNOW ATLAS Inventory Agent 26.1.1