【问题标题】:mcafee API using python: Url open error使用 python 的 mcafee API:Url 打开错误
【发布时间】:2017-05-11 15:14:28
【问题描述】:

我尝试使用 Python 从 PowerShell 连接到远程 McAfee ePO,但最终收到此错误。

'mcafee.CommandInvokerError: 无法访问服务器 192.168.58.133:8443。错误/原因:'

有人可以帮忙吗?

【问题讨论】:

  • 您能附上您的代码吗?

标签: python powershell


【解决方案1】:
# -*- coding: utf-8 -*-
import mcafee
import string
import getpass
import os, sys
import sys
print sys.getdefaultencoding()
import ssl
ssl._create_default_https_context = ssl._create_unverified_context

这实际上解决了我所有的麻烦。

【讨论】:

    猜你喜欢
    • 2014-01-02
    • 1970-01-01
    • 2015-08-22
    • 2014-08-29
    • 2023-03-06
    • 1970-01-01
    • 2014-01-06
    • 2013-08-19
    相关资源
    最近更新 更多