VMware Cloud Community
jvm2016
Hot Shot
Hot Shot
Jump to solution

implemeting vsphere best practices and features_powercli

Hi Luc,

i have been trying to implement  vsphere best practices and new features on vmware environment using powercli .

i am in process of checking following and thought of discussing with you if we can  add additional features in following list.

1:content Library

2:vcenter high availability

3:virtual machines encryption (that need KMS server i think that incur cost to customer)

4:file based backup(needs location of ftp server)

5:per vm evc

6:enhanced link mode

7:i am planning to do this with powercli 11.5 and posh ssh module .

78 Replies
jvm2016
Hot Shot
Hot Shot
Jump to solution

2012 R2 control center on powercli lab as suggested by yu.

Reply
0 Kudos
jvm2016
Hot Shot
Hot Shot
Jump to solution

its working now

pastedImage_0.png

based on above what shud be the backuplocation   in belo format

pastedImage_1.png

Reply
0 Kudos
LucD
Leadership
Leadership
Jump to solution

If you click on that :smileyinfo: you get the format
backup-info.png


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

jvm2016
Hot Shot
Hot Shot
Jump to solution

thnaks Luc its is working however this lab has some issues connecting to cisserver

so had to do manually .

c:\backuo directory

i think i am supposed to get backupfile in this directory as it is completed

Reply
0 Kudos
LucD
Leadership
Leadership
Jump to solution

I'm afraid I can't see that the attached file points to your vCenter.
Which I can't resolve of course.


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

Reply
0 Kudos
jvm2016
Hot Shot
Hot Shot
Jump to solution

ftp://192.168.110.10:21/backuo/vCenter/sn_vcsa-01a.corp.local/M_6.7.0.30000_20200127-112134_MJQWG23V...

above is backup location .this is from the complete backup wizard .

all i want to know if i navigate to  c:\backuo   directory,am i supposed to get backup file??

Reply
0 Kudos
LucD
Leadership
Leadership
Jump to solution

That is where the FTP file(s) should be located


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

Reply
0 Kudos
jvm2016
Hot Shot
Hot Shot
Jump to solution

well i dont see anything inside this folder .where shud i navigate eo check backupfile?

Reply
0 Kudos
LucD
Leadership
Leadership
Jump to solution

Do you have write access to that folder?

Can you try FTP-ing a file in there from the CMD prompt?


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

jvm2016
Hot Shot
Hot Shot
Jump to solution

i think i can see now .

pastedImage_0.png

Reply
0 Kudos
LucD
Leadership
Leadership
Jump to solution

And can you see the backup folders and files with the File Explorer?


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

Reply
0 Kudos
jvm2016
Hot Shot
Hot Shot
Jump to solution

i a cm checking this .however i just found that this lab sso soamin is

regionA.local

so now iam able to connect to cisserver with

administrator@regionA.local.

it shud be coorected in readme.txt file /

Reply
0 Kudos
LucD
Leadership
Leadership
Jump to solution

Part of the screenshots in the Lab Guide are from a previous version.

And so is apparently the readme.txt file on the desktop.

There is a Survey when you end the lab, I would suggest providing your comments there.

On the HOL homepage there is also an Any Questions or Feedback? link.


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

Reply
0 Kudos
jvm2016
Hot Shot
Hot Shot
Jump to solution

yes i will.i m going to check this with rest apis .

Reply
0 Kudos
jvm2016
Hot Shot
Hot Shot
Jump to solution

if you could check below  for configuring ftp on control center on powercli lab .

if it is working for you ??

$ip='192.168.110.10'

Get-WindowsFeature|?{$_.installstate -eq "installed"}

install-WindowsFeature Web-FTP-Server -IncludeAllSubFeature

Install-WindowsFeature web-server -IncludeAllSubFeature -IncludeManagementTools

Import-Module WebAdministration

# Create the FTP site

$FTPSiteName = 'Default FTP Site'

$FTPRootDir = 'C:\FTPRoot'

$FTPPort = 21

New-WebFtpSite -Name $FTPSiteName -Port $FTPPort -PhysicalPath $FTPRootDir -Force

Reply
0 Kudos
LucD
Leadership
Leadership
Jump to solution

That is only part of the setup.
You will need to create a user/group, assign permissions....
The article I pointed to earlier is rather complete, have a look at the additional steps.


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

Reply
0 Kudos
jvm2016
Hot Shot
Hot Shot
Jump to solution

i was expecting default site under iis manger after running this part of code only .

somehow i dont see that .

Reply
0 Kudos
jvm2016
Hot Shot
Hot Shot
Jump to solution

that post is for 2016 server may be thats the reson it does not work onn 2012 r2

Reply
0 Kudos
LucD
Leadership
Leadership
Jump to solution

Just tried the exact same lines you have posted, and for me it works.
But I repeat, that is only part of the setup for an FTP server.

ftpserv.jpg


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

Reply
0 Kudos