Monday, September 22, 2008

VM Inventory with powershell

Default get-vm will provide you with a list of VMs and info on cpu/power state/memory. To get hdd info you need to run get-harddisk.

Problem with get-harddisk is that there is no default column for servername. Use the following powershell command to get the info for hdd w server name.

get-vm | select name, {$_.harddisks | % {$_.capacitykb}}

Friday, April 11, 2008

Blackberry Admin Links

Blackberry Admin Links

Here is a brief list of links for all those BES Admins out there.

Setup Disaster Recovery for the BlackBerry Enterprise Server (Domino)

http://www.blackberry.com/btsc/search.do?cmd=displayKC&docType=kc&externalId=KB10364&sliceId=SAL_Public&dialogID=92766306&stateId=1%200%2092764251

http://www.blackberry.com/btsc/search.do?cmd=displayKC&docType=kc&externalId=TA00168&sliceId=&dialogID=92766306&stateId=1%200%2092764251 (PDF)

Use BlackBerry Application Loader to install BlackBerry Device Software

http://www.blackberry.com/btsc/search.do?cmd=displayKC&docType=kc&externalId=KB03621&sliceId=SAL_Public&dialogID=92766270&stateId=1%200%2092764235

Software Configurations

http://www.blackberry.com/btsc/search.do?cmd=displayKC&docType=kc&externalId=KB05392&sliceId=SAL_Public&dialogID=91336694&stateId=1%200%2091334668

Update BlackBerry device software from a Shared computer:

http://www.blackberry.com/btsc/search.do?cmd=displayKC&docType=kc&externalId=KB04537&sliceId=SAL_Public&dialogID=91710653&stateId=1%200%2091704905

Web Desktop Manager:

http://www.blackberry.com/btsc/search.do?cmd=displayKC&docType=kc&externalId=KB12727&sliceId=SAL_Public&dialogID=91710436&stateId=1%200%2091704797

http://www.blackberry.com/btsc/search.do?cmd=displayKC&docType=kc&externalId=KB12995&sliceId=SAL_Public&dialogID=91710436&stateId=1%200%2091704844

http://www.blackberry.com/btsc/search.do?cmd=displayKC&docType=kc&externalId=KB12888&sliceId=SAL_Public&dialogID=91710386&stateId=1%200%2091704761

How to move from an MSDE database to a Microsoft SQL Server database

http://www.blackberry.com/btsc/search.do?cmd=displayKC&docType=kc&externalId=KB12247&sliceId=SAL_Public&dialogID=23444056&stateId=0%200%2023442181

BlackBerry Enterprise Server All released versions (4.1.4 and earlier)

Policy Reference Guide (Version 15)

http://www.blackberry.com/btsc/search.do?cmd=displayKC&docType=kc&externalId=6199802&sliceId=&dialogID=23444236&stateId=0%200%2023442342

BlackBerry Enterprise Server Troubleshooting Tips

http://na.blackberry.com/eng/support/tips.jsp#tab_tab_server

Capacity Calculator 4.1.x (Domino)

http://www.blackberry.com/knowledgecenterpublic/livelink.exe/Capacity_Calculator.xls?func=doc.Fetch&nodeId=1367266&docTitle=Capacity+Calculator&vernum=1

BlackBerry Enterprise Server Resource Kit

http://na.blackberry.com/eng/support/server_resourcekit.jsp

Learn how to Use the BlackBerry Resource Kit (Webinar)

http://www.resourcecenter.blackberry.com/main.php?cp=0&page=details&eventSelected=303

Enable BlackBerry Smartphone PIN and SMS logging with BlackBerry Enterprise Server software version 4.1

http://www.blackberry.com/btsc/search.do?cmd=displayKC&docType=kc&externalId=KB05024&sliceId=SAL_Public&dialogID=25332578&stateId=1%200%2051324943

What is a service book?

http://www.blackberry.com/btsc/search.do?cmd=displayKC&docType=kc&externalId=KB03151&sliceId=SAL_Public&dialogID=25332612&stateId=1%200%2051324995

Checklist for upgrading BlackBerry Enterprise Server software version 4.0 to 4.1

http://www.blackberry.com/btsc/search.do?cmd=displayKC&docType=kc&externalId=KB05217&sliceId=SAL_Public&dialogID=25332664&stateId=1%200%2051332065

Troubleshooting BlackBerry Enterprise Server Tips

http://na.blackberry.com/eng/support/tips.jsp#tab_tab_server

The product: support, downloads, development, white papers, etc.

www.blackberry.com

www.blackberry.com/btsc

www.blackberry.com/support

www.blackbery.com/go/certification

www.blackberry.com/developers

Handheld "101" presentations and Hints & Tips

www.discoverblackberry.com

Training, Webcasts, Podcasts, Vertical Market information, Case Studies

