Extension information saved in Elastix

Extension information saved in Elastix

cat /etc/asterisk/sip_additional.conf

 

[root@pbx asterisk]# cat /etc/asterisk/sip_additional.conf
;--------------------------------------------------------------------------------;
; Do NOT edit this file as it is auto-generated by FreePBX. All modifications to ;
; this file must be done via the web gui. There are alternative files to make    ;
; custom modifications, details at: http://freepbx.org/configuration_files       ;
;--------------------------------------------------------------------------------;
;


[2235]
deny=0.0.0.0/0.0.0.0
secret=P@ssw0rd
dtmfmode=rfc2833
canreinvite=no
context=from-internal
host=dynamic
trustrpid=yes
sendrpid=no
type=friend
nat=yes
port=5060
qualify=yes
qualifyfreq=3600
transport=udp
avpf=no
icesupport=no
dtlsenable=no
dtlsverify=no
dtlssetup=actpass
encryption=no
callgroup=
pickupgroup=
dial=SIP/2235
mailbox=2235@device
permit=0.0.0.0/0.0.0.0
callerid=Gkhan <2235>
callcounter=yes
faxdetect=no

 

Posted in Uncategorized | Tagged | Leave a comment

How to get vms, with their current ips, macaddresses, networkcard types

How to get vms, with their current ips, macaddresses, networkcard types

Below are the script i got to get all VM name UUID, VLAN assigned, MAC address , IP address,Network card type.

Its export in CSV .

 

$reportedvms=New-Object System.Collections.ArrayList
$vms=get-view -viewtype virtualmachine  |Sort-Object -Property {  $_.Config.Hardware.Device |  where {$_ -is [VMware.Vim.VirtualEthernetCard]} |  Measure-Object | select -ExpandProperty Count} -Descending
 
foreach($vm in $vms){
  $reportedvm = New-Object PSObject
  Add-Member -Inputobject $reportedvm -MemberType noteProperty -name Guest -value $vm.Name
  Add-Member -InputObject $reportedvm -MemberType noteProperty -name UUID -value $($vm.Config.Uuid)
$networkcards=$vm.guest.net | ?{$_.DeviceConfigId -ne -1}
$i=0
foreach($ntwkcard in $networkcards){
Add-Member -InputObject $reportedvm -MemberType NoteProperty -Name "networkcard${i}.Network" -Value $ntwkcard.Network
Add-Member -InputObject $reportedvm -MemberType NoteProperty -Name "networkcard${i}.MacAddress" -Value $ntwkcard.Macaddress  
Add-Member -InputObject $reportedvm -MemberType NoteProperty -Name "networkcard${i}.IpAddress" -Value $($ntwkcard.IpAddress|?{$_ -like "*.*"})
Add-Member -InputObject $reportedvm -MemberType NoteProperty -Name "networkcard${i}.Device" -Value $(($vm.config.hardware.device|?{$_.key -eq $($ntwkcard.DeviceConfigId)}).gettype().name)
$i++
}
$reportedvms.add($reportedvm)|Out-Null
}
 
$reportedvms|Export-Csv C:\PCLITEST\inventry\networkcard.csv

 

Posted in Uncategorized | Leave a comment

VMware Datastores free space report PowerCLI

VMware Datastores free space report PowerCLI.

Below script will give below report as used space and percentage of free space .

 

 

Continue reading

Posted in Uncategorized | Leave a comment

Cisco UCS PowerTool and scripts

Cisco UCS PowerTool and scripts

Source Link :- https://communities.cisco.com/docs/DOC-60339

Continue reading

Posted in Uncategorized | Tagged | Leave a comment

test.ps1 is not digitally signed. The script will not execute on the system

test.ps1 is not digitally signed.  The script will not execute on the system

The fix is to run Set-ExecutionPolicy and change the Execution Policy setting.

Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass

Posted in Uncategorized | Tagged | Leave a comment

How to Configuring an NTP Time Server on ESXi PowerCLI

How to Configuring an NTP Time Server on ESXi PowerCLI

If there are no NTP server configured

Get-VMHost esx01 | Add-VMHostNtpServer -NtpServer ntpservername

 

Or to first of all clear existing NTP server(s) then set the new one:

Get-VMHost esx01 | Remove-VMHostNtpServer -NtpServer (Get-VMHost esx01 | Get-VMHostNtpServer)
Get-VMHost esx01 | Add-VMHostNtpServer -NtpServer ntpservername

 

Source link 

Posted in Uncategorized | Tagged | Leave a comment

List all datastores and disk names

List all datastores and disk names

Get-Datastore |
Where-Object {$_.ExtensionData.Info.GetType().Name -eq "VmfsDatastoreInfo"} |
ForEach-Object {
  if ($_)
  {
    $Datastore = $_
    $Datastore.ExtensionData.Info.Vmfs.Extent |
    Select-Object -Property @{Name="Name";Expression={$Datastore.Name}},
      DiskName
  }
}

Continue reading

Posted in Uncategorized | Tagged | Leave a comment

How to check VMFS version & block sizes PowerCLI

How to check VMFS version & block sizes PowerCLI

Get-Datastore | Get-View | Select-Object Name,@{N="VMFS version";E={$_.Info.Vmfs.Version}},@{N="BlocksizeMB";E={$_.Info.Vmfs.BlockSizeMB}}

 

NameVMFS 	      version   BlocksizeMB
----------------    -----------
TempDS                  5.58 	 1
datastore1              5.54  	 1
datastore1 (3)          5.54  	 1
datastore1 (1)          5.54  	 1
datastore1 (4)          5.54  	 1
datastore1 (7)          5.54  	 1
datastore1 (6)          5.54  	 1
Posted in Uncategorized | Leave a comment

How to get HBA information of all ESXi Hosts

How to get HBA information of all ESXi Hosts

if you want to get all inventory of HBA cards from all ESXi hosts below are the script will give you below information ,which you require in SAN Zoning and SAN LUN mapping.

 

 

 

 

 

Continue reading

Posted in Uncategorized | Tagged | Leave a comment

How to get RDM information in VMware ESXi Hosts

How to get RDM information in VMware ESXi Hosts

Below are the script i have tested to get all RDM information from Virtual machines in Esxi Hosts.

It will check all VMs in your ESXi host or VCenter  where you are connecting.

which give you below information in format

Continue reading

Posted in Uncategorized | Tagged | Leave a comment