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

  • VMware Recertification Policy

    VMware certified

    Starting today, March 10 2014, new VCP certifications must be re-certified within two years of it’s earned date. Anyone who currently has their VCP certification prior to March 10 2013 has until March 10, 2015 to re-certify.

    The new policy gives you three options to re-certify:

    1. Take the current exam for your existing VCP certification solution track. For example, if you are a VCP3, you could take the current VCP5-Data Center Virtualization (VCP5-DCV) exam.
    2. Earn a new VCP certification in a different solution track. For example, if you are a VCP-Cloud, you could recertify by earning VCP5-Desktop (VCP5-DT) certification.
    3. Advance to the next level by earning a VMware Certified Advanced Professional (VCAP) certification. For example, if you are a VCP5-DCV you could earn VCAP5-DCA certification.

    I can understand why they are doing this but I don’t agree with the changes. As per the announcement if you let your certification expire, “Your certification will be revoked,and you will no longer be entitled to use the certification logo or represent yourself as VMware certified“. Really? You mean everything that was done prior and after taking the exam means nothing?

    Read More “VMware Recertification Policy”

  • VMware’s Dual Persona smartphones now available at Verizon Wireless

    VMware Ready for Verizon

    VMware has announced that the Android running LG Intuition and Motorola Razr M can now both be purchased with VMWare Horizon Mobile software. The VMWare Horizon Mobile software separates the devices into isolated partitions that allow users to keep their work applications and data separate from their personal applications and data.

    Today, VMware and Verizon Wireless announced that the Android-based LG Intuition and Motorola Razr M can now be purchased with VMware’s Horizon Mobile software, which separates the device into isolated partitions that keep a user’s work applications and data separate from personal stuff. Licenses to Horizon Mobile start at $125 per user and can be purchased through local resellers of VMware and Verizon Wireless.

    Read More “VMware’s Dual Persona smartphones now available at Verizon Wireless”

  • vSphere 5.1 currently not compatible with any VMware View version

    Before you go updating your vSphere to the new 5.1 version that was just released, VMware had just released this alert yesterday (9/12) that vSphere 5.1 is currently NOT compatible with any version of VMware View.

    vSphere 5.1 is in the process of being certified against VMware View. We recommend that you do not upgrade vSphere above the supported versions listed in the VMware View 5.1 Release Notes.

    For further updates and more information on this alert, refer to KB article:
    vSphere 5.1 is not compatible with any versions VMware View (2035268).

    If you don’t use VMware View, and are ready to upgrade to vSphere 5.1 be sure to check out the Installing vCenter Server 5.1 best practices from VMware.

  • 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”

  • My VMware View Windows 7 Optimization Guide

    These are the few steps I do when creating a new "Golden" image. Luckily I don’t have to do these steps all the time as I’ll create the "Golden" image when there is a new upgrade such as when we went from View 4.6 to View 5.0.1. I like to have a new fresh machine using new virtual hardware from the start. You could certainly just upgrade the virtual hardware on the "Golden" image, I just prefer to start clean.

    At any rate, here’s my list. Hopefully someone might find it somewhat useful and maybe even others can improve upon it.

    Preparing a new virtual machine

    1. Create New Virtual Machine – FILE > NEW > VIRTUAL MACHINE (CTRL+N)
    2. Under Configuration select CUSTOM.
    3. Select a Name, Folder, Host, Cluster, and Storage.
    4. Under Guest Operating System select Windows and then Windows 7 32bit under the Version drop down.
    5. Select which Network (VLAN) and under Adapter select VMXNET 3.
    6. Configure disk size to 30GB THIN provisioned.

    Read More “My VMware View Windows 7 Optimization Guide”

Leave a Reply

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

One Comment