Difference between revisions of "Legacy command line tools"

From TempusServa wiki
Jump to navigation Jump to search
old>Admin
old>Admin
Line 40: Line 40:
=== System information ===
=== System information ===


* tsstatus.sh
{|
* tslogsgrep.sh [search]
|tsstatus.sh
* tslogstail.sh
|Lists various informations
* Memory use
* Disk use
* Installed applications
* Running cron jobs
|-
|tslogsgrep.sh [search]
|Fetches information from Tomcat log files, that contains [search]
|-
|tslogstail.sh
|Fetches information from Tomcat log files
|}


=== Server maintanence ===
=== Server maintanence ===

Revision as of 13:08, 3 March 2013

Compability

The shell tools are compatible with the following distributions

  • Amazon linux
  • RedHat linux
  • CentOS linux

Other versions are likely compatible if they support yum installer.

Installing the tools

Execute the following commands from youre UNIX command line

  1. cd /usr/bin
  2. sudo wget -N http://www.tempusserva.dk/deploy/amazon-tomcat7/tsrefreshscripts.sh
  3. sudo chmod 777 tsrefreshscripts.sh
  4. tsrefreshscripts.sh

The tools are installed into /usr/bin, and made available for all users.

Tool reference

Installation

tsinstall.sh Installs Tempus Serva and all dependencies to /TempusServa and names databases: tslive, tstest, tsbase
tsinstallinstance.sh [application] Installs Tempus Serva and all dependencies to [application] and names the databases [application] + postfix: live, test, base
tsquickinstall.sh Installs Tempus Serva and all dependencies to /TempusServa, files are saved to root home folder and names databases: tslive, tstest, tsbase

Update with newer version

  • tsupgrade.sh
  • tsupgradeinstance.sh [application]

System information

tsstatus.sh Lists various informations
  • Memory use
  • Disk use
  • Installed applications
  • Running cron jobs
tslogsgrep.sh [search] Fetches information from Tomcat log files, that contains [search]
tslogstail.sh Fetches information from Tomcat log files

Server maintanence

  • tsboot.sh
  • tsstop.sh
  • tsstart.sh
  • tsrestart.sh
  • tstomcatstop.sh
  • tstomcatstart.sh

Database access

  • tsmysqlremotestart.sh
  • tsmysqlremotestop.sh

Other usefull scripts

  • tsbackupfull.sh
  • tsbackupinstance.sh [application]
  • tsrefreshscripts.sh