how to use a tmsh command to create a icall script ?

hi

i am writing a iapp including iall. so i must use tmsh command to create a icall script.

i use a variable (icall_script_name) as the script name, and i use another variable(icall_script_Get_HDP_Ips) as the script. The command is:

tmsh::create sys icall script ${icall_script_name} ${icall_script_Get_HDP_Ips}

but i get the error information: 010715bd:3: The parent folder is owned by application service (/Common/asfdsdf.app/asfdsdf), the object ownership cannot be changed to ().

Anyone can help me ?

Thanks you very much.

Ruiqiang Lu

Hi, I guess you could use the iapp package and do it with the following syntax:

package require iapp 1.0.0
iapp::template start
tmsh::cd ..
iapp::conf create sys icall script ${icall_script_name} definition \{ $icall_script_Get_HDP_Ips \} app-service none
iapp::template end

But, the trick is “tmsh::cd ..”

Regards.