-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdiagnosis2.cpp
163 lines (156 loc) · 8.56 KB
/
diagnosis2.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
#include <iostream>
using namespace std;
int main() {
string con1, con2, con3, con4, con5, con6, con7, con8, con9, con10, con11, con12, con13, con14, con15, con16, con17, con18, con19, con20, con21, con22, con23, con24, con25;
cout << "Starting General Diagnosis Program." << endl;
cout << "Recording Symptoms Information - " << endl;
cout << "DONE" << endl;
cout << " Is this a newly installed server ? ";
cin >> con1;
if (con1 == "yes") {
cout << "Reseat any components that may have come loose during shipping and reboot the server." << endl;
cout << "Does condition still exist ? ";
cin >> con2;
if (con2 == "yes") {
cout << "Were the options added or was configuration changed recently ? ";
cin >> con3;
if (con3 == "yes") {
cout << "Isolate what has changed. Verify it was installed correctly. Restore server to last known working state or original shipped configuration.";
cout << "Does condition still exist ? ";
cin >> con9;
if (con9 == "yes") {
cout << "Isolate and minimize the memory configuration." << endl;
cout << "Does condition still exist ? ";
cin >> con10;
if (con10 == "yes") {
cout << "Break server down to minimal configuration." << endl;
cout << "Does condition still exist ? ";
cin >> con11;
if (con11 == "yes") {
cout << "Troubleshoot or replace basic server spare parts." << endl;
cout << "Does condition still exist ? ";
cin >> con12;
if (con12 == "yes") {
cout << "Ensure the following information is available : " << endl;
cout << " 1. Survey and configuration snapshots " << endl;
cout << " 2. OS event log file " << endl;
cout << " 3. Full crash dump " << endl;
cout << endl << "\n";
cout << " Call HP Service Provider. ";
}
else {
cout << "Record symptoms and error information on a repair tag if sending back a failed part." << endl;
}
}
else {
cout << "Add one part at a time back to the configuration to isolate a faulty component. " << endl;
cout << "Does the condition still exist ? ";
cin >> con13;
if (con13 == "yes") {
cout << "Ensure the following information is available : " << endl;
cout << " 1. Survey and configuration snapshots " << endl;
cout << " 2. OS event log file " << endl;
cout << " 3. Full crash dump " << endl;
cout << endl << "\n";
cout << " Call HP Service Provider. " << endl;
}
else {
cout << "Record action taken." << endl;
}
}
}
else {
cout << "Record action taken." << endl;
}
}
else {
cout << "Check for Service Notifications." << endl;
cout << "Download the latest software and firmware from the website." << endl;
cout << "Does the condition still exist ? ";
cin >> con4;
if (con4 == "yes") {
cout << "Isolate and minimize the memory configuration." << endl;
cout << "Does the condition still exist ? ";
cin >> con5;
if (con5 == "yes") {
cout << "Break the server down to minimal configuration." << endl;
cout << "Does the condition still exist ? ";
cin >> con6;
if (con6 == "yes") {
cout << "Troubleshoot or replace basic server spare parts." << endl;
cout << "Does the condition still exist ? ";
cin >> con7;
if (con7 == "yes") {
cout << "Ensure the following information is available : " << endl;
cout << " 1. Survey and configuration snapshots " << endl;
cout << " 2. OS event log file " << endl;
cout << " 3. Full crash dump " << endl;
cout << endl << "\n";
cout << " Call HP Service Provider. ";
}
else {
cout << "Record symptoms and error information on a repair tag if sending back a failed part." << endl;
}
}
else {
cout << "Add one part at a time back to the configuration to isolate a faulty component. " << endl;
cout << "Does the condition still exist ? ";
cin >> con8;
if (con8 == "yes") {
cout << "Ensure the following information is available : " << endl;
cout << " 1. Survey and configuration snapshots " << endl;
cout << " 2. OS event log file " << endl;
cout << " 3. Full crash dump " << endl;
cout << endl << "\n";
cout << " Call HP Service Provider. " << endl;
}
else {
cout << "Record action taken." << endl;
}
}
}
else {
cout << "Record action taken." << endl;
}
}
else {
cout << "Record action taken." << endl;
}
}
}
else {
cout << "Record action taken." << endl;
}
}
}
else {
cout << "Were the options added or was configuration changed recently ? ";
cin >> con14;
if (con14 == "yes") {
cout << "Isolate what has changed. Verify it was installed correctly. Restore server to last known working state or original shipped configuration."<<endl;
cout << "Does the condition still exist ? ";
cin >> con15;
if (con15 == "yes") {
cout << "Isolate and minimize the memory configuration." << endl;
cout << "Does the condition still exist ? ";
cin >> con16;
if (con16 == "yes") {
cout << "Break the server down to minimal configuration." << endl;
cout << "Does the condition still exist ? ";
cin >> con17;
if (con17 == "yes") {
cout << "Troubleshoot or replace basic server spare parts." << endl;
cout << "Does the condition still exist ? ";
cin >> con18;
if (con18 == "yes") {
cout << "Ensure the following information is available : " << endl;
cout << " 1. Survey and configuration snapshots " << endl;
cout << " 2. OS event log file " << endl;
cout << " 3. Full crash dump " << endl;
cout << endl << "\n";
cout << " Call HP Service Provider. ";
}
else {
cout << "Record symptoms";
}
}}}}}}