Skip to content

Implement Rex interface for (Supermicro) SMASH-CLP System Management Shell #16

@alip

Description

@alip

Rationale: Automate reboot of supermicro servers (so provision is less manual)

What we have on a typical supermicro server:

ATEN SMASH-CLP System Management Shell, version 1.05
Copyright (c) 2008-2009 by ATEN International CO., Ltd.
All Rights Reserved
-> help
/

  The managed element is the root

  Verbs :
        cd
        show
        help
        version
        exit
-> version                                                                                                                                                               
ATEN SMASH CLP Shell Version 1.05     

Rex has a similar interface for Idrac:

eval {
($output) = $con->direct_exec('version');
1;
};
if ( $output && $output =~ m/SM CLP Version: / ) {

we need exactly the same functionality over the module except for the regex ^^.

without this, rex will incorrectly assume /bin/sh.

Upstream:

This feature is useful for the community, so it's a good idea to ship it upstream and spread the love.

History:

A busybox shell used to be present on this type of motherboards but was removed because sekurity.

The version we use currently is new enough:

-> shell sh
shell command not support now.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions