As per the "chkconfig --list" command, all the required services are
running.
e.g. rsh is on,
# chkconfig --list rsh
rsh                on

But when I see the log, only test case tagged "rsh" is passed. Other test
cases like rcp, rwho, and rdist are failing.
Similar is the case for multicast test cases.

Is there any other setting need to be done, apart from making the services
up.

I am attaching the document I am referring for the services setup. This
might give some clue.

Regards,
Suyog

On Mon, Sep 8, 2008 at 11:54 AM, Sudhir Kumar <[EMAIL PROTECTED]>wrote:

> On Fri, Sep 05, 2008 at 04:57:51PM +0530, Suyog Upadhye wrote:
> > Hi Rishi,
> >
> > Even I had the same doubt. As per your suggestions I have done the manual
> > setup according to the HOWTO.txt file for LTP.
> > But still I am getting the same old results.
> >
> > I have changed the .conf files as per the instructions. I restart the
> xinetd
> > by "/etc/init.d/xinetd restart" and then do "chkconfig [service-name] on"
> This way I feel you are initializing the service twice. If you want to
> check if a service is running you can do by
> service <service-name> status
> also. Or a grep on chkconfig --list
>
> > Is this method right? Or is there any other way to restart the xinetd?
> >
> > Regards,
> > Suyog
> >
> > On Fri, Sep 5, 2008 at 2:50 PM, Rishikesh K. Rajak <
> > [EMAIL PROTECTED]> wrote:
> >
> > >  Yes i doubt so. So here the conclusion is, all the testcase related to
> r
> > > is failing/broken. so you have to manually configure rsh, rlogin, ftp
> etc
> > > whichever services you want to enable between client and server.
> > >
> > > Please enable and configure all the network services before running LTP
> > > network test.
> > >
> > > -Rishi
> > >
> > >
> > >
> > > On Fri, 2008-09-05 at 14:40 +0530, Suyog Upadhye wrote:
> > >
> > > Hi Rishi,
> > >
> > > I am attaching the result log, which LTP creates in /tmp folder.
> > > netpan.log and netstress.log are the files created after running
> > > networktests.sh and networkstress.sh respectively.
> > > networkResults.console.log is basically the console output after
> running
> > > networktests.sh.
> > >
> > > Kindly note that I have run networkstress.sh script with '-i' (icmp)
> and -t
> > > (tcp) option only.
> > >
> > > As per my understanding, I have to export RHOST and PASSWD in
> > > networktests.sh which I am doing.
> > > And in networkstress.sh I need to export RHOST, RHOST_HWADDR (mac
> address),
> > > HTTP_DOWNLOAD_DIR, FTP_DOWNLOAD_DIR, FTP_UPLOAD_DIR, FTP_UPLOAD_URLDIR,
> > > IPV4_NETWORK, LHOST_IPV4_HOST, RHOST_IPV4_HOST, IPV4_NETWORK_REVERSE.
> In
> > > this case I am only setting RHOST and RHOST_HWADDR. Rest all is not
> very
> > > clear to me.
> > >
> > >
> > > Regards,
> > > Suyog
> > >
> > >
> > >  On Fri, Sep 5, 2008 at 1:53 PM, Rishikesh K. Rajak <
> > > [EMAIL PROTECTED]> wrote:
> > >
> > >  Hi,
> > >
> > > Before running ltp-network test you have to configure many things e.g:
> rsh,
> > > ftp, dhcp server etc...
> > >
> > > Can you show us your failure so that i can tell you what other
> > > configuration you require to run successfully on your machine ?
> > >
> > > I hope you are running the latest ltp.
> > >
> > > -Rishi
> > >
> > >
> > >
> > >
> > > On Fri, 2008-09-05 at 12:28 +0530, Suyog Upadhye wrote:
> > >
> > > Hi,
> > >
> > > I am trying to run networktests.sh and networkstress.sh on a setup of
> two
> > > machines.
> > > I have same version of LTP on both the machines. I have added
> RHOST/PASSWD
> > > entries in networktests.sh and in networkstress.sh.
> > >
> > > I am seeing only 10 test cases out of 33 network test cases are passed
> and
> > > no test case is passing in network stress test cases.
> > >
> > > I doubt this is mainly the issue with the setup.
> > > Can you kindly send me a consolidated list of the exports need to be
> done
> > > or if any services need to be restarted?
> > >
> > > I am doing the following.
> > > 1. Installed all the servers on build machine. (e.g. telnetd, ftp,
> rlogin,
> > > finger etc.)
> > > 2. /etc/init.d/xinetd restart
> > > 3. service nfs restart
> > > (Both machines can ping to each other normally, but all icmp tests in
> > > networkstress.sh are failing.)
> > >
> > > Kindly let me know if I am on right track. And also let me know any
> > > pointers or a list of software setup instructions.
> > >
> > > Regards,
> > > Suyog
> > >
> > >
>  -------------------------------------------------------------------------This
> SF.Net email is sponsored by the Moblin Your Move Developer's challengeBuild
> the coolest Linux based applications with Moblin SDK & win great prizesGrand
> prize is a trip for two to an Open Source event anywhere in the worldhttp://
> moblin-contest.org/redirect.php?banner_id=100&url=/_______________________________________________Ltp-list
>  mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/ltp-list
> > >
> > >
> > >
> > >
>  -------------------------------------------------------------------------This
> SF.Net email is sponsored by the Moblin Your Move Developer's challengeBuild
> the coolest Linux based applications with Moblin SDK & win great prizesGrand
> prize is a trip for two to an Open Source event anywhere in the worldhttp://
> moblin-contest.org/redirect.php?banner_id=100&url=/_______________________________________________Ltp-list
>  mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/ltp-list
> > >
> > >
>
> > -------------------------------------------------------------------------
> > This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> > Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> > Grand prize is a trip for two to an Open Source event anywhere in the
> world
> > http://moblin-contest.org/redirect.php?banner_id=100&url=/
> > _______________________________________________
> > Ltp-list mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/ltp-list
>
>
> --
> Regards
> Sudhir Kumar
> Linux Technology Center
> IBM, India.
>
1. How To Enable root login through rsh on target
==========================================================================================
Create the .rhosts file in /root
Write down the Local host IP in the file.
Edit the /etc/securetty file and add the ttyS0 and rsh.

