You are on page 1of 3

-- SQL Server Credentials

user=odmj2eeservice
password=pf2xaamf

-- P013 Windows Server Credentials


user=enterprise\emmengg
password=Ynj7j03T

-- SQL Server Credentials


user=ccsuser
password=pass123

-- 045 Server Credentials


user=dontch01
Password=Valuelabs12

-- Command to check file counts in folder


ls -RF | sed -e '/^$/d' -e '/.*[/@:=|>]$/d' |wc -l
(or)
ls -l *.xml | wc -l

-- Command to check file counts in folder of specific type (Ex. _20141123)


find . -type f -name "*_20141123*.xml" |wc -l

-- Check file counts in subfolders


Check file count only in (EventLog EventLog_UK EventLog_JP EventLog_IT EventLog_AU
folders )
find EventLog EventLog_UK EventLog_JP EventLog_IT EventLog_AU -maxdepth 0 -type d
-exec sh -c "echo '{}'; ls -1 '{}' | wc -l" \; | xargs -n 2 | awk '{print $1" "$2}'

Check file count from all folders


find * -maxdepth 0 -type d -exec sh -c "echo '{}'; ls -1 '{}' | wc -l" \; | xargs -n 2 | awk '{print
$1" "$2}'

Note: In above scirpt "-maxdepth 0" is important factor.

-- Search string in XMLs


find . -name "352584060248454_20150130*.xml" | xargs grep "inviato "

-- Command to move specific format files from current folder to destination folder
(Ex./marklogic/NewCrediting_Process/IT/IT_50K/)
Must and should check the destination Path using below command
cd /marklogic/NewCrediting_Process/IT/IT_50K/
and enter pwd
then it will show thw location and copy the destination path and then enter the below
command.
find . -type f -name "*_2015011*.xml"| xargs -i mv "{}"
/marklogic/NewCrediting_Process/IT/IT_50K/

Note: Destination folder must exists in the server. else all files will be deleted.

-- Wait the process in SH file


sleep 10m;

-- Get row counts form RAW log files:


command :
zcat access_log.20140614090001.209.190.12.114.gz | wc -l

-- Tar and UnTar:


Step 1:
tar:
open cygwin
cd c:
cd tdcs/Prod/EventLog_XX
tar zcvf Italy06060.tar.gz Italy0606/

Step 2:
move from UK NAS to US NAS:
robocopy "C:\tdcs\Prod" "\\nadayisicifs02.enterprisenet.org\emmprod2\ODM\Prod" "Italy06060.tar.gz"
/MOV /R:1

Step 3:
untar:
login 036 server
cd /CCS_Prod_US_AndroidLog/ODM/Prod/EventLog_IT0606
tar -xvf Italy06060.tar.gz

-- Check Java running processes


ps -ef|grep java

-- Command to stop Java crediting process


Identify the Java crediting processID
kill -9 <Java crediting processID>

-- Command to delete temp files and logs from Java at time of restart
cd /marklogic/JBossRuntime; rm -rf data log;cd /home/soa/jboss-soa-p-5/jboss-
as/server/default; rm -rf data log tmp work; cd /home/soa/jboss-soa-p-5/jboss-as/bin;

-- Command to restart the Java Android crediting system.


./run.sh –b 10.7.52.123 &
-- Manually running android files available in folder using Reprocess tool
Step 1:
cd /marklogic/AndroidClient; export CLASSPATH=.:/home/soa/jboss-soa-p-5/jboss-
as/client/jbossall-client.jar;

Step 2: one of below command.


java org.jboss.soa.esb.samples.quickstart.helloworld.test.AndroidRepFileNameClient au
/marklogic/NewCrediting_Process/AU/AU_50K_1 10.7.52.123
java org.jboss.soa.esb.samples.quickstart.helloworld.test.AndroidRepFileNameClient jp
/marklogic/NewCrediting_Process/JP/JP_50K_1 10.7.52.123
java org.jboss.soa.esb.samples.quickstart.helloworld.test.AndroidRepFileNameClient it
/marklogic/NewCrediting_Process/IT/IT_50K_1 10.7.52.123
java org.jboss.soa.esb.samples.quickstart.helloworld.test.AndroidRepFileNameClient us
/marklogic/NewCrediting_Process/US/US_50K_1 10.7.52.123
java org.jboss.soa.esb.samples.quickstart.helloworld.test.AndroidRepFileNameClient uk
/marklogic/NewCrediting_Process/UK/UK_50K_1 10.7.52.123

You might also like