Created
February 19, 2013 22:51
-
-
Save dsingley/4990956 to your computer and use it in GitHub Desktop.
set the text displayed on a Dell PowerEdge server's LCD
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -e | |
set -u | |
MAX_LENGTH=14 | |
text="$*" | |
length=$(echo -n "${text}" | wc -c) | |
if [ ${length} -gt ${MAX_LENGTH} ]; then | |
echo "'${text}' is too long, max is ${MAX_LENGTH} characters" | |
exit 1 | |
fi | |
ascii=$(echo -n "${text}" | xxd -i | sed -e 's/^ //' -e 's/, */ /g') | |
ipmitool raw 0x6 0x58 193 0 0 ${length} ${ascii} |
Author
dsingley
commented
Feb 22, 2013
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment