<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Automated Suspend/Resume monitoring scheduled task in Server Management - Systems Insight Manager</title>
    <link>https://community.hpe.com/t5/server-management-systems/automated-suspend-resume-monitoring-scheduled-task/m-p/5924657#M55822</link>
    <description>&lt;P&gt;turned out there was a typo in the xml.&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;interval="ranonce" should be&lt;/PRE&gt;&lt;PRE&gt;interval="runonce"&lt;BR /&gt;&lt;BR /&gt;dumb mistake :-p&lt;/PRE&gt;</description>
    <pubDate>Tue, 08 Jan 2013 12:11:58 GMT</pubDate>
    <dc:creator>zarulzakuan</dc:creator>
    <dc:date>2013-01-08T12:11:58Z</dc:date>
    <item>
      <title>Automated Suspend/Resume monitoring scheduled task</title>
      <link>https://community.hpe.com/t5/server-management-systems/automated-suspend-resume-monitoring-scheduled-task/m-p/5835869#M54764</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since HP SIM do not provide scheduling bulk servers for suspend/resume monitoring task, I do the task using direct command through CMD. After I ran the command, the scheduled task do appear on the&amp;nbsp;All Scheduled Tasks however eventhough I set the start date/time correctly(ahead of current date/time), it&amp;nbsp;shows "Run Once - Already Ran".&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is how I do the Task Scheduling&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Lets say I want to suspend SERVER1 from 21 Sept 2012 at 15:00 until&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;19:00 on the same day&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Wrote the query for servers to resume and saved it as queryresume.xml&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;lt;?xml version="1.0" encoding="windows-1252"?&amp;gt;
&amp;lt;query-list&amp;gt;
&amp;lt;query name="Server resume Targets" type="DeviceViews" category-name="ToolsCollection" owner="domain\user" locked="false" application=""&amp;gt;
&amp;lt;criteria name="CriteriaByName" sense="INCLUDE"&amp;gt;
&amp;lt;value&amp;gt;SERVER1&amp;lt;/value&amp;gt;&lt;BR /&gt;&amp;lt;/criteria&amp;gt;
&amp;lt;/query&amp;gt;
&amp;lt;/query-list&amp;gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;2.&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;Wrote the query for servers to suspend and saved it as querysuspend.xml&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&amp;lt;?xml version="1.0" encoding="windows-1252"?&amp;gt;
&amp;lt;query-list&amp;gt;
&amp;lt;query name="Server suspend Targets" type="DeviceViews" category-name="ToolsCollection" owner="domain\user" locked="false" application=""&amp;gt;
        &amp;lt;criteria name="CriteriaByName" sense="INCLUDE"&amp;gt;
            &amp;lt;value&amp;gt;SERVER1&amp;lt;/value&amp;gt;
        &amp;lt;/criteria&amp;gt;
    &amp;lt;/query&amp;gt;
&amp;lt;/query-list&amp;gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;3. Wrote task for resuming monitoring and saved it as taskresume.xml&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&amp;lt;?xml version="1.0" encoding="windows-1252"?&amp;gt;
&amp;lt;task-list&amp;gt;
 &amp;lt;task name="Server resume" type="schedule" owner="domain\user" state="enabled"&amp;gt;
        &amp;lt;toolname&amp;gt;Suspend or Resume Monitoring&amp;lt;/toolname&amp;gt;
        &amp;lt;queryname&amp;gt;Server resume Targets&amp;lt;/queryname&amp;gt;
&amp;lt;scheduleinfo interval="ranonce" time="19:00" date="09/21/12" /&amp;gt;
&amp;lt;timefilter /&amp;gt;
        &amp;lt;toolparams&amp;gt;&amp;amp;lt;?xml version="1.0"?&amp;amp;gt;
&amp;amp;lt;XeObject className="com.hp.mx.core.tools.systemattributes.SnoozeTaskModel" classVersion="2.0"&amp;amp;gt;
&amp;amp;lt;Property type="superclass"&amp;amp;gt;
&amp;amp;lt;/Property&amp;amp;gt;
 &amp;amp;lt;Property name="suspendState"&amp;amp;gt;
  &amp;amp;lt;Simple&amp;amp;gt;0&amp;amp;lt;/Simple&amp;amp;gt;
 &amp;amp;lt;/Property&amp;amp;gt;
 &amp;amp;lt;Property name="strSuspendState"&amp;amp;gt;
  &amp;amp;lt;Simple&amp;amp;gt;off&amp;amp;lt;/Simple&amp;amp;gt;
 &amp;amp;lt;/Property&amp;amp;gt;
 &amp;amp;lt;Property name="language"&amp;amp;gt;
  &amp;amp;lt;Simple&amp;amp;gt;en&amp;amp;lt;/Simple&amp;amp;gt;
 &amp;amp;lt;/Property&amp;amp;gt;
&amp;amp;lt;/XeObject&amp;amp;gt;
&amp;lt;/toolparams&amp;gt;
    &amp;lt;/task&amp;gt;
&amp;lt;/task-list&amp;gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;4. Wrote task for resuming monitoring and saved it as tasksuspend.xml&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&amp;lt;?xml version="1.0" encoding="windows-1252"?&amp;gt;
&amp;lt;task-list&amp;gt;
 &amp;lt;task name="Server suspend" type="schedule" owner="domain\user" state="enabled"&amp;gt;
        &amp;lt;toolname&amp;gt;Suspend or Resume Monitoring&amp;lt;/toolname&amp;gt;
        &amp;lt;queryname&amp;gt;Server suspend Targets&amp;lt;/queryname&amp;gt;
&amp;lt;scheduleinfo interval="ranonce" time="15:00" date="09/21/12" /&amp;gt;
&amp;lt;timefilter /&amp;gt;
        &amp;lt;toolparams&amp;gt;&amp;amp;lt;?xml version="1.0"?&amp;amp;gt;
&amp;amp;lt;XeObject className="com.hp.mx.core.tools.systemattributes.SnoozeTaskModel" classVersion="2.0"&amp;amp;gt;
&amp;amp;lt;Property type="superclass"&amp;amp;gt;
&amp;amp;lt;/Property&amp;amp;gt;
 &amp;amp;lt;Property name="suspendState"&amp;amp;gt;
  &amp;amp;lt;Simple&amp;amp;gt;-1&amp;amp;lt;/Simple&amp;amp;gt;
 &amp;amp;lt;/Property&amp;amp;gt;
 &amp;amp;lt;Property name="strSuspendState"&amp;amp;gt;
  &amp;amp;lt;Simple&amp;amp;gt;always&amp;amp;lt;/Simple&amp;amp;gt;
 &amp;amp;lt;/Property&amp;amp;gt;
 &amp;amp;lt;Property name="language"&amp;amp;gt;
  &amp;amp;lt;Simple&amp;amp;gt;en&amp;amp;lt;/Simple&amp;amp;gt;
 &amp;amp;lt;/Property&amp;amp;gt;
&amp;amp;lt;/XeObject&amp;amp;gt;
&amp;lt;/toolparams&amp;gt;
    &amp;lt;/task&amp;gt;
&amp;lt;/task-list&amp;gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;5. And finally ran the batch script&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;mxquery -a -f querysuspend.xml
mxtask -cf tasksuspend.xml