2. How to Enable FTP server and Enable Root and anonymous access to the server.
==========================================================================================
i)Enable the following options on the server by editing the file
vim /etc/vsftpd/vsftpd.conf

local_enable=YES
write_enable=YES
local_umask=022
anonymous_enable=YES
anon_upload_enable=YES
ftp_username=ftp
anon_root=/var/ftp
anon_upload_enable=YES
anon_mkdir_write_enable=YES
anon_other_write_enable=YES
anon_max_rate=0
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=YES
xferlog_std_format=YES
listen=YES
pam_service_name=vsftpd
userlist_enable=YES
userlist_deny=NO
tcp_wrappers=YES

ii) Add these two users to the file /etc/vsftpd/user_list
anonymous
root
---------------------------vsftpd.conf file ----------------
# Example config file /etc/vsftpd/vsftpd.conf
#
# The default compiled in settings are fairly paranoid. This sample file
# loosens things up a bit, to make the ftp daemon more usable.
# Please see vsftpd.conf.5 for all compiled in defaults.
#
# READ THIS: This example file is NOT an exhaustive list of vsftpd options.
# Please read the vsftpd.conf.5 manual page to get a full idea of vsftpd's
# capabilities.
#
# Allow anonymous FTP? (Beware - allowed by default if you comment this out).
#anonymous_enable=YES
#
# Uncomment this to allow local users to log in.
local_enable=YES
#
# Uncomment this to enable any form of FTP write command.
write_enable=YES
#
# Default umask for local users is 077. You may wish to change this to 022,
# if your users expect that (022 is used by most other ftpd's)
local_umask=022
#
# Uncomment this to allow the anonymous FTP user to upload files. This only
# has an effect if the above global write enable is activated. Also, you will
# obviously need to create a directory writable by the FTP user.
anonymous_enable=YES
anon_upload_enable=YES
ftp_username=ftp
anon_root=/var/ftp
anon_upload_enable=YES
anon_mkdir_write_enable=YES
anon_other_write_enable=YES
#anon_world_readable_only=YES
anon_max_rate=0
#
# Uncomment this if you want the anonymous FTP user to be able to create
# new directories.
# anon_mkdir_write_enable=YES
#
# Activate directory messages - messages given to remote users when they
# go into a certain directory.
dirmessage_enable=YES
#
# Activate logging of uploads/downloads.
xferlog_enable=YES
#
# Make sure PORT transfer connections originate from port 20 (ftp-data).
connect_from_port_20=YES
#
# If you want, you can arrange for uploaded anonymous files to be owned by
# a different user. Note! Using "root" for uploaded files is not
# recommended!
#chown_uploads=YES
#chown_uploads=YES
#chown_username=whoever
#
# You may override where the log file goes if you like. The default is shown
# below.
#xferlog_file=/var/log/vsftpd.log
#
# If you want, you can have your log file in standard ftpd xferlog format.
# Note that the default log file location is /var/log/xferlog in this case.
xferlog_std_format=YES
#
# You may change the default value for timing out an idle session.
#idle_session_timeout=600
#
# You may change the default value for timing out a data connection.
#data_connection_timeout=120
#
# It is recommended that you define on your system a unique user which the
# ftp server can use as a totally isolated and unprivileged user.
#nopriv_user=ftpsecure
#
# Enable this and the server will recognise asynchronous ABOR requests. Not
# recommended for security (the code is non-trivial). Not enabling it,
# however, may confuse older FTP clients.
#async_abor_enable=YES
#
# By default the server will pretend to allow ASCII mode but in fact ignore
# the request. Turn on the below options to have the server actually do ASCII
# mangling on files when in ASCII mode.
# Beware that on some FTP servers, ASCII support allows a denial of service
# attack (DoS) via the command "SIZE /big/file" in ASCII mode. vsftpd
# predicted this attack and has always been safe, reporting the size of the
# raw file.
# ASCII mangling is a horrible feature of the protocol.
#ascii_upload_enable=YES
#ascii_download_enable=YES
#
# You may fully customise the login banner string:
#ftpd_banner=Welcome to blah FTP service.
#
# You may specify a file of disallowed anonymous e-mail addresses. Apparently
# useful for combatting certain DoS attacks.
#deny_email_enable=YES
# (default follows)
#banned_email_file=/etc/vsftpd/banned_emails
#
# You may specify an explicit list of local users to chroot() to their home
# directory. If chroot_local_user is YES, then this list becomes a list of
# users to NOT chroot().
#chroot_list_enable=YES
# (default follows)
#chroot_list_file=/etc/vsftpd/chroot_list
#
# You may activate the "-R" option to the builtin ls. This is disabled by
# default to avoid remote users being able to cause excessive I/O on large
                                                                             