www.resourcecenter.blackberry.com

Thursday, April 3, 2008

VMWare Update Manager error: Metadata for patch missing

Error: Metadata for patch missing

Reason: VirtualCenter is installed with a different http port number. For VMware Update Manager to work you will have to open up the firewall manually:

Solution: esxcfg-firewall -o 8080,tcp,out,UpdateManager

Change port number to the port Virtual Center server is using..

Friday, March 28, 2008

Hypervisor Finder

How to determine a VM's host hypervisor.

Q: What's the best way to tell what hypervisor type a VM is running?

A: The easiest way to figure out the underlying hypervisor of a VM is by querying its virtual MAC address. You can do this by running ipconfig /all when connected to any Windows VM.

Note: A mac address can be manually set by administrators in which case this solution would not work.

Here are the OUIs of the major virtualization platforms:

  • Microsoft: 00-03-FF
  • SWsoft: 00-18-51
  • Virtual Iron: 00-0F-4B
  • VMware: 00-0C-29 and 00-50-56
  • XenSource: 00-16-3E

Thursday, March 27, 2008

VMWare Power Shell

vm infrastructure toolkit for windows

provides a core set of powershell cmdlets

for managing vi.
- Focuses on virtual machine lifecycle
eg: get-vm; new-vm; remove-vm; set-vm;

start-vm; stop-vm etc

- Core infrastructure management
eg: get-log; get-task etc

USAGE
First thing to do after launching powershell

with vm toolkit is to get connection to a

virtualcenter or esx server

Use get-viserver or get-vc/get-esx with the

address of virtuacenter or esx server

eg: get-viserver 1.2.3.4 you are then

prompted for username & password

Use without parameters and powershell will

prompt you for everything

After establishing session you are able to

use rest of the provided cmdlets.
Session information is stored in a

powershell variable $defaultviserver

Further cmdlet invocations will get their

server information from that variable unless

explicitly specified to use another server

BROWSE ENVIRONMENT
get-vm - To get all virtual machines on the

connected server

get-vmw web* or get-vm | where ($_.name -

like "web*") - To get all virtual machines

starting with the name "web"

get-folder webTier | get-vm - To get all

virtual machines under webTier folder

get-folder webtier | get-vm | where

(&_.pwerstate -ne "poweredon") | start-vm -

T start all virtual machines under webtier

flder that are nt currently powered on

WINDOWS 2008 GROUP POLICY TECHNIQUES

With the advent of windows server 2008 comes a wealth of new and improved group policy settings. (Approx 700). Some settings are in new categories and others are additional, corrected or more convenient settings in existing categories.

New Categories:
network access protection
device installation control
removable storage restrictions
power management
printer driver installation delegation
hybring hard disk
troubleshooting and diagnostics
user account control

Changes to existing categories
ipsec and firewall
ad-based printer deployment
taskbar and start menu
shell visualization
synchronization scheduling
customized help resources

Microsoft Spreadsheet listing all new and changed policy settings for windows 2008 can be found by searching vistagpsettings.xls @ microsoft.com

HOW 2008 Stores group settings
.adm file format is replaced with .admx format
admx offers benefits such as central-store management on domain controllers, multi-language support, and dynamic loading.

Vista and 2008 are required to read admx files.

You can obtain adm-to-admx migration tool from microsoft called ADMX Migrator

NETWORK ACCESS PROTECTION (NAP)
Lets administrators set conditions under which workstations are allowed to connect to the main network.

eg: laptop user turns off firewall over the weekend will not be granted access monday morning until the firewall is turned back on. Or NAP client will automatically turn the firewall back on without user intervention - called AUTO-REMEDIATION

NAP also provides for automatic redirection of 'unhealthy' clients to a separate subnet or subdomain where they could download security patches to bring themselves back into compliance.

system health policies can be enforced by dhcp running on windows 2008 for clients accessing the network locally and rras service for clients accessing network remotely.

3rd party antivirus software vendors are expected to create agents that can extend NAP to include rules for updated virus signatures

DEVICE INSTALLATION CONTROL
Allows admins to setup a driver store of known good/safe drivers any user is permitted to use and install.

REMOVABLE STORAGE RESTRICTIONS
To dny read access/write access or both to following device types:
cd/dvd; floppy; removable disks; tape drives; wpd devices; custom class (defined by device guid)

POWER MANAGEMENT
Allows control of power-management features of laptops

PRINTER DRIVER INSTALLATION DELEGATION
Frequently administrators need to keep users with administrative rights is due to printer driver instalaltion. Limited or standard users can not install printer drivers.

Windows 2008 you can delegate the ability for members of the Users group to install devices or particular setup class. (determined through guid)

Policy only works for signed device drivers. Unsigned drivers will still need to be insatlled by administrators