# Revision history [back]

### Display VNC Port in Dashboard

Hi,

first of all this is with a DEVSTACK install.

I am trying to figure out how to create a new column in the instances list that will display the VNC port number that the VM is assigned to.

We are currently VNCing directly to the VMs using "$OPENSTACK_IP:590x". So for example if VM#1 is running on VNc port 5900, VM#2 is on Port 5901. In the instances list page, I added a "VNC PORT" column by modifying file: /opt/stack/horizon/openstack_dashboard/dashboards/project/instances/tables.py But I am seriously a python newbie. I am trying to figure out a way to have the fields uner the "VNC Port" column to be the result of the "netstat -tupan | grep 590*" bash command. This way our users will no longer need to manage their VMs using the web GUI. They will be able to find out which VNC port it's running on, and VNC directly to openstack on that given port. Any idea if this is possible? Thanks for any help.  2 retagged smaffulli 6966 ●38 ●68 ●102 http://maffulli.net/ ### Display VNC Port in Dashboard Hi, first of all this is with a DEVSTACK install. I am trying to figure out how to create a new column in the instances list that will display the VNC port number that the VM is assigned to. We are currently VNCing directly to the VMs using "$OPENSTACK_IP:590x". So for example if VM#1 is running on VNc port 5900, VM#2 is on Port 5901.

In the instances list page, I added a "VNC PORT" column by modifying file:

/opt/stack/horizon/openstack_dashboard/dashboards/project/instances/tables.py

But I am seriously a python newbie. I am trying to figure out a way to have the fields uner the "VNC Port" column to be the result of the "netstat -tupan | grep 590*" bash command. This way our users will no longer need to manage their VMs using the web GUI. They will be able to find out which VNC port it's running on, and VNC directly to openstack on that given port.

Any idea if this is possible? Thanks for any help.