mxquery -a -f queryresume.xml
mxtask -cf taskresume.xml&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;Am I missing something here? Thanks in advance :-)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Oct 2012 03:05:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/server-management-systems/automated-suspend-resume-monitoring-scheduled-task/m-p/5835869#M54764</guid>
      <dc:creator>zarulzakuan</dc:creator>
      <dc:date>2012-10-17T03:05:59Z</dc:date>
    </item>
    <item>
      <title>Re: Automated Suspend/Resume monitoring scheduled task</title>
      <link>https://community.hpe.com/t5/server-management-systems/automated-suspend-resume-monitoring-scheduled-task/m-p/5836379#M54766</link>
      <description>&lt;P&gt;I use SIM all the time to Schedule server(s) to suspend monitoring and a second scheduled task to take servers out of suspension mode.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Oct 2012 12:32:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/server-management-systems/automated-suspend-resume-monitoring-scheduled-task/m-p/5836379#M54766</guid>
      <dc:creator>Rene Nascimento</dc:creator>
      <dc:date>2012-10-17T12:32:13Z</dc:date>
    </item>
    <item>
      <title>Re: Automated Suspend/Resume monitoring scheduled task</title>
      <link>https://community.hpe.com/t5/server-management-systems/automated-suspend-resume-monitoring-scheduled-task/m-p/5836985#M54768</link>
      <description>&lt;P&gt;Yes I am aware about that. The thing is I want to do it automatically. I've done script to automate both task. From excel, I just have to put list of server, set the start and end date/time and run macro to run all xml files like above. However, once it completes, in "All Scheduled Tasks" shows that both tasks already run.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Oct 2012 01:41:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/server-management-systems/automated-suspend-resume-monitoring-scheduled-task/m-p/5836985#M54768</guid>
      <dc:creator>zarulzakuan</dc:creator>
      <dc:date>2012-10-18T01:41:36Z</dc:date>
    </item>
    <item>
      <title>Re: Automated Suspend/Resume monitoring scheduled task</title>
      <link>https://community.hpe.com/t5/server-management-systems/automated-suspend-resume-monitoring-scheduled-task/m-p/5924657#M55822</link>
      <description>&lt;P&gt;turned out there was a typo in the xml.&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;interval="ranonce" should be&lt;/PRE&gt;&lt;PRE&gt;interval="runonce"&lt;BR /&gt;&lt;BR /&gt;dumb mistake :-p&lt;/PRE&gt;</description>
      <pubDate>Tue, 08 Jan 2013 12:11:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/server-management-systems/automated-suspend-resume-monitoring-scheduled-task/m-p/5924657#M55822</guid>
      <dc:creator>zarulzakuan</dc:creator>
      <dc:date>2013-01-08T12:11:58Z</dc:date>
    </item>
    <item>
      <title>Re: Automated Suspend/Resume monitoring scheduled task</title>
      <link>https://community.hpe.com/t5/server-management-systems/automated-suspend-resume-monitoring-scheduled-task/m-p/6331219#M57990</link>
      <description>&lt;P&gt;I had the Same issue but there is a HP SIM 6.3.1 &amp;nbsp;fix you have to&lt;/P&gt;&lt;P&gt;links.&lt;/P&gt;&lt;P&gt;&lt;A rel="nofollow" href="http://g1w0134.austin.hp.com/bizsupport/TechSupport/Document.jsp?lang=en&amp;amp;cc=us&amp;amp;taskId=110&amp;amp;prodSeriesId=489496&amp;amp;prodTypeId=18964&amp;amp;objectID=c02931351" target="_blank"&gt;http://g1w0134.austin.hp.com/bizsupport/TechSupport/Document.jsp?lang=en&amp;amp;cc=us&amp;amp;taskId=110&amp;amp;prodSeries...&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Hotfix can be downloaded here:&lt;/P&gt;&lt;P&gt;&lt;A rel="nofollow" href="http://h18013.www1.hp.com/products/servers/management/hpsim/dl_windows63.html#hotfix63\&amp;quot; data-mce-href=" target="_blank"&gt;http://h18013.www1.hp.com/products/servers/management/hpsim/dl_windows63.html#hotfix63\&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I made a spread that help me suspend muliple servers from excel&lt;/P&gt;&lt;P&gt;Here are my&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; My code TXT,&amp;nbsp;&amp;nbsp;&amp;nbsp;How to&amp;nbsp;docs and&amp;nbsp; xlsm&amp;nbsp;App attached which is ZIP&lt;/P&gt;&lt;P&gt;let me know if need help email &lt;A rel="nofollow" href="mailto:tonyb@mr-itpro.com" target="_blank"&gt;tonyb@mr-itpro.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;click here to &lt;A rel="nofollow" href="ftp://mr-itpro.org.org/" target="_blank"&gt;download &lt;/A&gt;the tool&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;video how to use the tool&lt;/P&gt;&lt;P&gt;&lt;A rel="nofollow" href="http://www.screencast.com/t/vfBeBXiZ" target="_blank"&gt;http://www.screencast.com/t/vfBeBXiZ&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jan 2014 23:04:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/server-management-systems/automated-suspend-resume-monitoring-scheduled-task/m-p/6331219#M57990</guid>
      <dc:creator>tobro-home</dc:creator>
      <dc:date>2014-01-10T23:04:32Z</dc:date>
    </item>
  </channel>
</rss>

