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

  • Improve Linux VM IO performance by disabling IO Scheduler

    For a little while now we’ve been seeing RedHat Linux virtual machines performing poorly. Tasks would take considerably longer on the Linux VM’s then other Windows VM’s. After digging around I eventually found that RedHat has it’s own IO scheduler that runs in the background. On a physical box this wouldn’t be a big deal, but as a virtual machine everything is already being processed by VMware hypervisor. The fix, disable the IO Scheduler!

    Read More “Improve Linux VM IO performance by disabling IO Scheduler”

  • VMware Certified Professional 6 (VCP6-DCV) now available

    VMware VCP DCV

    VMware has just recently announced that the VMware Certified Professional 6 (VCP6-DCV) is now available. The new VCP6 exam is similar to the others in the past whereas the VCP6 aims to validate your ability to deploy, configure, administer and scale a vSphere virtualized data center, including administering and troubleshooting virtualization technologies such as:

    • vSphere HA and DRS Clusters
    • Storage virtualization using VMFS
    • Storage DRS and Storage I/O Control
    • Network virtualization using vSphere standard and distributed switches and Network I/O Control
    • vSphere management using vCenter Server and vRealize Operations Manager Standard
    • Virtual Machines

    Read More “VMware Certified Professional 6 (VCP6-DCV) now available”

  • VMware ESXi 5 home lab upgrade

    In the past I’ve been using a single server to run my VMware ESXi home lab. it was slow, old, big and loud. I’ve been meaning to upgrade my home lab for a while and just never got around to it, until now! When looking for new hardware I wanted the servers to be as compact as possible, quiet, and low energy usage as possible while still having some horsepower.

    I debated on going the whitebox solution as I build all my own desktops anyway, I also looked at several other solutions such as the HP ML310e server, Shuttle XH61V barebones machine, but ultimately decided to go with two Intel NUC i5’s.

    Intel NUC i5 and 16GB ram

    Intel NUC i5 DC53427HYE Features:

    • Uses very little energy
    • Completely quiet
    • Supports up to 16GB RAM
    • A dual core CPU that scores nearly 3,600 in PassMark benchmarking
    • Includes vPro which allows me to easily run both NUC’s headless
    • Extremely small, nearly 4 1/2″ inch square footprint

    Read More “VMware ESXi 5 home lab upgrade”

  • VMware vSphere 7 announced

    VMware vSphere 7

    Some pretty big news coming out of VMware today. The announcement of VMware vSphere 7 to become available May 1, 2020! One of the biggest item coming out of this news so far is that vSphere 7 will come in two options.

    The first being vSphere 7 as we all have known it to be for years and then the second being vSphere 7 with Kubernetes which will be available through VMware Cloud Foundation and is a new generation of vSphere for containerized applications.

    Other notables is that the flash based vSphere client is FINALLY no more! From here on out, only the HTML 5 will exist. vCenter Server on Windows will also finally be put to rest and new deployments of vCenter server will be done using the tried and tested vCenter Server Appliance (VCSA) based on PhotonOS linux.

    Read More “VMware vSphere 7 announced”

  • How to use Site Recovery Manager DR IP Customizer

    As one of the tasks given to me include protecting critical virtual machines via Site Recovery Manager (SRM) I ran into an environment that needed to be protected and have static IP’s assigned to them. The environment consists of about 15 VM’s, all of the VM’s each have 5 NIC’s with two of the VM’s having 9 NIC’s – that’s a lot of NIC’s to manually configure on both the Protected and Recovery side in SRM.

    Looking through the SRM Documentation I was able to see that VMware has graced us with a wonderful tool to greatly speed up this process, dr-ip-customizer.exe!

    How to use VMware DR-IP-Customizer

    Read More “How to use Site Recovery Manager DR IP Customizer”

Leave a Reply

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

One Comment