Index: [Article Count Order] [Thread]

Date: Fri, 23 May 2008 19:48:00 +0530
From: Nilesh Borate <niborate@linux.vnet.ibm.com>
Subject: [users:00722] Re: Fwd:  Re: TAHI for Linux as NUT - automatic reboot support.
To: users@tahi.org
Message-Id: <4836D218.6040408@linux.vnet.ibm.com>
In-Reply-To: <b73199e30805230700v33c64649j4271bef8db713468@mail.gmail.com>
References: <b73199e30805220025p2e63f4dfy3ce28c2132a0a858@mail.gmail.com> <20080522105658.GA10793@pingi.kke.suse.de> <b73199e30805230700v33c64649j4271bef8db713468@mail.gmail.com>
X-Mail-Count: 00722


Hi Karsten,

Thanks for your valuable inputs.

Actually the V6evalRemote.pm file was not having comments in my case.
Although with some tweaks I have got the remote reboot working.

I am now running Self_Test_1-4-15 as per your suggestion ( hope CT is 
totally obsoleted by Self test).
Also I am not sure which all tests to run (and which all not to run) for 
TAHI completion.
Also not pretty sure on how to debug, deal with TAHI failures (to know 
whether they are genuine ones or setup issue),
other than looking at the corresponding logs in browser.

Surely the results you have would be helpful for me.
Will surely let you know about it when needed, and also if any further 
help needed.

Once again I really appreciate your help.

