jumebv

Bouke Groenescheij

My personal adventures in the quest for virtual perfectness.

  • Home
    Home This is where you can find all the blog posts throughout the site.
  • Categories
    Categories Displays a list of categories from this blog.
  • Tags
    Tags Displays a list of tags that have been used in the blog.
  • Login
    Login Login form

VCOPS: UI session timeout

on
  • Font size: Larger Smaller
  • Hits: 18351
  • 0 Comment
  • Subscribe to this entry
  • Print

By default your session times out from the UI (both the vsphere ui as the custom ui) after 30 minutes of inactivity. This can be annoying when you're running a big screen display showing your favorite widgets. Quite a lot of articles excists around this so more than enough resources can be found including an official KB from VMware: KB2015135.

However, I've found VMware replaces the web.xml with the default timeout during .PAK updates (like going from 5.6.0 -> 5.7.0 -> 5.7.1). Now I would not recommend replacing the altered previous web.xml since it can hold new settings. But I'm getting tired of getting into vi, edit two files, on all VCOPS servers and repeat that after every update. So here is a small script which does a 'sed' and replaces whatever value in the session-timeout to '-1'. It creates a backup, replaces the value and restarts the UI interface, both vsphere as custom.


#!/bin/bash

# Set timeout by Bouke Groenescheij, www.jume.nl

sed -i.bak 's#<session-timeout>\([^<][^<]*\)</session-timeout>#<session-timeout>-1</session-timeout>#' /usr/lib/vmware-vcops/tomcat-enterprise/webapps/vcops-custom/WEB-INF/web.xml

sed -i.bak 's#<session-timeout>\([^<][^<]*\)</session-timeout>#<session-timeout>-1</session-timeout>#' /usr/lib/vmware-vcops/tomcat/webapps/vcops-vsphere/WEB-INF/web.xml

/etc/init.d/vcopswebenterprise restart

/etc/init.d/vcopsweb restart

Last modified on
Tagged in: VCOPS

Comments

  • No comments made yet. Be the first to submit a comment

Leave your comment

Guest Saturday, 19 August 2017