Skip to content

ULTM hardware type not supported.  #195

Description

@apozass

Hello Team,

I've found that the UCS model ULTM-Cxxx is not supported, I've checked the code and as stated in the post #130

In function "_validate_model" of imcsession.py:

valid_model_prefixes = ["UCSC", "UCS-E", "UCSS", "HX"]

should be

valid_model_prefixes = ["UCSC", "UCS-E", "UCSS", "HX", "ULTM"]

- Console logs and stack trace, if any.

PYTHON testing:

>>> from imcsdk.imchandle import ImcHandle
>>> handle=ImcHandle("1.1.1.1","USER","PSWD")
>>> handle.login()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/user/opt/anaconda3/envs/py2/lib/python2.7/site-packages/imcsdk/imchandle.py", line 143, in login
    return self._login(auto_refresh=auto_refresh, force=force, timeout=timeout)
  File "/Users/user/opt/anaconda3/envs/py2/lib/python2.7/site-packages/imcsdk/imcsession.py", line 589, in _login
    raise ImcLoginError("Not a supported server.")
imcsdk.imcexception.ImcLoginError: Not a supported server.

IMCSDK version in use

Name: imcsdk
**Version: 0.9.7**
Summary: python SDK for Cisco UCS IMC
Home-page: https://github.com/ciscoucs/imcsdk
Author: Cisco Systems
Author-email: ucs-python@cisco.com
License: http://www.apache.org/licenses/LICENSE-2.0
  • Your operating system name and version.

macOS Catalina

  • Any details about your local setup that might be helpful in troubleshooting.

Using Anaconda environment with python 2.7

$ python -V
Python 2.7.17 :: Anaconda, Inc.
  • Detailed steps to reproduce the bug.

Try to run login() method to a UCS model ULTM-C220-M5SX-CM

HOSTNAME /chassis # show detail 
Chassis:
    Power: on
    Serial Number: <SERIAL>
    Product Name: 
    PID : ULTM-C220-M5SX-CM
    UUID: 
    Locator LED: on
    Description: 
    Asset Tag: Unknown

I've changed the Prefix list in valid_model_prefixes and was able to successfully run the login() method.

LOGS
UTLM_IMSDK_LOGS.log

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions