Git Product home page Git Product logo

pstsm's Introduction

PSTSM

A PowerShell Module for IBM's Tivoli Storage Manager / Spectrum Protect

Description

This repository contains PowerShell functions to administer IBM's TSM (Tivoli Storage Manager) / Spectrum Protect. This module does require the TSM admin client to be installed. I have tested this module on Windows 10 and TSM Client 7.1.3. This should work with older versions of TSM and windows as well.

Getting Started

You can install this module by copying the PSTSM folder to your PowerShell Modules directory. You will need to have installed the TSM admin client before using the module.

There are a few environmental variables that need to be set. These variables are DSM_CONFIG, DSM_DIR, and adding the DSM_DIR value to your PATH variable. The module will check to see if they are set when the module is imported. You can either set these variables by hand, or use Set-TsmEnvironmentVar.

Functions

PSTSM Function Description
Set-TsmEnvironmentVar Sets the Environmental variables required for the TSM client to be ran in batch mode
Test-TsmEnvornmentVar Tests to see if the Environmental variables are set correctly
Set-TsmCredential Stores the TSM username and password for the server connection
Get-TsmNode Gets TSM nodes
New-TsmNode Creates a new TSM node
Remove-TsmNode Removes a TSM nodes
Rename-TsmNode Renames a TSM node
Get-TsmAssocation Gets TSM assocations
Remove-TsmAssociation Removes TSM assocations
Get-TsmFilespace Gets TSM filespaces
New-TsmAssociation Creates a TSM assocation
Remove-TsmFilespace Removes TSM assocations
Get-TsmProcess Gets TSM processes
Stop-TsmProcess Stops TSM processes
Get-TsmSession Get TSM sessions
Stop-TsmSession Stops TSM sessions
Invoke-TsmCommand Runs a tsm command, this function is used by almost every function in the module

Credentials

There are two ways to set the username and password used by this module. You can pass parameters using -Username USERNAME -Password PASSWORD, or you can set them once with Set-TsmCredential -Username USERNAME -Password PASSWORD.

Help

You can use Get-Command -Module PSTSM to get a list of cmdlets in the module. You can use Get-Help command to view the help information for the cmdlet.

TO DO

There are a few functions I would like to add: querying the log, granting proxy rights, etc. We do not use the archive functions of TSM, so I do not plan on creating them in PSTSM.

Credentials

There are two ways to set the username and password used by this module. You can pass parameters using -Username USERNAME -Password PASSWORD, or you can set them once with Set-TsmCredential -Username USERNAME -Password PASSWORD.

pstsm's People

Contributors

jeremymcgee73 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

pstsm's Issues

Command line parameter 1: 'TCPServeraddress 10.14.25.13 is not valid

When i try to run this command:
Invoke-TsmCommand -TCPServerAddress 10.14.25.13 -TCPPort 1503 -Command run TEST_SCRIPT

it fails with this error:
Command line parameter 1: 'TCPServeraddress 10.14.25.13' is not valid.
At C:\Users\user\Documents\WindowsPowerShell\Modules\PSTSM\Public\Invoke-TSMcommand.ps1:95 char:13
Throw $errorOut
~~~~~~~~~~~~~~~
+ CategoryInfo : OperationStopped: (Command line pa... is not valid.:String) [], RuntimeExc
eption
+ FullyQualifiedErrorId : Command line parameter 1: 'TCPServeraddress 10.14.25.13' is not valid.´

i have tried everything from:
Invoke-TsmCommand -TCPServerAddress '10.14.25.13' -TCPPort 1503 -Command run TEST_SCRIPT
Invoke-TsmCommand -TCPServerAddress "10.14.25.13" -TCPPort 1503 -Command run TEST_SCRIPT
Invoke-TsmCommand -TCPServerAddress 10.14.25.13 -TCPPort 1503 -Command run "TEST_SCRIPT"

Still same error..

Hope there is help out there :)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.