メインコンテンツへスキップ

PythonスクリプトはシステムCLIを実行して応答を返しますが、CLIは正常に実行されませんでした

Views:
12
Visibility:
Public
Votes:
0
Category:
ontap-9
Specialty:
core
Last Updated:

環境

  • ONTAP 9
  • ONTAP REST API Pythonクライアントライブラリ (NetApp Pythonモジュール)

問題

  • Pythonスクリプトは、次のシステムCLIが正常に実行されたことを返します。

2024-02-27 16:06:52,529 /opt/python-netapp/./volume_move_unjoin.py:274 INFO: Disabling auto_giveback
Set auto-giveback, hwassist, and auto-giveback-after-panic to false
2024-02-27 16:06:52,941 /opt/python-netapp/./volume_move_unjoin.py:378 DEBUG: -----------------
2024-02-27 16:06:53,357 /opt/python-netapp/./volume_move_unjoin.py:379 DEBUG: Request to NetApp
2024-02-27 16:06:53,781 /opt/python-netapp/./volume_move_unjoin.py:380 DEBUG: -----------------
<system-cli>
 <args>
 <arg>storage</arg>
  <arg>failover</arg>
  <arg>modify</arg>
  <arg>-node</arg>
  <arg>*</arg>
  <arg>-auto-giveback</arg>
  <arg>false</arg>
 <arg>-hwassist</arg>
  <arg>false</arg>
  <arg>-auto-giveback-after-panic</arg>
 <arg>false</arg>
 </args>
</system-cli>

2024-02-27 16:06:54,251 /opt/python-netapp/./volume_move_unjoin.py:389 DEBUG: --------------------
2024-02-27 16:06:54,657 /opt/python-netapp/./volume_move_unjoin.py:390 DEBUG: Response from NetApp
2024-02-27 16:06:55,074 /opt/python-netapp/./volume_move_unjoin.py:391 DEBUG: --------------------
<results status="passed">
 <cli-output></cli-output>
 <cli-result-value>0</cli-result-value>
</results>

2024-02-27 16:06:55,483 /opt/python-netapp/./volume_move_unjoin.py:1891 INFO: ===== system_cli(command: storage failover modify -node * -auto-giveback
false -hwassist false -auto-giveback-after-panic false) =====
2024-02-27 16:06:55,913 /opt/python-netapp/./volume_move_unjoin.py:1910 INFO: None
Done
2024-02-27 16:06:56,321 /opt/python-netapp/./volume_move_unjoin.py:277 INFO: Completed: Disabling auto_giveback

  • AUDIT-MLOG-TXT.GZ に、システム CLIの正常な実行も示します。

Tue Feb 27 2024 16:06:54 +00:00 [kern_audit:info:2000]Vserver:ontapi :: Host-IP:55330 :: Vserver:api :: <netapp version="1.31" xmlns="http://www.netapp.com/filer/admin" nmsdk_version="9.8P6" nmsdk_platform="" nmsdk_language="Python"><system-cli><args><arg>storage</arg><arg>failover</arg><arg>modify</arg><arg>-node</arg><arg>*</arg><arg>-auto-giveback</arg><arg>false</arg><arg>-hwassist</arg><arg>false</arg><arg>-auto-giveback-after-panic</arg><arg>false</arg></args></system-cli></netapp> :: Pending:
Tue Feb 27 2024 16:06:54 +00:00 [kern_audit:info:2000]Vserver:ontapi :: Host-IP:55330 :: Vserver:api :: system-cli :: Success:

  • APACHE-ACCESS APIを正常に受信したことを示すログ:

Host-IP pii_encrypt/pJLKxrQRL8V8sHH6uczbyblP2YoL+VzVygFMqbQIXQ0=/pii_encrypt 4294967295 api [Tue Feb 25 17:40:41.047101 2025 +0000] "POST /servlets/netapp.servlets.admin.XMLrequest_filer HTTP/1.1"200 265 6741 - 0 + 127.0.0.1 system-cli

  • この期間に発生したただし、関連のEMSイベントはありません:

Tue Feb 25 17:53:05 +0000 [Node-01: svc_queue_thread: cf.setAutoGiveback:debug]: params: {'value': '0'}

  •  クラスタシェルからオプションが変更されました。

Tue Feb 25 2025 17:53:05 +00:00 [kern_audit:info:1981]Vserver:console :: console :: Vserver:cs_admin :: storage failover modify -node * -auto-giveback false -hwassist false -auto-giveback-after-panic false :: Pending
Tue Feb 25 2025 17:53:05 +00:00 [kern_audit:info:1981]Vserver:console :: console :: Vserver:cs_admin :: storage failover modify -node * -auto-giveback false -hwassist false -auto-giveback-after-panic false :: Success: 2 entries were modified.

  • このシステムCLI が正常に実行される前後の他のシステムCLIでは、関連 イベントが発生しました。

 

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.