{
    "CampusInsight": [{
        "CampusInsight": [
          {
          "mode": "parallel",
          "nodes": [
            {
                "host": "node_ip_001%s",
                "range_from":"1",
                "range_to":"${expansion_base_analyzer_node_scale}",
                "port": "22",
                "username": "${os_user_root}",
                "passwd": "${os_pwd_root}",
                "passwd_new":"${os_pwd_root}",
                "context": {
                  "_localNETypeList": "scale_node",
                  "_selectedNetType": "scale",
                  "sub_node_type": "scale_node",
                  "check_os": "false"
                }
            }
          ],
          "cmds": [
            {
              "action": "rm",
              "path": "",
              "parameters": [
                {
                  "value": "-rf /root/install_config; mkdir -p /root/install_config"
                }
              ]
             },
             {
              "action": "upload",
              "path": "",
              "parameters": [
                {
                  "value": "-src disk_partition.sh"
                },
                {
                  "value": "-dst /root/install_config"
                },
                {
                  "value": "-src_dir plugins/common/scripts"
                }
              ]
             },
             {
              "action": "bash",
              "path": "",
              "parameters": [
                {
                  "value": "-l /root/install_config/disk_partition.sh"
                }
              ]
             }
          ]
        },
        {
          "mode": "parallel",
          "nodes": [
            {
              "host": "${node_omp_vm_eth3_ip_1}",
              "port": "22",
              "username": "${os_login_user}",
              "passwd": "${os_root_user_pwd}",
              "su_password": "${os_pwd_root}"
            }
          ],
          "cmds": [
            {
              "action": "su",
              "path": "",
              "parameters": [
                {
                  "value": "rm -rf /opt/proxy_package_dir; mkdir -p /opt/proxy_package_dir; chmod 777 /opt/proxy_package_dir"
                }
              ]
            }
          ]
        },
        {
          "mode": "parallel",
          "nodes": [
            {
              "host": "${node_omp_vm_eth3_ip_1}",
              "port": "22",
              "username": "${os_login_user}",
              "passwd": "${os_root_user_pwd}",
              "su_password": "${os_pwd_root}"
            }
          ],
          "cmds": [
            {
              "action": "su",
              "parameters": [
                {
                  "value": "su - ossadm -c '. /opt/oss/manager/bin/engr_profile.sh; sshd_ipsadm.sh -cmd restore -force'"
                }
              ]
            },
            {
              "action": "su",
              "parameters": [
                {
                  "value": "if [ -f /opt/SEK/cmd/SetEnv.sh ];then sh /opt/SEK/cmd/SetEnv.sh;fi"
                }
              ]
            }
          ]
        },
        {
          "mode": "parallel",
          "nodes": [
            {
              "host": "${node_omp_vm_eth3_ip_1}",
              "port": "22",
              "username": "${os_user_root}",
              "passwd": "${os_pwd_root}",
              "context": {
                "sub_node_type": "main_fi_fabric",
                "_localNETypeList": "main_fi_fabric",
                "_selectedNetType": "scale",
                "check_os": "false"
              }
            },
            {
                "host": "node_ip_001%s",
                "range_from":"1",
                "range_to":"${expansion_base_analyzer_node_scale}",
                "port": "22",
                "username": "${os_user_root}",
                "passwd": "${os_pwd_root}",
                "passwd_new":"${os_pwd_root}",
                "context": {
                  "_localNETypeList": "scale_node",
                  "_selectedNetType": "scale",
                  "sub_node_type": "scale_node",
                  "check_os": "false"
                }
            }
          ],
          "cmds": [
            {
                "action": "rm",
                "path": "",
                "parameters": [{
                    "value": "-rf /opt/install_check /root/EasySuite/[0-9]*/ ~/.ssh/* /tmp/authorized_keys_flag;mkdir -p /opt/install_check /root/EasySuite/888"
                }]
            },
            {
                "action": "upload",
                "path": "",
                "parameters": [{
                    "value": "-src scripts"
                },
                {
                    "value": "-dst /opt/install_check"
                },
                {
                    "value": "-src_dir plugins/common"
                }]
            },
            {
              "action": "bash",
              "parameters": [
                {
                  "value": "-l /opt/install_check/scripts/check_cpu_arch.sh"
                },
                {
                  "value": "${base_arch_type}"
                },
                {
                  "value": "$(check_os)"
                },
                {
                  "value": "${base_os_type}"
                }
              ],
              "path": "/opt/"
            },
            {
                "action": "upload",
                "path": "",
                "parameters": [{
                    "value": "-src scripts"
                },
                {
                    "value": "-dst /opt/install_check"
                },
                {
                    "value": "-src_dir plugins/CampusInsight/V100R022C00/roc_expansion/C01VRCK00C02"
                }]
            },
            {
                "action": "upload",
                "parameters": [
                {
                    "value": "-src ${hld_package_icmr.name}"
                },
                {
                    "value": "-dst /root/EasySuite/888"
                }
                ]
            },
            {
                "action": "unzip",
                "path": "/root/EasySuite/888",
                "parameters": [
                {
                    "value": "-o ${hld_package_icmr.name} >/dev/null 2>&1;chmod -R 750 /root/EasySuite/888;chmod -R 700 /opt/install_check"
                }
                ]
            },
            {
                "action": "unzip",
                "path": "/root/EasySuite/888/script/",
                "parameters": [
                {
                    "value": "-o python-*.zip -d python/ >/dev/null 2>&1;chmod -R 750 /root/EasySuite/888"
                }
                ]
            },
            {
              "action": "/root/EasySuite/888/script/python/bin/python",
              "path": "/root/EasySuite/888/script/",
              "type": "interact",
              "parameters": [
                {
                  "value": "launch.pyc processor -i -initparam pre.scale.get_param"
                }
              ]
            },
            {
              "action": "/root/EasySuite/888/script/python/bin/python",
              "path": "/root/EasySuite/888/script/",
              "type": "interact",
              "parameters": [
                {
                  "value": "launch.pyc processor -i -exec pre.scale.get_param"
                },
                {
                  "value": "-use_ipv6 ${use_ipv6} -north_type ${north_type} -south_type ${south_type} -selectedNetType ${base_scene_choices} -sub_node_type $(sub_node_type)"
                },
                {
                  "value": "-base_os_type ${base_os_type} -expansion_unit ${components}"
                }
              ]
            },
            {
              "action": "/root/EasySuite/888/script/python/bin/python",
              "path": "/root/EasySuite/888/script/",
              "type": "interact",
              "parameters": [
                {
                  "value": "launch.pyc processor -i -initparam pre.scale.init_param"
                }
              ]
            },
            {
              "action": "bash",
              "type": "interact",
              "input_paras": "os_pwd_root",
              "check_progress": "bash -l /root/EasySuite/888/script/pyscript/cloud/util/check_progress.sh check_env.sh",
              "timeout": "1200",
              "parameters": [
                {
                  "value": "-l /opt/install_check/scripts/check_env.sh"
                },
                {
                  "value": "${base_arch_type}"
                },
                {
                  "value": "$(sub_node_type)"
                },
                {
                  "value": "$(_selectedNetType)"
                },
                {
                  "value": "${base_os_type}"
                },
                {
                  "value": "$(_localNETypeList)"
                }
              ],
              "path": "/opt/"
            }
          ]
        },
        {
          "mode": "parallel",
          "nodes": [
            {
              "host": "${node_omp_vm_eth3_ip_1}",
              "port": "22",
              "username": "${os_user_root}",
              "passwd": "${os_pwd_root}",
              "context": {
                "sub_node_type": "main_fi_fabric"
              }
            }
          ],
          "cmds": [
            {
              "action": "bash",
              "path": "/opt/",
              "type": "interact",
              "input_paras": "os_pwd_root",
              "check_progress": "bash -l /root/EasySuite/888/script/pyscript/cloud/util/check_progress.sh check_env_order.sh",
              "timeout": "1200",
              "parameters": [
                {
                  "value": "-l /opt/install_check/scripts/check_env_order.sh"
                },
                {
                  "value": "$(sub_node_type)"
                }
              ]
            }
          ]
        },
        {
          "mode": "parallel",
          "nodes": [
            {
                "host": "node_ip_001%s",
                "range_from":"1",
                "range_to":"${expansion_base_analyzer_node_scale}",
                "port": "22",
                "username": "${os_user_root}",
                "passwd": "${os_pwd_root}",
                "passwd_new":"${os_pwd_root}",
                "context": {
                  "sub_node_type": "scale_node"
                }
            }
          ],
          "cmds": [
            {
              "action": "bash",
              "path": "/opt/",
              "type": "interact",
              "input_paras": "os_pwd_root",
              "check_progress": "bash -l /root/EasySuite/888/script/pyscript/cloud/util/check_progress.sh check_env_order.sh",
              "timeout": "1200",
              "parameters": [
                {
                  "value": "-l /opt/install_check/scripts/check_env_order.sh"
                },
                {
                  "value": "$(sub_node_type)"
                }
              ]
            }
          ]
        },
        {
          "mode": "parallel",
          "nodes": [
            {
              "host": "${node_omp_vm_eth3_ip_1}",
              "port": "22",
              "username": "${os_user_root}",
              "passwd": "${os_pwd_root}",
              "context": {
                "sub_node_type": "main_fi_fabric"
              }
            },
            {
                "host": "node_ip_001%s",
                "range_from":"1",
                "range_to":"${expansion_base_analyzer_node_scale}",
                "port": "22",
                "username": "${os_user_root}",
                "passwd": "${os_pwd_root}",
                "passwd_new":"${os_pwd_root}",
                "context": {
                  "sub_node_type": "scale_node"
                }
            }
          ],
          "cmds": [
            {
              "action": "rm",
              "parameters": [
                {
                  "value": "-rf /opt/install_check"
                },
                {
                  "value": "-rf /opt/proxy_package_dir"
                }
              ],
              "path": "/opt/"
            }
          ]
        }
        ]
    }]
}