icomasoft PowerScripter 1.5  
Out-of-the-box Scripts

icomasoft© PowerScripter doesn't come just with the functionality to run or schedule scripts, only! There are a lot of pre-designed scripts (templates) that address the most common administration tasks. All scripts are automatically installed into the Plugin folder by the PowerScripter installation routine , i.e. C:\Program Files\VMware\Infrastructure\Virtual Infrastructure Client\Plugins\icomasoft PowerScripter.

Host Scripts (HostScripts):

  • Set Host root password
    • change-root-pw.ps1
    • change one or multiple ESX Server root passwords
  • create Portgroup and-or vSwitch
    • create_vSwitch_pg.ps1
    • create a new virtual switch or virtual port group on one or multiple ESX servers
  • Delete Portgroup on Hosts
    • delete-pg.ps1
    • Delete virtual port group on one or multiple ESX server
  • Mass Deploy VMs with same base name
    • deploy-vms.ps1
    • Deployment of 1 to 99 or even more virtual machines with the same basename (number increment) distributed across ESX hosts and datastores (round robin)
  • Rescan SAN
    • rescan-hosts.ps1
    • Rescan SAN and refresh datastores on one or multiple ESX servers
  • Restart VirtualCenter ESX Host Agent - run on direct ESX connection only
    • restart VirtualCenter Agent - ESX-Host Connection only.ps1
    • must be directly connected to an ESX host with VMware VI client
  • Restart VirtualCenter ESX Host Agent - VirtualCenter connection
    • restart VirtualCenter Agent.ps1
    • still reponding VirtualCenter agents on ESX Host can be restarted
  • Search VMware ESX Log - case sensitive
    • searchlog.ps1
    • Search for custom string (case sensitive) within ESX log files (/var/log/vmware/hostd, /var/log/messages, /var/log/vmkernel, /var/log/vmkwarning)
  • View VMware ESX Log files (even with a VirtualCenter connection)
    • viewlog.ps1
    • View the different ESX Host log files even if connected to VirtualCenter ((/var/log/vmware/hostd, /var/log/messages, /var/log/vmkernel, /var/log/vmkwarning))
  • Send SSH command to SSH Server
    • ssh\send-ssh-command.ps1
    • connects with ESX Host through SSH protocol for sending commands
    • Sends commands to ESX Host through SSH protocol and returns the output to an richtext box
  • Backup esx.conf of VMware ESX hosts with SSH protocol
    • ssh\SSH-cp-esx.conf.ps1
    • Backup main ESX configuration file to a local directory with SSH
    • root access needed
  • Host CPU and Memory usage
    • statistics\cpu-mem-stats.ps1
    • Shows valuable statistics for CPU and memory of ESX Host for different intervals (day, week, month)
    • Thanks to Luc Dekens
  • List datastores sorted by most vmdks
    • statistics\datastores_most-vmdks.ps1
    • List datastores sorted by vmdk count
  • Several Statistics
    • statistics\several-statistics.ps1
    • several Top5 statistics, snapshots Usage, DataStore usage and many more
  • Top5 ESX Host - highest CPU, memory usage
    • statistics\top5CpuMemory.ps1
    • shows Top5 Host statistic for highest average CPU and memory usage
  • Top5 VMs - disk usage
    • statistics\top5DiskUsage.ps1
    • shows Top5 Disk statistic for highest disk usage by virtual machines
  • Highest amount of VMs per Host
    • statistics\vmsPerHost.ps1
    • show Host statistic by virtual machine count

VM Scripts (VMscripts):

  • Connect all VM Network Ports
    • connect network.ps1
    • Connect all available network adapters of on or multiple virtual machines
  • Disconnect Removable Medias
    • disconnect media.ps1
    • Disconnect all removable medias (CDROM, Floppy) of on or multiple virtual machines
  • Disconnect all VM network ports
    • disconnect network.ps1
    • DisConnect all available network adapters of on or multiple virtual machines
  • Manage VMX Parameter for VM
    • manage_vmx_entry.ps1
    • Add or delete parameter of one or multiple virtual machines
    • virtual machine must be reset for parameter deletion
  • QuickMigrate a VM
    • quickmigration.ps1
    • Quick migrate a virtual machine from one Host to another by suspending it
    • Thanks to Mike DiPetrillo
  • Set VMware Tools Time Synchronisation
    • Set VMware Tools Timesync.ps1
    • Activate the time synchronisation of VMware Tools on one or multiple virtual machines
    • VMware Tools must be installed
  • set all removal medias to client device
    • set-clientdevice.ps1
    • Set removable medias to client device (CDROM, Floppy)
  • Upgrade VMware Tools - caution, systems are automatically rebooted
    • upgrade_VMware_Tools.ps1
    • upgrade old VMware tools of one or multiple virtual machines
    • Caution: virtual machine will be restarted after successful tools upgrade
  • manual VCB Backup WMI- custom attributes used
    • vcb-backup-wmi.ps1
    • backup a virtual machine with VCB through a WMI connection to the Windows VCB Proxy 
    • custom attributes must be configured
  • open RDP Admin remote console
    • rdp\rdp-admconsole.ps1
    • opens a RDP remote connection to the main console of one or multiple virtual machines - same like /console or /admin parameter
  • open RDP User remote console
    • rdp\rdp-user.ps1
    • opens a RDP remote connection to the user console of one or multiple virtual machines
  • check VM details for invalid characters
    • check-invalid-characters.ps1
    • Checks VM Name, custom attributes and comments for invalid characters that can interfere VMware converter and other tasks
  • show Snapshots older 2 days
    • snapshot-2days.ps1
    • show all snapshots older 2 days
  • show VMware Tools and Timesync config
    • tools-timesync_v1.ps1
    • show all virtual machines with VMware Tools status and time synchronisation status
  • virtual machines disk consumption
    • vm-diskconsumption.ps1
    • show virtual machines and their disk consumption

Scheduler Scripts:

  • Rescan all SAN
    • Hostscripts\scheduler\sched - rescan-all-hosts.ps1
    • Rescan all Hosts within VirtualCenter
  • Scheduler - Watch datastore usage
    • Hostscripts\scheduler\sched-watch-datastores-usage.ps1
    • printout DataStore Usage in c:\watch-datastore-usage.txt on PowerScripter Scheduler Server
    • can be used for monitoring
  • Check for invalid Characters in VM
    • VMscripts\scheduler\sched-badchars.ps1
    • Checks VM Name, custom attributes and comments for invalid characters that can interfere VMware Converter and other tasks - specific changes for Scheduler
  • VM Details Report
    • VMscripts\scheduler\sched-vmdetails.ps1
    • printout complete report of virtual machines
    • can be used for billing or chargeback
  • VMware Consolidated Backup of VM
    • VMscripts\scheduler\vcb-tobemodified.ps1
    • Backup virtual machine with VMware Consolidated Backup
    • using custom attributes for backup details like backup type, Host or directory
    • must be edited for correct usage

 
Copyright © 2009 icomasoft ag, Switzerland