- Community Home
- >
- Servers and Operating Systems
- >
- HPE ProLiant
- >
- Server Management - Systems Insight Manager
- >
- Automated Suspend/Resume monitoring scheduled task
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2012 08:05 PM
10-16-2012 08:05 PM
Hi,
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 All Scheduled Tasks however eventhough I set the start date/time correctly(ahead of current date/time), it shows "Run Once - Already Ran".
This is how I do the Task Scheduling
Lets say I want to suspend SERVER1 from 21 Sept 2012 at 15:00 until 19:00 on the same day
1. Wrote the query for servers to resume and saved it as queryresume.xml
<?xml version="1.0" encoding="windows-1252"?> <query-list> <query name="Server resume Targets" type="DeviceViews" category-name="ToolsCollection" owner="domain\user" locked="false" application=""> <criteria name="CriteriaByName" sense="INCLUDE"> <value>SERVER1</value>
</criteria> </query> </query-list>
2. Wrote the query for servers to suspend and saved it as querysuspend.xml
<?xml version="1.0" encoding="windows-1252"?> <query-list> <query name="Server suspend Targets" type="DeviceViews" category-name="ToolsCollection" owner="domain\user" locked="false" application=""> <criteria name="CriteriaByName" sense="INCLUDE"> <value>SERVER1</value> </criteria> </query> </query-list>
3. Wrote task for resuming monitoring and saved it as taskresume.xml
<?xml version="1.0" encoding="windows-1252"?> <task-list> <task name="Server resume" type="schedule" owner="domain\user" state="enabled"> <toolname>Suspend or Resume Monitoring</toolname> <queryname>Server resume Targets</queryname> <scheduleinfo interval="ranonce" time="19:00" date="09/21/12" /> <timefilter /> <toolparams><?xml version="1.0"?> <XeObject className="com.hp.mx.core.tools.systemattributes.SnoozeTaskModel" classVersion="2.0"> <Property type="superclass"> </Property> <Property name="suspendState"> <Simple>0</Simple> </Property> <Property name="strSuspendState"> <Simple>off</Simple> </Property> <Property name="language"> <Simple>en</Simple> </Property> </XeObject> </toolparams> </task> </task-list>
4. Wrote task for resuming monitoring and saved it as tasksuspend.xml
<?xml version="1.0" encoding="windows-1252"?> <task-list> <task name="Server suspend" type="schedule" owner="domain\user" state="enabled"> <toolname>Suspend or Resume Monitoring</toolname> <queryname>Server suspend Targets</queryname> <scheduleinfo interval="ranonce" time="15:00" date="09/21/12" /> <timefilter /> <toolparams><?xml version="1.0"?> <XeObject className="com.hp.mx.core.tools.systemattributes.SnoozeTaskModel" classVersion="2.0"> <Property type="superclass"> </Property> <Property name="suspendState"> <Simple>-1</Simple> </Property> <Property name="strSuspendState"> <Simple>always</Simple> </Property> <Property name="language"> <Simple>en</Simple> </Property> </XeObject> </toolparams> </task> </task-list>
5. And finally ran the batch script
mxquery -a -f querysuspend.xml mxtask -cf tasksuspend.xml mxquery -a -f queryresume.xml mxtask -cf taskresume.xml
Am I missing something here? Thanks in advance :-)
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2012 05:32 AM
10-17-2012 05:32 AM
Re: Automated Suspend/Resume monitoring scheduled task
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2012 06:41 PM
10-17-2012 06:41 PM
Re: Automated Suspend/Resume monitoring scheduled task
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2013 04:11 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2014 03:04 PM
01-10-2014 03:04 PM
Re: Automated Suspend/Resume monitoring scheduled task
I had the Same issue but there is a HP SIM 6.3.1 fix you have to
links.
Hotfix can be downloaded here:
http://h18013.www1.hp.com/products/servers/management/hpsim/dl_windows63.html#hotfix63\
I made a spread that help me suspend muliple servers from excel
Here are my
My code TXT, How to docs and xlsm App attached which is ZIP
let me know if need help email tonyb@mr-itpro.com
click here to download the tool
video how to use the tool
http://www.screencast.com/t/vfBeBXiZ