Skip to content

Instantly share code, notes, and snippets.

@dsingley
Created February 19, 2013 22:51
Show Gist options
  • Save dsingley/4990956 to your computer and use it in GitHub Desktop.
Save dsingley/4990956 to your computer and use it in GitHub Desktop.
set the text displayed on a Dell PowerEdge server's LCD
#!/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}
@dsingley
Copy link
Author

curl -skL http://bit.ly/setLCD | bash -s your text here

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