VMware Cloud Community
TakoRoni
Enthusiast
Enthusiast
Jump to solution

change timeout for UpdateNetworkConfig

HI

i am changing the esx ip vlan and default Gate way

the script run fine - and i expect that there will be timeout when i run the script loss of connection

command

$netMgr.UpdateNetworkConfig($config,[VMware.Vim.HostConfigChangeMode]::modify)

is there a way to make the time out shorter ?

Roni

Tags (1)
Reply
0 Kudos
1 Solution

Accepted Solutions
LucD
Leadership
Leadership
Jump to solution

Did you do a restart of your PS session?

The option contains the remark "Changing this setting requires a restart of PowerCLI before it takes effect"


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

View solution in original post

Reply
0 Kudos
5 Replies
LucD
Leadership
Leadership
Jump to solution

If you mean the timeout from your PS session to the ESXi node, you might want to look at the WebOperationsTimeoutSeconds parameter of the Set-PowerCLIConfiguration cmdlet.

The default value is 300 seconds.

Note that changing the value requires a stop/start of your PS session.


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

Reply
0 Kudos
TakoRoni
Enthusiast
Enthusiast
Jump to solution

HI lucd

i will give it a try

roni

Reply
0 Kudos
TakoRoni
Enthusiast
Enthusiast
Jump to solution

Hi Lucd

WebOperationsTimeoutSeconds  .png

i try  Set-PowerCLIConfiguration-WebOperationsTimeoutSeconds  5

i change it to 5 sec

but the i am still wait 300 sec to respond - it in not going to the next step

roni

Reply
0 Kudos
LucD
Leadership
Leadership
Jump to solution

Did you do a restart of your PS session?

The option contains the remark "Changing this setting requires a restart of PowerCLI before it takes effect"


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

Reply
0 Kudos
TakoRoni
Enthusiast
Enthusiast
Jump to solution

work like a charm !!!!

Tank you Lucd

as usual  your help was great 

Roni

Reply
0 Kudos