Quick Reference: Set NSX-T Web-UI Session timeout

Share this:

Reasoning for timeout change

I was doing some testing, and honestly, I got annoyed about NSX-T WEB UI kicking me out of my session after 30 minutes of idle time. So, I got curious, what if someone wants to change this value to a longer one, or may be to a shorter one for security reasons? How can the timeout value be changed?

Strangely, I wasn’t able to find much info on web, especially on NSX-T. The only KB on NSX-V was asking people to contact VMware support to change the value.

So I asked around, and one of my VMware colleagues sent me some hints on how it can be done.

Procedure

To set or change the session timeout value for NSX-T Web-UI session, you can perform the following steps:

1. Log in to your main NSX-T Manager CLI (SSH or Console) using admin user.

2. Run the following command to get the current timeout value:

get service http

3. Default timeout is set to 1800 seconds, to change it run the following command:

set service http session-timeout <time_in_seconds>

4. Once set, restart the ui-service, to apply the changes:

restart service ui-service

5. Check if change was applied by getting config again:

get service http

And there you go, you can now set the session timeout for the NSX-T Web-UI to whatever you want!

External References:

Special Thanks to Jon Helmer (@jshelmer) from VMware for help.
NSX-T 2.5 Command-Line Interface Reference

The following two tabs change content below.
Aram Avetisyan is an IT specialist with more than 18 years experience. He has rich background in various IT related fields like Cloud, Virtualization and SDN. He holds several industry level certifications including but not limited to VCIX-DCV, VCIX-NV. He is also a vEXPERT in years 2014-2021.

About Aram Avetisyan

Aram Avetisyan is an IT specialist with more than 18 years experience. He has rich background in various IT related fields like Cloud, Virtualization and SDN. He holds several industry level certifications including but not limited to VCIX-DCV, VCIX-NV. He is also a vEXPERT in years 2014-2021.
Bookmark the permalink.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.