VMware Cloud Community
ITTech2002
Contributor
Contributor
Jump to solution

Changing the ESX Syslog Setting with PowerShell

I need to change the syslog server settings for 100 ESX Servers.

I would like to add this to the end of the file: *.* @192.168.0.10

Or replace the "/etc/syslog.conf" file completely

I would like to do this with PowerShell...

???Do you have a script???

Thanks much.

Tags (3)
0 Kudos
1 Solution

Accepted Solutions
RobMokkink
Expert
Expert
Jump to solution

Try this. It's still beta. But i tested it on 20 esx hosts in our lab.

http://communities.vmware.com//thread/195312?tstart=30

I will connect to virtualcenter, you can select a server, get the syslog from a selected server, you can adjust the syslog.conf and then you can apply it to all servers in your environment.

View solution in original post

0 Kudos
4 Replies
thehyperadvisor
Enthusiast
Enthusiast
Jump to solution

I don't have a powershell script and I didn't think powershell had native command or syntax to manage linux. Either way have you tried scripting with winscp ?

VCP3,4,5, VCAP4-DCA, vExpert hope this helps - http://www.thehyperadvisor.com If you found this or other information useful, please consider awarding points for "Correct" or "Helpful".
0 Kudos
Texiwill
Leadership
Leadership
Jump to solution

Hello,

Moved to the VI Toolkit (Windows) forum.


Best regards,
Edward L. Haletky
VMware Communities User Moderator, VMware vExpert 2009
====
Author of the book 'VMWare ESX Server in the Enterprise: Planning and Securing Virtualization Servers', Copyright 2008 Pearson Education.
Blue Gears and SearchVMware Pro Blogs -- Top Virtualization Security Links -- Virtualization Security Round Table Podcast

--
Edward L. Haletky
vExpert XIV: 2009-2023,
VMTN Community Moderator
vSphere Upgrade Saga: https://www.astroarch.com/blogs
GitHub Repo: https://github.com/Texiwill
LucD
Leadership
Leadership
Jump to solution

There are currently no VITK cmdlets nor SDK methods that let you interface with the COS filesystem.

There are some methods based on plink but it is not very elegant.

Have a look at for an example of the use of plink.


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

0 Kudos
RobMokkink
Expert
Expert
Jump to solution

Try this. It's still beta. But i tested it on 20 esx hosts in our lab.

http://communities.vmware.com//thread/195312?tstart=30

I will connect to virtualcenter, you can select a server, get the syslog from a selected server, you can adjust the syslog.conf and then you can apply it to all servers in your environment.

0 Kudos