# You may activate the "-R" option to the builtin ls. This is disabled by
# default to avoid remote users being able to cause excessive I/O on large
# sites. However, some broken FTP clients such as "ncftp" and "mirror" assume
# the presence of the "-R" option, so there is a strong case for enabling it.
#ls_recurse_enable=YES
#
# When "listen" directive is enabled, vsftpd runs in standalone mode and
# listens on IPv4 sockets. This directive cannot be used in conjunction
# with the listen_ipv6 directive.
listen=YES
#
# This directive enables listening on IPv6 sockets. To listen on IPv4 and IPv6
# sockets, you must run two copies of vsftpd whith two configuration files.
# Make sure, that one of the listen options is commented !!
#listen_ipv6=YES

pam_service_name=vsftpd
userlist_enable=YES
userlist_deny=NO
tcp_wrappers=YES
---------------------------vsftpd.conf file ----------------

3. How to enable rsh server
==========================================================================================
i) Install the rsh server package by using rpm or yum.
ii)Edit the file "/etc/xinetd.d/rsh" and set the variable disable = no if this 
variable is set to yes.
iii) restart the xinetd deamon.
iv) Start the rsh deamon at boottime by using chkconfig command
chkconfig rsh on

------------------------------rsh file -------------------------
# default: on
# description: The rshd server is the server for the rcmd(3) routine and, \
#       consequently, for the rsh(1) program.  The server provides \
#       remote execution facilities with authentication based on \
#       privileged port numbers from trusted hosts.
service shell
{
        disable = no
        socket_type             = stream
        wait                    = no
        user                    = root
        log_on_success          += USERID
        log_on_failure          += USERID
        server                  = /usr/sbin/in.rshd
}
------------------------------rsh file -------------------------

4. How to enable telnet server
==========================================================================================
i) Install the telnet server package by using rpm or yum.
ii)Edit the file "/etc/xinetd.d/telnet" and set the variable disable = no if 
this variable is set to yes.
iii) restart the xinetd deamon.
iv) Start the telnet deamon at boottime by using chkconfig command
chkconfig telnet on
------------------------------telnet file -------------------------
# default: on
# description: The telnet server serves telnet sessions; it uses \
#       unencrypted username/password pairs for authentication.
service telnet
{
        flags           = REUSE
        socket_type     = stream
        wait            = no
        user            = root
        server          = /usr/sbin/in.telnetd
        log_on_failure  += USERID
        disable         = no
}
------------------------------telnet file -------------------------

