Giter Site home page Giter Site logo

grejman / siebel-ps1 Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 1.0 35 KB

Siebel PowerShell Library and scripts to manage a Siebel IP19+ environment. From Log files to Changing passwords.

License: MIT License

PowerShell 100.00%
oracle-siebel ps1 change-password siebel siebel-powershell-library

siebel-ps1's Introduction

Siebel-PS1

Siebel-IP19-Module.psm1: Siebel PowerShell Library of commands for managing Siebel environment.

Siebel-Change-Password.ps1: Change password commands to change the Siebel\sadmin password on the domain, gateway, services and DB.

Steps

  1. Download the Module

  2. Edit the Mobule and set the Default & Env section, the section contains the host and server names for the enviroment as well the location components are installed.

     ...
     $SBLAppIntPath        = "d:\Oracle\Siebel\ai"\
     $SBLGtwyPath          = "d:\Oracle\Siebel\gw\gtwysrvr"\
     $SBLGtwyPort          = "9999"\
     $SBLSrvrPath          = "d:\Oracle\Siebel\ses\SiebSrvr"\
     $SBLTempPath          = "c:\Temp\"\
     $SBLClientPath        = "C:\Oracle\Siebel\16.0.0.0.0\Client"\
     ...
    
     ...\
     "QA" {\
       $global:SBLHost       = "siebel.yy.com"\
       $global:SBLGtwyServer = "a123dwawi"\
       $global:SBLAIServers  = "a123dwawi"\
       $global:SBLServers    = "a123dwawi"\
       $global:SBLAllServers = "a123dwawi"\
       $global:SBLGtwyPath   = "d:\Oracle\Siebel\gw\gtwysrvr"\
       Break\
     }\
     "P-Prod" {\
     ...
    
  3. Install the module:

Import-Module -FullyQualifiedName "Siebel-IP19-Module.psm1"

  1. To Remove Module

Remove-Module Siebel-IP19-Module

  1. Set the environment call Set-SBLEnv and pass in DEV\QA. Note the default is Dev

Set-SBLEnv -Env QA

  • Note: The enviroments settings, hosts, server names are stored in the Mobile. Edit the file and adjust as required.

Functions

  • Testing

    Invoke-SBLWFP

  • Siebel Services

    Stop-SBLServer
    Start-SBLServer
    Get-SBLServer\ Remove-SBLService\ Add-SBLService

  • Backup Gateway

    Backup-SBLGtwy\ Stop-SBLGtwyServer\ Start-SBLGtwyServer\ Get-SBLGtwyServer

  • Siebel AI Servicve

    Set-SBLAIAuthToken - Change the AI Auth Token on a AI tomcat service
    Stop-SBLAIServer\ Start-SBLAIServer\ Get-SBLAIServer

  • Siebel Server Components

    Set-SBLSrvrComp
    Get-SBLSrvrComp

  • Siebel Gateway Param

    Set-SBLGtwyEnvParam
    Set-SBLGtwySubSysParam\

  • Siebel Gateway Log Level

    Set-SBLGtwyEvtLogLevel
    Get-SBLGtwyEvtLogLevel

  • Siebel Logs

    Get-SBLSrvrLogs
    Remove-SBLSrvrLogs

Note: For help on the input parameters use the PowerShell command  "Get-Help {MethodName}"

Example

Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope Process
Import-Module -FullyQualifiedName "Siebel-IP19-Module.psm1"
##remove-module Siebel-IP19-Module

## Set Credential
$SiebPass = "SADMIN1"  ## Siebel SADMIN Password
$c  = Get-Credential vodacom\xxxx
$cs = New-Object -TypeName System.Management.Automation.PSCredential -ArgumentList "SADMIN", (ConvertTo-SecureString -String $SiebPass -AsPlainText -Force) 

## Set Environment REP, DEV, QA (Default: Dev)
Set-SBLEnv -Env QA

## Clear the Cache
Remove-SBLSrvrLogs -Credential $c -Types Temp -Verbose  -Filter "Cache*"

Remove-SBLSrvrLogs -Credential $c -Types Log -Filter "EAI*" -Verbose

## Get Server Log
Get-SBLSrvrLogs -Credential $c -Types Log -Filter "EAI*" -Pattern "{File Content}" -Verbose

## Get\Remove FDR
Get-SBLSrvrLogs    -Credential $c -Types FDR,Crash -Verbose

Remove-SBLSrvrLogs -Credential $c -Types FDR,Crash -Verbose

## Set Log Level of Component
Set-SBLGtwyEvtLogLevel -Credential $c -Value 1 -CompAliasName eCommunicationsObjMgr_enu -Password SADMIN

## Cleanup older that 1 day log files
Remove-SBLSrvrLogs  -Credential $c -Type AI,EmailResponce,Log,FDR,Crash,LOGARCHIVE -AddMin 1440

## Start\Stop Get Siebel Server
Stop-SBLServer -Credential $c -Verbose
Get-SBLServer -Credential $c -Verbose
Start-SBLServer -Credential $c -Verbose

## Start\Stop Get Siebel Server
Stop-SBLGtwServer -Credential $c -Verbose
Get-SBLGtwyServer -Credential $c -Verbosey
Start-SBLGtwyServer -Credential $c -Verbose

## Change the AI Auth Token
Set-SBLAIAuthToken -Credential $c -NewPassword xyz -Verbose

## Call WFP 
##[Net.ServicePointManager]::SecurityProtocol = "Tls, Tls11, Tls12"
Invoke-SBLWFP -WFPName "VSFA Function - OM Offer Add Instance" -Parameters "OfferId=2-AUO9AYV&AssetIntegrationId=2-18104762448&InputObjectType=SIS OM Quote?workspace=main" -Credential $cs -Verbose

siebel-ps1's People

Contributors

grejman avatar

Watchers

 avatar  avatar

Forkers

msds17012

siebel-ps1's Issues

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.