Skip to content

TSM-Guardian | Monitoring and automation for IBM Tivoli Storage Manager

Notifications You must be signed in to change notification settings

polarisforsure/TSM-Guardian

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

TSM-Guardian

tsmpng

Who doesn't hate incidents where TSM fails and you need to jump in and simply restart TSM_SCHED?

This program uses the child_process module to run external commands, such as ps and tsm, in order to check the status of TSM_SCHED and restart it if necessary. It also uses setInterval to run the checkTSM function every 5 seconds, so it can continuously monitor TSM_SCHED.

This script uses the uncaughtException event to detect if the script has crashed, and if so, it will exit and automatically restart. This ensures that the script will always be running and monitoring TSM_SCHED.
Here are the steps for setting up and using the node.js script to monitor and restart IBM Tivoli Storage Manager:

Step 1: Install node.js on your system if it is not already installed. You can download the latest version of node.js from the official website (https://nodejs.org/) and follow the instructions for installation.

Step 2.A git clone https://github.com/polarisforsure/TSM-Guardian

OR

Step 2.B: Create a new file named tsm-guardian.js and copy the code from this repository. This is the script that will monitor and restart TSM_SCHED.

Step 3: Open a terminal or command prompt in the same directory as 'tsm-guardian.js'.

Step 4: Run the following command to install the necessary dependencies for the script: npm install child_process

Step 5: Once the dependencies are installed, you can start the script by running the following command: node tsm-guardian.js

The script will now start running and will check the status of TSM_SCHED every 5 seconds. If TSM_SCHED is not running, it will attempt to restart it. If the script crashes for any reason, it will automatically restart thanks to the uncaughtException event handler that we added to the script. To stop the script, you can use CTRL+C in the terminal or command prompt where it is running.

About

TSM-Guardian | Monitoring and automation for IBM Tivoli Storage Manager

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages