ProLiant Deployment and Provisioning
1846287 Members
3765 Online
110256 Solutions
New Discussion

Re: HP ESXi server deployment script

 
GVB
Advisor

HP ESXi server deployment script

Hi There,

We use HP server deployment control suite for deploying ESXi images.

For customizing the images we edit the kickstart script and use these viariables:

#HOSTNAME=@@HOSTNAME@@
#HOSTIP=@@HOSTIP@@
#HOSTNETMASK=@@HOSTNETMASK@@
#HOSTGATEWAY=@@HOSTGATEWAY@@

We call these variables in lines like this:

network –bootproto=static –device=vmnic0 –ip=@@HOSTIP@@ –gateway=@@HOSTGATEWAY@@

For exporting the values to the database we use this:

export hostname=%#*”select replace([name],’ ‘,”) from computer where computer_id={ID}”%
export hostip=%#!computer@nw_pref_server%
export hostnetmask=%#!computer@nw_nds_context%
export hostgateway=%#!computer@nw_pref_tree%


The problem is the script is running with errors on the "network --static" part. Doesn't recognize the values given (Unsupported argument). It ends and image isn't deployed.
The values Ipaddress, Netmask and gateway, in Express Database aren't changed.

However, the kickstart script created in the "export" part contains the computer_ID and the hostname is the same as discovered computer object in Computers view.

Any help or push in the right direction on this matter would be appreciated.


5 REPLIES 5
shocko
Honored Contributor

Re: HP ESXi server deployment script

"network --static". You mean "network --bootproto=static" right?

Are you editing the file from Windows or linux? If windows, be careful what text editor you use as it may change some of the carrigae returns in the files making the script unreadable in the linux automation enviroment. Use bog standard notepad.exe to edit on a windows machine.
If my post was helpful please award me Kudos! or Points :)
GVB
Advisor

Re: HP ESXi server deployment script

Yes, "network -bootproto=static" it is. The error message is about that part of the script. I use standard Windows notepad and notepad++ as well.
GVB
Advisor

Re: HP ESXi server deployment script

Nobody?
Neal Bowman
Respected Contributor

Re: HP ESXi server deployment script

Which version of RDP are you using? I've run into similar issues when trying to execute a script intended for a 64-bit environment while I was booted into a 32-bit environment.

Hope this helps.
GVB
Advisor

Re: HP ESXi server deployment script

HP Insight server deployment control 6.2
On W2K8 R2 server 64 bit.