PowerFlex:MDM showevents.py 失败并显示无效语法

Summary: showevents 执行失败,并显示无效语法错误

This article applies to This article does not apply to This article is not tied to any specific product. Not all product versions are identified in this article.

Symptoms

MDM 安装在运行 Red Hat Enterprise Linux 8.x 或 CentOS 8.x 的主机上。

症状

在以下情况下会出现以下错误: showevents.py 直接或使用其他实用程序(例如“获取信息”)执行。
 

File "/opt/emc/scaleio/mdm/bin/showevents.py", line 22
except ImportError,e:
^
SyntaxError: invalid syntax

 

影响

无法查看或收集 MDM 事件。

Cause

而 showevents.py 实用程序仅与 Python 2 兼容。

Resolution

执行以下步骤。

  • 确认 Python 2 在所有 MDM 管理器主机上都可用。
  • 将实用程序的解释器更改为 Python 2。
    将实用程序的第一行(shebang 序列)更改为以下内容:

    #!/usr/bin/python2
    	

Additional Information

受影响的版本

VxFlex OS 3.0.x

已修复问题的版本

VxFlex OS 3.5

Affected Products

Red Hat Enterprise Linux Version 8, PowerFlex Software, VxFlex Product Family
Article Properties
Article Number: 000063351
Article Type: Solution
Last Modified: 03 Nov 2025
Version:  6
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.