Wednesday, July 23, 2014

vSphere PowerShell CLI

Allow Remote Signed: Set-ExecutionPolicy RemoteSigned

ex.
export ova filter by ResourcePools

#Load the VMWare PowerCLI SnapIn
Add-PSSnapin vmware.vimautomation.core

#List VMWare cmdlets
#Get-Command -PSSnapin VMware.*


Connect-VIServer temp.domain.local -WarningAction SilentlyContinue

$VMS = Get-ResourcePool -Name "iSCSI-VM-Offline_Datastore" | get-vm

foreach ($VM in $VMS){

    echo "export $VM to ova file"

    Export-VApp -Destination "E:\iSCSI-VM-Offline_Datastore\" -VM $VM  -Format OVA

}

ex.
Backup ova
http://idledeveloper.com/tag/export-vapp/


Regular Expressions in NPS

exp:

Network ^192\.168\.10\..+

http://technet.microsoft.com/en-us/library/cc755272(v=ws.10).aspx

Saturday, July 5, 2014

Modify LDAP Password

Find user in LDAP:

root@mail # ldaplist |grep username
dn: uid=username,ou=group4,ou=people,dc=domain,dc=ac,dc=th

Modify user in LDAP:

root@mail # ldapmodify -D "cn=directory manager" <enter>
Bind Password: blindpassword <enter>
dn: uid=username,ou=group4,ou=people,dc=domain,dc=ac,dc=th <enter> มาจากคำสั่งข้างบน
changetype: modify <enter>
replace: userPassword <enter>
userPassword: (password) <enter>

ALCATEL 6900

write memory copy running certified reload from working no rollback-timeout