-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path22I-0833_A_Q#5.cpp
More file actions
182 lines (97 loc) · 6.36 KB
/
Copy path22I-0833_A_Q#5.cpp
File metadata and controls
182 lines (97 loc) · 6.36 KB
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
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
#include <iostream>
#include<string>
using namespace std;
int main(){
string ans;
cout<<"Starting General Diagnosis Program.\n";
cout<<"Recording symptoms information - DONE.\n";//1
cout<<"Rebooting server to see if condition still exists - DONE.\n";
cout<<"Is this a newly installed server?: ";
cin>>ans;
if ( (ans=="y" || ans=="Y" || ans=="Yes" || ans=="yes" || ans=="n" || ans=="N" || ans=="No" || ans=="no" ) ==0)
cout<<"Invalid Input\n";
if (ans=="y" || ans=="Y" || ans=="Yes" || ans=="yes"){
cout<<"Please reseat any components that may have come loose during shipping - DONE.\n";//2
cout<<"Rebooting the server - DONE.\n";
cout<<"Does the condition still exist?: ";
cin>>ans;
if (ans=="n" || ans=="N" || ans=="No" || ans=="no"){
cout<<"Recording all actions taken for future - DONE.\n";//1
cout<<"Congratulations, your server problems are solved.\n";
return 0;}
else if (ans=="y" || ans=="Y" || ans=="Yes" || ans=="yes")
ans ="n";
else
cout<<"Invalid input\n";
}
if (ans=="n" || ans=="N" || ans=="No" || ans=="no"){
cout<<"Were options added or was the configuration changed recently?\n";
cin>>ans;
if (ans=="y" || ans=="Y" || ans=="Yes" || ans=="yes"){
cout<<"Isolating what has changed - DONE\n";//6
cout<<"Verifying if it was installed correctly - DONE \n";
cout<<"Restoring server to the last known working state or original shipped configuration - DONE\n";
cout<<"Does the condition still exist?: ";
cin>>ans;
if (ans=="n" || ans=="N" || ans=="No" || ans=="no"){
cout<<"Recording all actions taken for future - DONE.\n";
cout<<"Congratulations, your server problems are solved.\n";
return 0;}
else if ( (ans=="y" || ans=="Y" || ans=="Yes" || ans=="yes" || ans=="n" || ans=="N" || ans=="No" || ans=="no" ) ==0)
cout<<"Invalid Input\n";}
else if ( (ans=="y" || ans=="Y" || ans=="Yes" || ans=="yes" || ans=="n" || ans=="N" || ans=="No" || ans=="no" ) ==0)
cout<<"Invalid Input";
if (ans=="n" || ans=="N" || ans=="No" || ans=="no"){
cout<<"Checking for Service Notifications - DONE\n";//3
cout<<"Downloading the latest software and firmware from the HP website\n";//4
cout<<"Does the condition still exists: ";
cin>>ans;
if (ans=="n" || ans=="N" || ans=="No" || ans=="no"){
cout<<"Recording all actions taken for future - DONE.\n";
cout<<"Congratulations, your server problems are solved.\n";
return 0;}
else if ( (ans=="y" || ans=="Y" || ans=="Yes" || ans=="yes" || ans=="n" || ans=="N" || ans=="No" || ans=="no" ) ==0)
cout<<"Invalid Input\n";}
if (ans=="y" || ans=="Y" || ans=="Yes" || ans=="yes"){
cout<<"Isolating and minimizing the memory configuration - DONE\n";//5
cout<<"Does the condition still exist?: ";
cin>>ans;
if (ans=="n" || ans=="N" || ans=="No" || ans=="no"){
cout<<"Recording all actions taken for future - DONE.\n";
cout<<"Congratulations, your server problems are solved.\n";
return 0;}
else if ( (ans=="y" || ans=="Y" || ans=="Yes" || ans=="yes" || ans=="n" || ans=="N" || ans=="No" || ans=="no" ) ==0)
cout<<"Invalid Input\n";
else if (ans=="y" || ans=="Y" || ans=="Yes" || ans=="yes"){
cout<<"Breaking server down to minimal configuration\n";
cout<<"Does the condition still exist?: ";
cin>>ans;
if ( (ans=="y" || ans=="Y" || ans=="Yes" || ans=="yes" || ans=="n" || ans=="N" || ans=="No" || ans=="no" ) ==0)
cout<<"Invalid Input";
else if (ans=="n" || ans=="N" || ans=="No" || ans=="no"){
cout<<"Adding one part at a time back to configuration to isolate faulty configuration.\n";
cout<<"Does the condition still exist?: ";
cin>>ans;
if ( (ans=="y" || ans=="Y" || ans=="Yes" || ans=="yes" || ans=="n" || ans=="N" || ans=="No" || ans=="no" ) ==0)
cout<<"Invalid Input\n";
else if (ans=="n" || ans=="N" || ans=="No" || ans=="no"){
cout<<"Recording all actions taken for future - DONE.\n";
cout<<"Congratulations, your server problems are solved.\n";
return 0;}
else if (ans=="y" || ans=="Y" || ans=="Yes" || ans=="yes"){
cout<<"Ensure following information is available\n1. Survey Configuration Snapshots\n";//8
cout<<"2. OS Event Log File\n3. Full Crash Dump\n";
cout<<"Call HP Service Provider\n";}}//9
else if (ans=="y" || ans=="Y" || ans=="Yes" || ans=="yes"){
cout<<"Troubleshooting or Replacing Basic Server Spare Parts - DONE\n";//7
cout<<"Does the condition still exist?: ";
cin>>ans;
if ( (ans=="y" || ans=="Y" || ans=="Yes" || ans=="yes" || ans=="n" || ans=="N" || ans=="No" || ans=="no" ) ==0)
cout<<"Invalid Input\n";
else if (ans=="y" || ans=="Y" || ans=="Yes" || ans=="yes"){
cout<<"Ensure following information is available\n1. Survey Configuration Snapshots\n";
cout<<"2. OS Event Log File\n3. Full Crash Dump\n";
cout<<"Call HP Service Provider\n";}
else if (ans=="n" || ans=="N" || ans=="No" || ans=="no")
cout<<"Recording Symptom or Error Information on Repair tag if Sending Back a Repaired Part.\n";}}}}
return 0;}