Thanks,
Nilesh Borate
Linux Technology Center,
IBM, India
> From: Karsten Keil <kkeil@suse.de>
> Date: Thu, May 22, 2008 at 4:26 PM
> Subject: [users:00719] Re: TAHI for Linux as NUT - automatic reboot support.
> To: users@tahi.org
>
>
> On Thu, May 22, 2008 at 12:55:06PM +0530, Nilesh Borate wrote:
>   
>> Hi,
>>
>> I am trying to run TAHI (CT tests).
>>     
>
> The ct test are outdated and also have some issues, you should use
> Self_Test_1-4-15.tgz instead.
>
>   
>> NUT - SUSE Linux 10, SP2, TN - FreeBSD 7.0-RELEASE.
>> Later need to run entire TAHI tests for Linux (NUT).
>>
>> I am using following test tool and suite on TN installed -
>> IPv6 Conformance Test Tool (README, v6eval-3.0.13.tar.gz)
>> IPv6 Conformance Test Program Package (README, ct-2.1.1.tar.gz)
>>
>> I am facing problem with automatic reboot of NUT while executing tests(CT
>> tests) for Linux as NUT.
>> I have mentioned System as "linux-v6" in /usr/local/v6eval/etc/nut.def
>>  on TN, and not manual.
>> For IPv6 Conformance Test Tool the tahi.org website says -
>> [    v6eval doesn't bundle remote files after release of version 3.0.
>>     If you use remote files, please modify V6evalRemote.pm by yourself.
>>     And install remote files to /usr/local/v6eval/bin
>> ]
>> So I downloaded v6eval-remotes-3.0 and installed it on TN (was facing
>> doc install errors but removed the doc installation part).
>> Also the website has no mention as to what to modify in
>> V6evalRemote.pm and at which location this file to modify.
>>     
>
> Here my patch to modify the remote tools, it also add a "sles" entry for
> as systeme type. Basically I copied the remote scripts from "unitedlinux"
> for it.
>
>   
>> I have connected the TN and NUT via serial cross cable, and a ethernet cable.
>> And I am able to do a remote login to NUT from TN using "cu -l /dev/cuad0".
>> after proper editing of /etc/securetty and /etc/inittab on NUT.
>>
>> But somehow the automatic remote reboot for NUT (Linux) is not
>> happening while executing the CT tests.
>>
>> Manual reboot testing seems to  work fine.
>> Is automatic reboot testing supported for Linux by TAHI ??
>>
>> Any help is appreciated.
>>
>>     
>
> I already run most of the TAHI testsuites on SLES10 SP2, so if you need any
> help or want some results for compare, please ask.
>
> --- v6eval-3.0.12/script/pmod/V6evalRemote/V6evalRemote.pm      Fri
> Feb  3 11:40:15 2006
> +++ v6eval-3.0.12.new/script/pmod/V6evalRemote/V6evalRemote.pm  Fri
> Nov  2 12:16:12 2007
> @@ -124,115 +124,118 @@ BEGIN
>     $CmdOutput="";
>
>     # login prompt
> -    %prompt_user = (
> -                  );
>  #    %prompt_user = (
> -#                  'kame-freebsd',     'login: ',
> -#                  'freebsd43-i386',   'login: ',
> -#                  'hitachi-nr60',     'login:',
> -#                  'hitachi-nr60-v2',  'login:',
> -#                  'hitachi-gr2k',     'login:',
> -#                  'hitachi-gr2k-beta',        'login:',
> -#                  'nec-libra',        'login: ',
> -#                  'nec-libra-utcpip', 'login: ',
> -#                  'nec-mip6',         'login: ',
> -#                  'nec-ix1k',         'login: ',
> -#                  'sfc-mip6',         'login: ',
> -#                  'yamaha-ws-one',    '(starts|Yamaha Corporation)',
> -#                  'linux-v6',         'login: ',
> -#                  'sun-solaris',      'login: ',
> -#                  'ms-win2k',         'Login: ',
> -#                  'cisco-ios',        'get started',
> -#                  'iij-seil',         'login: ',
> -#                  'telebit-tbc2k',    'Username:',
> -#                  'mgcs-sj6',         'login: ',
> -#                  'netbsd-i386',      'login: ',
> -#                  'kame-netbsd-i386', 'login: ',
> -#                  'freebsd-i386',     'login: ',
> -#                  'openbsd-i386',     'login: ',
> -#                  'aix',              'login: ',
> -#                  'hpux',             'login: ',
> -#                  'usagi-i386',       'login: ',
> -#                  'usagi24-i386',     'login: ',
> -#                  'mipl',             'login: ',
> -#                  'lcna',             'login: ',
> -#                  'ttb3010',          'login: ',
> -#                  'unitedlinux',              'login: ',
>  #                 );
> +    %prompt_user = (
> +                   'kame-freebsd',     'login: ',
> +                   'freebsd43-i386',   'login: ',
> +                   'hitachi-nr60',     'login:',
> +                   'hitachi-nr60-v2',  'login:',
> +                   'hitachi-gr2k',     'login:',
> +                   'hitachi-gr2k-beta',        'login:',
> +                   'nec-libra',        'login: ',
> +                   'nec-libra-utcpip', 'login: ',
> +                   'nec-mip6',         'login: ',
> +                   'nec-ix1k',         'login: ',
> +                   'sfc-mip6',         'login: ',
> +                   'yamaha-ws-one',    '(starts|Yamaha Corporation)',
> +                   'linux-v6',         'login: ',
> +                   'sun-solaris',      'login: ',
> +                   'ms-win2k',         'Login: ',
> +                   'cisco-ios',        'get started',
> +                   'iij-seil',         'login: ',
> +                   'telebit-tbc2k',    'Username:',
> +                   'mgcs-sj6',         'login: ',
> +                   'netbsd-i386',      'login: ',
> +                   'kame-netbsd-i386', 'login: ',
> +                   'freebsd-i386',     'login: ',
> +                   'openbsd-i386',     'login: ',
> +                   'aix',              'login: ',
> +                   'hpux',             'login: ',
> +                   'usagi-i386',       'login: ',
> +                   'usagi24-i386',     'login: ',
> +                   'mipl',             'login: ',
> +                   'lcna',             'login: ',
> +                   'ttb3010',          'login: ',
> +                   'unitedlinux',      'login: ',
> +                   'sles',             'login: ',
> +                  );
>
>     # password prompt
> -    %prompt_password = (
> -                       );
>  #    %prompt_password = (
> -#                      'kame-freebsd',         'Password:',
> -#                      'freebsd43-i386',       'Password:',
> -#                      'hitachi-nr60',         'Password:',
> -#                      'hitachi-nr60-v2',      'Password:',
> -#                      'hitachi-gr2k',         'Password:',
> -#                      'hitachi-gr2k-beta',    'Password:',
> -#                      'nec-libra',            'Password:',
> -#                      'nec-libra-utcpip',     'Password:',
> -#                      'nec-mip6',             'Password:',
> -#                      'nec-ix1k',             'Password:',
> -#                      'sfc-mip6',             'Password:',
> -#                      'yamaha-ws-one',        'Password:',
> -#                      'linux-v6',             'Password: ',
> -#                      'sun-solaris',          'Password:',
> -#                      'ms-win2k',             'Password:',
> -#                      'cisco-ios',            'Password:',
> -#                      'iij-seil',             'DUMMY_PROMPT', # dummy
> -#                      'telebit-tbc2k',        'Password:',
> -#                      'mgcs-sj6',             'Password:',
> -#                      'netbsd-i386',          'Password:',
> -#                      'kame-netbsd-i386',     'Password:',
> -#                      'freebsd-i386',         'Password:',
> -#                      'openbsd-i386',         'Password:',
> -#                      'aix',                  'Password:',
> -#                      'hpux',                 'Password:',
> -#                      'usagi-i386',           'Password: ',
> -#                      'usagi24-i386',         'Password: ',
> -#                      'mipl',                 'Password: ',
> -#                      'lcna',                 'Password:',
> -#                      'ttb3010',              'Password:',
> -#                      'unitedlinux',          'Password: ',
>  #                      );
> +    %prompt_password = (
> +                       'kame-freebsd',         'Password:',
> +                       'freebsd43-i386',       'Password:',
> +                       'hitachi-nr60',         'Password:',
> +                       'hitachi-nr60-v2',      'Password:',
> +                       'hitachi-gr2k',         'Password:',
> +                       'hitachi-gr2k-beta',    'Password:',
> +                       'nec-libra',            'Password:',
> +                       'nec-libra-utcpip',     'Password:',
> +                       'nec-mip6',             'Password:',
> +                       'nec-ix1k',             'Password:',
> +                       'sfc-mip6',             'Password:',
> +                       'yamaha-ws-one',        'Password:',
> +                       'linux-v6',             'Password: ',
> +                       'sun-solaris',          'Password:',
> +                       'ms-win2k',             'Password:',
> +                       'cisco-ios',            'Password:',
> +                       'iij-seil',             'DUMMY_PROMPT', # dummy
> +                       'telebit-tbc2k',        'Password:',
> +                       'mgcs-sj6',             'Password:',
> +                       'netbsd-i386',          'Password:',
> +                       'kame-netbsd-i386',     'Password:',
> +                       'freebsd-i386',         'Password:',
> +                       'openbsd-i386',         'Password:',
> +                       'aix',                  'Password:',
> +                       'hpux',                 'Password:',
> +                       'usagi-i386',           'Password: ',
> +                       'usagi24-i386',         'Password: ',
> +                       'mipl',                 'Password: ',
> +                       'lcna',                 'Password:',
> +                       'ttb3010',              'Password:',
> +                       'unitedlinux',          'Passwort: ',
> +                       'sles',                 'Passwort: ',
> +                       );
>
>     # command prompt
> -    %prompt_command = (
> -                      );
>  #    %prompt_command = (
> -#                     'kame-freebsd',          '(\$|#) ',
> -#                     'freebsd43-i386',        '(\$|#) ',
> -#                     'hitachi-nr60',          '% ',
> -#                     'hitachi-nr60-v2',       '% ',
> -#                     'hitachi-gr2k',          '(command|admin)(:|>) ',
> -#                     'hitachi-gr2k-beta',     '(command|admin): ',
> -#                     'nec-libra',             '(\$|#) ',
> -#                     'nec-libra-utcpip',      '(\$|#) ',
> -#                     'nec-mip6',              '(\$|#) ',
> -#                     'nec-ix1k',              '(\$|#) ',
> -#                     'sfc-mip6',              '(\$|#) ',
> -#                     'yamaha-ws-one',         '(>|#) ',
> -#                     'linux-v6',              '# ',
> -#                     'sun-solaris',           '# ',
> -#                     'ms-win2k',              '.:.>',
> -#                     'cisco-ios',             '(>|#)',
> -#                     'iij-seil',              '\r(>|#) ',
> -#                     'telebit-tbc2k',         '(> |% |accepted)',
> -#                     'mgcs-sj6',              '(\$|#) ',
> -#                     'netbsd-i386',           '(\$|#) ',
> -#                     'kame-netbsd-i386',      '(\$|#) ',
> -#                     'freebsd-i386',          '(\$|#) ',
> -#                     'openbsd-i386',          '(\$|#) ',
> -#                     'aix',                   '(\$|#) ',
> -#                     'hpux',                  '(\$|#) ',
> -#                     'usagi-i386',            '# ',
> -#                     'usagi24-i386',          '# ',
> -#                     'mipl',                  '# ',
> -#                     'lcna',                  '(\$|#) ',
> -#                     'ttb3010',               '(>|#) ',
> -#                     'unitedlinux',   '# ',
>  #                     );
> +    %prompt_command = (
> +                      'kame-freebsd',          '(\$|#) ',
> +                      'freebsd43-i386',        '(\$|#) ',
> +                      'hitachi-nr60',          '% ',
> +                      'hitachi-nr60-v2',       '% ',
> +                      'hitachi-gr2k',          '(command|admin)(:|>) ',
> +                      'hitachi-gr2k-beta',     '(command|admin): ',
> +                      'nec-libra',             '(\$|#) ',
> +                      'nec-libra-utcpip',      '(\$|#) ',
> +                      'nec-mip6',              '(\$|#) ',
> +                      'nec-ix1k',              '(\$|#) ',
> +                      'sfc-mip6',              '(\$|#) ',
> +                      'yamaha-ws-one',         '(>|#) ',
> +                      'linux-v6',              '# ',
> +                      'sun-solaris',           '# ',
> +                      'ms-win2k',              '.:.>',
> +                      'cisco-ios',             '(>|#)',
> +                      'iij-seil',              '\r(>|#) ',
> +                      'telebit-tbc2k',         '(> |% |accepted)',
> +                      'mgcs-sj6',              '(\$|#) ',
> +                      'netbsd-i386',           '(\$|#) ',
> +                      'kame-netbsd-i386',      '(\$|#) ',
> +                      'freebsd-i386',          '(\$|#) ',
> +                      'openbsd-i386',          '(\$|#) ',
> +                      'aix',                   '(\$|#) ',
> +                      'hpux',                  '(\$|#) ',
> +                      'usagi-i386',            '# ',
> +                      'usagi24-i386',          '# ',
> +                      'mipl',                  '# ',
> +                      'lcna',                  '(\$|#) ',
> +                      'ttb3010',               '(>|#) ',
> +                      'unitedlinux',           '# ',
> +                      'sles',                  '# ',
> +                      );
>
>     # command of the admin mode if any
>     %cmd_admin = (
> @@ -255,41 +258,42 @@ BEGIN
>  #                 );
>
>     # logout command
> -    %cmd_exit = (
> -                );
>  #    %cmd_exit = (
> -#               'kame-freebsd',        'exit',
> -#               'freebsd43-i386',      'exit',
> -#               'hitachi-nr60',        'exit',
> -#               'hitachi-nr60-v2',     'exit',
> -#               'hitachi-gr2k',        'exit',
> -#               'hitachi-gr2k-beta',   'exit',
> -#               'nec-libra',           'exit',
> -#               'nec-libra-utcpip',    'exit',
> -#               'nec-mip6',            'exit',
> -#               'nec-ix1k',            'exit',
> -#               'sfc-mip6',            'exit',
> -#               'yamaha-ws-one',       'exit',
> -#               'linux-v6',            'exit',
> -#               'sun-solaris',         'exit',
> -#               'ms-win2k',            'exit',
> -#               'cisco-ios',           'exit',
> -#               'iij-seil',            'exit',
> -#               'telebit-tbc2k',       "\elogout\r",
> -#               'mgcs-sj6',            'exit',
> -#               'netbsd-i386',         'exit',
> -#               'kame-netbsd-i386',    'exit',
> -#               'freebsd-i386',        'exit',
> -#               'openbsd-i386',        'exit',
> -#               'aix',                 'exit',
> -#               'hpux',                'exit',
> -#               'usagi-i386',          'exit',
> -#               'usagi24-i386',        'exit',
> -#               'mipl',                'exit',
> -#               'lcna',                'exit',
> -#               'ttb3010',             'logout',
> -#               'unitedlinux',         'exit',
>  #               );
> +    %cmd_exit = (
> +                'kame-freebsd',        'exit',
> +                'freebsd43-i386',      'exit',
> +                'hitachi-nr60',        'exit',
> +                'hitachi-nr60-v2',     'exit',
> +                'hitachi-gr2k',        'exit',
> +                'hitachi-gr2k-beta',   'exit',
> +                'nec-libra',           'exit',
> +                'nec-libra-utcpip',    'exit',
> +                'nec-mip6',            'exit',
> +                'nec-ix1k',            'exit',
> +                'sfc-mip6',            'exit',
> +                'yamaha-ws-one',       'exit',
> +                'linux-v6',            'exit',
> +                'sun-solaris',         'exit',
> +                'ms-win2k',            'exit',
> +                'cisco-ios',           'exit',
> +                'iij-seil',            'exit',
> +                'telebit-tbc2k',       "\elogout\r",
> +                'mgcs-sj6',            'exit',
> +                'netbsd-i386',         'exit',
> +                'kame-netbsd-i386',    'exit',
> +                'freebsd-i386',        'exit',
> +                'openbsd-i386',        'exit',
> +                'aix',                 'exit',
> +                'hpux',                'exit',
> +                'usagi-i386',          'exit',
> +                'usagi24-i386',        'exit',
> +                'mipl',                'exit',
> +                'lcna',                'exit',
> +                'ttb3010',             'logout',
> +                'unitedlinux',         'exit',
> +                'sles',                'exit',
> +                );
>
>     # confirmation for logout
>     %prompt_exit_confirm = (
> @@ -350,41 +354,42 @@ BEGIN
>
>
>     # reboot command
> -    %cmd_reboot = (
> -                  );
>  #    %cmd_reboot = (
> -#                 'kame-freebsd',      'reboot',
> -#                 'freebsd43-i386',    'reboot',
> -#                 'hitachi-nr60',      'reboot',
> -#                 'hitachi-nr60-v2',   'reboot',
> -#                 'hitachi-gr2k',      'boot -nf',
> -#                 'hitachi-gr2k-beta', 'boot -nf',
> -#                 'nec-libra',         'reboot',
> -#                 'nec-libra-utcpip',  'reboot',
> -#                 'nec-mip6',          'reboot',
> -#                 'nec-ix1k',          'reload y',
> -#                 'sfc-mip6',          'reboot',
> -#                 'yamaha-ws-one',     'restart',
> -#                 'linux-v6',          'reboot',
> -#                 'sun-solaris',       'reboot',
> -#                 # ms-win2k
> -#                 'cisco-ios',         'reload',
> -#                 'iij-seil',          'reboot',
> -#                 'telebit-tbc2k',     'restart',
> -#                 'mgcs-sj6',          'reboot',
> -#                 'netbsd-i386',       'reboot',
> -#                 'kame-netbsd-i386',  'reboot',
> -#                 'freebsd-i386',      'reboot',
> -#                 'openbsd-i386',      'reboot',
> -#                 'aix',               'reboot',
> -#                 'hpux',              'reboot',
> -#                 'usagi-i386',        'reboot',
> -#                 'usagi24-i386',      'reboot',
> -#                 'mipl',              'reboot',
> -#                 'lcna',              'reboot',
> -#                 'ttb3010',           'reboot',
> -#                 'unitedlinux',       'reboot',
>  #                 );
> +    %cmd_reboot = (
> +                  'kame-freebsd',      'reboot',
> +                  'freebsd43-i386',    'reboot',
> +                  'hitachi-nr60',      'reboot',
> +                  'hitachi-nr60-v2',   'reboot',
> +                  'hitachi-gr2k',      'boot -nf',
> +                  'hitachi-gr2k-beta', 'boot -nf',
> +                  'nec-libra',         'reboot',
> +                  'nec-libra-utcpip',  'reboot',
> +                  'nec-mip6',          'reboot',
> +                  'nec-ix1k',          'reload y',
> +                  'sfc-mip6',          'reboot',
> +                  'yamaha-ws-one',     'restart',
> +                  'linux-v6',          'reboot',
> +                  'sun-solaris',       'reboot',
> +                  # ms-win2k
> +                  'cisco-ios',         'reload',
> +                  'iij-seil',          'reboot',
> +                  'telebit-tbc2k',     'restart',
> +                  'mgcs-sj6',          'reboot',
> +                  'netbsd-i386',       'reboot',
> +                  'kame-netbsd-i386',  'reboot',
> +                  'freebsd-i386',      'reboot',
> +                  'openbsd-i386',      'reboot',
> +                  'aix',               'reboot',
> +                  'hpux',              'reboot',
> +                  'usagi-i386',        'reboot',
> +                  'usagi24-i386',      'reboot',
> +                  'mipl',              'reboot',
> +                  'lcna',              'reboot',
> +                  'ttb3010',           'reboot',
> +                  'unitedlinux',       'reboot',
> +                  'sles',              'reboot',
> +                  );
>
>     # final confirmation for reboot if any
>     %prompt_reboot_confirm = (
> @@ -438,38 +443,39 @@ BEGIN
>  #                           );
>
>     # command for reading command status
> -    %cmd_status = (
> -                  );
>  #    %cmd_status = (
> -#                 'kame-freebsd',      'echo $status',
> -#                 'freebsd43-i386',    'echo $status',
> -#                 'hitachi-nr60',      'echo $status',
> -#                 'hitachi-nr60-v2',   'echo $status',
> -#                 'hitachi-gr2k',      'echo $status',
> -#                 'hitachi-gr2k-beta', 'echo $status',
> -#                 'nec-libra',         'echo $status',
> -#                 'nec-libra-utcpip',  'echo $status',
> -#                 'nec-mip6',          'echo $status',
> -#                 'sfc-mip6',          'echo $status',
> -#                 'linux-v6',          'echo $?',
> -#                 'sun-solaris',       'echo $?',
> -#                 # ms-win2k
> -#                 # cisco-ios
> -#                 # iij-seil
> -#                 # ttb3010
> -#                 'mgcs-sj6',          'echo $status',
> -#                 'netbsd-i386',       'echo $status',
> -#                 'kame-netbsd-i386',  'echo $status',
> -#                 'freebsd-i386',      'echo $status',
> -#                 'openbsd-i386',      'echo $status',
> -#                 'aix',               'echo $?',
> -#                 'hpux',              'echo $?',
> -#                 'usagi-i386',        'echo $?',
> -#                 'usagi24-i386',      'echo $?',
> -#                 'mipl',              'echo $?',
> -#                 'lcna',              'echo $status',
> -#                 'unitedlinux',       'echo $?',
>  #                 );
> +    %cmd_status = (
> +                  'kame-freebsd',      'echo $status',
> +                  'freebsd43-i386',    'echo $status',
> +                  'hitachi-nr60',      'echo $status',
> +                  'hitachi-nr60-v2',   'echo $status',
> +                  'hitachi-gr2k',      'echo $status',
> +                  'hitachi-gr2k-beta', 'echo $status',
> +                  'nec-libra',         'echo $status',
> +                  'nec-libra-utcpip',  'echo $status',
> +                  'nec-mip6',          'echo $status',
> +                  'sfc-mip6',          'echo $status',
> +                  'linux-v6',          'echo $?',
> +                  'sun-solaris',       'echo $?',
> +                  # ms-win2k
> +                  # cisco-ios
> +                  # iij-seil
> +                  # ttb3010
> +                  'mgcs-sj6',          'echo $status',
> +                  'netbsd-i386',       'echo $status',
> +                  'kame-netbsd-i386',  'echo $status',
> +                  'freebsd-i386',      'echo $status',
> +                  'openbsd-i386',      'echo $status',
> +                  'aix',               'echo $?',
> +                  'hpux',              'echo $?',
> +                  'usagi-i386',        'echo $?',
> +                  'usagi24-i386',      'echo $?',
> +                  'mipl',              'echo $?',
> +                  'lcna',              'echo $status',
> +                  'unitedlinux',       'echo $?',
> +                  'sles',              'echo $?',
> +                  );
>  }
>
>  ########################################################################
>
>
> --
> Karsten Keil
> SuSE Labs
> ISDN and VOIP development
> SUSE LINUX Products GmbH, Maxfeldstr.5 90409 Nuernberg, GF: Markus
> Rex, HRB 16746 (AG Nuernberg)
>