Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
#!/bin/bash | |
SALTMINIONS=$(sudo salt-key -L | grep -v "Rejected:" | grep -v "Accepted Keys:" | grep -v "Unaccepted Keys:") | |
echo -n "Remote hosts [sudo] password: " | |
read -s remote_password | |
echo | |
for minion in $SALTMINIONS | |
do |
#!/bin/bash | |
username=$1 | |
password=$2 | |
if [[ ! $2 ]]; then | |
read -sp "Password for $1: " password | |
echo | |
fi | |
if [[ $3 ]]; then |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
I have moved this over to the Tech Interview Cheat Sheet Repo and has been expanded and even has code challenges you can run and practice against!
\
You can find the MAC address for LAN1/eth0 (not the BMC MAC) via the SuperMicro IPMI interface by running the following command:
$ ipmitool -U $IPMI_USER -P $IPMI_PASS -H $IPMI_HOST raw 0x30 0x21 | tail -c 18
The eth0 MAC address will be output in this format:
00 25 90 f0 be ef