メインコンテンツまでスキップ

Active IQ Unified Manger でアラートスクリプトを実行できない アンパサンドを含むオブジェクト名

Views:
54
Visibility:
Public
Votes:
0
Category:
active-iq-unified-manager
Specialty:
OM
Last Updated:

に適用されます

  • OnCommand Unified Manager 9.5 P1 ( UM )
  • Active IQ Unified Manager 9.6P1 ( AIQUM )
  • Active IQ Unified Manager 9.7P1 ( AIQUM )

: Unified Manager の他のバージョンにも存在する場合があります。

問題

カスタムスクリプトが実行されておらず、該当するオブジェクトのオブジェクト名にアンパサンドが含まれている場合は、この問題が発生する可能性があります。ocum-script.log 以下は、「 qtree スペースがほぼフル」イベントで実行されなかった場合の出力です。

2020-11-03 03:50:47 [DEBUG] [default task-5] [ScriptPlugin:30] - Processing the rest request for script plugin. Event ID : 12
2020-11-03 03:50:48 [INFO ] [ScriptExecutor-7] [AlertScriptService:259] - Detecting command for file : testBP.ps1
2020-11-03 03:50:48 [DEBUG] [ScriptExecutor-7] [AlertScriptService:179] - ------ Script Arguments BEGIN------
2020-11-03 03:50:48 [DEBUG] [ScriptExecutor-7] [AlertScriptService:236] - Escaped String: in string =  Qtree Space Nearly Full, out string = Qtree Space Nearly Full 
2020-11-03 03:50:48 [DEBUG] [ScriptExecutor-7] [AlertScriptService:236] - Escaped String: in string =  svm1:/testvol/test&qtree, out string = svm1:`/testvol`/test&qtree 
2020-11-03 03:50:48 [DEBUG] [ScriptExecutor-7] [AlertScriptService:236] - Escaped String: in string =  0, out string = 0 
2020-11-03 03:50:48 [DEBUG] [ScriptExecutor-7] [AlertScriptService:236] - Escaped String: in string =  1, out string = 1 
2020-11-03 03:50:48 [DEBUG] [ScriptExecutor-7] [AlertScriptService:236] - Escaped String: in string =  1992296, out string = 1992296 
2020-11-03 03:50:48 [DEBUG] [ScriptExecutor-7] [AlertScriptService:236] - Escaped String: in string =  0, out string = 0 
2020-11-03 03:50:48 [DEBUG] [ScriptExecutor-7] [AlertScriptService:236] - Escaped String: in string =  0.0, out string = 0`.0 
2020-11-03 03:50:50 [DEBUG] [ScriptExecutor-7] [AlertScriptService:186] - -eventID : 12 
 -eventName : Qtree Space Nearly Full 
 -eventSeverity : warning 
 -eventSourceID : 785 
 -eventSourceName : svm1:`/testvol`/test&qtree 
 -eventSourceType : QTREE 
 -eventState : NEW 
 -eventArgs : qtreeSpaceNearlyFullThreshold=0,qtreeSpaceFullThreshold=1,diskKbytesLimit=1992296,diskKbytesUsed=0,diskKbytesUsedPercent=0`.0 
 
2020-11-03 03:50:50 [DEBUG] [ScriptExecutor-7] [AlertScriptService:236] - Escaped String: in string =  Qtree Space Nearly Full, out string = Qtree Space Nearly Full 
2020-11-03 03:50:50 [DEBUG] [ScriptExecutor-7] [AlertScriptService:236] - Escaped String: in string =  svm1:/testvol/test&qtree, out string = svm1:`/testvol`/test&qtree 
2020-11-03 03:50:50 [DEBUG] [ScriptExecutor-7] [AlertScriptService:236] - Escaped String: in string =  0, out string = 0 
2020-11-03 03:50:50 [DEBUG] [ScriptExecutor-7] [AlertScriptService:236] - Escaped String: in string =  1, out string = 1 
2020-11-03 03:50:50 [DEBUG] [ScriptExecutor-7] [AlertScriptService:236] - Escaped String: in string =  1992296, out string = 1992296 
2020-11-03 03:50:50 [DEBUG] [ScriptExecutor-7] [AlertScriptService:236] - Escaped String: in string =  0, out string = 0 
2020-11-03 03:50:50 [DEBUG] [ScriptExecutor-7] [AlertScriptService:236] - Escaped String: in string =  0.0, out string = 0`.0 
2020-11-03 03:50:50 [DEBUG] [ScriptExecutor-7] [AuthenticationUtils:73] - Successfully logged in for script execution.
2020-11-03 03:50:51 [INFO ] [ScriptExecutor-7] [AlertScriptService:108] - Script execution of file : testBP.ps1 for EventID : 12 in progress..
At line:1 char:183
+ ... ing -eventSourceID 785 -eventSourceName svm1:`/testvol`/test&qtree -e ...
+                                  ~
The ampersand (&) character is not allowed. The & operator is reserved for 
future use; wrap an ampersand in double quotation marks ("&") to pass it as 
part of a string.
   + CategoryInfo      : ParserError: (:) [], ParentContainsErrorRecordEx 
  ception
   + FullyQualifiedErrorId : AmpersandNotAllowed

この例では、 qtree をテストします。PowerShell ではアンパサンドを処理できません。このテストでは、 qtree と CIFS 共有の両方でこの問題が発生する可能性がありますが、他のオブジェクトではこの問題が発生する可能性があります。

 

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.