- Community Home
- >
- Servers and Operating Systems
- >
- Legacy
- >
- ProLiant Deployment and Provisioning
- >
- Re: HP ESXi server deployment script
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2011 03:40 AM
04-15-2011 03:40 AM
HP ESXi server deployment script
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2011 12:46 AM
04-18-2011 12:46 AM
Re: HP ESXi server deployment script
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2011 12:58 AM
04-18-2011 12:58 AM
Re: HP ESXi server deployment script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2011 11:32 PM
04-19-2011 11:32 PM
Re: HP ESXi server deployment script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2011 05:48 AM
04-20-2011 05:48 AM
Re: HP ESXi server deployment script
Hope this helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2011 03:54 AM
04-21-2011 03:54 AM
Re: HP ESXi server deployment script
On W2K8 R2 server 64 bit.