#!/usr/bin/perl
#
# $Copyright$
#
# $TAHI: ct/nd/reset.seq,v 1.12 2003/10/08 17:30:18 masaxmasa 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 options 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<BR>"));
    goto error;
}

#
# Create TN.def in the current directory
#
goto error if nd2NoNce($IF) != 0;

#
#
#
vLogHTML("Trying to reboot NUT<BR>");
goto error if ndReboot() != 0;

#
#
#
vLogHTML("*** OK ***<BR>");
exit $V6evalTool::exitIgnore;

error:
    vLogHTML("*** NG ***<BR>");
    exit $V6evalTool::exitFatal;

########################################################################
__END__

=head1 NAME

reset - Reset NUT

=head1 TARGET

Host and Router

=head1 SYNOPSIS

  reset.seq [-tooloption ...] -p reset.def

=head1 INITIALIZATION

N/A

=head1 TEST PROCEDURE

B<reset> initialize NUT

=head1 JUDGMENT

N/A

=head1 NOTE

N/A

=head1 SEE ALSO

  perldoc V6evalTool
  perldoc V6evalRemote

=cut
