Changing Eyeglass UI Behavior
Introduction
This page covers a few appliance-level settings that change how the Eyeglass Web UI behaves: the auto-logout timer, the notification feed on the login page, and the UI's API request timeout for long-running operations.
Extend the UI Auto-Logout Timer
By default, Eyeglass logs an idle user out of the Web UI after a fixed period. To extend this timer:
-
Log in to Eyeglass as
admin, then switch to root:sudo -s -
Edit the system configuration file:
nano /opt/superna/sca/data/system.xml -
Under the
<process>section, add or update the following tag, with the value in milliseconds:<uitimeout>1800000</uitimeout>To convert minutes to milliseconds, multiply by 60000 — for example, 30 minutes is
1800000, and 1 hour is3600000. -
Save the file and restart the service:
systemctl restart sca
Disable the Login Page Notification Feed
The Eyeglass login page can display a software notification feed. To disable it:
-
Log in to Eyeglass over SSH as
admin, then switch to root:sudo -s -
Edit the UI globals file:
nano /srv/www/htdocs/eyeglass/js/eyeglass_globals.js -
Locate the
twitter_feed_enabled:!0tag and remove the!character so it readstwitter_feed_enabled:0. -
Save the file, then refresh the login page in your browser — the notification feed no longer appears.
This change is not persistent across upgrades and must be reapplied after each appliance upgrade.
Extend the UI API Timeout for Long-Running Operations
Some Eyeglass GUI operations — for example, searching for files with Unlock My Files in Cluster Storage Monitor against a large number of objects — can exceed the default UI API timeout of 45 seconds. To extend it:
-
Log in to Eyeglass over SSH.
-
Edit the UI globals file:
vi /srv/www/htdocs/eyeglass/js/eyeglass_globals.js -
Locate the
ajax_get_timeout_secondssetting (default45) and change it to the desired number of seconds — for example,90. -
Save the file and refresh the Eyeglass UI page. The new timeout applies to subsequent long-running requests.
See Also
- Unlock My Files — the Cluster Storage Monitor feature most likely to need an extended API timeout on large environments.
- Monitoring and Alerts — configure email and syslog alarm notifications, a related but separate set of appliance behaviors.