Hello,
I just upgraded my horizon infra from 7.1 to 7.2 and after having upgraded the agent within my Red Hat 6.9 the RunOnceScript doesn't execute my "net ads join" script.
any idea? I reaqlly just did the upgrade of the agent within my template.
thank you
Eric
Hi Eric,
RunOnceScript will be executed once only after the 1st host name change.
Your steps is
1. Upgrade template to 7.2
2. Full clone template to new machine by broker.
Am I right?
So
1. Did you change you host name after you install agent.
2. Was your temple a clone machine which agent build had been installed in it.
3. Could your script be access when agent inited. I mean if your script was put in NFS, network was ready at that time?
Regards,
Chao
Hello Chao,
yes your 2 first assumptions are correct.
1. Did you change you host name after you install agent.
- no
2. Was your temple a clone machine which agent build had been installed in it.
- no, I upgraded the view agent to 7.2 on the same template that work with 7.1 (just did a snapshot before upgrading the agent)
3. Could your script be access when agent inited. I mean if your script was put in NFS, network was ready at that time?
- the script is local: /opt/join_domain.sh in 777 chmod.
normally I should not have to uninstall the agent prior to the upgrade right?
Eric
No, you needn't uninstall first.
If RunOnceScript is set, the following info will be found in fullclone machine log in /var/log/vmware/viewagent-debug.
2017-07-14T17:12:14.978Z DEBUG <Script Stdout> [LinuxUtilities] customize script path: /root/sleep.sh Monitor Host name Process
2017-07-14T17:12:14.978Z DEBUG <Script Stdout> [LinuxUtilities] host name: BAT-RHEL69x64 Monitor Host name Process
2017-07-14T17:12:14.978Z DEBUG <Script Stdout> [LinuxUtilities] timeout seconds: 120 Monitor Host name Process
2017-07-14T17:12:14.986Z DEBUG <Script Stdout> [LinuxUtilities] execute the user script Monitor Host name Process
2017-07-14T17:12:14.986Z DEBUG <Script Stdout> [LinuxUtilities] user script process: 3043 Monitor Host name Process
2017-07-14T17:12:14.986Z DEBUG <Script Stdout> [LinuxUtilities] timer-process pid: 3044 Monitor Host name Process
2017-07-14T17:12:14.987Z DEBUG <Script Stdout> [LinuxUtilities] starting to wait the user script finished Monitor Host name Process
Could you check your log about key word "user script"?
Old could send you fullclone log to me? chaoz@vmware.com
Regards,
Chao