DevOps Cloud (ADM)
Cybersecurity
IT Operations Cloud
Examples:
First: Two session to same AccuRev Server
In this scenario the machine "accurev" is a Linux machine hosting the AccuRev server.
export ACCUREV_HOME=/home/dhowland/AccuRevHome/accurev
On Windows use "set" instead of "export"
set ACCUREV_HOME=C:\Users\DavidHo\Linux
accurev info
Shell: /bin/bash
Principal: (not logged in)
Host: laptop
Domain: (none)
TZ: US/Eastern
Server name: accurev
Port: 5050
DB Encoding: Unicode
ACCUREV_BIN: /opt/accurev-7.5/bin
Client time: 2020/11/10 10:26:24 EST (1605021984)
Server time: 2020/11/10 10:26:24 EST (1605021984)
accurev login david
accurev info
Shell: /bin/bash
Principal: david
Host: laptop
Domain: (none)
TZ: US/Eastern
Server name: accurev
Port: 5050
DB Encoding: Unicode
ACCUREV_BIN: /opt/accurev-7.5/bin
Client time: 2020/11/10 10:27:36 EST (1605022056)
Server time: 2020/11/10 10:27:36 EST (1605022056)
You are not in a directory associated with a workspace
export ACCUREV_HOME=/tmp/
accurev info
Shell: /bin/bash
Principal: (not logged in)
Host: laptop
Domain: (none)
TZ: US/Eastern
Server name: accurev
Port: 5050
DB Encoding: Unicode
ACCUREV_BIN: /opt/accurev-7.5/bin
Client time: 2020/11/10 10:28:48 EST (1605022128)
Server time: 2020/11/10 10:28:48 EST (1605022128)
accurev login david
accurev info
Shell: /bin/bash
Principal: david
Host: laptop
Domain: (none)
TZ: US/Eastern
Server name: accurev
Port: 5050
DB Encoding: Unicode
ACCUREV_BIN: /opt/accurev-7.5/bin
Client time: 2020/11/10 10:30:00 EST (1605022200)
Server time: 2020/11/10 10:30:00 EST (1605022200)
You are not in a directory associated with a workspace
accurev show sessions | grep david
david laptop 0
david laptop 3
These sessions could be started up from two different terminal windows and simply switching windows, switches the AccuRev session.
Further once ACCUREV_HOME is set, the AccuRev GUI can be launched, then the ACCUREV_HOME changed, and and new AccuRev GUI started, each one with a different AccuRev login session.
Second: Two session to different AccuRev Servers
This builds upon the first example above.
In this scenario the machine "192.168.49.26" is a Windows machine hosting the AccuRev Server. The AccuRev client is running on Linux.
export ACCUREV_HOME=/AccuRevHome/windows
accurev info
Shell: /bin/bash
Principal: (not logged in)
Host: laptop
Domain: (none)
TZ: US/Eastern
Server name: 192.168.49.26
Port: 5050
DB Encoding: Unicode
ACCUREV_BIN: /opt/accurev-7.5/bin
Client time: 2020/11/10 11:05:06 EST (1605024306)
Server time: 2020/11/10 11:05:06 EST (1605024306)
accurev login david
accurev info
Shell: /bin/bash
Principal: david
Host: laptop
Domain: (none)
TZ: US/Eastern
Server name: 192.168.49.26
Port: 5050
DB Encoding: Unicode
ACCUREV_BIN: /opt/accurev-7.5/bin
Client time: 2020/11/10 11:06:16 EST (1605024376)
Server time: 2020/11/10 11:06:16 EST (1605024376)
You are not in a directory associated with a workspace
accurev show sessions
Username Host Duration (min)
david 192.168.49.210 0
The AccuRev GUI can be started once ACCUREV_HOME has been set correctly to a directoy/folder where you have write privileges. The login can occur within the GUI, if not already logged in from the command line.
Multiple sessions can be created by opening multiple terminal/CMD windows and setting ACCUREV_HOME to a unique directory/folder for each session.
Using the variable HOME can be used instead of ACCUREV_HOME, but that will impact the Shell as well, impacting a "cd" which now not take you back to your login HOME directory on Linux.
Windows Example
set ACCUREV_HOME=C:\Users\DavidHo\Linux
accurev info
Principal: (not logged in)
Host: DHOWLAND-10
Server name: accurev
Port: 5050
DB Encoding: Unicode
ACCUREV_BIN: C:\Program Files\AccuRevClients\7.5\bin
Client time: 2020/11/10 11:14:22 Eastern Standard Time (1605024862)
Server time: 2020/11/10 11:14:22 Eastern Standard Time (1605024862)
accurev login david
>accurev info
Principal: david
Host: DHOWLAND-10
Server name: accurev
Port: 5050
DB Encoding: Unicode
ACCUREV_BIN: C:\Program Files\AccuRevClients\7.5\bin
Client time: 2020/11/10 11:16:52 Eastern Standard Time (1605025012)
Server time: 2020/11/10 11:16:52 Eastern Standard Time (1605025012)
You are not in a directory associated with a workspace
set ACCUREV_HOME=C:\Users\DavidHo\OtherSession
accurev info
Principal: (not logged in)
Host: DHOWLAND-10
Server name: accurev
Port: 5050
DB Encoding: Unicode
ACCUREV_BIN: C:\Program Files\AccuRevClients\7.5\bin
Client time: 2020/11/10 11:18:46 Eastern Standard Time (1605025126)
Server time: 2020/11/10 11:18:46 Eastern Standard Time (1605025126)
accurev login david
accurev info
Principal: david
Host: DHOWLAND-10
Server name: accurev
Port: 5050
DB Encoding: Unicode
ACCUREV_BIN: C:\Program Files\AccuRevClients\7.5\bin
Client time: 2020/11/10 11:26:42 Eastern Standard Time (1605025602)
Server time: 2020/11/10 11:26:42 Eastern Standard Time (1605025602)
You are not in a directory associated with a workspace
accurev show sessions
Username Host Duration (min)
david 192.168.49.26 0
david laptop 57
david laptop 59
david 192.168.49.26 10