跳转到主内容

GET-SmClone:对象引用未设置为对象的实例

Views:
73
Visibility:
Public
Votes:
0
Category:
snapcenter
Specialty:
snapx
Last Updated:

适用场景

  • SnapCenter 4.x
  • 使用PowerShell脚本实现第三方工作流自动化

问题描述

在从PS命令行界面运行SnapCenter PowerShell cmdlet Get-SmCloneRemove-SmClone 时,您会看到错误。
 
PS <drive letter>:\<path to script file>\<script filename>.ps1
Get-SmClone : Object reference not set to an instance of an object.
At <drive letter>:\<path to script file>\<script filename>.ps1:33 char:1
+ Get-SmClone | where {$_.CloneName -like $clonename+"*"}
+ ~~~~~~~~~~~
+ CategoryInfo          : InvalidResult: (SnapManager.Client.PSModule.GetClone:GetClone) [Get-SmClone], Exception
+ FullyQualifiedErrorId : Get Clone failed,SnapManager.Client.PSModule.GetClone

Sign in to view the entire content of this KB article.

New to NetApp?

Learn more about our award-winning Support

NetApp provides no representations or warranties regarding the accuracy or reliability or serviceability of any information or recommendations provided in this publication or with respect to any results that may be obtained by the use of the information or observance of any recommendations provided herein. The information in this document is distributed AS IS and the use of this information or the implementation of any recommendations or techniques herein is a customer's responsibility and depends on the customer's ability to evaluate and integrate them into the customer's operational environment. This document and the information contained herein may be used solely in connection with the NetApp products discussed in this document.