Commit c1591d30 authored by Leigh B Stoller's avatar Leigh B Stoller
Browse files

Add check/invoke of NewSnmpit feature to test new version of snmpit in

Utah.
parent 95630482
......@@ -479,14 +479,26 @@ if ($pid && $eid) {
if ($MAINSITE && $TB eq "/usr/testbed" && !$opt{Z}) {
my $group = (defined($experiment) ? $experiment->GetGroup() : undef);
$EmulabFeatures::verbose = 0;
my $newsnmpit =
my $robsnmpit =
(EmulabFeatures->FeatureEnabled("RobSnmpit",
$this_user, $group, $experiment));
if ($newsnmpit) {
if ($robsnmpit) {
# Rob, change this path:
my $newpath = "$TB/bin/snmpit";
print STDERR "Invoking alternate snmpit from $newpath\n";
unshift(@SAVEARGV, "-Z");
exec $newpath, @SAVEARGV;
die("*** $0:\n".
" Could not exec $newpath: $!");
}
my $newsnmpit =
(EmulabFeatures->FeatureEnabled("NewSnmpit",
$this_user, $group, $experiment));
if ($newsnmpit) {
my $newpath = "$TB/bin/snmpit_new";
print STDERR "Invoking alternate snmpit from $newpath\n";
unshift(@SAVEARGV, "-Z");
exec $newpath, @SAVEARGV;
die("*** $0:\n".
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment