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
b35b39a2
Commit
b35b39a2
authored
Mar 28, 2006
by
Robert Ricci
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Exit with non-zero status if the hosts file doesn't use the naming
convention the script expects.
parent
0e5ebf89
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
pelab/monitor/gen-ip-mapping.pl
pelab/monitor/gen-ip-mapping.pl
+9
-0
No files found.
pelab/monitor/gen-ip-mapping.pl
View file @
b35b39a2
...
...
@@ -19,12 +19,21 @@ while (<HOSTS>) {
}
}
my
$lines_output
=
0
;
foreach
my
$elabnode
(
keys
%elabips
)
{
my
$plabnode
=
$elabnode
;
$plabnode
=~
s/elab/planet/i
;
if
(
exists
$plabips
{
$plabnode
})
{
print
"
$elabips
{
$elabnode
}
$plabips
{
$plabnode
} elabc-
$elabnode
\n
";
$lines_output
++
;
}
}
close
HOSTS
;
if
(
$lines_output
==
0
)
{
warn
"
Hosts file had no names I recognize
\n
";
exit
1
;
}
exit
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