Handy RedHat Commands
As I continue to help customers build out their private clouds using VMware vCloud Director I'm finding that I'm personally needing to build up my Linux skills (I come from a Windows background like a lot of VMware users) so I've created this post to bring all this information into one spot. As I find additional useful commands I will update. Enjoy !!
Disable Firewall
By default the Firewall service within Red Hat is enabled, when setting up the vCloud Director cells this will stop you from being able to hit the url once installed. Use the following commands to check and configure the firewall:
Check the firewall status
1/etc/init.d/iptables status
Disable the firewall service
1/etc/init.d/iptables save
2/etc/init.d/iptables stop
3chkconfig iptables off
or
1service iptables save
2service iptables stop
3chkconfig iptables off
Viewing Logs Using Tail
When deploying the VMware vCloud Director cells, you will need to monitor the services starting in case any issues occur (DNS is always a good one). The Linux tail command is useful in this situation, by default tail will print the last 10 lines but with some additional values we can display more lines and follow the output as it changes. This can be achieved using the following commands:
1tail –f -n 50 /opt/vmware/vcloud-director/logs/cell.log
Checking Version of Red Hat
If you want to double check the version of Red Hat your running then the following command can be issued:
1tail /etc/redhat-release