Follow storagepoint on Twitter
All posts tagged 'powershell'

StoragePoint PowerShell Extension Library for SharePoint 2007 and 2010

by JerseyBob 12. July 2010 03:30

The StoragePoint team is pleased to announce the release of the StoragePoint PowerShell Extension Library for SharePoint 2007 and 2010.  This free add-on for StoragePoint 3.0 gives SharePoint admins the ability to manage endpoints, profiles, and jobs/agents within existing or newly created PowerShell scripts. 

The library comes with a command reference (both PDF and within PowerShell via Get-Help) that contains several sample scripts along with a sample script file for creating storage profiles for each site collection, content database, or web application in your farm.  It highlights the use of several of the StoragePoint cmdlets and is also very useful when setting up StoragePoint on a new farm. 

Profile and Endpoint Management

  • Add-Endpoint
  • Add-Profile
  • Add-EndpointToProfile
  • Get-EndpointExists
  • Get-Endpoint
  • Get-AllEndpoints
  • Get-Profile
  • Get-AllProfiles
  • Get-AllEndpointsByProfile

Agent/Job Scheduling

  • Set-OrphanBLOBCleanupJob
  • Set-BLOBExteranlizationJob
  • Set-BLOBRecallJob
  • Set-BLOBMigrateJob
  • Set-ArchivingAgingJob
  • Set-ArchivingMetadataJob
  • Set-ArchivingVersioningJob

BLOB Information and Migration

  • Get-BLOB
  • Get-AllBLOBs
  • Move-BLOB

Examples of what you can do with the PowerShell Extensions...

Add a new storage endpoint
Add-Endpoint -epn MainEndpoint2 -adn FileSystem -conn "PATH=\\Server\blobShare\EP2;AUDITDELETE=False;BUFFERSIZE=8192;SHREDONDELETE=False;"

Take storage endpoint offline
$endpoint = Get-Endpoint -ep MainEndpoint1
$endpoint.Status = 0 
$endpoint.Save()

Displaying all endpoints meeting a certain criteria
$endpoints = Get-AllEndpoints | Where-Object {$_.Name -Like "*Test*"}
ForEach ($endpoint in $endpoints) {$endpoint.Name + " : " + $endpoint.Connection}

Creating multiple profiles using the same endpoint
# Add the common endpoint
Add-Endpoint –epn "Common Endpoint 1" –adn "FileSystem" –conn "path=\\NAS\COMMON"
# Get web app - there are many other ways to do this.
$site = New-Object Microsoft.SharePoint.SPSite("http://spsite")
$webapp = $site.WebApplication
# Iterate through all site collections in web app
foreach($sc in $webapp.Sites)
{
  $startfolder = $sc.RootWeb.Title
  $profilename = $startfolder + " Profile"
  Write-Output "Creating profile for: $startfolder"
  # Create profile
  Add-Profile –pn $profilename –ptype SiteCollection –sid $sc.ID.ToString() –eid "Common Endpoint 1" -EndpointStartFolder $startfolder
  # Cleanup
  $sc.Dispose()
}
# Cleanup
$site.Dispose()

Displaying all BLOB files associated with a SharePoint document
$blobs = Get-BLOB –doc "http://spsite/documents/123.tif"
ForEach ($b in $blobs) {$b.Endpoint.Name + " : " + $b.FilePath}

New Farm Setup Script
FarmProfileSetup.ps1 (2.68 kb)

In addition the the PowerShell Extension Library, we've also released our StoragePoint API for Version 3.  In addition to providing a .NET API for configuring StoragePoint and managing remoted BLOBs it also serves as a reference for the objects returned by some of the PowerShell cmdlets.  The PowerShell Extension Library or API Reference can be downloaded from our Support site under Downloads > StoragePoint > 3.0, with the PowerShell library in the PowerShell folder and the API reference in the Documentation folder.  If you are not a customer and wish to test out the PowerShell extensions or APIs as part of your evaluation of StoragePoint then please send a request to support@storagepoint.com for download instructions.  Once you have the bits you just add our library to your PowerShell session using the Add-PSSnapIn cmdlet.  To ensure that the library is loaded on subsequent loads of the PowerShell console simply add the Add-PSSnapIn command to your profile.  See http://msdn.microsoft.com/en-us/library/bb613488(VS.85).aspx for a reference on managing PowerShell profiles.  Once the library has been added you can use the cmdlets to configure StoragePoint or management BLOBs.

 

We will continue to expand the PowerShell Extension Library and our APIs in future releases with the goal of creating an entirely "headless" installation and configuration experience.  Among other things, this will enable partners to OEM or bundle StoragePoint with their own offering and instrument the installation and configuration of the solution without exposing our tooling.  If you find as you use the PowerShell extensions or APIs that something is missing for your use case then please don't hesitate to leave a comment or shoot us an email at support@storagepoint.com.

 

Powered by BlogEngine.NET 1.5.0.7
Theme by Mads Kristensen

Calendar

<<  September 2010  >>
MoTuWeThFrSaSu
303112345
6789101112
13141516171819
20212223242526
27282930123
45678910

View posts in large calendar