VMware Cloud Community
dawoo
Enthusiast
Enthusiast

How do I add a line to /etc/vmware/config?

Hi.

I've written a PS script to build ESX hosts from a CSV file using all manner of CMDLETS and, as you may have seen in this forum, a few extra parts using the SDK courtesy of LucD and Alan Renouf.

My current challenge is add the line:

prefvmx.consolidateDeleteNFSLocks = "TRUE"

to the file /etc/vmware/config.

This is very straightforward at the command line of the ESX but the script is designed to be used by non-technical users who simply use the CSV file they're given with the script.

I can't use Out-File as this tries to write the file to the local hard disk, not exactly useful.

Any ideas or pointers greatfully received and rewarded with points.

Cheers,

Darren.

10 Print "It's all about the Nerdknobs" , 20 GOTO http://blog.vmote.net/
Tags (2)
Reply
0 Kudos
2 Replies
LucD
Leadership
Leadership

Since these are ESX servers you can use the plink.exe command from the PuTTY suite.

For an example have a look at my script in the thread.

____________

Blog: LucD notes

Twitter: lucd22


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

dawoo
Enthusiast
Enthusiast

Hi and thanks for the pointer.

The ESX hosts are built by another team and arrive with SSH disabled so I'm unable to PuTTY, PSCP, PLINK etc...

What a pickle. :smileyshocked:

Cheers,

Darren.

10 Print "It's all about the Nerdknobs" , 20 GOTO http://blog.vmote.net/
Reply
0 Kudos