Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
emulab-devel
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
143
Issues
143
List
Boards
Labels
Service Desk
Milestones
Merge Requests
6
Merge Requests
6
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
emulab
emulab-devel
Commits
f9214ab9
Commit
f9214ab9
authored
May 16, 2012
by
Leigh B Stoller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change the administrator password on the ilo.
Also add an option to do the control node ilo by hand.
parent
3d74dfb4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
7 deletions
+24
-7
install/genirack/initnodes.pl.in
install/genirack/initnodes.pl.in
+24
-7
No files found.
install/genirack/initnodes.pl.in
View file @
f9214ab9
...
...
@@ -21,7 +21,7 @@ sub usage()
exit
(
-
1
);
}
my
$optlist
=
"
dni
";
my
$debug
=
1
;
my
$debug
=
0
;
my
$impotent
=
0
;
my
$ipmode
=
0
;
my
%ilomap
=
();
...
...
@@ -99,8 +99,9 @@ my $elabmanpswd = `cat $ILOPSWD`;
chomp
(
$elabmanpswd
);
# The XML goo.
my
$setupgoo
=
`
cat
$SRCDIR
/setupilo.xml
`;
my
$resetgoo
=
`
cat
$SRCDIR
/resetilo.xml
`;
my
$setupgoo
=
`
cat
$SRCDIR
/setupilo.xml
`;
my
$resetgoo
=
`
cat
$SRCDIR
/resetilo.xml
`;
my
$chpswdgoo
=
`
cat
$SRCDIR
/chpswd.xml
`;
# The pubkey.
my
$pubkey
=
`
cat
${DSAKEY}
.pub
`;
...
...
@@ -261,10 +262,24 @@ foreach my $map (values(%macmap)) {
}
}
#
# This changes the Administrator password. We do this cause it is
# an 8 digit number, and the login is well known. So eventually it
# can be guessed.
#
# We set it the same as the elabman password for now, but that
# might change.
#
$xmlgoo
=
sprintf
(
$chpswdgoo
,
$ilopswd
,
$elabmanpswd
);
if
(
SendXML
(
$ip
,
$xmlgoo
))
{
Fatal
("
Failed to send chpswd xml to
$ip
");
}
#
# This resets the ilo so that it will DHCP again and get its new IP.
# Note different password.
#
$xmlgoo
=
sprintf
(
$resetgoo
,
$
ilo
pswd
);
$xmlgoo
=
sprintf
(
$resetgoo
,
$
elabman
pswd
);
if
(
SendXML
(
$tempIP
,
$xmlgoo
))
{
Fatal
("
Failed to send xmlgoo to
$tempIP
");
}
...
...
@@ -449,10 +464,12 @@ sub SetupControlNode($$)
my
$xmlgoo
=
sprintf
(
$setupgoo
,
$ilopswd
,
$elabmanpswd
,
$pubkey
);
if
(
SendXML
(
$ip
,
$xmlgoo
))
{
Fatal
("
Failed to send xmlgoo to
$ip
");
Fatal
("
Failed to send setup xml to
$ip
");
}
$xmlgoo
=
sprintf
(
$chpswdgoo
,
$ilopswd
,
$elabmanpswd
);
if
(
SendXML
(
$ip
,
$xmlgoo
))
{
Fatal
("
Failed to send chpswd xml to
$ip
");
}
return
0
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment