Hi All,
This topic is where i am going to post a few ticks, tips and guides for the ssh/command line side of Zentyal/Linux/Ubuntu.
After running Clearos for the past 5 years and recently deploying zentyal servers in business enviroments i Thought i would document a few of the tools/tricks/tips i use to stay sane in this ever changing world of linux.
I do a lot of ssh work, due to our poor internet infrastructure and being old school dos baby i still prefer this approach.
Ok, onto the meat of it all.
Quick Bandwidth Graphs
Install iftop
$ sudo apt-get install iftop
$ sudo iftop -i ethX
ethX being the device you want to monitor, also note you can monitor your vpn links to, replace ethx with tun0 or tap0
Where My SQL password at?
$ sudo cat /var/lib/zentyal/conf/sa-mysql.passwd
or
$ sudo cat /var/lib/zentyal/conf/zentyal-mysql.passwd
Scan for live clients
if nmap not installed
$ sudo apt-get install nmap
$ nmap -sP $(ip -o addr show | grep inet\ | grep eth | cut -d\ -f 7)
you can replace eth with which ever device you need, eg. tun for openvpn clients, or eth1/eth2 etc to see a specific device
Give me my 3 free zarafa/outlook clients
$ sudo apt-get install zarafa-licensed
$ sudo zarafa-licensed
to clear the 3 clients linked to zarafa ( for example if you created a test account to test outlook functions)
$ sudo rm /var/lib/zarafa/userdb
Zentyal Built in Backup
Trigger full backup now
$sudo /usr/share/zentyal-ebackup/backup-tool --full
Run only incremental
sudo /usr/share/zentyal-ebackup/backup-tool --incremental
Zentyal Services lookup
network firewall antivirus audit bwmonitor ca dhcp dns ebackup events haproxy logs mail mailfilter monitor ntp openchange openvpn remoteservices samba sogo squid trafficshaping usercorner users webadmin webmail webserver
More to come soon. Updated 03/06/2014
darkspr1te