Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qa-deploy-utils
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
QA
qa-deploy-utils
Commits
3a693fc5
Commit
3a693fc5
authored
Feb 17, 2017
by
QA-甘 盛聪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
2da1094f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
20 deletions
+1
-20
1_mount_config_files.sh
qa_shell_script/1_mount_config_files.sh
+0
-19
sub_shell.sh
qa_shell_script/sub_shell.sh
+1
-1
No files found.
qa_shell_script/1_mount_config_files.sh
View file @
3a693fc5
#!/bin/bash
#!/bin/bash
#IP_host_first="192.168.4."
#config_files=/home/config_files
#umount $config_files
#rm -rf $config_files
#mkdir $config_files
#ip_add=`/sbin/ifconfig -a|grep inet|grep -v 127.0.0.1|grep -v inet6|awk '{print $2}'|tr -d "addr:"`
#mount -t nfs 192.168.4.3:/home/sub_config_file_dont_rm/${ip_add}/ $config_files
#for ip_last_num in 12 13 14 15 16 17 24 151
#do
# ssh root@${IP_host_first}${ip_last_num}
# if [ $? = 0 ]; then
# echo "ssh ${IP_host_first}${ip_last_num} is ok".
# mkdir -p /home/qa-deploy-utils/qa_shell_script
# mount -t nfs 192.168.4.3:/home/qa-deploy-utils/qa_shell_script /home/qa-deploy-utils/qa_shell_script
# else
# echo "Fail to ssh ${IP_host_first}${ip_last_num}".
# exit -1
# fi
#done
target_ip
=
$1
target_ip
=
$1
IP_host_first
=
"192.168.4."
IP_host_first
=
"192.168.4."
config_files
=
/home/config_files
config_files
=
/home/config_files
...
...
qa_shell_script/sub_shell.sh
View file @
3a693fc5
...
@@ -4,7 +4,7 @@ public_ip="139.198.2.95"
...
@@ -4,7 +4,7 @@ public_ip="139.198.2.95"
mkdir
/home/sub_config_file_dont_rm
mkdir
/home/sub_config_file_dont_rm
for
ip_last_num
in
12 13 14 15 16 17 24 151
for
ip_last_num
in
12 13 14 15 16 17 24 151
152
do
do
cd
/home/sub_config_file_dont_rm
cd
/home/sub_config_file_dont_rm
mkdir
${
IP_host_first
}${
ip_last_num
}
mkdir
${
IP_host_first
}${
ip_last_num
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment