Data Backup and Recovery

SME commands - New-Backup

JSHACHER11
5,478 Views

Hi guys,

** not related to the Toolkit **

I want to run Snapmanager commands from Powershell (New-Backup for example) - to do that I need to use the 'SMEJobLauncher' application:

.\NetApp\Snapmanager for Exchange> SMEJobLauncher New-Backup ....

with SMSQL I can just import/add the Snapin and then run the commands:

>Add-PSSnapin NetApp.SnapManager.SQL.PS.Admin

> New-Backup ...

What would be the equivalent in SME?

cheers

Joel

1 ACCEPTED SOLUTION

vinith
5,478 Views

Hello Joel,

Can you upgrade to the latest version of SME, and retry

Add-PSSnapin NetApp.SnapManager.Exchange.PS.Admin 

These snappin are imported when you open  the snapmanager for exchange cmdlets console

In a normal powershell console, you would need to manually import the snapin using add-pssnapin

View solution in original post

5 REPLIES 5

vinith
5,478 Views

Hey Joel,

All SnapManager's have pssnapins and not modules. you would need to add the pssnapin to start using the cmdlets.

Add-PSSnapin NetApp.SnapManager.Exchange.PS.Admin

Also, here are the list of cmdlets in "NetApp.SnapManager.Exchange.PS.Admin"

JSHACHER11
5,477 Views

JSHACHER11
5,477 Views

thanks Vinith

I don't have that (?!)

vinith
5,479 Views

Hello Joel,

Can you upgrade to the latest version of SME, and retry

Add-PSSnapin NetApp.SnapManager.Exchange.PS.Admin 

These snappin are imported when you open  the snapmanager for exchange cmdlets console

In a normal powershell console, you would need to manually import the snapin using add-pssnapin

JSHACHER11
5,477 Views

Vinith,

I've managed to run the New-Backup command from the PS for SME console (not from the native PS console), which is good enough

thank you

Public