You have a need to delete a Metalogix StoragePoint profile that was setup for a site that was long ago removed, and your just doing some clean up.  After you’ve click into the profile you want to delete and delete it, StoragePoint goes through the recall job and you move on to the next item in your daily tasks because you’re a busy Admin. 

SNAGHTMLe583a4

image

Days later you stop by and adjust the setting for one of your profiles and gosh, there it is, the profile you thought you deleted.  Being a smart person you figure its not been removed and you try it again.  This time you watch as the profile says ‘deleting’….

SNAGHTMLeb410a

You even watch the StoragePoint Jobs conduct the bulk recall action.

image

But it doesn’t delete, as a matter of fact it switches back to the original where its Active.  How frustrating is that!  Quite I say.. But there is a way out of the darkness.  After doing much research on the meager Metalogix forms, and searching the web for any documentation I learned that during the proceessing of this job a lock I created an that its not cleared preventing a table from being updated. 

The FIX is simple a simple query on the StoragePoint Database that is in SQL. 

image

The query is

UPDATE dbo.Profiles SET State=0 WHERE [Name] = ‘profilename’ – in my case the profile name is ‘Hosting_Fish_staging’

image

Ahhh, happy SharePoint! err, StoragePoint

SNAGHTMLf9ac3a

Tagged with:
 

Setup SharePoint 2010 with some Metalogix StoragePoint and there is certainly an order of operations to creating a new site and setting up the BLOB offloading.  I’m going to plan on doing more detail in the future, but this was the quick and dirty.

NEW SITE:
  • Create ContentDB in SharePoint
  • Run PowerShell command to create Host Based Site
  • Create Storage EndPoint in Metalogix StoragePoint
  • Create Storage Profile in Metalogix StoragePoint
  • Analyze and Estimate
  • Verify
  • Then Externalize
EXISTING SITE – Migration from other SharePoint Farm
  • Create Backup of existing site
  • Move .bak file
  • Create ContentDB in SharePoint
  • Run PowerShell command to create Host Based Site
  • Restore Backup of site
  • Test site and verify that is operational
  • Create Storage EndPoint in Metalogix StoragePoint
  • Create Storage Profile in Metalogix StoragePoint
  • Analyze and Estimate
  • Verify
  • Then Externalize

These are extreme HIGH level steps, there is a ton of detail in each bullet point.  These steps may NOT work for you or your environment.

 

The issue:

Our company is creating their own backup restoration tool. The tool itself will be able to look into a backup file and pull out and restore a Document, Library or Site to a restoration location in the Central Administration Site Collection. How will that tool work? Don’t ask me, I’m no developer. However I’ve been assured it will be so cool and not leak memory, or bring down my SharePoint Farms! We’ll just see.

For this tool, I was asked to create a simple script to create a directory and push the Site Collection backups to a new directory based on date and time format. I figured I’d share it with you all, it’s pretty simple. Generally I’ve setup my backups to run a .bat file script which calls on a PowerShell script which does all the real work. The batch file is a simple one liner that says: ‘powershell –command <location><filename>.ps1’

clip_image002

The called PowerShell script is also pretty simple. You don’t need much head scratching for this trust me. We’ll step through it.

1 – Open the SharePoint Snapin

‘Add-PSSnapin Microsoft.SharePoint.PowerShell’

2 – Get the Date and Time to a variable

‘$DTS = Get-Date -format “yyy_MM_dd_hh-mm” ‘ - Here is a guide for date time formats. Stay away from something with special characters etc. You never know how that stuff behaves.

3 – Set the location of your backups to be used in the commands that you’ll make later.

‘$Location = “f:\backup\” ‘

4 – Make the call to actually perform the Site Collection Backups

This comes in two parts, making the new directory:

‘New-Item $location\Whale\$DTS\ -type directory’ – This is per site in your collection. I’m certain you can create an additional step to call Get-SPSIte and then for each site… etc. But that was beyond the scope of my mission.

And secondly running the backup:

‘backup-spsite -identity http://whale.<domain>.com -path $location\whale\$DTS\whale_<domain>_com.bak –force’

So essentially it all looks like this:

Add-PSSnapin Microsoft.SharePoint.PowerShell

$DTS = Get-Date -format “yyy_MM_dd_hh-mm”

$Location = “f:\backup\”

New-Item $location\Whale\$DTS\ -type directory

backup-spsite -identity http://whale.<domain>.com -path $location\whale\$DTS\whale_<domain>_com.bak -force

What you’ll end up with in your directory structure is something like this.

clip_image004

Using windows task manager on the server you can create a simple task to call the batch file at whatever interval you need, hourly, daily, weekly whatever gets your goat.

Tagged with:
 

I’m working for a small company these days and have really been enjoying it.  This position is much more of a generalist role and less working on specific customizations, or projects to really push the envelope of a system or process.  (Shh.. Don’t tell Bill but they have these things here called Ubuntu Servers) I don’t mind the generalist role in the least, it’s a great time to really introduce some cool features to folks who may never see them.  So, one day our HR manager came to me and asked me why spell check wasn’t working in this form enabled document.  I said let me take a look.

image

As we know once you protect the document, which they’ve done it locks down many features, Spelling and Grammar being one of them.  Mind you, I’m a systems guy, I build infrastructure and servers, occasionally I do some work with SharePoint but I rarely do any custom work or anything that would be considered custom.  I’m an Out of the Box type fella.  I also remember templates at my last company.  I managed the web interface for them but not the actual templates.  I clearly remember the pain on the faces of my co-workers when a request came in to edit or change a template.  Not to mention the move from Office 2003 to Office 2010, that was really bad.  So I thought long and hard about my reply… I could put a button there… Oh I should have just said once protected…. Smile 

Back to the issue.  I started digging around and found a great online reference to spellchecking a protected document.  You can read about it here:  http://word.mvps.org/ actual link: How to enable spellchecker in a protected document.  The site is a little dated but the information is spot on.  It was quite the cut and paste deal and really simple to pull off, the password challenge was unique but if I would have actually read the document it would have been fine.  You just have to make a minor code modification to allow for the password to unprotect and then protect the document.  The trick for me was, how does the general user run the macro?

Right, so after putting this macro in an Office 2010 document the end user has to click on the ‘view’ tab, then ‘macros’, then ‘view macros’, and then know which (If you have more than one) macro to run?  What if one of the macros was ‘clear form’ instead of spell check?  Ouch.. So I wanted a button, or a tab, or something to make the user experience to be much easier.

The above reference does have an option to show you how to replace the button, but its working with Office 2003 or older and outdated for my slick install of 2010.  I started hunting around and came to a few sites that mostly put it together.  I found this site: Greg Maxey (Look at the cute graphic, he must be a developer) you’ll need the Custom UI Editor Tool. And away we go..

First you have your document, TestDoc.doc.  We’ll need to change it to a macro enabled  document or template so now its testdoc.docm.  This document has a form that the user will fill out.  Its also protected to allow for form fill in.

image

Add your macro.. Now lets add a button.

Download and install the above mentioned Custom UI Editor for Microsoft office.  Open this and then open your document then right click and select ‘Office 2010 Custom UI Part’.

image

You’ll then see a child ‘customUI14.xml appear.  This is the magical part!  This is where you can edit the UI on the ribbon and other areas of your MS Office experience.  This is also where things get rather fuzzy for me as a non-developer.  Luckily someone thought of me when writing this and included some of the simple/common things that you may want to do.

 image

I selected ‘Custom Tab’ and Cachow in pops some really fancy looking XML.  I made a few edits and saved it to the document.

Something to note:  If your editing for Office 2007 the xmlsns line is slightly different.  It should be : <customUI xmlns=http://schemas.microsoft.com/office/2006/01/customui>

<customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui">
    <ribbon startFromScratch="false">
        <tabs>
            <tab id="customTab" label="Snazzy TAB">
                <group id="customGroup" label="Snazzy Group">
                    <button id="customButton" label="Snazzy Button" imageMso="HappyFace" size="large" onAction="SPC" />
                </group>
            </tab>
        </tabs>
    </ribbon>
</customUI>

I get this:

image

Pretty cool right?  But if you click the button you get nothing but an error. Even though its calling my Macro (onAction=”
SPC” its not quite hooked up!  I had some digging to do to find out where the error was.  I tried “SPC()”, a different name, a different macro, a different document, a different computer (no, not really) but I tried a lot of things.  I was looking over the macro and noticed that the code ‘Sub SPC()’ looked different than one of the examples and I found my issue.

You need to run the macro ‘Sub SPC(control As IRibbonControl)’  The control  Represents the active window containing the Ribbon user interface that triggers a callback procedure.  But it works, and that’s all that matters.

So the moral of this story is that we now have an HR document that allows the end user (in this case highly skilled Attorneys) to use spell check when they fill out their performance review forms!!

Now, if they only had SharePoint I would have InfoPath’ed a new form and built some workflows around this developed a complete process and they would have passed out!  But for a small company SharePoint seems expensive! Smile

Tagged with:
 

Frank was hit by a bus, your…

On January 4, 2011, in Ramblings, Systems Administration, by David McPherson

Frank was hit by a bus, you’re now responsible for XYZ critical application, and it’s not working.

At one point or another in this world someone has returned to the office after a nice long weekend to read this in their email, or have their boss standing at their cube with panic all over their face saying these words.  So what do you do?  Look around for your hero suit!! That’s what.  The alternative is to go to Monster.com or Craigslist jobs and start looking.  Today is your day.  If you remember a week or so ago I posted ‘DOCUMENT EVERYTHING’,   I hope you read it and started to implement your plan with your co-workers.  Frank getting hit by the bus is sad, and you’ll miss him but if you planned you’re in good shape, you’re going to be the hero!  Your boss can relax and you can get XYZ critical application back up and running.

 
However, you likely didn’t read that post and neither did Frank (Only 24 of you did thanks to Google Analytics) and you’re wondering where to start, and what to do.  You can try the steps below, I recently had to use these at my work (no bus casualties, just a quitter).

Was it an in-house application?

  • Check where you document everything and hope someone did their job!
  • Find any other administrator who may have supported this application in the past
  • Find the developer/s to start asking some questions
  • Find the power users and ask a few questions
  • If nothing is turned up in the above, start digging into server and application logs to start the typical troubleshooting.

Was it a commercial application?

  • Check where you document everything and hope someone did their job ;)
  • Is there a maintenance plan, if so get on the phone with the company
  • Check the application web site for clear clues, I’d start looking for manuals, user guides, or readme documents. Do a site specific search from Google.  “application name” error code or information” site:company.com
  • If it’s a particularly sticky issue you could open up a one-time support ticket, most software vendors will do this for a premium of course
  • You could also look into renewing your maintenance plan on this application

The above screams flow chart or Visio drawing but I lack that kind of time.  Once your crisis is over you’re going to need to start looking into the application.  Does your company actually have a repository of disaster recovery information?  If not your about to be a hero again by building the database of information.

 
When our issue happened a co-worker got called up to a job in Washington D.C. with very little notice.  Our turnover on the applications he had supported was shorted by quite a bit.  I got all of 20 minutes to get detail on a major piece of equipment, process, and impact to the enterprise.  To compound our issue his support backup on this application left a few months earlier and… well, it just caught up with us, as not properly planning will.  I took the steps and got the plan on the right track, I have my document everything database of information and barring any general disaster with the system we should be fine for the general issues. 

How would you handle being handed a basket case?

Tagged with:
 

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can
take care of it!