SCOM: Heartbeat Failure Alert Tuning

I recently deployed SCOM in a highly distributed network. Most of the edge locations had slow WAN links. These edge locations would often go offline. With the combination of the slow WAN links and them going offline SCOM would flood with alerts/emails on Health Service Heartbeat Failure and Computer Not Reachable monitors. This had to be tuned out because these...

Read More»

Deduplication for Microsoft DPM using Crunch

With Microsoft DPM 2012 RTM and SP1 protecting deduplicated data on Windows Server 2012 volumes is possible but there is no deduplication on the DPM storagepool. This is a feature that has been needed and requested in the community for some time. DPM administrators have wanted a way to shrink the storage footprint for their DPMs. Now with BridgeSTORs newest...

Read More»

Deduplication for Microsoft DPM using Crunch

With Microsoft DPM 2012 RTM and SP1 protecting deduplicated data on Windows Server 2012 volumes is possible but there is no deduplication on the DPM storagepool. This is a feature that has been needed and requested in the community for some time. DPM administrators have wanted a way to shrink the storage footprint for their DPMs.

Now with BridgeSTORs newest product Crunch deduplication is possible on the storagepool.  The nice thing about this product is that its sold on a Deduplication as a Service (DaaS™) model helping organizations avoid CAPEX. Crunch performs deduplication at the block and file-level. For more on how the deduplication works in Crunch check out this video they made.

http://vimeo.com/50332899

BridgeSTOR has moved from a physical appliance to a virtual appliance. Using a virtual appliance opens up many options of where to place the virtual machine such as a Hyper-V VM on the DPM server itself. Crunch not only offers dedupe but also serves as long-term disk storage for DPM and a way to push DPM data up to cloud storage. Here is a diagram they mad ethat shows where Crunch fits in the DPM architecture.

BridgeSTOR DPM

Crunch also has built in VTL so it allows for your DPM data to be stored to disk configured as virtual tape. The last thing I want to mention about Crunch in this post is that it does not require an enormous amount of hardware resources. Crunch does this by performing the deduplication at times of low system activity paging the hash table in and out of memory, eliminating the need for multiple processors and large RAM configurations.

I hope to do some testing of Crunch in the future to see what it can do! I will be posting another blog with my findings. For now you can visit www.bridgestor.com if you want to know more about it.

Read More»

Use System Center Orchestrator to Backup a Hosted WordPress

I recently had some issues with my hosted WordPress (this blog) being hacked. So I wanted to start backing up a local copy and I did not want to do this all manually. A friend of mine (a fellow MVP Islam) also needed something like this for his blog because recently the hosting provider of his WordPress site deleted the entire thing!

WordPress on the backend consists of a database and a folder with the actual site files in it. I needed a way to back up the database and the site files. My WordPress database runs on MySQL. I needed a way to do a MySQL Dump of the database. Then the dump needed to be placed into a specific folder before downloading it. So to sum this up I need to somehow backup the MySQL database for my site, place this somewhere so it can be downloaded, delete the previous database file so that disk space is not being wasted before future dumps, then zip my blog files and download both the zip and MySQL Dump.

I was excited about this project because when I set out to accomplish I knew I would look to System Center first to help me out. Just my luck I am able to accomplish everything I need with System Center Orchestrator (SCORCH).

Here is a summary of how SCORCH will accomplish the task:

  • SCORCH will connect to the web server via SSH
  • SCORCH will issue a command that will remove any previous MySQL backups of my database
  • SCORCH will issue a MySQL command to back up the database to a specific folder
  • SCORCH will check for a previous .zip of my blog files and remove it if it is there
  • SCORCH will create a new .zip of my website files
  • SCORCH will connect to the web server via FTP and download the database and download the .zip of my blog

Before doing this you need a couple of things setup on your web server and depending on your host some of these options may not be available. Here is what you need:

  • You need a static IP so that you can access SSH remotely (Some hosts will give you a FQDN to connect to instead)
  • Then you need SSH turned on and configured (Make sure this is secured.)
  • Create a folder for your MySQL database backups
  • You need an FTP account setup to access your MySQL backups and the website files remotely

Ok now let’s jump into the actual setup of this in SCORCH.

Go download and deploy the FTP Integration Pack for SCORCH.

Here is the link: http://technet.microsoft.com/en-us/library/hh295851.aspx

Register the integration pack and deploy it to your Runbook server. Once you have the FTP integration pack in your SCORCH go to the SCORCH Runbook designer and setup the FTP account for your host. This can be found under Options>>FTP.

clip_image001

You just need to click Add and then input your FTP settings. Click OK when done and your FTP connection will be listed under Configurations. Click Finish.

clip_image002

The next thing you need to do is create the Runbook. You will be using the System (Run SSH Command) and FTP (Download File) Activities.

clip_image003

clip_image004

Go ahead and setup your Runbook like so:

clip_image005

 

Here are the SSH commands you will need in those SSH Activities:

  • (Remove Old MySQL Dump)

rm www/mysqlbackup/YOURSITEDBNAMEHERE.sql

  • (MySQL Dump)

mysqldump -u ACCOUNTWITHACCESSTOMYSQL –pYOURPASSWORDHERE YOURSITEDBNAMEHERE -h MYSQLHOSTNAMEHERE.com > mysqlbackup/YOURSITEDBNAMEHERE.sql

  • (Remove Old QP Zip)

rm www/YOURBLOGNAMEHERE.zip

  • (Make New WP Zip)

zip -r www/YOURBLOGNAMEHERE.zip www/YOURBLOGNAMEHERE.com/

You could technically put these commands in a Linux script file (.SH) and use one SSH activity by referencing the .SH file in the Command Set File field. For my scenario I wanted to break it out into parts in case something failed. I could then troubleshoot each SSH command separately.

Here are a couple of screenshots of what your settings should look like in the SSH command activities:

clip_image006

clip_image007

Ok. Now let’s look at the properties of the FTP download activities. Something to note here is that SCORCH can download files but not folders. This is the reason we had to use SSH to Zip the folder before we can download it.

Below is a screenshot with the settings I used on the FTP download activity. There are other settings I did not need but you might depending on your host.

clip_image008

NOTE that I placed a Send Email activity at the end of my Runbook that sends me an email when it completes. This is optional.

Once you finish configuring your Runbook activities go ahead and run the Runbook through the Runbook Tester to make sure it all works. NOTE this will actually perform the steps on your LIVE webserver so make sure you are ready for that.

Ok, as long as the Runbook passed the Runbook Tester we will put the finishing touches on this by adding a schedule in the Runbooks properties.

clip_image009

Now your Runbook should run on a schedule and get a local copy of your WordPress blog. :-)

Read More»

Use System Center Orchestrator to Backup a Hosted WordPress

I recently had some issues with my hosted WordPress (this blog) being hacked. So I wanted to start backing up a local copy and I did not want to do this all manually. A friend of mine (a fellow MVP Islam) also needed something like this for his blog because recently the hosting provider of his WordPress site deleted the entire thing!

WordPress on the backend consists of a database and a folder with the actual site files in it. I needed a way to back up the database and the site files. My WordPress database runs on MySQL. I needed a way to do a MySQL Dump of the database. Then the dump needed to be placed into a specific folder before downloading it. So to sum this up I need to somehow backup the MySQL database for my site, place this somewhere so it can be downloaded, delete the previous database file so that disk space is not being wasted before future dumps, then zip my blog files and download both the zip and MySQL Dump.

I was excited about this project because when I set out to accomplish I knew I would look to System Center first to help me out. Just my luck I am able to accomplish everything I need with System Center Orchestrator (SCORCH).

Here is a summary of how SCORCH will accomplish the task:

  • SCORCH will connect to the web server via SSH
  • SCORCH will issue a command that will remove any previous MySQL backups of my database
  • SCORCH will issue a MySQL command to back up the database to a specific folder
  • SCORCH will check for a previous .zip of my blog files and remove it if it is there
  • SCORCH will create a new .zip of my website files
  • SCORCH will connect to the web server via FTP and download the database and download the .zip of my blog

Before doing this you need a couple of things setup on your web server and depending on your host some of these options may not be available. Here is what you need:

  • You need a static IP so that you can access SSH remotely (Some hosts will give you a FQDN to connect to instead)
  • Then you need SSH turned on and configured (Make sure this is secured.)
  • Create a folder for your MySQL database backups
  • You need an FTP account setup to access your MySQL backups and the website files remotely

Ok now let’s jump into the actual setup of this in SCORCH.

Go download and deploy the FTP Integration Pack for SCORCH.

Here is the link: http://technet.microsoft.com/en-us/library/hh295851.aspx

Register the integration pack and deploy it to your Runbook server. Once you have the FTP integration pack in your SCORCH go to the SCORCH Runbook designer and setup the FTP account for your host. This can be found under Options>>FTP.

clip_image001

You just need to click Add and then input your FTP settings. Click OK when done and your FTP connection will be listed under Configurations. Click Finish.

clip_image002

The next thing you need to do is create the Runbook. You will be using the System (Run SSH Command) and FTP (Download File) Activities.

clip_image003

clip_image004

Go ahead and setup your Runbook like so:

clip_image005

 

Here are the SSH commands you will need in those SSH Activities:

  • (Remove Old MySQL Dump)

rm www/mysqlbackup/YOURSITEDBNAMEHERE.sql

  • (MySQL Dump)

mysqldump -u ACCOUNTWITHACCESSTOMYSQL –pYOURPASSWORDHERE YOURSITEDBNAMEHERE -h MYSQLHOSTNAMEHERE.com > mysqlbackup/YOURSITEDBNAMEHERE.sql

  • (Remove Old QP Zip)

rm www/YOURBLOGNAMEHERE.zip

  • (Make New WP Zip)

zip -r www/YOURBLOGNAMEHERE.zip www/YOURBLOGNAMEHERE.com/

You could technically put these commands in a Linux script file (.SH) and use one SSH activity by referencing the .SH file in the Command Set File field. For my scenario I wanted to break it out into parts in case something failed. I could then troubleshoot each SSH command separately.

Here are a couple of screenshots of what your settings should look like in the SSH command activities:

clip_image006

clip_image007

Ok. Now let’s look at the properties of the FTP download activities. Something to note here is that SCORCH can download files but not folders. This is the reason we had to use SSH to Zip the folder before we can download it.

Below is a screenshot with the settings I used on the FTP download activity. There are other settings I did not need but you might depending on your host.

clip_image008

NOTE that I placed a Send Email activity at the end of my Runbook that sends me an email when it completes. This is optional.

Once you finish configuring your Runbook activities go ahead and run the Runbook through the Runbook Tester to make sure it all works. NOTE this will actually perform the steps on your LIVE webserver so make sure you are ready for that.

Ok, as long as the Runbook passed the Runbook Tester we will put the finishing touches on this by adding a schedule in the Runbooks properties.

clip_image009

Now your Runbook should run on a schedule and get a local copy of your WordPress blog. :-)

Read More»

Deploy DPM Remote Administration console via SCCM

In this post I am going to explain the process of deploying the DPM Remote Administration Console to IT admin computers via System Center Configuration Manager 2012. Following are the steps you will need to take to make this happen.

You will need somewhere to group your IT admin computers so that you can target the DPM Remote Administration console to them. Create an IT Admin Computers device collection in SCCM 12. This is what we will use to group the IT admin computers.

clip_image001

Now we need to copy the contents from the DPM media onto your distribution point share. This will be the CCX86 and SCDPM folders.

NOTE: In my lab for this post I copied these to C:\App Deployments.

clip_image002

OTHER INFO: As of right now you need to copy all the contents. I don’t know of the specific files that make up the remote administration console. If I track this down later I will update this blog post. If you need to save space you can copy one or the other folder and use it. CCX86 is for 32Bit computers and SCDPM is for 64Bit computers. If you know you will only deploy to 64Bit computers then get the SCDPM folder only.

The next step is to go and create a package for the DPM Remote Administration console.

Read More»

Deploy DPM Remote Administration console via SCCM

