How to change vCenter Operations Manager session timeout

I’ve been using vCenter Operations Manager for a while now at work for all the great information that can be found about our environment so I tend to log into vCOp at the start of the morning and then come back to as I may or may not need it thoughout the day. One thing that has kind of annoyed me is having to constantly log into the standard UI multiple times a day due to the default 30 minute timeout value.

Luckily, with a bit of SSH and a few commands we can increase this timeout to anything we like or even disable it all together!

Edit vCenter Operations Manager session timeout, or disable it altogether

  1. SSH into the UI VM as root.
  2. Using VI, edit the web.xml file located at /usr/lib/vmware-vcops/tomcat/webapps/vcops-vsphere/WEB-INF/web.xml by typing in the command:
    vi /usr/lib/vmware-vcops/tomcat/webapps/vcops-vsphere/WEB-INF/web.xml

    vi webex file

  3. Press the j key to move down until you find the line: <session-timeout>30</session-timeout>
    default vcop timeout value
  4. Edit the value by pressing i (default: 30) to your desired amount in minutes, or you can use -1 to disable the timeout all together.
    new vcop timeout value
  5. Save your changes in VI by typing
    :wq
  6. Finally restart the service by typing
    /etc/init.d/vcopsweb restart

Edit vCOp Enterprise Custom UI timeout value

It seems the vCOp Enterprise Custom UI can be changed as well, but has a different file path and service that needs to be restarted. Simply follow the same steps from above but using the below file path and service to restart.

  • File path: /usr/lib/vmware-vcops/tomcat-enterprise/webapps/vcops-custom/WEB-INF/web.xml
  • Restart service: /etc/init.d/vcopswebenterprise restart

There you have it, vCOp with a longer (or shorter?) timeout value or maybe even disabled all together!

VI commands quick reference

I don’t normally use VI very often so this just serves as a quick reference guide to VI and since we’re using it in the above steps figured I’d list a few basic commands if for nothing else my own good. :)

Moving Cursor
Left – h
Right – l
Up – k
Down – j

Inserting Text
Insert text to the left of cursor – i
Exit insert mode – ESC Key

Exiting File
Save and quit VI – :wq
Quit VI and don’t save – :q!

Similar Posts

  • How to install VMware vSphere Update Manager 5.5

    If you don’t already know, VMware Update Manager (aka, VUM) is a tool which allows you to easily automate patching and upgrading VMware hosts as well as virtual machine hardware and VMware tools. It’s a wonderful tool and makes upgrading and patching so much easier and allows you to quickly see how compliant/up-to-date your environment is with the built in pie graph.

    Recently we had some pretty serious array issues which corrupted the VUM database taking Update Manager down. Since we was going to have to rebuild Update Manager I opted to move from Windows Server 2008 to Windows Server 2012, in the steps below I’ll document step by step how to install VMware Update Manager 5.5 on Server 2012 and a separate database.

    Read More “How to install VMware vSphere Update Manager 5.5”

  • VMware Update Manager U3e upgrade failing? Un-install it!

    VMware Update Manager U3e error

    I was recently upgrading a VMware environment from vCenter Server Update 3b to Update 3e and during the scheduled change I had also planned on upgrading VMware Update Manager to Update 3e and ran into the following error:

    VMware Workstation unrecoverable error: (vthread-3)
    GetProcAddress: Failed to resolve ENGINE)load_aesni: 127
    You can request support.

    Looking for a possible solution at the VMware Knowledge Base came back with no results and to error message wasn’t overly useful either with “VMware Workstation unrecoverable error: (vthread-3)” as Workstation wasn’t installed on this server.

    Read More “VMware Update Manager U3e upgrade failing? Un-install it!”

  • Shrink a thin provisioned VMDK disk

    When maintaining a Horizon View environment I like to keep my parent images as small as possible and over time a thin provision disk can start to grow on you if you don’t watch it – be it from downloading installers, updates, or even running disk defrag. While there isn’t a simple, one click button in the View Administrator Console there is a fairly easy manual method using vmfkstools.

    Before we can use “vmkfstools” to shrink the VMDK file we must zero out any unused space on the thin provisioned disk. A simple way of doing this is by using a free utility called SDelete from Sysinternals.

    Read More “Shrink a thin provisioned VMDK disk”

  • How to upgrade vCenter server appliance

    Prior to VMware vCenter Server Appliance 6.x, upgrading or patching vCSA was as simple as a few button clicks in the appliance UI. Gone are those days, as VMware has replaced the appliance UI with a DCUI and the web based install wizard during setup.

    The good news is, upgrading or patching the vCSA 6.x is still pretty simple via the command line!

    Read More “How to upgrade vCenter server appliance”

  • Thank you VMware Community!

    VMware vExpert 2014

    So far, 2014 has been a very rewarding year for a number of reasons, two of which has happened in just a week or two span. First, Eric Siebert (@ericsiebert) announced on March 27th, this years results of the 2014 Top VMware & Virtualization Blog voting. My first year entered into voting and made it to 71st place! A huge thanks goes out to not only Eric but just as much so to everyone who voted for me!

    To top it off, yesterday VMware announced 2014’s first quarter VMware vExpert list. While vExpert isn’t a technical certification or even a general measure of VMware expertise. The VMware judges selected people who were engaged with their community and who had developed a substantial personal platform of influence in those communities. There were a lot of very smart, very accomplished people, even VCDXs, that weren’t named as vExpert this year. VMware awarded this title to 754 people this year and on that list of many impressive names you’ll find yours truly, Michael Tabor!

    I’m both honored and humbled by both lists. It’s a great feeling to be recognized by not only my peers through the voting in the Top vBlog but also by VMware themselves through the vExpert title.

    So again THANK YOU very much to the entire VMware community, a spectacular community indeed, and congratulations to everyone else that made the Top vBlog and vExpert lists!

Leave a Reply

Your email address will not be published. Required fields are marked *

One Comment