forked from RexOps/Rex
-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
enhancementNew feature or requestNew feature or request
Description
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:
Rex/lib/Rex/Interface/Shell/Idrac.pm
Lines 31 to 35 in 1a0e85e
| 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 requestNew feature or request