X7ROOT File Manager
Current Path:
/usr/local/VMOptimizationTools_2.69.0
usr
/
local
/
VMOptimizationTools_2.69.0
/
๐
..
๐
LinuxUpdate.XML
(647 B)
๐
SangforVMSTool
(3.11 KB)
๐
SangforVMSTool.service
(194 B)
๐
action_common.sh
(13.34 KB)
๐
busybox_cmd_ln.sh
(2.24 KB)
๐
collect_test_data.sh
(1.16 KB)
๐
common_config.sh
(278 B)
๐
data_test_tool.sh
(16.62 KB)
๐
debian_vmconfig.sh
(13.48 KB)
๐
driver
๐
guest_system_config.sh
(1.82 KB)
๐
hostname_config
(1 B)
๐
ipv6_network_config
(94 B)
๐
log.sh
(1.36 KB)
๐
mod_test.sh
(3.69 KB)
๐
mod_test1.sh
(914 B)
๐
net_common.sh
(915 B)
๐
network_compat_flag
(0 B)
๐
network_config
(86 B)
๐
pwd_info_config
(1 B)
๐
redhat_vmconfig.sh
(17.93 KB)
๐
reset_duid_config
(21 B)
๐
sangfor_guest_datareport
(25.63 KB)
๐
sangfor_heartalive.sh
(2.37 KB)
๐
sangfor_module_update
(28.11 KB)
๐
sangfor_set_network.sh
(504 B)
๐
sangfor_sfping
(4.23 KB)
๐
sangfor_sshkey_gen
(1.29 KB)
๐
sangfor_update_ipc_callback
(5.29 KB)
๐
sangfor_vm_proxyd
(3.45 KB)
๐
sangfor_vm_proxyd_r
(4.4 KB)
๐
sangfor_vm_proxyd_w
(1.32 KB)
๐
sangfor_vmconfig
(3.55 KB)
๐
sangfor_vmconfig_common
(38.34 KB)
๐
sangfor_vmconfig_ipc_callback
(4.75 KB)
๐
sangfor_watchdog
(3.95 KB)
๐
sfping
(17.7 KB)
๐
sfping.pl
(8.57 KB)
๐
startall
(1.78 KB)
๐
stopall
(1.11 KB)
๐
suse_vmconfig.sh
(10.07 KB)
๐
tools_x64
๐
tools_x86
๐
uni_test.sh
(2.59 KB)
๐
update_common_func
(4.35 KB)
๐
update_common_header
(4.86 KB)
๐
update_config
(2.89 KB)
๐
update_install
(33.63 KB)
๐
update_network.flag
(1 B)
๐
virtio_nic_attr_set.sh
(2.42 KB)
๐
virtio_nic_compat.sh.old1610337499
(5.64 KB)
๐
vm_ip_recover.sh
(16.66 KB)
๐
vm_ipc.sh
(9.06 KB)
๐
vmconfig_common_func
(23.11 KB)
๐
vmconfig_common_header
(3.37 KB)
๐
vmconfig_config
(1.02 KB)
๐
vmtools-install.sh
(31.16 KB)
๐
watch_test.sh
(313 B)
๐
watchdog.sh
(1.39 KB)
๐
x64
๐
x86
Editing: sangfor_vmconfig
#!/bin/bash shell_dir=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) . "${shell_dir}/sangfor_vmconfig_common" main(){ local loop_count=0 local check_network_count=0 set_log_filepath "${g_sangfor_log_dir}/${g_vmconfig_shell_name}.log" kill_process "${g_vmconfig_shell_name}" kill_process "${g_vmconfig_callback_shell_file}" #watch watchdog_reg_proccess "${g_vmconfig_shell_name}" #init environment init_env if [ $? -ne 0 ]; then log_error "init_env failed!" return 1 fi vm_ipc_init ${g_mode_id} ${g_instance_id} if [ $? -ne 0 ]; then log_error "vm_ipc_init() failed! modid='${g_mode_id}' instid='${g_instance_id}'" return 1 fi # log file path changed after vm_ipc_init,set path again set_log_filepath "${g_sangfor_log_dir}/${g_vmconfig_shell_name}.log" "${g_current_dir}/${g_vmconfig_callback_shell_file}" & # background loop clear_chpasswd_lock_file reset_network_compat_flag while true do watchdog_check_once flag_file="$g_current_dir/update_vmconfig.flag" if [ -e "$flag_file" ] || [ $loop_count -eq 0 ] || [ $loop_count -gt $g_vmconfig_loop_count ];then log_info "##begin update vmconfig,loop_count=$loop_count" if [ -e "$flag_file" ];then log_info "remove file $flag_file" rm -f "$flag_file" 2>/dev/null if [ $? -ne 0 ];then log_warn "remove file $flag_file...failed" fi fi #ๆดๆฐ้ ็ฝฎๆไปถ update_vmconfig if [ $? -ne 0 ];then # ้ฟๅ ๅๆญฅ้ ็ฝฎๅคฑ่ดฅๅไธ็ด้่ฏ sleep ${g_vmconfig_loop_time} continue fi # ๅคๆญ้ ็ฝฎๆไปถๆๆๆง๏ผๅฆๆๆฒกๆๅ ๅซ memory ๅญ็ผๆไปฌๅฐฑ่ฎคไธบ้ ็ฝฎๆ ๆ check_vmconf_valid ${g_temp_dir}/${g_vm_config_file_name} if [ $? -eq 0 ];then # ้ ็ฝฎๆไปถๆ ๆๅไธๆฃๆฅๅ ถไป้ ็ฝฎๆฏๅฆๆนๅ log_error "no valid config file: ${vmconfig_file}, do not check other config" sleep ${g_vmconfig_loop_time} continue fi check_hostname_config_changed if [ $? -eq 0 ];then log_info "##hostname config changed" host_config_hostname ${shell_dir}/${g_hostname_config_file_name} fi check_passwd_config_changed if [ $? -eq 0 ];then log_info "##pwd_info config changed" host_config_password ${shell_dir}/${g_password_config_file_name} fi local ip_changed=0 check_network_config_changed "ipv4" if [ $? -eq 0 ];then ip_changed=1 network_config "ipv4" "${g_temp_dir}/${g_network_config_file_name}.changed" fi #ๅคๆญ้ ็ฝฎๆไปถไธญๆฏๅฆๅญๅจipv6็ไฟกๆฏ check_network_config_changed "ipv6" if [ $? -eq 0 ];then ip_changed=1 network_config "ipv6" "${g_temp_dir}/${g_ipv6_network_config_file_name}.changed" fi if [ $ip_changed -eq 1 ];then #dns้ ็ฝฎ dns_config fi check_clone_or_mould_changed if [ $? -eq 0 ];then del_dhclient6_file fi loop_count=1 fi sleep ${g_vmconfig_loop_time} loop_count=`expr $loop_count + 1` done log_info "exit all." exit 0 } main
Upload File
Create Folder