Automate Ribbon SBC1000 & SBC2000 Backups

Using PowerShell 3.0+ you can backup Ribbon (previously Sonus) SBC1000 and SBC2000 SBC’s using the REST API.

Firstly, you will need to create a user with ‘rest’ level user permissions on the SBC:

You can learn more about creating the user account here.

Then simply run the script in PowerShell, or setup a scheduled task to automate the process. Follow the script setup info within the script e.g:

Download

Download here on GitHub

 

 

Andrew Morpeth
Andrew Morpethhttps://ucgeek.co/author/amorpeth/
Andrew is a Modern Workplace Consultant specialising in Microsoft technologies based in Auckland, New Zealand; Andrew is a Director and Professional Services Manager at Lucidity Cloud Services and a Microsoft MVP.

Related Articles

7 COMMENTS

  1. Hi Andrew!
    Thanks a lot for your quick update! I truly appreciate it.

    Just a quick inquiry, when i tried to run my script, i got the “404 – Not found error” on my Invoke-RestMethod.

    When i tried to access the URL https://ServerName/rest/login in a browser. It only showed “405”

    I’m really sorry but i’m just a newbie with REST API in RIBBON, is there something i’m missing? Is there something i need to enable on the SBC for the REST API to push through?

    Thanks in advance!

  2. sorry ignore the comment
    this is the error
    Invoke-RestMethod : The request was aborted: Could not create SSL/TLS secure channel.
    At line:68 char:5
    + Invoke-RestMethod -Uri $LoginUrl -Method Post -Body $LoginCredentials -Sessi …
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebException
    + FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand

    Invoke-RestMethod : The request was aborted: Could not create SSL/TLS secure channel.
    At line:73 char:5
    + Invoke-RestMethod -Uri $BackupUrl -Method POST -Body $args -WebSession $ps – …
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebException
    + FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Andrew Morpeth
Andrew Morpethhttps://ucgeek.co/author/amorpeth/
Andrew is a Modern Workplace Consultant specialising in Microsoft technologies based in Auckland, New Zealand; Andrew is a Director and Professional Services Manager at Lucidity Cloud Services and a Microsoft MVP.

Latest Articles