Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emulab
emulab-devel
Commits
9726d5c4
Commit
9726d5c4
authored
Oct 25, 2006
by
Leigh B. Stoller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Quickly add option to spew the event list.
parent
16e06c82
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
3 deletions
+17
-3
tbsetup/tbreport.in
tbsetup/tbreport.in
+4
-1
www/showexp.php3
www/showexp.php3
+13
-2
No files found.
tbsetup/tbreport.in
View file @
9726d5c4
...
...
@@ -63,7 +63,7 @@ my $hasplab = 0;
my
%ipmap
;
my
%membermap
;
getopts
('
hnmdlevbrf
',
\
%opt
);
getopts
('
hnmdlevbrf
a
',
\
%opt
);
if
(
$opt
{
h
})
{
exit
&usage
;
...
...
@@ -98,6 +98,9 @@ if ($opt{l}) {
}
if
(
$opt
{
e
})
{
$showevents
=
1
;
if
(
$opt
{
a
})
{
$verbose
=
1
;
}
}
if
(
$opt
{
r
})
{
$showroutes
=
1
;
...
...
www/showexp.php3
View file @
9726d5c4
...
...
@@ -78,12 +78,13 @@ function Show($which, $arg1, $arg2)
ob_end_clean
();
}
elseif
(
$which
==
"details"
)
{
$showevents
=
$arg1
;
$output
=
array
();
$retval
=
0
;
$html
=
""
;
# Show event summary and firewall info.
$flags
=
"-b -e -f"
;
$flags
=
(
$showevents
?
"-e -a"
:
"-b -e -f"
)
;
$result
=
exec
(
"
$TBSUEXEC_PATH
$uid
$TBADMINGROUP
"
.
"webreport
$flags
$pid
$eid
"
,
...
...
@@ -97,9 +98,15 @@ function Show($which, $arg1, $arg2)
}
$html
.
=
"</div></pre>
\n
"
;
$html
.
=
"<button name=showevents type=button value=1"
;
$html
.
=
" onclick=
\"
ShowEvents();
\"
>"
;
$html
.
=
"Show Events</button>
\n
"
;
$html
.
=
"            "
;
$html
.
=
"<button name=savedetails type=button value=1"
;
$html
.
=
" onclick=
\"
SaveDetails();
\"
>"
;
$html
.
=
"Save</button>
\n
"
;
$html
.
=
"Save
to File
</button>
\n
"
;
}
elseif
(
$which
==
"graphs"
)
{
$graphtype
=
$arg1
;
...
...
@@ -588,6 +595,10 @@ echo "<script type='text/javascript' language='javascript'>
x_Show('graphs', which, 0, Show_cb);
return false;
}
function ShowEvents() {
x_Show('details', 1, 0, Show_cb);
return false;
}
function SaveDetails() {
window.open('spitreport.php?pid=
$pid
&eid=
$eid
',
'_blank','width=700,height=400,toolbar=no,"
.
...
...
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