Date: Tue, 15 May 2007 11:42:16 +0530 From: "Ravi Prasad" <ravi.prasad@lgsoftindia.com> Subject: [users:00331] Re: Help on remote files To: <users@tahi.org> Message-Id: <607194575BD8CE46BCC8D747996FA7F9034C83A2@SI-RD10-MS01.LGE.NET> In-Reply-To: <515c64960705142105t286e44cbx2b0f301dbdea4212@mail.gmail.com> References: <515c64960705140710t150051e5o43a63e64604f989f@mail.gmail.com> <OF59155FBF.7E07FCC8-ON862572DB.004FE8CB-862572DB.005113B2@us.ibm.com> <515c64960705142105t286e44cbx2b0f301dbdea4212@mail.gmail.com> X-Mail-Count: 00331Hi,First I am not sure whether Tahi works on Fedora or not.Generally FreeBSD is used as the TN.The NUT can be any OS that u want to test.The Tahi test script works in 2 modes. Manual and Automatic.The Actual mode is set in the nut.def file.Mode Manual No requirements for remote files No requirement for serial cable. NUT can be any Operating system. Certain commands like Reboot, Setting of Address etc have tobe done manually. You have to sit in front of the system and carry outtesting. The Phase 2 test cases of ND have lots of manualintervention requirement.Mode Automatic (serial in nut.def) In this case you have to specify the target name, for e.g.FreeBSD5.4, Linux, Windows etc Serial cable is required Tahi scripts have a directory containing the commands(remote files) for each of the supported OS. When the TN has to start the testing it logs in to thesystem and then executes the command. You have to provide the login name and password. For e.g. In FreeBSD using the .rmt files firstTN gets a remote terminal in NUT and then executes the reboot command. The commands to be executed in the NUT go through the Serialcable. This is usefull if your target (NUT) is one of the standardOS supported by Tahi. Otherwise you have to write your own .rmt files. This automates the testing.Thanks and RegardsRavi Prasad________________________________From: Channa [mailto:channa.kad@gmail.com]Sent: Tuesday, May 15, 2007 9:35 AMTo: users@tahi.orgSubject: [users:00330] Re: Help on remote filesHi,Thanks for the information. You mean to say .rmt fiels are not requiredwhen i specify the system as manual?? and i have to do things whichscripts do manually??And also since i am using Fedora Core linux what should i specify in thesystem column of nut.def file??Can you just tell me how do i write the remote files?On 14/05/07, Christy L Norman <cnorman@us.ibm.com> wrote:If you want the TN to configure the NUT for you, don't specify 'manual'in the nut.def file. If you do this, you'll have to do what the scriptwould do, then hit Enter every time - and in the case of 'manual' youdon't need .rmt files at all.Instead, if you want to use the .rmt files, change the 'system' value inthe nut.def file to your NUT. Then create a folder with that system namein /usr/local/v6eval/bin/ called whatever you put as 'system' and copyall the .rmt files in the '/bin/manual' folder into it. Then, when yourun the tests, you'll see "not yet supported" in the log (html) filewhere scripts should be implemented. Try putting something of your owninto the .rmt file it's calling then when the scripts are run you'll seethem show up in the log file like this: vRemote(reboot_async.rmt)``/usr/local/v6eval//bin/mySystem//reboot_async.rmt -t mySystem-uuserName-p password-d fxp1 -l 1 timeout=120''Use that information to figure out which parameters are being passed anddepending on which type of system you're using, you can figure how towrite the script. For rebooting linux, for example, you would probablyjust edit the rebootasync.rmt file to have "reboot" in it. I'm not sureon all the Linux commands since I've never run these tests against aLinux kernel. I could be wrong, but I don't think there are anypre-written Linux .rmt files out there.Hopefully that helps...- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -- - - -Christy L Norman/Rochester/IBM <cnorman@us.ibm.com>Software Engineer, i5/OS TCP/IP Development-3605 HWY 52 NDept GY4A 015-2/D112Rochester, MN 55901507.253.6125- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -- - - -Channa <channa.kad@gmail.com>05/14/2007 09:10 AMPlease respond tousers@tahi.orgTousers@tahi.orgccSubject[users:00328] Re: Help on remote filesHi,Thanks for the information.I have installed TAHI on Fedora core linux after doing some pacthing.Its installed fine. If i am not wrong i need to modify the remote filesfor it rite?And in NUT.def file i have specified the system as manual.Can you tell me how to proceed with writing these rmt files?Or these are available for Redhat Linux??Can you please help me in this?Thanks in advance,ChannaOn 14/05/07, Christy L Norman < cnorman@us.ibm.com<mailto:cnorman@us.ibm.com> > wrote:Some of the tests need for something on your NUT to change. Look attheir names: clearmtu, ikeStart, ikeSetSA. They give you a good idea ofwhat the script will need to do. Depending on which tests you'rerunning, you'll need to create scripts inside those .rmt files to dowhat they should. If a script that your test needs hasn't been filled inyet you'll see, "Not yet supported" in the test output. So if you're notseeing that you don't need to worry about the remote files yet.- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -- - - -Christy L Norman/Rochester/IBM < cnorman@us.ibm.com<mailto:cnorman@us.ibm.com> >Software Engineer, i5/OS TCP/IP Development-3605 HWY 52 NDept GY4A 015-2/D112Rochester, MN 55901507.253.6125- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -- - - -Channa < channa.kad@gmail.com <mailto:channa.kad@gmail.com> >05/14/2007 07:53 AMPlease respond tousers@tahi.org <mailto:users@tahi.org>Tousers@tahi.org <mailto:users@tahi.org>ccSubject[users:00325] Re: Help on remote filesCan you tell me why these remote files are needed??On 14/05/07, Channa < channa.kad@gmail.com> wrote:Ok got it thanks.On 14/05/07, Santosh Bhavsar < santoshb@sarksoft.com<mailto:santoshb@sarksoft.com> > wrote:1. TAHI is for Free BSD you should have free BSD on your machine then itwork as per my knowledge. on linux it will not work.2. About that message you have to reboot it manually .----- Original Message -----From: Channa <mailto:channa.kad@gmail.com>To: users@tahi.orgSent: Monday, May 14, 2007 5:21 PMSubject: [users:00319] Help on remote filesHi,I have installed TAHI on Fedora core linux .When i run the test cases can any one tell me how the remote commandsare executed.Because when i run the test cases i get the messages like========== TEST 1 ==========./BEGIN.seq -pkt /dev/null -log 1.html -ti "Initialization"Target: Rebootreboot>reboot> Reboot NUT.reboot> * Wait until NUT boot up completely.reboot> Ex.) Wait until catch up login prompt.reboot>reboot> Press Enter key for continue.reboot>Wait 10 secondOKBut the TARGET is not getting rebooted.Can anyone throw some idea on this...Thanks in advance,Channa######################################### =THIS EMAIL MESSAGE IS FOR THE SOLE USE OF THE INTENDED RECIPIENT(S) AND MAY= CONTAIN CONFIDENTIAL AND PRIVILEGED INFORMATION. ANY UNAUTHORIZED REVIEW, U=SE, DISCLOSURE OR DISTRIBUTION IS PROHIBITED.BEFORE OPENING ANY ATTACHMENTS= PLEASE CHECK FOR VIRUSES AND DEFECTS.IF YOU ARE NOT THE INTENDED RECIPIENT,= PLEASE NOTIFY US IMMEDIATELY BY REPLY E-MAIL AND DELETE THE ORIGINAL MESSAG=E. =#########################################331_2.html (attatchment)(tag is disabled)