Tunnels

Here are notes on using tunnels with Violin Memory HQ Lab.

To Transfer Files via SCP from a VM running on a Lab Host

To transfer the files directly, a tunnel can be used. Here are examples of tunnels used to transfer files directly to local machine (laptop) in New York from KVM guests {kvmora01, kvmora02, kvmora03} running on Violin Memory lab host tme-srvxxxx.eng.vmem.int as shown below.

gstanden@vmem1:~/Downloads/LXC-6616/slob_kvm_density/run1/kvmora01$ ssh -L 1234:kvmora01.vmem.org:22 -p 22 root@tme-srvxxxx.eng.vmem.int

root@tme-srv2567.eng.vmem.int's password:

Last login: Sat Dec 6 21:13:13 2014 from xx.xx.xx.xx

gstanden@vmem1:~/Downloads/LXC-6616/slob_kvm_density/run1/kvmora02$ ssh -L 1235:kvmora02.vmem.org:22 -p 22 root@tme-srvxxxx.eng.vmem.int

root@tme-srv2567.eng.vmem.int's password:

Last login: Sat Dec 6 21:22:21 2014 from xx.xx.xx.xx

gstanden@vmem1:~/Downloads/LXC-6616/slob_kvm_density/run1/kvmora03$ ssh -L 1236:kvmora03.vmem.org:22 -p 22 root@tme-srvxxxx.eng.vmem.int

root@tme-srv2567.eng.vmem.int's password:

Last login: Sat Dec 6 21:26:54 2014 from xx.xx.xx.xx

These are the commands to actually transfer files as shown below. The login password here when prompted will be the root password of the KVM guest.

scp -rP 1234 root@localhost:/home/oracle/SLOB/awr.*.* .

scp -rP 1235 root@localhost:/home/oracle/SLOB/awr.*.* .

scp -rP 1236 root@localhost:/home/oracle/SLOB/awr.*.* .

To Pipe HTML via Tunnel

This is an example of accessing EM Express GUI DB management webpage via a tunnel, when the EM Express is running in a KVM guest, or an LXC Linux Container, etc. on a Violin Memory lab host server. In these example, these are KVM guests {kvmora01, kvmora02, kvmora03} and the lab host server is tme-srvxxxx.eng.vmem.int.

gstanden@vmem1:~$ ssh -L 8091:kvmora01.vmem.org:5601 root@tme-srvxxxx.eng.vmem.int

[OEL 6.6][~][root@tme-srv2567]#

Now the EM Express GUI can be accessed on the local host (laptop) in New York by opening a browser and navigating to "https://localhost:8091/em" . Note that the port of the EM Express is 5601 on the destination, and 8091 is an arbitrary unused port on the local host in New York.