5. How to enable rlogin server
==========================================================================================
i) Install the rsh server package by using rpm or yum.
ii)Edit the file "/etc/xinetd.d/rlogin" and set the variable disable = no if 
this variable is set to yes.
iii) restart the xinetd deamon.
iv) Start the rlogin deamon at boottime by using chkconfig command
chkconfig rlogin on
------------------------------rlogin file -------------------------

# default: on
# description: rlogind is the server for the rlogin(1) program.  The server \
#       provides a remote login facility with authentication based on \
#       privileged port numbers from trusted hosts.
service login
{
        disable = no
        socket_type             = stream
        wait                    = no
        user                    = root
        log_on_success          += USERID
        log_on_failure          += USERID
        server                  = /usr/sbin/in.rlogind
}
------------------------------rlogin file -------------------------

6. How to enable echo-dgram server
==========================================================================================
i) Install the echo server package by using rpm or yum.
ii)Edit the file "/etc/xinetd.d/echo-dgram" and set the variable disable = no 
if this variable is set to yes.
iii) restart the xinetd deamon.
iv) Start the echo-dgram deamon at boottime by using chkconfig command
chkconfig echo-dgram on
------------------------------echo-dgram file -------------------------

# This is the configuration for the udp/dgram echo service.

service echo
{
# This is for quick on or off of the service
        disable         = no

# The next attributes are mandatory for all services
        id              = echo-dgram
        type            = INTERNAL
        wait            = yes
        socket_type     = dgram
#       protocol        =  socket type is usually enough

# External services must fill out the following
#       user            =
#       group           =
#       server          =
#       server_args     =

# External services not listed in /etc/services must fill out the next one
#       port            =

# RPC based services must fill out these
#       rpc_version     =
#       rpc_number      =

# Logging options
#       log_type        =
#       log_on_success  =
#       log_on_failure  =

# Networking options
#       flags           =
#       bind            =
#       redirect        =
#       v6only          =

# Access restrictions
#       only_from       =
#       no_access       =
#       access_times    =
#       cps             = 50 10
#       instances       = UNLIMITED
#       per_source      = UNLIMITED
#       max_load        = 0
#       deny_time       = 120
#       mdns            = yes

# Environmental options
#       env             =
#       passenv         =
#       nice            = 0
#       umask           = 022
#       groups          = yes
#       rlimit_as       =
#       rlimit_cpu      =
#       rlimit_data     =
#       rlimit_rss      =
#       rlimit_stack    =

# Banner options. (Banners aren't normally used)
#       banner          =
#       banner_success  =
#       banner_fail     =
}
------------------------------echo-dgram file -------------------------

7. How to enable echo-stream server
==========================================================================================
i) Install the echo server package by using rpm or yum.
ii)Edit the file "/etc/xinetd.d/echo-stream" and set the variable disable = no 
if this variable is set to yes.
iii) restart the xinetd deamon.
iv) Start the echo-stream deamon at boottime by using chkconfig command
chkconfig echo-stream on

------------------------------echo-stream file -------------------------

# This is the configuration for the tcp/stream echo service.

service echo
{
# This is for quick on or off of the service
        disable         = no

# The next attributes are mandatory for all services
        id              = echo-stream
        type            = INTERNAL
        wait            = no
        socket_type     = stream
#       protocol        =  socket type is usually enough

# External services must fill out the following
#       user            =
#       group           =
#       server          =
#       server_args     =

# External services not listed in /etc/services must fill out the next one
#       port            =

# RPC based services must fill out these
#       rpc_version     =
#       rpc_number      =

# Logging options
#       log_type        =
#       log_on_success  =
#       log_on_failure  =

# Networking options
#       flags           =
#       bind            =
#       redirect        =
#       v6only          =

# Access restrictions
#       only_from       =
#       no_access       =
#       access_times    =
#       cps             = 50 10
#       instances       = UNLIMITED
#       per_source      = UNLIMITED
#       max_load        = 0
#       deny_time       = 120
#       mdns            = yes

# Environmental options
#       env             =
#       passenv         =
#       nice            = 0
#       umask           = 022
#       groups          = yes
#       rlimit_as       =
#       rlimit_cpu      =
#       rlimit_data     =
#       rlimit_rss      =
#       rlimit_stack    =

# Banner options. (Banners aren't normally used)
#       banner          =
#       banner_success  =
#       banner_fail     =
}
------------------------------echo-stream file -------------------------

