Monthly Archives: November 2013

You are browsing the site archives by month.

Automate Sonus SBC (1000/2000) Management using PowerShell

In previous blog posts I discussed about connecting and querying Sonus SBC using cURL. This article discusses how you can connect to Sonus using PowerShell v3. Please be aware the SBC is already on at least R3.0 and you have created a REST user account. More information can be found here.

Massive thanks to Adrien Pleiss from Sonus who provided most of the examples below.

Define variables

$uxhostname = “1.1.1.1”
$uxusername = “restuser”
$uxpassword = “Password01”

Log on to SBC

$args1 = “Username=$uxusername&Password=$uxpassword”
$url = “https://$uxhostname/rest/login”
Invoke-RestMethod -Uri $url -Method Post -Body $args1 -SessionVariable ps
If the login is successful you will receive 200 OK message as below. If you do not receive 200 OK Read More →