Hot Shot
Hot Shot

implemeting vsphere best practices and features_powercli

Jump to solution

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
Hot Shot
Hot Shot

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

0 Kudos
Hot Shot
Hot Shot

its working now

pastedImage_0.png

based on above what shud be the backuplocation   in belo format

pastedImage_1.png

0 Kudos
Leadership
Leadership

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


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

Hot Shot
Hot Shot

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

0 Kudos
Leadership
Leadership

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

0 Kudos
Hot Shot
Hot Shot

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??

0 Kudos
Leadership
Leadership

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


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

0 Kudos
Hot Shot
Hot Shot

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

0 Kudos
Leadership
Leadership

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

Hot Shot
Hot Shot

i think i can see now .

pastedImage_0.png

0 Kudos
Leadership
Leadership

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


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

0 Kudos
Hot Shot
Hot Shot

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 /

0 Kudos
Leadership
Leadership

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

0 Kudos
Hot Shot
Hot Shot

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

0 Kudos
Hot Shot
Hot Shot

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

0 Kudos
Leadership
Leadership

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

0 Kudos
Hot Shot
Hot Shot

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

somehow i dont see that .

0 Kudos
Hot Shot
Hot Shot

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

0 Kudos
Leadership
Leadership

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

0 Kudos