{"id":187,"date":"2017-08-08T06:16:10","date_gmt":"2017-08-08T06:16:10","guid":{"rendered":"http:\/\/kanecharles.com\/?p=187"},"modified":"2017-08-09T00:04:50","modified_gmt":"2017-08-09T00:04:50","slug":"modifying-session-timeout-vrealize-automation-7-x","status":"publish","type":"post","link":"http:\/\/kanecharles.com\/?p=187","title":{"rendered":"Modifying session timeout in vRealize Automation 7.x"},"content":{"rendered":"<p>The default timeout value for web sessions to the vRealize Automation console is 30 minutes, this can be a nuisance for anyone attempting to work in vRA as this is not measured based on inactive time, but rather on the time since the user logged in. If a user is in the middle of something when they reach the 30 minute mark after they&#8217;d logged in, they will be automatically logged out, this is not ideal.<\/p>\n<p>The file <span class=\"lang:default decode:true crayon-inline \">\/usr\/lib\/vcac\/server\/webapps\/vcac\/WEB-INF\/web.xml<\/span>\u00a0 has an xml tag <span class=\"lang:default decode:true crayon-inline \">&lt;session-timeout&gt;<\/span>\u00a0 which can be modified to another value (in minutes).<\/p>\n<p>Here are the steps for modifying that:<\/p>\n<ol>\n<li>SSH to the vRealize Automation \u00a07.x appliance as root<\/li>\n<li>Make a copy of the web.xml configuration file previously mentioned<\/li>\n<li>Modify the value between the session-timeout xml tags. This can be done using a text editor like vi, or using the sed utility, which I will show below<\/li>\n<li>Reboot the appliance<\/li>\n<\/ol>\n<h2>Commands<\/h2>\n<pre class=\"lang:default decode:true \" title=\"Modifying vRealize Automation Console Timeout\"># Set a variable to be used as the new timeout value (in minutes)\r\nnewTimeout=240\r\n\r\n# Change into the directory where the web.xml file is\r\ncd \/usr\/lib\/vcac\/server\/webapps\/vcac\/WEB-INF\/\r\n\r\n# Make a backup of the original web.xml file\r\ncp web.xml web.xml.bak\r\n\r\n# Check the current value\r\ngrep session-timeout web.xml\r\n\r\n# Replace the timeout value\r\nsed -i \"s|\\(&lt;session-timeout&gt;\\)[^&lt;&gt;]*\\(&lt;\/session-timeout&gt;\\)|\\1${newTimeout}\\2|\" web.xml\r\n\r\n# Confirm the new value\r\ngrep session-timeout web.xml<\/pre>\n<h2>Example Output<\/h2>\n<p data-imagelightbox=\"g\"><img decoding=\"async\" loading=\"lazy\" width=\"567\" height=\"367\" class=\"alignnone size-full wp-image-194\" src=\"http:\/\/kanecharles.com\/wp-content\/uploads\/2017\/08\/vra_timeout_change.png\" alt=\"vRA Timeout Change\" \/><\/p>\n<p><strong>NOTE:<\/strong> You may need to clear your browser cache after rebooting vRA to pick up the new timeout value.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The default timeout value for web sessions to the vRealize Automation console is 30 minutes, this can be a nuisance for anyone attempting to work in vRA as this is not measured based on inactive&hellip;<\/p>\n","protected":false},"author":1,"featured_media":194,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_mi_skip_tracking":false,"jetpack_post_was_ever_published":false,"jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":[]},"categories":[6,9],"tags":[],"jetpack_publicize_connections":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.0 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Modifying session timeout in vRealize Automation 7.x - Just Virtualise It<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"http:\/\/kanecharles.com\/?p=187\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Modifying session timeout in vRealize Automation 7.x - Just Virtualise It\" \/>\n<meta property=\"og:description\" content=\"The default timeout value for web sessions to the vRealize Automation console is 30 minutes, this can be a nuisance for anyone attempting to work in vRA as this is not measured based on inactive&hellip;\" \/>\n<meta property=\"og:url\" content=\"http:\/\/kanecharles.com\/?p=187\" \/>\n<meta property=\"og:site_name\" content=\"Just Virtualise It\" \/>\n<meta property=\"article:published_time\" content=\"2017-08-08T06:16:10+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2017-08-09T00:04:50+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/kanecharles.com\/wp-content\/uploads\/2017\/08\/vra_timeout_change.png\" \/>\n\t<meta property=\"og:image:width\" content=\"567\" \/>\n\t<meta property=\"og:image:height\" content=\"367\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"http:\/\/kanecharles.com\/?p=187\",\"url\":\"http:\/\/kanecharles.com\/?p=187\",\"name\":\"Modifying session timeout in vRealize Automation 7.x - Just Virtualise It\",\"isPartOf\":{\"@id\":\"http:\/\/kanecharles.com\/#website\"},\"datePublished\":\"2017-08-08T06:16:10+00:00\",\"dateModified\":\"2017-08-09T00:04:50+00:00\",\"author\":{\"@id\":\"http:\/\/kanecharles.com\/#\/schema\/person\/74979a618948fe77d9532fb02459a01f\"},\"breadcrumb\":{\"@id\":\"http:\/\/kanecharles.com\/?p=187#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/kanecharles.com\/?p=187\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\/\/kanecharles.com\/?p=187#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"http:\/\/kanecharles.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Modifying session timeout in vRealize Automation 7.x\"}]},{\"@type\":\"WebSite\",\"@id\":\"http:\/\/kanecharles.com\/#website\",\"url\":\"http:\/\/kanecharles.com\/\",\"name\":\"Just Virtualise It\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"http:\/\/kanecharles.com\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"http:\/\/kanecharles.com\/#\/schema\/person\/74979a618948fe77d9532fb02459a01f\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"http:\/\/kanecharles.com\/#\/schema\/person\/image\/\",\"url\":\"http:\/\/2.gravatar.com\/avatar\/2355263244a445329266499f6a0c0bf2?s=96&d=mm&r=g\",\"contentUrl\":\"http:\/\/2.gravatar.com\/avatar\/2355263244a445329266499f6a0c0bf2?s=96&d=mm&r=g\",\"caption\":\"admin\"},\"url\":\"http:\/\/kanecharles.com\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Modifying session timeout in vRealize Automation 7.x - Just Virtualise It","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"http:\/\/kanecharles.com\/?p=187","og_locale":"en_US","og_type":"article","og_title":"Modifying session timeout in vRealize Automation 7.x - Just Virtualise It","og_description":"The default timeout value for web sessions to the vRealize Automation console is 30 minutes, this can be a nuisance for anyone attempting to work in vRA as this is not measured based on inactive&hellip;","og_url":"http:\/\/kanecharles.com\/?p=187","og_site_name":"Just Virtualise It","article_published_time":"2017-08-08T06:16:10+00:00","article_modified_time":"2017-08-09T00:04:50+00:00","og_image":[{"width":567,"height":367,"url":"http:\/\/kanecharles.com\/wp-content\/uploads\/2017\/08\/vra_timeout_change.png","type":"image\/png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"Written by":"admin","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"http:\/\/kanecharles.com\/?p=187","url":"http:\/\/kanecharles.com\/?p=187","name":"Modifying session timeout in vRealize Automation 7.x - Just Virtualise It","isPartOf":{"@id":"http:\/\/kanecharles.com\/#website"},"datePublished":"2017-08-08T06:16:10+00:00","dateModified":"2017-08-09T00:04:50+00:00","author":{"@id":"http:\/\/kanecharles.com\/#\/schema\/person\/74979a618948fe77d9532fb02459a01f"},"breadcrumb":{"@id":"http:\/\/kanecharles.com\/?p=187#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["http:\/\/kanecharles.com\/?p=187"]}]},{"@type":"BreadcrumbList","@id":"http:\/\/kanecharles.com\/?p=187#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"http:\/\/kanecharles.com\/"},{"@type":"ListItem","position":2,"name":"Modifying session timeout in vRealize Automation 7.x"}]},{"@type":"WebSite","@id":"http:\/\/kanecharles.com\/#website","url":"http:\/\/kanecharles.com\/","name":"Just Virtualise It","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"http:\/\/kanecharles.com\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"http:\/\/kanecharles.com\/#\/schema\/person\/74979a618948fe77d9532fb02459a01f","name":"admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"http:\/\/kanecharles.com\/#\/schema\/person\/image\/","url":"http:\/\/2.gravatar.com\/avatar\/2355263244a445329266499f6a0c0bf2?s=96&d=mm&r=g","contentUrl":"http:\/\/2.gravatar.com\/avatar\/2355263244a445329266499f6a0c0bf2?s=96&d=mm&r=g","caption":"admin"},"url":"http:\/\/kanecharles.com\/?author=1"}]}},"jetpack_featured_media_url":"http:\/\/kanecharles.com\/wp-content\/uploads\/2017\/08\/vra_timeout_change.png","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p8faOH-31","_links":{"self":[{"href":"http:\/\/kanecharles.com\/index.php?rest_route=\/wp\/v2\/posts\/187"}],"collection":[{"href":"http:\/\/kanecharles.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/kanecharles.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/kanecharles.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/kanecharles.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=187"}],"version-history":[{"count":5,"href":"http:\/\/kanecharles.com\/index.php?rest_route=\/wp\/v2\/posts\/187\/revisions"}],"predecessor-version":[{"id":197,"href":"http:\/\/kanecharles.com\/index.php?rest_route=\/wp\/v2\/posts\/187\/revisions\/197"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/kanecharles.com\/index.php?rest_route=\/wp\/v2\/media\/194"}],"wp:attachment":[{"href":"http:\/\/kanecharles.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=187"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/kanecharles.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=187"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/kanecharles.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=187"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}