Skip to content

Automatically exported from code.google.com/p/axl-powershell-module

Notifications You must be signed in to change notification settings

cp880/axl-powershell-module

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Axl Powershell Module

Examples

Delete a bunch of phones

$axl = new-axlconnection cucm1.example.com admin
$phones = "SEP9CAFCAFEF6F2","SEP001E4AF18FA1","SEP9CAFCAFEF4E8"
$phones | % { $_; try {Remove-UcPhone $axl -name $_} catch { write-warning $_.Exception.Message } }

Delete a list of DNs and any phone the DN is associated with

$axl = new-axlconnection cucm1.example.com admin
$lines = "2001","2002","2003","2004"
$partition = "phones-pt"
foreach ($line in $lines) {
  write-host -for cyan $line
  $appearances = get-uclineappearance $axl $line
  $appearances | %{
    $_
    try {
      $_ | remove-ucphone $axl
    } catch {
      write-warning $_.Exception.Message
    }
  }
  try {
    remove-ucdn $axl -dn $line -part $partition
  } catch {
    write-warning "Could not delete DN $line.  $($_.Exception.Message)"
  }
}

Change the route partition of some Lines (DNs)

$axl = new-axlconnection cucm1.example.com admin
$lines = get-ucdn $axl -dn % -Partition "old-partition"
foreach ($line in $lines) {
  "{0} {1}" -f $line.dn, $line.description
  try { set-ucline $axl -routep "old-partition" -newRoutePartitionName "new-partition" -pat $line.dn }
  catch { write-warning $_.Exception.Message }
}

About

Automatically exported from code.google.com/p/axl-powershell-module

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PowerShell 100.0%