0
|
1 |
#
|
|
2 |
# Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
|
|
3 |
# All rights reserved.
|
|
4 |
# This component and the accompanying materials are made available
|
|
5 |
# under the terms of "Eclipse Public License v1.0"
|
|
6 |
# which accompanies this distribution, and is available
|
|
7 |
# at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
8 |
#
|
|
9 |
# Initial Contributors:
|
|
10 |
# Nokia Corporation - initial contribution.
|
|
11 |
#
|
|
12 |
# Contributors:
|
|
13 |
#
|
|
14 |
# Description:
|
|
15 |
# USE-CASE-0: Start/Stop Services
|
|
16 |
# UP-TO-DATE
|
|
17 |
# This script starts all the services, waits for a signal, and then stops all the
|
|
18 |
# services. This should only be used by an administrator.
|
|
19 |
#
|
|
20 |
|
|
21 |
|
|
22 |
|
|
23 |
#######################################################################################
|
|
24 |
#
|
|
25 |
# Start the services
|
|
26 |
#
|
|
27 |
#######################################################################################
|
|
28 |
runcmd svcid=5 svchost="penmn" methodid=1 PORT=7000
|
|
29 |
check RESULT=0
|
|
30 |
runcmd svcid=5 svchost="penpdsn" methodid=1 PORT=7000
|
|
31 |
check RESULT=0
|
|
32 |
runcmd svcid=7 svchost="penmn" methodid=1
|
|
33 |
check RESULT=0
|
|
34 |
runcmd svcid=7 svchost="penpdsn" methodid=1
|
|
35 |
check RESULT=0
|
|
36 |
runcmd svcid=2 svchost="penha" methodid=1 BASEINTERFACE=0 BASENETMASK=24 BASESTARTRANGE=100 BASEENDRANGE=199 VIRTUALNETWORKPREFIX="192.168.111.0" VIRTUALNETWORKMASK=24 VIRTUALNETWORKSIZE=4
|
|
37 |
check RESULT=0
|
|
38 |
runcmd svcid=3 svchost="penpdsn" methodid=1 BASEINTERFACEINDEX=0 NETMASK=24 STARTHOSTADDRESSRANGE=100 STOPHOSTADDRESSRANGE=199
|
|
39 |
check RESULT=0
|
|
40 |
runcmd svcid=4 svchost="penmn" methodid=1
|
|
41 |
check RESULT=0
|
|
42 |
|
|
43 |
|
|
44 |
#######################################################################################
|
|
45 |
#
|
|
46 |
# Signal that we are done
|
|
47 |
#
|
|
48 |
#######################################################################################
|
|
49 |
signal
|
|
50 |
waitforsignal
|
|
51 |
|
|
52 |
|
|
53 |
#######################################################################################
|
|
54 |
#
|
|
55 |
# Get the object count for each service
|
|
56 |
#
|
|
57 |
#######################################################################################
|
|
58 |
runcmd svcid=5 svchost="penmn" methodid=9
|
|
59 |
check DEVICECOUNT=0
|
|
60 |
runcmd svcid=5 svchost="penpdsn" methodid=9
|
|
61 |
check DEVICECOUNT=0
|
|
62 |
runcmd svcid=7 svchost="penmn" methodid=30
|
|
63 |
check DEVICECOUNT=0
|
|
64 |
runcmd svcid=7 svchost="penpdsn" methodid=30
|
|
65 |
check DEVICECOUNT=0
|
|
66 |
runcmd svcid=2 svchost="penha" methodid=30
|
|
67 |
check AGENTCOUNT=0
|
|
68 |
runcmd svcid=3 svchost="penpdsn" methodid=30
|
|
69 |
check AGENTCOUNT=0
|
|
70 |
runcmd svcid=4 svchost="penmn" methodid=30
|
|
71 |
check AGENTCOUNT=0
|
|
72 |
|
|
73 |
|
|
74 |
#######################################################################################
|
|
75 |
#
|
|
76 |
# Stop all the services
|
|
77 |
#
|
|
78 |
#######################################################################################
|
|
79 |
runcmd svcid=7 svchost="penmn" methodid=2 FORCE=0
|
|
80 |
check RESULT=0
|
|
81 |
runcmd svcid=7 svchost="penpdsn" methodid=2 FORCE=0
|
|
82 |
check RESULT=0
|
|
83 |
runcmd svcid=5 svchost="penmn" methodid=2 FORCE=0
|
|
84 |
check RESULT=0
|
|
85 |
runcmd svcid=5 svchost="penpdsn" methodid=2 FORCE=0
|
|
86 |
check RESULT=0
|
|
87 |
runcmd svcid=2 svchost="penha" methodid=2 FORCE=0
|
|
88 |
check RESULT=0
|
|
89 |
runcmd svcid=3 svchost="penpdsn" methodid=2 FORCE=0
|
|
90 |
check RESULT=0
|
|
91 |
runcmd svcid=4 svchost="penmn" methodid=2 FORCE=0
|
|
92 |
check RESULT=0
|
|
93 |
|
|
94 |
|
|
95 |
#######################################################################################
|
|
96 |
#
|
|
97 |
# Done
|
|
98 |
#
|
|
99 |
#######################################################################################
|
|
100 |
rendezvous
|