8. How to enable finger server
==========================================================================================
i) Install the finger server package by using rpm or yum.
ii)Edit the file "/etc/xinetd.d/finger" and set the variable disable = no if 
this variable is set to yes.
iii) restart the xinetd deamon.
iv) Start the finger deamon at boottime by using chkconfig command
chkconfig finger on

---------------------------------- finger file ----------------------------
# default: on
# description: The finger server answers finger requests. Finger is \
#       a protocol that allows remote users to see information such \
#       as login name and last login time for local users.
service finger
{
        disable = no
        socket_type     = stream
        wait            = no
        user            = nobody
        server          = /usr/sbin/in.fingerd
}
---------------------------------- finger file ----------------------------

9. How to enable xinetd server
==========================================================================================
i) Install the xinetd server package by using rpm or yum.
ii) Start the xinetd deamon by using service command
service xinetd start
iii) Start the xinetd deamon at boottime by using chkconfig command
chkconfig xinetd on

10. How to set an IP to the interface permanently
==========================================================================================
i)Edit the file "/etc/sysconfig/network-scripts/ifcfg-eth0" (select 0 or 1 or 2 
etc as per your requirement) and use the following variables :-
DEVICE=eth0 ( Interface name )
BOOTPROTO=none
HWADDR=00:19:D1:EF:BF:89 (Hardware Address shown by ifconfig command)
ONBOOT=yes  (Enable at boot time)
TYPE=Ethernet
NETMASK=255.255.255.0 (Netmask of the network)
IPADDR=192.168.0.12 (IP address of the interface)
USERCTL=no
IPV6INIT=no
PEERDNS=yes

11. How to set a hostname at Bootup
==========================================================================================
i)Edit the file "/etc/sysconfig/network" and use the variables
NETWORKING=yes
HOSTNAME=neo (Host name to be set is neo)
ii) You can also assign a hostname by using the kernel command line variables.

12. How to setup a dhcp server
==========================================================================================
i) Install the dhcp server package by using rpm or yum.
ii)Edit the file "/etc/dhcpd.conf " as :-

ddns-update-style interim;
ignore client-updates;

subnet 192.168.0.0 netmask 255.255.255.0 {

# --- default gateway
        option routers                  192.168.0.12;
        option subnet-mask              255.255.255.0;

        option nis-domain               "domain.org";
        option domain-name              "domain.org";
        option domain-name-servers      192.168.1.12;

        option time-offset              -18000; # Eastern Standard Time
#       option ntp-servers              192.168.1.1;
#       option netbios-name-servers     192.168.1.1;
# --- Selects point-to-point node (default is hybrid). Don't change this unless
# -- you understand Netbios very well
#       option netbios-node-type 2;

#        range dynamic-bootp 192.168.0.128 192.168.0.254;
        range 192.168.0.5 192.168.0.16;
        default-lease-time 21600;
        max-lease-time 43200;

        log-facility local7;

#       Target to appear at a fixed address
       host ap85 {
               hardware ethernet 00:50:43:28:16:62;
               fixed-address 192.168.0.10;
       }

iii) start the dhcp server by using service command
service dhcpd start

iv) start the dhcp server at the boot time by using the chkconfig command
service chkconfig on


13.  How to setup a nfs server
==========================================================================================
i) Install the nfs server package by using rpm or yum.
ii) Edit the file "/etc/exports" and add a line like the below to have the 
folder exported.
/export   *(rw,no_root_squash,sync)
iii) start the nfs server by using the service command
service nfsd start
iv) start the nfs server at the boot time by using the chkconfig command
chkconfig nfs on


14.  How to setup a rdist server
==========================================================================================
i) Install the rdist server package by using rpm or yum.
ii) start the rdist server by using the service command
service rdist start
iv) start the rdist server at the boot time by using the chkconfig command
chkconfig rdist on


15.  How to setup a rwhod server
==========================================================================================
i) Install the rwhod server package by using rpm or yum.
ii) start the rwhod server by using the service command
service rwhod start
iv) start the rwhod server at the boot time by using the chkconfig command
chkconfig rwhod on


16.  How to setup a httpd server
==========================================================================================
i) Install the httpd server package by using rpm or yum.
ii) Edit the httpd conf file /etc/httpd/conf/httpd.conf
iii)start the httpd server by using the service command
service httpd start
iv) start the httpd server at the boot time by using the chkconfig command
chkconfig httpd on

17. How to Enable root login on telnet
==========================================================================================
i) Open the /etc/securetty file and append the following lines to it.

telnet
ttyS0
pts/0
pts/1
pts/2
pts/3
pts/4
pts/5
pts/6
pts/7
pts/8
pts/9
pts/10
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to