Skip to content

Commit

Permalink
cluster-ipmi-remote-access: Prompt for IPMI user ID
Browse files Browse the repository at this point in the history
cluster-dhcp-cleanup: Edit dhcp.conf first to reveal lease hostnames
  • Loading branch information
Jason Bacon committed Nov 22, 2021
1 parent f0bd1ce commit 4a4603f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Common/Sys-scripts/cluster-dhcp-cleanup
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ fi
case $(auto-ostype) in
FreeBSD)
service isc-dhcpd stop
for file in /var/db/dhcpd/dhcpd.leases /usr/local/etc/dhcpd.conf /etc/hosts; do
for file in /usr/local/etc/dhcpd.conf /var/db/dhcpd/dhcpd.leases /etc/hosts; do
$EDITOR $file
done
service isc-dhcpd start
Expand Down
8 changes: 7 additions & 1 deletion Common/Sys-scripts/cluster-ipmi-remote-access
Original file line number Diff line number Diff line change
Expand Up @@ -156,12 +156,18 @@ else
printf "Using existing $pw_file...\n"
fi

printf "IPMI user ID? [2] "
read userid
if [ 0$userid = 0 ]; then
userid=2
fi

for node in $selected_nodes; do
printf "\n============================================================\n"
printf "Configuring $node...\n"
printf "============================================================\n\n"

ssh $node auto-ipmi-remote-access on
pw=$(cat $pw_file)
ssh -t $node auto-ipmi-passwd --passwd $pw
ssh -t $node auto-ipmi-passwd --user $userid --passwd $pw
done

0 comments on commit 4a4603f

Please sign in to comment.