Here's a quick little script I wrote in Powershell to test the workspace login utilizing Powershells Invoke-WebRequest method. This does all the heaving lifting and all we have to do is pass into the Body parameter the sso_username and sso_password. Just run the script and supply the Foundation server and port. The user will be prompted for username and password. If login is successful the SSOToken is displayed. If not the error of the login problem is displayed. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 <# .SYNOPSIS Perform a Simple EPM Login Test .DESCRIPTION This script will perform a simple login test to EPM Workspace URL .PARAMETER FoundationServer The name of teh server where Foundation Services is running .PARAMETER port The port that Foundation services web service is listening on. Defaults to 19000
Lately I've been working on creating a function in bash so that I can generically call MaxL scripts and process return codes from them so that I can do some error handling and possibly send a notification via email or SMS message depending on the situation. How the essbase_run_task function works is like this: