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
Latest posts by Aram Avetisyan (see all)
- Make Youtube Videos About Technology? Why not… The Cross-Cloud Guy - October 7, 2021
- Automating (NSX-T) REST API using Ansible URI module - December 29, 2020
- Quick Reference: Create Security Policy with Firewall Rules using NSX-T Policy API - May 4, 2020