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: mod_test1.sh
#!/bin/bash # Test codeοΌUsed for testing the transmission module shell_dir=`dirname "$0"` . "${shell_dir}/vm_ipc.sh" proc_msg_10006() { local peer_modid=${1} local peer_instid=${2} local datafile=${3} local data=`cat "${datafile}"` echo "recv data from mod ${peer_modid} inst ${peer_instid}: ${data}" # Back to the pack for test local answer='{"name":"mod_test1", "age":"9999", "note":"hello world!"}' vm_ipc_to_self ${peer_modid} ${peer_instid} 10005 "${answer}" || return 1 echo "answer: ${answer}" return 0 } main() { local modid=555 local instid=0 vm_ipc_init ${modid} ${instid} if [ $? -ne 0 ]; then log "vm_ipc_init() failed! modid='${modid}' instid='${instid}'" return 1 fi vm_ipc_reg_callback 10006 proc_msg_10006 vm_ipc_to_self 123 234 10005 '{"name":"mod_test1", "age":"9999", "note":"hello world!"}' while true do vm_ipc_event_loop_once sleep 1 done } main
Upload File
Create Folder