#!/usr/bin/perl
#
# $Copyright$
#
# $Id: reset.seq,v 1.1.1.1 2000/09/28 00:14:48 sekiya Exp $
########################################################################
BEGIN { $V6evalTool::TestVersion = '$Name: $ '; }
use V6evalTool;
use nd;
ndOptions(@ARGV);
# The following generate debugging messages.
$nd::debug=$ndOpt_v|$ndOpt_vv;
# You can specifies debug optons to a remote control program.
# If you want to know more detail, please see the following:
# - V6evalTool.pm: perldoc V6evalTool
# - V6evalRemote.pm: perldoc V6evalRemote
$nd::remote_debug="-o1" if $ndOpt_vv;
#
#
#
$type=$V6evalTool::NutDef{Type};
if($type ne host && $type ne router) {
vLogHTML(ndErrmsg("ERROR: $V6evalTool::NutDef{Type}: ".
"Unknown target type: $type
"));
goto error;
}
#
# Create TN.def in the current directory
#
goto error if nd2NoNce($IF) != 0;
#
#
#
vLogHTML("Trying to reboot NUT
");
goto error if ndReboot() != 0;
#
#
#
vLogHTML("*** OK ***
");
exit $V6evalTool::exitIgnore;
error:
vLogHTML("*** NG ***
");
exit $V6evalTool::exitFatal;
########################################################################
__END__
=head1 NAME
reset - Rest NUT
=head1 TARGET
Host and Router
=head1 SYNOPSIS
reset.seq [-tooloption ...] -p reset.def
=head1 INITIALIZATION
N/A
=head1 TEST PROCEDURE
B initialize NUT
=head1 JUDGMENT
N/A
=head1 NOTE
N/A
=head1 SEE ALSO
perldoc V6evalTool
perldoc V6evalRemote
=cut