vROPS 6 – How to hide all default dashboards from all Users and Groups
By default all users that login to vROPS for the first time see the default dashboards (Recommendations, Self-Health, Diagnose, and Workload Utilization). This can become quite annoying as not all groups of users need to see these dashboards as this may raise up more questions than answers or may decrease the users experience if you are trying to lockdown users to see only specific dashboards. This is a follow up to my other post on how to lockdown users to see only specific dashboards. http://www.vmignite.com/2016/02/vrops-6-how-to-lockdown-user-groups-to-see-only-specific-dashboards-only/
Step 1: Enable SSH on vROPS so we can use Putty to connect to vROPS
First we need to enable SSH on vROPs. Console into the the vROPS server and hit Alt + F1 to get to the console screen
Login as root and hit enter
The initial password is not set yet so just hit enter twice and it will prompt you for a new password
To start SSH Type in service sshd start
- Now open up Putty and login to your vROPS server
Login as Root and the password we created earlier
Step 2: To remove all default dashboards (Recommendations, Diagnose, Self Health) for all new users logging in for the first time
Once logged into Putty, type in mv /usr/lib/vmware-vcops/tomcat-web-app/webapps/vcops-web-ent/dashboards/ootb/All.json /root/All.json.$(date +%F)
All users logging into vROPS will not see any of the default dashboards, however existing users will still be able to see it. Go to step 3 below to hide them from all existing users.
Step 3. To hide the default dashboards from all existing users.
Change the path by typing in cd /usr/lib/vmware-vcops/tools/opscli
- Type in the following to hide them from all users
./ops-cli.sh dashboard hide all “Recommendations”
./ops-cli.sh dashboard hide all “Diagnose”
./ops-cli.sh dashboard hide all “Self Health”
./ops-cli.sh dashboard hide all “Workload Utilization”
How would you unhide them if it turns out you did not want this?
the first command moved the file /usr/lib/vmware-vcops/tomcat-web-app/webapps/vcops-web-ent/dashboards/ootb/tmp/All.json. You will need to move it back to /usr/lib/vmware-vcops/tomcat-web-app/webapps/vcops-web-ent/dashboards/ootb/All/All.json