Manual Tests PA
Manual Tests PA
Manual Tests PA
=======================
In the below testing LINE MODE TERMINAL means the terminal of the m/c and Consol
e means the Console of machine
================================================================================
=======================
# cat manual_tests
=======================================================
# Test case Number: 1
# Head line
: Testing of rc script on the system
#
get installed with the latest sh-posix
#
( PHCO_26789 or new ) patch.
# Os Release
: 11.00 onwards
# Defect Number : JAGae15694(i80,11.00),JAGae65207(11.11)
=======================================================
# Brief description of the testing:
1. Run the test on a system attached to a VGA console.
2. Install the system with the latest sh-posix patch.
PHCO_26789 or newer patch on 11.00
PHCO_25597 or newer patch on 11.11
3. Reboot the system .
# Expected results:
During boot up , on console it shouldn't display the
following kind of error messages:
"/sbin/rc[41]: 079: The specified number is not valid
for this command"
===============================================================
mickey# swlist |grep PHCO_42073
PHCO_42073
ch
mickey# swlist | grep PHCO_42225
PHCO_42225
ative patch
mickey# reboot
Shutdown at 12:34 (in 0 minutes)
1.0
rc cumulative pat
1.0
sh-posix(1) cumul
Cache
Inst
-----64 MB
64 MB
64 MB
64 MB
Size
Data
-----64 MB
64 MB
64 MB
64 MB
HARD Booted.
ISL Revision A.00.44 Mar 12, 2003
ISL booting hpux
Boot
: disk(0/0/0/3/0.6.0.0.0.0.0;0)/stand/vmunix
14413824 + 3477504 + 4916112 start 0x14df68
DoCalllist done
Warning: The value of 60 for tunable maxfiles is not a multiple of the file desc
riptor chunk size (8). This may result in unusable memory in each process.
Module btlan is put into ramfs:load time: driver_install, state: loaded
Module procsm is put into ramfs:load time: driver_install, state: loaded
Module c8xx is put into ramfs:load time: driver_install, state: loaded
Module iomem is put into ramfs:load time: driver_install, state: auto
Module cdfs is put into ramfs:load time: driver_install, state: auto
Module cfsmdr is put into ramfs:load time: driver_install, state: auto
Module cfsm is put into ramfs:load time: driver_install, state: auto
Module cifs is put into ramfs:load time: driver_install, state: auto
Module fcd is put into ramfs:load time: driver_install, state: loaded
Module td is put into ramfs:load time: driver_install, state: loaded
Module gelan is put into ramfs:load time: driver_install, state: loaded
Module iether is put into ramfs:load time: driver_install, state: loaded
Module igelan is put into ramfs:load time: driver_install, state: loaded
Module lvmp is put into ramfs:load time: driver_install, state: loaded
Module fdd is put into ramfs:load time: driver_install, state: loaded
Module ciss is put into ramfs:load time: driver_install, state: loaded
Module mpt is put into ramfs:load time: driver_install, state: loaded
Using /stand/ext_ioconfig
gate64: sysvec_vaddr = 0xc0002000 for 2 pages
Memory Class Setup
------------------------------------------------------------------------Class
Physmem
Lockmem
Swapmem
------------------------------------------------------------------------System : 3888 MB
3888 MB
3888 MB
Kernel : 3887 MB
3887 MB
3887 MB
User : 3727 MB
3304 MB
3317 MB
------------------------------------------------------------------------ktracer is off until requested.
Installing Socket Protocol families AF_INET and AF_INET6
Kernel EVM initialized
sec_init(): kernel RPC authentication/security initialization.
secgss_init(): kernel RPCSEC_GSS security initialization.
rpc_init(): kernel RPC initialization.
rpcmod_install(): kernel RPC STREAMS module "rpcmod" installation. ...(driver_in
stall)
NOTICE: nfs_client_pv3_install(): nfs3 File system was registered at index 10.
NOTICE: nfs_client_pv4_install(): nfs4 File system was registered at index 11.
NOTICE: cachefsc_install: cachefs File system was registered at index 13.
td: claimed Tachyon XL2 Fibre Channel Mass Storage card at 0/0/10/1/0
System Console is on the Built-In Serial Interface
igelan0: INITIALIZING HP A7109-60001 PCI 1000Base-T Core at hardware path 0/0/0/
1/0
igelan1: INITIALIZING HP A9784-60002 PCI/PCI-X 1000Base-T FC/GigE Combo Adapter
at hardware path 0/0/4/1/0/6/0
AF_INET socket/streams output daemon running, pid 76
afinet_prelink: module installed
Starting the STREAMS daemons-phase 1
LVM: Root VG activated
Swap device table: (start & size given in 512-byte blocks)
entry 0 - major is 64, minor is 0x2; start = 0, size = 8372224
Checking root file system.
file system is clean - log replay is not required
Root check done.
NOTICE: return ramfs memory for BTL: [FREE] top 0x0000001041200000, pages 3736
Create STCP device files
Starting the STREAMS daemons-phase 2
$Revision: vmunix:
B.11.31_LR FLAVOR=perf
Memory Information:
physical page size = 4096 bytes, logical page size = 4096 bytes
Physical: 4186112 Kbytes, lockable: 2972628 Kbytes, available: 3391680 Kbyte
s
/sbin/ioinitrc:
/sbin/krs_sysinit:
* The module 'rng' has been loaded.
insf: Installing special files for ipmi instance 0 address 0/6
insf: Installing special files for pseudo driver framebuf
/sbin/bcheckrc:
Checking for LVM volume groups and Activating (if any exist)
Volume group "/dev/vg00" is already active on this system.
Activated volume group.
Volume group "/dev/vg77" has been successfully changed.
Resynchronized volume group /dev/vg00
Resynchronized volume group /dev/vg77
Checking hfs file systems
/sbin/fsclean: /dev/vg00/lvol1 (mounted) ok
HFS file systems are OK, not running fsck
Checking vxfs file systems
UX:vxfs fsck: INFO: V-3-20913: /dev/vg00/lvol3:sanity check: root file system OK
(mounted read/write)
UX:vxfs fsck: INFO: V-3-20915: /dev/vg77/scrap:sanity check: /dev/vg77/scrap OK
UX:vxfs fsck: INFO: V-3-20915: /dev/vg77/cmdsscrap:sanity check: /dev/vg77/cmdss
crap OK
UX:vxfs fsck: INFO: V-3-20915: /dev/vg77/stds:sanity check: /dev/vg77/stds OK
Cleaning /etc/ptmp...
(c)Copyright 1983-2006 Hewlett-Packard Development Company, L.P.
(c)Copyright 1979, 1980, 1983, 1985-1993 The Regents of the Univ. of California
(c)Copyright 1980, 1984, 1986 Novell, Inc.
(c)Copyright 1986-2000 Sun Microsystems, Inc.
(c)Copyright 1985, 1986, 1988 Massachusetts Institute of Technology
(c)Copyright 1989-1993 The Open Software Foundation, Inc.
(c)Copyright 1990 Motorola, Inc.
(c)Copyright 1990, 1991, 1992 Cornell University
(c)Copyright 1989-1991 The University of Maryland
(c)Copyright 1988 Carnegie Mellon University
(c)Copyright 1991-2006 Mentat Inc.
(c)Copyright 1996 Morning Star Technologies, Inc.
OK
OK
OK
OK
OK
OK
N/A
N/A
OK
N/A
OK
OK
OK
N/A
OK
OK
OK
OK
OK
OK
OK
N/A
N/A
N/A
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
N/A
OK
OK
OK
OK
OK
N/A
N/A
OK
N/A
OK
OK
OK
OK
OK
N/A
N/A
OK
OK
OK
OK
OK
N/A
OK
N/A
N/A
N/A
OK
N/A
N/A
N/A
N/A
OK
N/A
N/A
N/A
OK
OK
OK
N/A
OK
OK
OK
N/A
OK
OK
N/A
OK
OK
N/A
OK
N/A
N/A
OK
N/A
N/A
OK
OK
OK
N/A
OK
OK
N/A
N/A
OK
OK
OK
OK
N/A
N/A
OK
OK
N/A
N/A
N/A
OK
OK
OK
N/A
N/A
N/A
OK
OK
N/A
N/A
N/A
N/A
N/A
N/A
OK
N/A
N/A
OK
OK
OK
OK
FAIL *
N/A
BG
N/A
FAIL *
FAIL *
N/A
OK
Cache
Inst
-----64 MB
64 MB
64 MB
64 MB
DoCalllist done
Size
Data
-----64 MB
64 MB
64 MB
64 MB
Warning: The value of 60 for tunable maxfiles is not a multiple of the file desc
riptor chunk size (8). This may result in unusable memory in each process.
Module btlan is put into ramfs:load time: driver_install, state: loaded
Module procsm is put into ramfs:load time: driver_install, state: loaded
Module c8xx is put into ramfs:load time: driver_install, state: loaded
Module iomem is put into ramfs:load time: driver_install, state: auto
Module cdfs is put into ramfs:load time: driver_install, state: auto
Module cfsmdr is put into ramfs:load time: driver_install, state: auto
Module cfsm is put into ramfs:load time: driver_install, state: auto
Module cifs is put into ramfs:load time: driver_install, state: auto
Module fcd is put into ramfs:load time: driver_install, state: loaded
Module td is put into ramfs:load time: driver_install, state: loaded
Module gelan is put into ramfs:load time: driver_install, state: loaded
Module iether is put into ramfs:load time: driver_install, state: loaded
Module igelan is put into ramfs:load time: driver_install, state: loaded
Module lvmp is put into ramfs:load time: driver_install, state: loaded
Module fdd is put into ramfs:load time: driver_install, state: loaded
Module ciss is put into ramfs:load time: driver_install, state: loaded
Module mpt is put into ramfs:load time: driver_install, state: loaded
Using /stand/ext_ioconfig
gate64: sysvec_vaddr = 0xc0002000 for 2 pages
Memory Class Setup
------------------------------------------------------------------------Class
Physmem
Lockmem
Swapmem
------------------------------------------------------------------------System : 3888 MB
3888 MB
3888 MB
Kernel : 3887 MB
3887 MB
3887 MB
User : 3727 MB
3304 MB
3317 MB
------------------------------------------------------------------------ktracer is off until requested.
Installing Socket Protocol families AF_INET and AF_INET6
Kernel EVM initialized
sec_init(): kernel RPC authentication/security initialization.
secgss_init(): kernel RPCSEC_GSS security initialization.
rpc_init(): kernel RPC initialization.
rpcmod_install(): kernel RPC STREAMS module "rpcmod" installation. ...(driver_in
stall)
NOTICE: nfs_client_pv3_install(): nfs3 File system was registered at index 10.
NOTICE: nfs_client_pv4_install(): nfs4 File system was registered at index 11.
NOTICE: cachefsc_install: cachefs File system was registered at index 13.
td: claimed Tachyon XL2 Fibre Channel Mass Storage card at 0/0/10/1/0
System Console is on the Built-In Serial Interface
igelan0: INITIALIZING HP A7109-60001 PCI 1000Base-T Core at hardware path 0/0/0/
1/0
igelan1: INITIALIZING HP A9784-60002 PCI/PCI-X 1000Base-T FC/GigE Combo Adapter
at hardware path 0/0/4/1/0/6/0
AF_INET socket/streams output daemon running, pid 76
afinet_prelink: module installed
Starting the STREAMS daemons-phase 1
LVM: Root VG activated
Swap device table: (start & size given in 512-byte blocks)
entry 0 - major is 64, minor is 0x2; start = 0, size = 8372224
Checking root file system.
file system is clean - log replay is not required
Root check done.
NOTICE: return ramfs memory for BTL: [FREE] top 0x0000001041200000, pages 3736
OK
OK
OK
OK
OK
OK
N/A
N/A
OK
N/A
OK
OK
OK
N/A
OK
OK
OK
OK
OK
OK
OK
N/A
N/A
N/A
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
N/A
OK
OK
OK
OK
OK
N/A
N/A
OK
N/A
OK
OK
OK
OK
OK
N/A
N/A
OK
OK
OK
OK
OK
N/A
OK
N/A
N/A
N/A
OK
N/A
N/A
N/A
N/A
OK
N/A
N/A
N/A
OK
OK
OK
N/A
OK
OK
OK
N/A
OK
OK
N/A
OK
OK
N/A
OK
N/A
N/A
OK
N/A
N/A
OK
OK
OK
N/A
OK
OK
N/A
N/A
OK
OK
OK
OK
N/A
N/A
OK
OK
N/A
N/A
N/A
OK
OK
OK
N/A
N/A
N/A
OK
OK
N/A
N/A
N/A
N/A
N/A
N/A
OK
N/A
N/A
OK
OK
OK
OK
FAIL *
N/A
BG
N/A
FAIL *
FAIL *
N/A
OK
===
Step 2: invoke init 1
Observation:
On the console all kill scripts in (/sbin/rc2.d, /sbin/rc1.d)
for transition to runlevel 1 should be invoked.
================================================================================
======
The system is ready.
mickey 9000/800/rp8420 [HP Release B.11.31] (see /etc/issue)
Console Login: root
Last successful login:
Mon Oct 17 13:10:07 IST 2011 stork.ind.hp.com
Please wait...checking for disk quotas
(c)Copyright 1983-2006 Hewlett-Packard Development Company, L.P.
(c)Copyright 1979, 1980, 1983, 1985-1993 The Regents of the Univ. of California
(c)Copyright 1980, 1984, 1986 Novell, Inc.
(c)Copyright 1986-2000 Sun Microsystems, Inc.
(c)Copyright 1985, 1986, 1988 Massachusetts Institute of Technology
(c)Copyright 1989-1993 The Open Software Foundation, Inc.
(c)Copyright 1990 Motorola, Inc.
(c)Copyright 1990, 1991, 1992 Cornell University
(c)Copyright 1989-1991 The University of Maryland
(c)Copyright 1988 Carnegie Mellon University
(c)Copyright 1991-2006 Mentat Inc.
(c)Copyright 1996 Morning Star Technologies, Inc.
(c)Copyright 1996 Progressive Systems, Inc.
Confidential computer software. Valid license from HP required for
possession, use or copying. Consistent with FAR 12.211 and 12.212,
Commercial Computer Software, Computer Software Documentation, and
Technical Data for Commercial Items are licensed to the U.S. Government
under vendor's standard commercial license.
You have mail.
Mon Oct 17 13:16:56 IST 2011
# init 1
#
INIT: New run level: 1
/sbin/auto_parms: DHCP access is disabled (see /etc/auto_parms.log)
.1^Use 'exit' to logout.
Transition to run-level 1 in progress
_____________________________________
Stop
Stop
Stop
Stop
Stop
Stop
Stop
FAIL *
FAIL *
N/A
BG
N/A
FAIL *
OK
OK
OK
OK
N/A
N/A
OK
N/A
OK
OK
OK
N/A
OK
N/A
OK
N/A
OK
N/A
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
N/A
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
N/A
OK
OK
OK
OK
OK
OK
OK
N/A
N/A
N/A
OK
N/A
N/A
N/A
N/A
OK
N/A
N/A
N/A
OK
N/A
OK
OK
OK
OK
OK
N/A
OK
OK
N/A
OK
N/A
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
N/A
N/A
N/A
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
N/A
OK
OK
OK
OK
FAIL *
N/A
N/A
OK
N/A
OK
OK
OK
OK
OK
N/A
OK
OK
OK
OK
OK
OK
N/A
OK
N/A
N/A
N/A
OK
N/A
N/A
N/A
N/A
OK
N/A
N/A
N/A
OK
OK
OK
N/A
OK
OK
OK
N/A
OK
OK
N/A
OK
OK
N/A
OK
N/A
N/A
OK
N/A
N/A
OK
OK
OK
N/A
OK
OK
N/A
N/A
OK
OK
OK
OK
N/A
N/A
OK
OK
N/A
N/A
N/A
OK
N/A
OK
N/A
N/A
N/A
OK
OK
N/A
N/A
N/A
N/A
N/A
N/A
OK
N/A
N/A
OK
OK
OK
OK
FAIL *
N/A
BG
N/A
FAIL *
FAIL *
N/A
OK
N/A
N/A
OK
OK
N/A
N/A
OK
N/A
OK
OK
OK
OK
N/A
OK
N/A
OK
N/A
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
N/A
N/A
OK
OK
OK
OK
OK
OK
OK
OK
OK
N/A
OK
OK
OK
OK
OK
OK
OK
N/A
N/A
N/A
OK
N/A
N/A
N/A
N/A
OK
N/A
N/A
N/A
OK
N/A
OK
OK
OK
OK
OK
N/A
OK
OK
N/A
OK
N/A
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
N/A
OK
================================================================================
============================
==================================================================
# Test case Number: 4
# Head line
: /sbin/rc declares service as FAILED while it
#
is running in background
# Os Release
: 11.11 and above.
# Defect Number : JAGae87651
# Description
: /sbin/rc should report that service is running
#
: in background (BG) and should log message in
#
: /etc/rc.log.
=================================================================
# Run the below test on LINE MODE TERMINAL(Terminal)
Step 1: Create a dummy script which returns value 4 on exit.
Step 2: Copy it to /sbin/init.d
Step 3: Create a symlink in the /sbin/rc{n}.d/<Dummy_Script>
where 'n' is same as current run-level.
Step 4: run /sbin/rc as root.
Step 5: It should display BG against the dummy service and
log the message "<service> EXECUTED IN BACKGROUND MODE"
in /etc/rc.log.
================================================================================
===============
# ll /sbin/init.d/dummy1
-rwxrwxrwx 1 root
sys
286 Oct 28 18:49 /sbin/init.d/dummy1
# ln -s /sbin/init.d/dummy1 /sbin/rc3.d/S998dummy1
# ll /sbin/rc3.d/S998dummy1
lrwxrwxrwx 1 root
sys
19 Oct 28 18:50 /sbin/rc3.d/S998dummy1
-> /sbin/init.d/dummy1
# who -r
.
run-level 3 Oct 24 16:58
3
0
S
# /sbin/rc
/sbin/auto_parms: DHCP access is disabled (see /etc/auto_parms.log)
Starting subsystems for run-level 3
___________________________________
OK
N/A
N/A
N/A
N/A
N/A
OK
N/A
N/A
OK
N/A
BG
N/A
OK
/dummy1
---------------------------"/sbin/rc3.d/S828kwdbd start" SKIPPED
Start NDDB Comm Server
Output from "/sbin/rc3.d/S829nddbcs start":
---------------------------"/sbin/rc3.d/S829nddbcs start" SKIPPED
Start LVM daemon
Output from "/sbin/rc3.d/S900lvm start":
---------------------------Starting up the lvmpud daemon
lvmpud already started, using pid: 2002
Starting the amgrd subsystem
Output from "/sbin/rc3.d/S998amgrd start":
---------------------------"/sbin/rc3.d/S998amgrd start" SKIPPED
Start dummy script dummy1
Output from "/sbin/rc3.d/S998dummy1 start":
---------------------------"/sbin/rc3.d/S998dummy1 start" EXECUTED IN BACKGROUND MODE-------------->Require
d Output Got
Starting PRNGD (Pseudo Random Number Generator Daemon)
Output from "/sbin/rc3.d/S99prngd.rc start":
---------------------------"/sbin/rc3.d/S99prngd.rc start" SKIPPED
Starting Control Daemon
Output from "/sbin/rc3.d/S99z0OVCtrl start":
---------------------------**************************************************
HP-UX run-level transition completed
Fri Oct 28 18:51:20 IST 2011
**************************************************
================================================================================
================
--->
==================================================================
# Test case Number: 5
# Head line
: To check /sbin/rc declares service as FAILED, SKIPPED and
#
BACKGROUND as per exit values
#
1, > 4 FAILED 2 SKIPPED 4 - BACKGROUND
# Os Release
: 11.11 and above.
# Defect Number : JAGae87651
# Description
: /sbin/rc should report that service is running
#
: in respective mode as per exit value and should log message
#
: /in etc/rc.log.
=================================================================
# Run the below test on LINE MODE TERMINAL
Step 1: export DISPLAY variable
For eg export DISPLAY=nt21656:0.0
Step 2: Connect to remote console
Step 3: Login as root in another terminal and run the script prog
chmod +x prog
./prog
Expected Result : The script should have all PASS statements
In console no other unwanted mesg should be seen
// Machine needs following two binaries which are not present on the machine
/usr/dt/bin/hpterm
/usr/dt/bin/dtterm
--->
==================================================================
# Test case Number: 6
# Head line
: system reboots when it has a starup script with exit value 3
executed by /sbin/rc
# Os Release
: 11.11 and above.
# Defect Number : JAGae87651
# Description
: system should reboot
=================================================================
# Run the below test on LINE MODE TERMINAL(Terminal)
Step 1: Create a dummy script which returns value 3 on exit.
Step 2: Copy it to /sbin/init.d
Step 3: Create a symlink in the /sbin/rc{n}.d/S<Dummy_Script>
where 'n' is same as current run-level.
Step 4: run /sbin/rc as root.
Expected result : System should reboot
Note : Bring up the system in runlevel other than the current level and remove t
he script
otherwise reboot will occur continuosly
================================================================================
===================
# who -r
.
run-level 3 Oct 24 16:58
3
0
S
# ln -s /sbin/init.d/dummy3 /sbin/rc3.d/S991dummy3
# ll /sbin/rc3.d/S991dummy3
lrwxrwxrwx 1 root
sys
19 Oct 28 18:54 /sbin/rc3.d/S991dummy3
-> /sbin/init.d/dummy3
bingo# /sbin/rc
/sbin/auto_parms: DHCP access is disabled (see /etc/auto_parms.log)
Starting subsystems for run-level 3
___________________________________
Start NFS server subsystem ................................ OK
Start Highly Available cluster ............................ N/A
Starting HP-UX Apache-based Web Server .................... N/A
N/A
N/A
N/A
OK
N/A
N/A
OK
BOOT
Cache
Inst
-----64 MB
64 MB
64 MB
64 MB
Size
Data
-----64 MB
64 MB
64 MB
64 MB
------------------------------------------------------------The Boot Action for this path specifies that PDC stop at BCH.
---- Main Menu --------------------------------------------------------------Command
------BOot [PRI|HAA|ALT|<path>]
PAth [PRI|HAA|ALT] [<path>]
SEArch [ALL|<cell>|<path>]
ScRoll [ON|OFF]
Description
----------Boot from specified path
Display or modify a path
Search for boot devices
Display or change scrolling capability
COnfiguration menu
INformation menu
SERvice menu
DIsplay
HElp [<menu>|<command>]
REBOOT
RECONFIGRESET
DoCalllist done
Module btlan is put into ramfs:load time: driver_install, state: loaded
Module procsm is put into ramfs:load time: driver_install, state: loaded
Module c8xx is put into ramfs:load time: driver_install, state: loaded
Module iomem is put into ramfs:load time: driver_install, state: auto
Module cdfs is put into ramfs:load time: driver_install, state: auto
Module cfsmdr is put into ramfs:load time: driver_install, state: auto
Module cfsm is put into ramfs:load time: driver_install, state: auto
Module cifs is put into ramfs:load time: driver_install, state: auto
OK
OK
OK
N/A
N/A
OK
N/A
OK
OK
OK
N/A
OK
OK
OK
OK
OK
OK
OK
N/A
N/A
N/A
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
N/A
OK
OK
OK
OK
OK
N/A
N/A
OK
N/A
OK
OK
OK
OK
OK
N/A
N/A
OK
OK
OK
OK
OK
N/A
OK
N/A
N/A
N/A
OK
N/A
N/A
N/A
N/A
OK
N/A
N/A
N/A
OK
OK
OK
N/A
OK
OK
OK
N/A
OK
OK
N/A
OK
OK
N/A
OK
N/A
N/A
N/A
N/A
N/A
OK
OK
OK
N/A
OK
OK
N/A
OK
OK
OK
OK
N/A
N/A
OK
OK
N/A
N/A
N/A
OK
OK
OK
N/A
N/A
N/A
OK
OK
N/A
N/A
N/A
N/A
N/A
OK
N/A
N/A
OK
BOOT
================================================================================
===================
--->
==================================================================
# Test case Number: 7
# Head line
: verify that check-routines are not called when LIST_MODE has
value 3 in /etc/rc.config.d/list_mode
# Os Release
: 11.11 and above.
# Defect Number : JAGae87651
# Description
: No mesg should appear in console
=================================================================
# Run the below test on LINE MODE TERMINAL
Step 1: Assign LIST_MODE=3 in /etc/rc.config.d/list_mode file
Step 4: run /sbin/rc as root.
Expected result : No mesg should appear in console
Mesg similiar to
*************************************************
starting NFS SERVER networking
starting up the rpcbind daemon
rpcbind already started, using pid: 1130
exportfs error: nothing to export.
Reading in /etc/exports
starting up the mount daemon
rpc.mountd already started, using pid: 10478
starting up the NFS daemons
nfsd(s) already started, using pid(s): 10500 10506 10501 10509 10511 105
08 10512 10514 10498 10502 10490 10489 10515 10493 10492 10494 10485
starting up the Status Monitor daemon
rpc.statd already started, using pid: 1178
starting up the Lock Manager daemon
#
the terminal is an hp device. If it is, then the
#
screen-oriented mode is used, otherwise the line-oriented
#
mode is used.
#
1 - Forces a line-oriented checklist suitable for all
#
types of consoles, including non-HP.
#
2 - Forces a screen-oriented checklist which assumes that the
#
console device interprets HP escape sequences. This mode
#
should only be used when the console is guaranteed to be
#
connected to an HP terminal device.
#
3 - Turns off the start-up checklist. Output from startup
#
scripts is sent to the console.
#
# LIST_TIMEOUT: When a startup script exists with an error, the checklist
#
is paused for inspection before continuing to a new page.
#
The LIST_TIMEOUT is the timeout, in seconds, before the
#
checklist process resumes operation. This can be set to 0
#
To skip the pause entirely.
#
# USE_COLOR:
On ITE displays, terminal escape sequences can be used to
#
create colored highlights for status messages. On greyscale
#
ITE monitors this displays as different shades of intensity.
#
1 - use escape sequence color outputs for status mesages
#
0 - do not use color escape sequences
#
LIST_MODE=2
LIST_TIMEOUT=0
USE_COLOR=1
~
"/etc/rc.config.d/list_mode" 40 lines, 1821 characters
#
#
#
# pwd
/
# ls
.kshrc
PHCO_41165.depot
lib
test.cov
.kshrc.original
PHCO_41529.depot
lost+found
tmp
.profile
PHCO_42073.depot
mnt
tms
.profile.original
PHCO_42225.depot
net
tztab_test
.rhosts
UNOF_libc_tztab.depot
nisha
tztab_test.c
.rnd
UNOF_tztab_1131_07_10.depot opt
usr
.sh_history
bin
prog.console
var
.ssh
dev
ram
view
.sw
dileep
sbin
PHCO_39927.depot
etc
scrap_disk_setup.ust_m
aya
PHCO_40846.depot
home
stand
# chmod +x prog.console
# ./prog.console
Tests in console Terminal
------------------------------------
OK
N/A
N/A
N/A
N/A
N/A
N/A
OK
N/A
N/A
OK
OK
OK
OK
FAIL *
N/A
BG
N/A
FAIL *
FAIL *
N/A
OK
FAIL
FAIL
N/A
BG
N/A
FAIL
OK
stop
*
*
*
script with exit stat
OK
N/A
N/A
N/A
N/A
N/A
N/A
OK
N/A
N/A
OK
OK
OK
OK
FAIL *
N/A
BG
N/A
FAIL *
FAIL *
N/A
OK
================================================================================
==================================================================
# Test case Number: 9
# Head line
: To check /sbin/rc declares service as FAILED, SKIPPED and
#
BACKGROUND as per exit values
#
1, > 4 FAILED 2 SKIPPED 4 - BACKGROUND
# Os Release
: 11.11 and above.
# Defect Number : JAGae87651
# Description
: /sbin/rc should report that service is running
#
: in respective mode as per exit value and should log message
#
: /in etc/rc.log.
=================================================================
# Run the below test on LINE MODE TERMINAL(Terminal)
Step 1: export DISPLAY variable
For eg export DISPLAY=nt21656:0.0
Step 2: Connect to remote console(Console)
Step 3: Assign LIST_MODE=1 in /etc/rc.config.d/list_mode file
Step 4: Login as root in another terminal and run the script prog
chmod +x prog
./prog
Expected Result : The script should have all PASS statements
In console no other unwanted mesg should be seen
// Machine needs following two binaries which are not present on the machine
/usr/dt/bin/hpterm
/usr/dt/bin/dtterm
==================================================================
==================================================================
# Test case Number: 10
# Head line
: To check /sbin/rc declares service as FAILED, SKIPPED and
#
BACKGROUND as per exit values
#
1, > 4 FAILED 2 SKIPPED 4 - BACKGROUND
# Os Release
: 11.11 and above.
# Defect Number : JAGae87651
# Description
: /sbin/rc should report that service is running
#
: in respective mode as per exit value and should log message
#
: /in etc/rc.log.
=================================================================
# Run the below test on LINE MODE TERMINAL(Terminal)
Step 1: export DISPLAY variable
For eg export DISPLAY=nt21656:0.0
Step 2: Connect to remote console(Console)
Step 3: Assign LIST_MODE=2 in /etc/rc.config.d/list_mode file
Step 4: Login as root in another terminal and run the script prog
chmod +x prog
./prog
// Machine needs following two binaries which are not present on the machine.
/usr/dt/bin/hpterm
/usr/dt/bin/dtterm
==================================================================
==================================================================
# Test case Number: 11
# Head line
: To check /sbin/rc script executes successfully when
#
/sbin/rc.utils is not present
#
# Os Release
: 11.11 and above.
# Defect Number : JAGae87651
# Description
: /sbin/rc should run and exit successfully
=================================================================
# Run the below test on LINE MODE TERMINAL(Terminal)
Step 1: export DISPLAY variable
For eg export DISPLAY=nt21656:0.0
Step 2: Connect to remote console(Console)
Step 3: mv /sbin/rc.utils /sbin/rc.utils.org
Step 4: Execute /sbin/rc
Expected Result : The script should exit with exit status 0
Config script mesg should appear in the terminal
Cleanup
mv /etc/sbin/rc.itils.org /sbin/rc.utils
================================================================================
============
# export DISPLAY=nt21656:0.0
# mv /sbin/rc.utils /sbin/rc.utils.org
# /sbin/rc
/sbin/auto_parms: DHCP access is disabled (see /etc/auto_parms.log)
Starting subsystems for run-level 3
Starting NFS SERVER subsystem
Reading in /etc/dfs/dfstab
Starting up the mount daemon
rpc.mountd already started, using pid: 1960
Starting up the NFS server daemon
nfsd already started, using pid: 1966
Starting up nfsmapid daemon
AUTOSTART_CMCLD not set to 1 in /etc/rc.config.d/cmcluster, exiting
Starting up the lvmpud daemon
lvmpud already started, using pid: 2002
indica# /sbin/rc
WARNING: /etc/rc.config does not exist
System name not set, default EST5EDT assumed.
/usr/lib/dld.sl: Bad magic number for shared library: /abhi/libc.2
/usr/lib/dld.sl: Exec format error
Starting subsystems for run-level 3
___________________________________
Start NFS server subsystem ................................................
................ OK
Start Highly Available cluster ............................................
................ N/A
ERROR: /etc/rc.config defaults file MISSING Starting HP-UX Apache-based Web
Server ........ N/A
ERROR: /etc/rc.config defaults file MISSING Starting HP-UX Tomcat-based Ser
vlet Engine .... N/A