In this post I am going to explain the process of deploying the DPM Remote Administration Console to IT admin computers via System Center Configuration Manager 2012. Following are the steps you will need to take to make this happen.

You will need somewhere to group your IT admin computers so that you can target the DPM Remote Administration console to them. Create an IT Admin Computers device collection in SCCM 12. This is what we will use to group the IT admin computers.

clip_image001

Now we need to copy the contents from the DPM media onto your distribution point share. This will be the CCX86 and SCDPM folders.

NOTE: In my lab for this post I copied these to C:\App Deployments.

clip_image002

OTHER INFO: As of right now you need to copy all the contents. I don’t know of the specific files that make up the remote administration console. If I track this down later I will update this blog post. If you need to save space you can copy one or the other folder and use it. CCX86 is for 32Bit computers and SCDPM is for 64Bit computers. If you know you will only deploy to 64Bit computers then get the SCDPM folder only.

The next step is to go and create a package for the DPM Remote Administration console.

Read More»

Deploy DPM Remote Administration console via SCCM

In this post I am going to explain the process of deploying the DPM Remote Administration Console to IT admin computers via System Center Configuration Manager 2012. Following are the steps you will need to take to make this happen.

You will need somewhere to group your IT admin computers so that you can target the DPM Remote Administration console to them. Create an IT Admin Computers device collection in SCCM 12. This is what we will use to group the IT admin computers.

clip_image001

Now we need to copy the contents from the DPM media onto your distribution point share. This will be the CCX86 and SCDPM folders.

NOTE: In my lab for this post I copied these to C:\App Deployments.

clip_image002

OTHER INFO: As of right now you need to copy all the contents. I don’t know of the specific files that make up the remote administration console. If I track this down later I will update this blog post. If you need to save space you can copy one or the other folder and use it. CCX86 is for 32Bit computers and SCDPM is for 64Bit computers. If you know you will only deploy to 64Bit computers then get the SCDPM folder only.

The next step is to go and create a package for the DPM Remote Administration console.

Read More»

Deploy DPM Remote Administration console via SCCM

In this post I am going to explain the process of deploying the DPM Remote Administration Console to IT admin computers via System Center Configuration Manager 2012. Following are the steps you will need to take to make this happen.

You will need somewhere to group your IT admin computers so that you can target the DPM Remote Administration console to them. Create an IT Admin Computers device collection in SCCM 12. This is what we will use to group the IT admin computers.

clip_image001

Now we need to copy the contents from the DPM media onto your distribution point share. This will be the CCX86 and SCDPM folders.

NOTE: In my lab for this post I copied these to C:\App Deployments.

clip_image002

OTHER INFO: As of right now you need to copy all the contents. I don’t know of the specific files that make up the remote administration console. If I track this down later I will update this blog post. If you need to save space you can copy one or the other folder and use it. CCX86 is for 32Bit computers and SCDPM is for 64Bit computers. If you know you will only deploy to 64Bit computers then get the SCDPM folder only.

The next step is to go and create a package for the DPM Remote Administration console.

Read More»

Deploy DPM Remote Administration console via SCCM

In this post I am going to explain the process of deploying the DPM Remote Administration Console to IT admin computers via System Center Configuration Manager 2012. Following are the steps you will need to take to make this happen.

You will need somewhere to group your IT admin computers so that you can target the DPM Remote Administration console to them. Create an IT Admin Computers device collection in SCCM 12. This is what we will use to group the IT admin computers.

clip_image001

Now we need to copy the contents from the DPM media onto your distribution point share. This will be the CCX86 and SCDPM folders.

NOTE: In my lab for this post I copied these to C:\App Deployments.

clip_image002

OTHER INFO: As of right now you need to copy all the contents. I don’t know of the specific files that make up the remote administration console. If I track this down later I will update this blog post. If you need to save space you can copy one or the other folder and use it. CCX86 is for 32Bit computers and SCDPM is for 64Bit computers. If you know you will only deploy to 64Bit computers then get the SCDPM folder only.

The next step is to go and create a package for the DPM Remote Administration console.

Read More»