-
Notifications
You must be signed in to change notification settings - Fork 2
/
Imp.txt
335 lines (262 loc) · 9.83 KB
/
Imp.txt
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
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
610e5692edd0d585b18fe9bc033aae08
feature/us639_Rbac_cookbook
-------------------------------------------------------------------------
[root@ip-10-14-94-217 policies]# ./upload_policy.sh base/shared/pn_css_shared_mssql.rb tst001
cd terraform/provision/environments/shared/
log commands
cd /apps/tomcat/tcapp/csp-e2e-11/
cd /apps/tomcat/tcserver/csp-e2e-11/logs/secapp.log
cd /apps/tomcat/tcserver/csp-e2e-16/logs/secapp.log
tc app -war
tc app -war
tc server - bin / pid
tail -500f /apps/tomcat/tcserver/csp-e2e-16/logs/secapp.log
cd /etc/init.d/
service tomcat_csp-e2e-16 restart
ps -aef | grep ems
ps -ef | grep java| grep csp-e2e-11
----------------------------------------------------------------------------
feature/us515_Entity_Manager_cookbook
---------------------------------------------------------------------------
git config --global http.sslVerify false
git -c http.sslVerify=false clone https://[email protected]/scm/aut/terraform.git
--------------------------------------------------------------------------------------
find /apps/ -name *.keytab
ls /apps/tomcat/
cat -n <filename> | grep ERROR
cat -n <filename> | grep -i error
tail -10f <filename> | grep error
extract war
jar -xvf .war
nslookup hostname
dig domain
dig -x host -
history | grep tail
please update DE230 after confirming with Kamal
ssh -i DevOps002.pem [email protected]
ssh -i DevOps002.pem [email protected]
/home/teamcity/terraform/scripts/e2e
vpc= -var
env_name= -var
aws_subnets= -var
owner= -var
env_purpose= -var
customer= -var
schedule= -var
lease= -var
stack= -var
system= -var
tier= -var
shared_ems= -var
shared_oracle= -var
less /home/teamcity/terraform/scripts/e2e/provision.sh
chmod +x terraformTmp.sh
/home/teamcity/terraform/scripts/e2e/provision.sh ops206 subnet-7d3be324
subnet-7d3be324 rahul_vadisetty DevOps_testing DevOps Nightly_Shutdown 30 End-to-End App 09/11/17_12:22:20_UTC
/home/teamcity/terraform/scripts/prod/provision.sh ops666 subnet-2d84755b subnet-2d84755b c70706 12c DevOps Nightly_Shutdown 1_month DevOps prod App
/home/teamcity/terraform/scripts/e2e/provision.sh ops206 subnet-7d3be324 subnet-7d3be324 Neil Hunt DevOps_testing DevOps Nightly_Shutdown 30_month DevOps End-to-End App pd i-0913640901b488837
/home/teamcity/terraform/scripts/prod/provision.sh ops666 subnet-2
d84755b subnet-2d84755b c70706 12c DevOps Nightly_Shutdown 1_month DevOps prod App
ENV_NAME=${1}
AWS_SUBNETS=${2}
TAG_OWNER=${3}
TAG_ENV_PURPOSE=${4}
TAG_CUSTOMER=${5}
TAG_SCHED=${6}
TAG_LEASE=${7}
TAG_STACK=${8}
TAG_SYSTEM=${9}
TAG_TIER=${10}
AWS_VPC="pd"
E2E_ORACLE_ID=${11}
E2E_EMS_ID=${12}
DATE_TIME=`date +%D_%T_%Z`
terraform apply -var
vpc="$AWS_VPC" -var
env_name="$ENV_NAME" -var
aws_subnets="$AWS_SUBNETS" -var
owner="$TAG_OWNER" -var
env_purpose="$TAG_ENV_PURPOSE" -var
customer="$TAG_CUSTOMER" -var
schedule="$TAG_SCHED" -var
lease="$TAG_LEASE" -var stack="$TAG_STACK" -var
system="$TAG_SYSTEM" -var
tier="$TAG_TIER" -var shared_ems="$E2E_EMS_ID" -var
shared_oracle="$E2E_ORACLE_ID" -var
creation_time="$DATE_TIME"
./upload_policy.sh base/shared/pn_css_shared_mssql.rb
aws ec2 start-instances --instance-ids i-0a4a33e04c4ccc916
/apps/neo4j/logs
java -jar config-migrator.jar path/to/neo4j2.3 path/to/neo4j3.2
dbms.allow_format_migration=true
(cd /home/css.local/c92920/policies && sudo ./upload_policy.sh {e2e/prod_style}/{policy name}.rb {env_name})
(cd /home/css.local/c53972/policies && sudo ./upload_policy.sh e2e/pn_css_e2e.rb ops208)
-------------------------------------------------------------------------------------------------------------------------------
./aws-saml
aws ec2 describe-regions
aws ec2 describe-instances --max-items=1
aws-saml --help
aws ec2 run-instances --image-id ami-676d1f70 --count 1 --instance-type r4.2xlarge --security-group-ids sg-00ce2164
--subnet-id subnet-00155f59 --block-device-mappings file://bdm.json
[
{
"DeviceName": "/dev/sda1",
"Ebs": {
"DeleteOnTermination": true,
"SnapshotId": "snap-e341ccf1",
"VolumeSize": 80,
"VolumeType": "gp2"
}
},
{
"DeviceName": "xvdc",
"Ebs": {
"DeleteOnTermination": true,
"SnapshotId": "snap-f33ebaf5",
"VolumeSize": 10,
"VolumeType": "gp2"
}
},
{
"DeviceName": "xvdf",
"Ebs": {
"DeleteOnTermination": true,
"SnapshotId": "snap-f4255e68",
"VolumeSize": 50,
"VolumeType": "gp2"
}
},
{
"DeviceName": "xvdb",
"Ebs": {
"DeleteOnTermination": true,
"SnapshotId": "snap-ded21c44",
"VolumeSize": 32,
"VolumeType": "gp2"
}
}
]
----------------------------------------------------------------------------------------------------------------------------------
http://pipeline-dev.css.local:443/viewType.html?buildTypeId=LittleSandBoxDev_CookbookDeploy&tab=buildTypeStatusDiv
$ mount
C:/Program Files (x86)/Git on / type ntfs (binary,noacl,auto)
C:/Program Files (x86)/Git/usr/bin on /bin type ntfs (binary,noacl,auto)
E:/Users/C53972.adm/AppData/Local/Temp on /tmp type ntfs (binary,noacl,posix=0)
C: on /c type ntfs (binary,noacl,posix=0,user,noumount,auto)
D: on /d type ntfs (binary,noacl,posix=0,user,noumount,auto)
E: on /e type ntfs (binary,noacl,posix=0,user,noumount,auto)
P: on /p type ntfs (binary,noacl,posix=0,user,noumount,auto)
U: on /u type ntfs (binary,noacl,posix=0,user,noumount,auto)
C53972.adm@CSSAVDVDIADM275 MINGW64 /
$
C53972.adm@CSSAVDVDIADM275 MINGW64 /
$ df -h .
Filesystem Size Used Avail Use% Mounted on
C:/Program Files (x86)/Git 80G 59G 21G 74% /
C53972.adm@CSSAVDVDIADM275 MINGW64 /
$
C53972.adm@CSSAVDVDIADM275 MINGW64 /
$ df -h
Filesystem Size Used Avail Use% Mounted on
C:/Program Files (x86)/Git 80G 59G 21G 74% /
E: 38G 260M 38G 1% /e
D: 38G 16G 23G 41% /d
P: 11T 7.7T 3.1T 72% /p
U: 5.9T 4.7T 1.2T 80% /u
C53972.adm@CSSAVDVDIADM275 MINGW64 /
$
C53972.adm@CSSAVDVDIADM275 MINGW64 /
$ cd /u
C53972.adm@CSSAVDVDIADM275 MINGW64 /u
$ ls -l
total 1
drwxr-xr-x 1 C53972.adm 1049089 0 Jun 22 15:36 $RECYCLE.BIN/
-rw-r--r-- 1 C53972.adm 1049089 402 Jun 22 15:36 desktop.ini
drwxr-xr-x 1 C53972.adm 1049089 0 Jun 22 15:36 My Music/
drwxr-xr-x 1 C53972.adm 1049089 0 Jun 22 15:36 My Pictures/
drwxr-xr-x 1 C53972.adm 1049089 0 Jun 22 15:36 My Videos/
C53972.adm@CSSAVDVDIADM275 MINGW64 /u
$ mkdir test-dir
C53972.adm@CSSAVDVDIADM275 MINGW64 /u
$ cd ..
C53972.adm@CSSAVDVDIADM275 MINGW64 /
$ clear
C53972.adm@CSSAVDVDIADM275 MINGW64 /
$ pwd
/
C53972.adm@CSSAVDVDIADM275 MINGW64 /
$ ls -l
total 2692
drwxr-xr-x 1 C53972.adm 1049089 0 Apr 7 14:21 bin/
drwxr-xr-x 1 C53972.adm 1049089 0 Apr 7 14:19 cmd/
drwxr-xr-x 1 C53972.adm 1049089 0 Apr 7 14:19 dev/
drwxr-xr-x 1 C53972.adm 1049089 0 Apr 7 14:19 etc/
-rwxr-xr-x 1 C53972.adm 1049089 140800 Oct 19 2015 git-bash.exe*
-rwxr-xr-x 1 C53972.adm 1049089 140288 Oct 19 2015 git-cmd.exe*
drwxr-xr-x 1 C53972.adm 1049089 0 Apr 7 14:20 mingw64/
dr-xr-xr-x 9 C53972.adm 1049089 0 Jun 22 21:15 proc/
-rw-r--r-- 1 C53972.adm 1049089 57831 Oct 19 2015 ReleaseNotes.html
drwxr-xr-x 1 C53972.adm 1049089 0 Jun 22 21:09 tmp/
-rw-r--r-- 1 C53972.adm 1049089 969002 Oct 21 2015 unins000.dat
-rwxr-xr-x 1 C53972.adm 1049089 1300779 Oct 21 2015 unins000.exe*
drwxr-xr-x 1 C53972.adm 1049089 0 Apr 7 14:22 usr/
C53972.adm@CSSAVDVDIADM275 MINGW64 /
$ pwd
/
C53972.adm@CSSAVDVDIADM275 MINGW64 /
$ df -h
Filesystem Size Used Avail Use% Mounted on
C:/Program Files (x86)/Git 80G 59G 21G 74% /
E: 38G 260M 38G 1% /e
D: 38G 16G 23G 41% /d
P: 11T 7.7T 3.1T 72% /p
U: 5.9T 4.7T 1.2T 80% /u
C53972.adm@CSSAVDVDIADM275 MINGW64 /
$ p:
bash: p:: command not found
C53972.adm@CSSAVDVDIADM275 MINGW64 /
$ cd /p
C53972.adm@CSSAVDVDIADM275 MINGW64 /p
$ pwd
/p
C53972.adm@CSSAVDVDIADM275 MINGW64 /p
$ cd ..
C53972.adm@CSSAVDVDIADM275 MINGW64 /
$ df -h
Filesystem Size Used Avail Use% Mounted on
C:/Program Files (x86)/Git 80G 59G 21G 74% /
E: 38G 260M 38G 1% /e
D: 38G 16G 23G 41% /d
P: 11T 7.7T 3.1T 72% /p
U: 5.9T 4.7T 1.2T 80% /u
C53972.adm@CSSAVDVDIADM275 MINGW64 /
$ /u
bash: /u: Is a directory
C53972.adm@CSSAVDVDIADM275 MINGW64 /
$ pwd
/
C53972.adm@CSSAVDVDIADM275 MINGW64 /
$ cd /u
C53972.adm@CSSAVDVDIADM275 MINGW64 /u
$ pwd
http://pdops209em.css.local:8111/entitymanager-ui/
http://pdops209em.css.local:8116/model-factory-web/#/
/u
C53972.adm@CSSAVDVDIADM275 MINGW64 /u
$ mkdir cookbook
C53972.adm@CSSAVDVDIADM275 MINGW64 /u
$ cd cookbook/
C53972.adm@CSSAVDVDIADM275 MINGW64 /u/cookbook
$ pwd
/u/cookbook
C53972.adm@CSSAVDVDIADM275 MINGW64 /u/cookbook
$ git clone https://[email protected]/scm/acc/css_appops.git
Cloning into 'css_appops'...
fatal: unable to access 'https://[email protected]/scm/acc/css_appops.git/': error setting certificate verify locations:
CAfile: C:/Program Files (x86)/Git/mingw64/libexec/ssl/certs/ca-bundle.crt
CApath: none
C53972.adm@CSSAVDVDIADM275 MINGW64 /u/cookbook
$ https://[email protected]/scm/acc/css_appops.git^C
C53972.adm@CSSAVDVDIADM275 MINGW64 /u/cookbook
$
----------------------------------------------------------------------------------------------------------------------------------------------