Save Money by Implementing Power Management Policies with Novell ZENworks Configuration Management

87
Save Money with Novell® ZENworks® Configuration Management Implementing Power Management Jon Giffard Product Management/PSE [email protected] Bob Reynolds Product Management/PSE [email protected]

description

With desktops, laptops and monitors pulling power—both directly and indirectly—from the grid every day, energy costs have a significant impact on your bottom line. In this session, we'll show you how to empower your IT department to reduce power consumption with Novell ZENworks Configuration Management. You'll learn how to use the product to audit existing Windows power management policies, apply news one and report on the potential monetary savings.

Transcript of Save Money by Implementing Power Management Policies with Novell ZENworks Configuration Management

Page 1: Save Money by Implementing Power Management Policies with Novell ZENworks Configuration Management

Save Money with Novell® ZENworks® Configuration ManagementImplementing Power Management

Jon GiffardProduct Management/[email protected]

Bob ReynoldsProduct Management/[email protected]

Page 2: Save Money by Implementing Power Management Policies with Novell ZENworks Configuration Management

© Novell, Inc. All rights reserved.2

Contents

Background

Guidelines for Power Management

What sort of Power Management

– Productivity vs. savings

Preparing for Power Management

Configuring ZCM for Power Management

Geek Zone

– The gory details

Page 3: Save Money by Implementing Power Management Policies with Novell ZENworks Configuration Management

© Novell, Inc. All rights reserved.3

But First – Why the Interest Around Power Management?• Are you looking at power management because:-

My company is deeply concerned about the environment

My company is deeply concerned about being seen to be green

My company is deeply concerned about its operating costs

Page 4: Save Money by Implementing Power Management Policies with Novell ZENworks Configuration Management

© Novell, Inc. All rights reserved.4

A Pain That I'm Used to

5.00

6.00

7.00

8.00

9.00

10.00

11.00

1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009

North AmericaElectricity average cost per kWh ( cents )

North AmericaElectricity Average Cost per kWh (cents)

Page 5: Save Money by Implementing Power Management Policies with Novell ZENworks Configuration Management

© Novell, Inc. All rights reserved.5

Impact of Electricity Price on IT

• Scenario

– 1,000 PCs

– 250 work days per year

– 7 hours normal apps

– 1 hour max performance

– 30% left on overnight*

• Model

– Dell Energy calculator

• PC Specification

– Model: Dell Optiplex 330

– PSU: standard

– CPU: Core 2 Duo

– Graphics: mid range

– Optical drive: CD-Rom

– Memory: 2Gb

– Display: 17” flat screen

*Lawerence Berkeley Laboratories Survey

Page 6: Save Money by Implementing Power Management Policies with Novell ZENworks Configuration Management

© Novell, Inc. All rights reserved.6

1000 PCs with 30% Off at Night

$70,000

$75,000

$80,000

$85,000

$90,000

$95,000

$100,000

$105,000

$110,000

$115,000

$120,000

1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009

Power consumption costs

2009: $117,938

Power Consumption Costs

Page 7: Save Money by Implementing Power Management Policies with Novell ZENworks Configuration Management

© Novell, Inc. All rights reserved.7

Impact of Power Management

• Same scenario as before with basic power management enabled

– Monitor off after 30 minutes of idle time

– PC into sleep mode after 1 hour of idle time

• Model

– Dell energy calculator

Page 8: Save Money by Implementing Power Management Policies with Novell ZENworks Configuration Management

© Novell, Inc. All rights reserved.8

1000 PCs with 30% Off at Night with Basic Power Management

$10,000

$15,000

$20,000

$25,000

$30,000

$35,000

$40,000

1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009

Power consumption costs

2009: $30,729

Power Consumption Costs

Page 9: Save Money by Implementing Power Management Policies with Novell ZENworks Configuration Management

© Novell, Inc. All rights reserved.9

Why the Interest Around Power Management?• Are you looking at power management because:

My company is deeply concerned about the environment

My company is deeply concerned about being seen to be Green

My company is deeply concerned about its operating costs

Scenario suggests saving of 74% on PC electricity costs by implementing basic power management

Page 10: Save Money by Implementing Power Management Policies with Novell ZENworks Configuration Management

Guidelines for Power Management

Page 11: Save Money by Implementing Power Management Policies with Novell ZENworks Configuration Management

© Novell, Inc. All rights reserved.11

Goals for Power Management

• Increase user adoption– Flexible scheduling

– Centralized control

• No impact to productivity– End users will push back

• Integrate with IT Operations– Should fit in with existing toolsets

• Show and tell– Sell the benefits

– Report the benefits

Page 12: Save Money by Implementing Power Management Policies with Novell ZENworks Configuration Management

© Novell, Inc. All rights reserved.12

Increase User Adoption

• Sell it to them– Show how power management will be good for them

as well as the organization> Improve battery life for laptop users

> Cooler working environment from I.T equipment using low power modes

– They are still in control> Can choose appropriate power scheme from a defined list

– It will not impact their working day> Not shutting down during work hours

> Monitors come back on from mouse/key movement

> Equipment powers back up from standby

Page 13: Save Money by Implementing Power Management Policies with Novell ZENworks Configuration Management

© Novell, Inc. All rights reserved.13

Integrate with IT Operations

• Power management must in control of IT– Define power management policies– Deploy schemes to end users– Report

• Toolsets– Use existing toolset

> Think of power management as application distribution> Reporting is nothing more than an inventory audit

– Using what you have saves on > Costs> Learning something new

Page 14: Save Money by Implementing Power Management Policies with Novell ZENworks Configuration Management

© Novell, Inc. All rights reserved.14

Show and Tell

• Progress and adoption of power management

– Schemes that are being used and by who

– Devices with power management vs. those not

– Take before and after pictures of an office at night

– User feedback

– Buy some power monitoring devices

> Show real power consumption before and after

– Look at the utility bills

Page 15: Save Money by Implementing Power Management Policies with Novell ZENworks Configuration Management

What Sort of Power Management Productivity vs. Savings

Page 16: Save Money by Implementing Power Management Policies with Novell ZENworks Configuration Management

© Novell, Inc. All rights reserved.16

Get the Balance Right

• Aggressive power management will provide highest savings

– Climate Savers* suggest> Monitor/display: turn off after < 15 mins> Hard disc drive: turn off after < 15 mins> Standby/hibernate: < 30 mins

• Aggressive power management will provide the highest level of disruption

– Generate service desk calls – Lose end user buy in – Complaints

*Climate Savers: http://www.climatesaverscomputing.org

Page 17: Save Money by Implementing Power Management Policies with Novell ZENworks Configuration Management

© Novell, Inc. All rights reserved.17

Understand Work Patterns and Usage

• When are end users working?– 9 to 5, Monday to Friday no weekends– Shift patterns– Weekend working– Combination thereof

• What are they doing?– Call center worker constantly using device– Marketing who uses device for short bursts at a time– CxO presenting to stockholders

• May need multiple power management schemes to avoid disruption

Page 18: Save Money by Implementing Power Management Policies with Novell ZENworks Configuration Management

© Novell, Inc. All rights reserved.18

The Bottom Line

• Power management policies need to be related to end user work patterns

– Avoid impacting productivity

Page 19: Save Money by Implementing Power Management Policies with Novell ZENworks Configuration Management

Preparing for Power Management

Page 20: Save Money by Implementing Power Management Policies with Novell ZENworks Configuration Management

© Novell, Inc. All rights reserved.20

Preparation

• Obtain VMware Workstation 6.5 or above– Official Windows 7 support found in VMware Workstation v7.0

• Desktops– Build VM machines representing managed device estate

> Windows XP/Windows Vista/Windows 7> Take snapshot of each before starting to experiment with power management

• Laptops– Will need physical devices in order to define settings for

mains power and when on battery– Could sysprep VMs, then use Novell® ZENworks®

Configuration Management to image and deploy to laptop

Page 21: Save Money by Implementing Power Management Policies with Novell ZENworks Configuration Management

© Novell, Inc. All rights reserved.21

Design Considerations

• Generic or granular policies– One power management policy will be easy to maintain

but may not provide the biggest savings– Policies covering every combination of devices and work

patterns will help to deliver the biggest savings but will be difficult to maintain

• End user devices– Laptops will require power scheme settings for when on

battery power– Hibernate requires free disk space >= memory

• Screen saver– Not part of power management, its a group policy setting

Page 22: Save Money by Implementing Power Management Policies with Novell ZENworks Configuration Management

© Novell, Inc. All rights reserved.22

Design Considerations(cont.)

• End user work hours and out of work hours

– Decide if multiple bundles will be necessary

– Use Novell® ZENworks® Configuration Manager bundle scheduler to set desired policy at the wanted time

• Use KISS principles

Page 23: Save Money by Implementing Power Management Policies with Novell ZENworks Configuration Management

© Novell, Inc. All rights reserved.23

What Settings to Use

Windows– XP/2003 has quite a few possible settings

– Vista/7 has lots

This approach uses most common– Disk timeout (mins)

– Monitor timeout (mins)

– Standby timeout (mins)

– Hibernate state (on/off)

– Hibernate timeout (mins)

Page 24: Save Money by Implementing Power Management Policies with Novell ZENworks Configuration Management

© Novell, Inc. All rights reserved.24

Suggested Settings for Work Hours

• Objectives: – Achieve greater savings than no power management at all– Do not disruptive end user productivity

• Suggested settings– Screen saver: blank screen after 5 minutes– Monitor/display: 15 minutes– Hard disc: 30 minutes– Standby: 1 hour– Hibernate: Never

• Why not hibernate?– Takes too long for computer to come back

Page 25: Save Money by Implementing Power Management Policies with Novell ZENworks Configuration Management

© Novell, Inc. All rights reserved.25

Suggested Settings for Non-work Hours

• Objectives: – Achieve greater savings than assertive power management– Out of hours, no need to worry about disrupting end users

• Suggested settings– Screen saver: blank screen after 5 minutes– Monitor/display: 5 minutes– Hard disc: 10 minutes– Standby: Never– Hibernate: 30 minutes

• Why not standby?– Standby consumes power; hibernate does not

Page 26: Save Money by Implementing Power Management Policies with Novell ZENworks Configuration Management

© Novell, Inc. All rights reserved.26

Target Users or Devices?

Users– For

> Define power scheme based on job role> Can accurately target power scheme

– Against> More effort to set up> Creates endless opportunity to refine without actually doing anything

Devices– For

> Minimal effort to implement

– Against> Generic approach that may not achieve full results

Page 27: Save Money by Implementing Power Management Policies with Novell ZENworks Configuration Management

Configuring Novell® ZENworks® Configuration Management for Power Management

Page 28: Save Money by Implementing Power Management Policies with Novell ZENworks Configuration Management

© Novell, Inc. All rights reserved.28

Three Steps to Success

1. Control– Set power settings in ZCC

– Have as many power schemes as needed

2. Deploy– User or device basis

– Work for Windows XP/Vista/Windows 7

3. Report– Obtain active power scheme

– Generate reports

Page 29: Save Money by Implementing Power Management Policies with Novell ZENworks Configuration Management

© Novell, Inc. All rights reserved.29

Methodology

BundleAssignmentTrigger at user log in/user log out

i. Prepare device for power management

ii. Write registry values that define power settings

iii.Launch vbscript that reads values, creates scheme and activates it

iv.Trigger audit to update active scheme details

Page 30: Save Money by Implementing Power Management Policies with Novell ZENworks Configuration Management

© Novell, Inc. All rights reserved.30

ControlOverview

• Power settings are stored in the bundle

– Registry values hold the settings

– Gives control to IT

• Two bundles required to address differences in power management between Windows XP and Vista/Windows 7

– Logged in vs. logged out

– Same approach

– Also allows different settings to be used

Page 31: Save Money by Implementing Power Management Policies with Novell ZENworks Configuration Management

© Novell, Inc. All rights reserved.31

Control Scheme Settings

• Stored in registry values• Separate values for

logged in and logged out• PowerInfo

– Audit values

• PowerSettings– Scheme values

• Use Registry Edit – Keeps control in ZCC

Page 32: Save Money by Implementing Power Management Policies with Novell ZENworks Configuration Management

© Novell, Inc. All rights reserved.32

Control DetailsScheme Settings Registry Values

Name Description Values

pwr_hibernate_state_ac Hibernate status on power On/Off

pwr_hibernate_state_dc Hibernate status on battery On/Off

pwr_scheme Current power scheme Namepwr_monitor_ac Turn off monitor when on power Number of minutespwr_monitor_dc Turn off monitor when onbattery Number of minutespwr_disk_ac Turn off hard disk when on power Number of minutes

pwr_disk_dc Turn off hard disk when on batter Number of minutes

pwr_standby_ac Go into standby when on power Number of minutes

pwr_standby_dc Go into standby when on battery Number of minutes

pwr_hibernate_ac Go into hibernate when on power Number of minutespwr_hibernate_dc Go into hibernate when on battery Number of minutes

Page 33: Save Money by Implementing Power Management Policies with Novell ZENworks Configuration Management

© Novell, Inc. All rights reserved.33

ControlThe Bundles

• Three bundles– Prepare

> Creates registry values> Changes registry key permissions

» Power schemes are per user but XP doesn't allow normal user to change

» Simple registry key change solves this

» Need for storing activate power scheme in our registry values

– Set logged in and Set Logged Out> Write registry values for the desired scheme> Launch vbscript to create and activate the power scheme

» Runs as normal user for logged in, SYSTEM for logged out

> Trigger audit

Page 34: Save Money by Implementing Power Management Policies with Novell ZENworks Configuration Management

© Novell, Inc. All rights reserved.34

DeploySending the Bundles Out

• Assignments – Bundle: Set logged in

> Install: User log in> Launch: User log in

– Bundle: Set logged out> Install: Device refresh> Launch: Device refresh

• User or device– What ever is best for your environment– Device is the best starting point

Page 35: Save Money by Implementing Power Management Policies with Novell ZENworks Configuration Management

© Novell, Inc. All rights reserved.35

ReportOverview

• Audit power management settings

– Logged in and logged out

• Bring back audit information into Novell® ZENworks® Configuration Manager

– View as part of device inventory record

– Include on reports

> Quick reports within ZCC

> Custom reports with ZRS

Page 36: Save Money by Implementing Power Management Policies with Novell ZENworks Configuration Management

© Novell, Inc. All rights reserved.36

ReportProcess

Vbscript obtains active power scheme details

Stores in registry keys

CDF grabs registry value, putting them into device inventory record

Novell® ZENworks® Configuration Management agent sends device inventory

Values stored in ADFs in the database

Available for viewing and reporting

Page 37: Save Money by Implementing Power Management Policies with Novell ZENworks Configuration Management

© Novell, Inc. All rights reserved.37

ReportThe Bundles

• Two bundles

– Get logged in and get logged out

> Obtain active power scheme and write details into registry values

> Runs as normal user for logged in, SYSTEM for logged out

Page 38: Save Money by Implementing Power Management Policies with Novell ZENworks Configuration Management

© Novell, Inc. All rights reserved.38

ReportThe Results ZCC Reports

Page 39: Save Money by Implementing Power Management Policies with Novell ZENworks Configuration Management

© Novell, Inc. All rights reserved.39

ReportThe Results ZRS Report

Page 40: Save Money by Implementing Power Management Policies with Novell ZENworks Configuration Management

Rollout Best Practice

Page 41: Save Money by Implementing Power Management Policies with Novell ZENworks Configuration Management

© Novell, Inc. All rights reserved.41

Guidance

Use 3 stages, each with exit criteria that must be met before moving to next

Development Test Production

Page 42: Save Money by Implementing Power Management Policies with Novell ZENworks Configuration Management

© Novell, Inc. All rights reserved.42

Development

• Treat use VMs/laptop from policy design as development environment

• Modify power schemes until they meet your needs• Tweak reports to look pretty• Gate exit criteria

– Registry security modified correctly

– Schemes are delivered and installed with Novell® ZENworks® Configuration Management

– Power schemes become active

– ZCM gathers information on active power scheme

Page 43: Save Money by Implementing Power Management Policies with Novell ZENworks Configuration Management

© Novell, Inc. All rights reserved.43

Test

• Move out from development environment to use end user devices

– But not all of them

– Just a few

• Representative sample from friendly users– Not just the IT department

• Gate exit criteria– Same as development

– Include end user satisfaction

Page 44: Save Money by Implementing Power Management Policies with Novell ZENworks Configuration Management

© Novell, Inc. All rights reserved.44

Production

• Expand further out from your nice end users• Avoid career defining moments

– No big bang– Rollback plan

• Staged, methodical approach– Floor by floor, building by building

• Exit criteria– Same as development + test– % of estate off outside work hours– Utility bill reduction

Page 45: Save Money by Implementing Power Management Policies with Novell ZENworks Configuration Management

Questions and Answers

Page 46: Save Money by Implementing Power Management Policies with Novell ZENworks Configuration Management
Page 47: Save Money by Implementing Power Management Policies with Novell ZENworks Configuration Management

Unpublished Work of Novell, Inc. All Rights Reserved.This work is an unpublished work and contains confidential, proprietary, and trade secret information of Novell, Inc. Access to this work is restricted to Novell employees who have a need to know to perform tasks within the scope of their assignments. No part of this work may be practiced, performed, copied, distributed, revised, modified, translated, abridged, condensed, expanded, collected, or adapted without the prior written consent of Novell, Inc. Any use or exploitation of this work without authorization could subject the perpetrator to criminal and civil liability.

General DisclaimerThis document is not to be construed as a promise by any participating company to develop, deliver, or market a product. It is not a commitment to deliver any material, code, or functionality, and should not be relied upon in making purchasing decisions. Novell, Inc. makes no representations or warranties with respect to the contents of this document, and specifically disclaims any express or implied warranties of merchantability or fitness for any particular purpose. The development, release, and timing of features or functionality described for Novell products remains at the sole discretion of Novell. Further, Novell, Inc. reserves the right to revise this document and to make changes to its content, at any time, without obligation to notify any person or entity of such revisions or changes. All Novell marks referenced in this presentation are trademarks or registered trademarks of Novell, Inc. in the United States and other countries. All third-party trademarks are the property of their respective owners.

Page 48: Save Money by Implementing Power Management Policies with Novell ZENworks Configuration Management

Geek zoneBundle details

Page 49: Save Money by Implementing Power Management Policies with Novell ZENworks Configuration Management

© Novell, Inc. All rights reserved.49

Bundle: Prepare

Page 50: Save Money by Implementing Power Management Policies with Novell ZENworks Configuration Management

© Novell, Inc. All rights reserved.50

Bundle: PrepareInstall actions

• Install MSI– Install subinacl.exe from resource kit MSI

• Install Files– Install vbscripts used by other bundles

• Registry edit– Create keys & values for storing and setting schemes

• Run script– Batch file that sets reg permissions

Page 51: Save Money by Implementing Power Management Policies with Novell ZENworks Configuration Management

© Novell, Inc. All rights reserved.51

Bundle: PrepareInstall Actions: Install MSI

• Download MSI from www.microsoft.com– Search for subinacl

• Use Install MSI action– Upload entire MSI– This will then install to

c:\program files\Windows Resource Kits\Tools

Page 52: Save Money by Implementing Power Management Policies with Novell ZENworks Configuration Management

© Novell, Inc. All rights reserved.52

Bundle: PrepareInstall Actions: Install File(s)

• File name: set-power.vbs• Destination: %zenworks_home%• File name: get-power.vbs• Destination: %zenworks_home%• Run as SYSTEM

– Destination is not writable by normal users

Page 53: Save Money by Implementing Power Management Policies with Novell ZENworks Configuration Management

© Novell, Inc. All rights reserved.53

Bundle: PrepareInstall Actions: Registry edit

• Registry key changes to store active settings– Create

HKLM\SOFTWARE\Novell\Zenworks\PowerInfo\LoggedIn– Create

HKLM\SOFTWARE\Novell\Zenworks\PowerInfo\LoggedOut– Under each branch, add the following string values , set to

“create if don't exist”pwr_hibernate_state_acpwr_hibernate_state_dcpwr_hibernate_acpwr_hibernate_dc

pwr_monitor_acpwr_monitor_dcpwr_disk_acpwr_disk_dcpwr_scheme

Page 54: Save Money by Implementing Power Management Policies with Novell ZENworks Configuration Management

© Novell, Inc. All rights reserved.54

Bundle: PrepareInstall Actions: Registry edit

• Registry key changes to set active settings– Create

HKLM\SOFTWARE\Novell\Zenworks\PowerSettings\LoggedIn– Create

HKLM\SOFTWARE\Novell\Zenworks\PowerSettings\LoggedOut– Under each branch, add the following string values , set to

create if don't existpwr_hibernate_state_acpwr_hibernate_state_dcpwr_hibernate_acpwr_hibernate_dc

pwr_monitor_acpwr_monitor_dcpwr_disk_acpwr_disk_dcpwr_scheme

Page 55: Save Money by Implementing Power Management Policies with Novell ZENworks Configuration Management

© Novell, Inc. All rights reserved.55

Bundle: PrepareInstall Actions: Run script

@echo oncd "%ProgramFiles%\Windows Resource Kits\Tools"subinacl.exe /noverbose /subkeyreg "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Controls Folder\PowerCfg" /grant=userssubinacl.exe /noverbose /subkeyreg "HKEY_LOCAL_MACHINE\SOFTWARE\Novell\Zenworks\PowerInfo" /grant=users

Page 56: Save Money by Implementing Power Management Policies with Novell ZENworks Configuration Management

© Novell, Inc. All rights reserved.56

Bundle: Set Logged in

Page 57: Save Money by Implementing Power Management Policies with Novell ZENworks Configuration Management

© Novell, Inc. All rights reserved.57

Bundle: Set logged inbundle actions: Install

• Prepare for power management : Launch bundle – Run registry change bundle

Page 58: Save Money by Implementing Power Management Policies with Novell ZENworks Configuration Management

© Novell, Inc. All rights reserved.58

Bundle: Set logged inInstall Actions: Launch bundle

• Launch bundle prepare

Page 59: Save Money by Implementing Power Management Policies with Novell ZENworks Configuration Management

© Novell, Inc. All rights reserved.59

Bundle: Set logged inLaunch actions

• Power details : Registry Edit– Put registry keys & values into place

• Set scheme : Launch Windows Executable– Run vbscript to create and activate scheme

• Audit : Launch bundle– Use Get logged in bundle for audit

Page 60: Save Money by Implementing Power Management Policies with Novell ZENworks Configuration Management

© Novell, Inc. All rights reserved.60

Bundle: Set logged inLaunch actions: Registry Edit

• Put registry keys & values into place• Each registry key & value action needs to be set to

Create Always– Ensure that any existing values are overwritten

• Run as System

Page 61: Save Money by Implementing Power Management Policies with Novell ZENworks Configuration Management

© Novell, Inc. All rights reserved.61

Bundle: Set logged inLaunch actions: Launch windows executable

• Runs vbscript which reads registry values, creates scheme and activates it

• Command: wscript.exe • Parameters:

“%zenworks_home%”\set-power.vbs “Logged-In”– Note placement of “

• Working folder: %zenworks_home%• Run as Normal user• Wait before proceeding

Page 62: Save Money by Implementing Power Management Policies with Novell ZENworks Configuration Management

© Novell, Inc. All rights reserved.62

Bundle: Set logged inLaunch actions: Launch bundle

• Launch bundle Get logged in• Wait to complete before proceeding

Page 63: Save Money by Implementing Power Management Policies with Novell ZENworks Configuration Management

© Novell, Inc. All rights reserved.63

Bundle: Set Logged out

Page 64: Save Money by Implementing Power Management Policies with Novell ZENworks Configuration Management

© Novell, Inc. All rights reserved.64

Bundle: Set logged outbundle actions: Install

• Prepare for power management : Launch bundle – Registry change bundle

Page 65: Save Money by Implementing Power Management Policies with Novell ZENworks Configuration Management

© Novell, Inc. All rights reserved.65

Bundle: Set logged outInstall actions: Launch bundle

• Launch bundle prepare

Page 66: Save Money by Implementing Power Management Policies with Novell ZENworks Configuration Management

© Novell, Inc. All rights reserved.66

Bundle: Set logged outbundle actions: Launch

• Power details : Registry Edit– Put registry keys & values into place

• Set scheme : Launch Windows Executable– Run vbscript to create and activate scheme

• Audit : Launch bundle– Use Get logged in bundle for audit

Page 67: Save Money by Implementing Power Management Policies with Novell ZENworks Configuration Management

© Novell, Inc. All rights reserved.67

Bundle: Set logged outLaunch action: Registry Edit

• Put registry keys & values into place• Each registry key & value action needs to be set to

Create Always– Ensures that any existing values are overwritten

• Run as System

Page 68: Save Money by Implementing Power Management Policies with Novell ZENworks Configuration Management

© Novell, Inc. All rights reserved.68

Bundle: Set logged outLaunch action: Launch windows executable

• Runs vbscript which reads registry values, creates scheme and activates it

• Command: wscript.exe • Parameters:

“%zenworks_home%”\set-power.vbs “Logged-Out”– Note placement of “

• Working folder: %zenworks_home%• Run as SYSTEM user• Wait before proceeding for 10 seconds

Page 69: Save Money by Implementing Power Management Policies with Novell ZENworks Configuration Management

© Novell, Inc. All rights reserved.69

Bundle: Set logged outLaunch actions: Launch bundle

• Launch bundle Get logged in

Page 70: Save Money by Implementing Power Management Policies with Novell ZENworks Configuration Management

© Novell, Inc. All rights reserved.70

Configuration steps: Reporting

Page 71: Save Money by Implementing Power Management Policies with Novell ZENworks Configuration Management

© Novell, Inc. All rights reserved.71

ReportStoring audit in ZCM with ADF and CDF

• Administrator Define Fields are lovely for storing additional information

– Define name, type, length, default values– Limit of 20 per table– Appear on Collection Data Forms

• Collection Data Forms provide a mechanism for populating these easily

– User entered values– From registry keys / environmental variables

• Information obtained from CDF forms part of managed device inventory record

– Use on reports

Page 72: Save Money by Implementing Power Management Policies with Novell ZENworks Configuration Management

© Novell, Inc. All rights reserved.72

ReportStoring audit in ZCM with ADF for logged in user• ZCC, Configuration → Asset inventory →

Administrator-Defined Fields – Click on User

Name Data type Size Descriptionpwr_hibernate_state_ac_user Character 10 Hibernate status on power

pwr_hibernate_state_dc_user Character 10 Hibernate status on battery

pwr_scheme_user Character 20 Current power scheme

pwr_monitor_ac_user Character 10 Turn off monitor when on power

pwr_monitor_dc_user Character 10 Turn off monitor when on battery

pwr_disk_ac_user Character 10 Turn off hard disk when on power

pwr_disk_dc_user Character 10 Turn off hard disk when on batter

pwr_standby_ac_user Character 10 Go into standby when on power

pwr_standby_dc_user Character 10 Go into standby when on battery

pwr_hibernate_ac_user Character 10 Go into hibernate when on powerpwr_hibernate_dc_user Character 10 Go into hibernate when on battery

Page 73: Save Money by Implementing Power Management Policies with Novell ZENworks Configuration Management

© Novell, Inc. All rights reserved.73

ReportStoring audit in ZCM for logged in user

• Should end up with something like this

• Note the internal names, we'll need them later

Page 74: Save Money by Implementing Power Management Policies with Novell ZENworks Configuration Management

© Novell, Inc. All rights reserved.74

ReportStoring audit in ZCM for logged out user• ZCC, Configuration → Asset inventory →

Administrator-Defined Fields – Click on Workstation

Name Data type Size Description

pwr_hibernate_state_ac_system Character 10 Hibernate status on powerpwr_hibernate_state_dc_system Character 10 Hibernate status on batterypwr_scheme_system Character 20 Current power schemepwr_monitor_ac_system Character 10 Turn off monitor when on powerpwr_monitor_dc_system Character 10 Turn off monitor when on batterypwr_disk_ac_system Character 10 Turn off hard disk when on powerpwr_disk_dc_system Character 10 Turn off hard disk when on batterpwr_standby_ac_system Character 10 Go into standby when on powerpwr_standby_dc_system Character 10 Go into standby when on batterypwr_hibernate_ac_system Character 10 Go into hibernate when on powerpwr_hibernate_dc_system Character 10 Go into hibernate when on battery

Page 75: Save Money by Implementing Power Management Policies with Novell ZENworks Configuration Management

© Novell, Inc. All rights reserved.75

ReportStoring audit in ZCM for logged out user

• Should end up with something like this

• Note the internal names, we'll need them later

Page 76: Save Money by Implementing Power Management Policies with Novell ZENworks Configuration Management

© Novell, Inc. All rights reserved.76

ReportLinking ADF fields with CDF

• ZCC, Configuration → Inventory → Collection Data Form

– Scroll down list until you reach the ADFs entered previously

• Each ADF will be populated by registry key representing environmental variable set by script that will be run from the gather bundle

– Set each ADF to autofill and enter registry key• All registry keys are found under

– HKLM\SOFTWARE\Novell\Zenworks\PowerInfo

> LoggedIn

> LoggedOut

Page 77: Save Money by Implementing Power Management Policies with Novell ZENworks Configuration Management

© Novell, Inc. All rights reserved.77

ReportLinking ADF fields with CDF for logged in

• All registry keys are found under– HKLM\Novell\Zenworks\PowerInfo\LoggedIn

ADF Registry key value

pwr_hibernate_state_ac_user pwr_hibernate_state_acpwr_hibernate_state_dc_user pwr_hibernate_state_dcpwr_scheme_user pwr_schemepwr_monitor_ac_user pwr_monitor_acpwr_monitor_dc_user pwr_monitor_dcpwr_disk_ac_user pwr_disk_acpwr_disk_dc_user pwr_disk_dcpwr_standby_ac_user pwr_standby_acpwr_standby_dc_user pwr_standby_dcpwr_hibernate_ac_user pwr_hibernate_acpwr_hibernate_dc_user pwr_hibernate_dc

Page 78: Save Money by Implementing Power Management Policies with Novell ZENworks Configuration Management

© Novell, Inc. All rights reserved.78

ReportLinking ADF fields with CDF for logged out

ADF Registry key value

pwr_hibernate_state_ac_system pwr_hibernate_state_acpwr_hibernate_state_dc_system pwr_hibernate_state_dcpwr_scheme_system pwr_schemepwr_monitor_ac_system pwr_monitor_acpwr_monitor_dc_system pwr_monitor_dcpwr_disk_ac_system pwr_disk_acpwr_disk_dc_system pwr_disk_dcpwr_standby_ac_system pwr_standby_acpwr_standby_dc_system pwr_standby_dcpwr_hibernate_ac_system pwr_hibernate_acpwr_hibernate_dc_system pwr_hibernate_dc

• All registry keys are found underHKLM\Novell\Zenworks\PowerInfo\LoggedOut

Page 79: Save Money by Implementing Power Management Policies with Novell ZENworks Configuration Management

© Novell, Inc. All rights reserved.79

Bundle: Get Logged in

Page 80: Save Money by Implementing Power Management Policies with Novell ZENworks Configuration Management

© Novell, Inc. All rights reserved.80

Bundle: Get logged inbundle actions: Install

• Prepare for power management : Launch bundle – Run registry change bundle

Page 81: Save Money by Implementing Power Management Policies with Novell ZENworks Configuration Management

© Novell, Inc. All rights reserved.81

Bundle: Get logged inInstall action: Launch bundle

• Launch bundle prepare• Wait for bundle to complete before proceeding

Page 82: Save Money by Implementing Power Management Policies with Novell ZENworks Configuration Management

© Novell, Inc. All rights reserved.82

Bundle: Get logged inbundle actions: Launch

• Get scheme : Launch Windows Executable– Run vbscript to get power information

Page 83: Save Money by Implementing Power Management Policies with Novell ZENworks Configuration Management

© Novell, Inc. All rights reserved.83

Bundle: Get logged inLaunch action: Launch windows executable

• Runs vbscript which gathers active power scheme, writes to registry values and triggers inventory to populate CDF

• Command: wscript.exe • Parameters:

“%zenworks_home%”\get-power.vbs “Logged-In”– Note placement of “

• Working folder: %zenworks_home%• Run as normal user• Wait before proceeding

Page 84: Save Money by Implementing Power Management Policies with Novell ZENworks Configuration Management

© Novell, Inc. All rights reserved.84

Bundle: Get Logged out

Page 85: Save Money by Implementing Power Management Policies with Novell ZENworks Configuration Management

© Novell, Inc. All rights reserved.85

Bundle: Get logged outbundle actions: Install

• Prepare for power management : Launch bundle – Run registry change bundle

Page 86: Save Money by Implementing Power Management Policies with Novell ZENworks Configuration Management

© Novell, Inc. All rights reserved.86

Bundle: Get logged outbundle actions: Launch

• Set scheme : Launch Windows Executable– Run vbscript to create and activate scheme

Page 87: Save Money by Implementing Power Management Policies with Novell ZENworks Configuration Management

© Novell, Inc. All rights reserved.87

Bundle: Get logged outLaunch action: Launch windows executable

• Runs vbscript which gathers active power scheme, writes to registry values and triggers inventory to populate CDF

• Command: wscript.exe • Parameters:

“%zenworks_home%”\get-power.vbs “Logged-Out”– Note placement of “

• Working folder: %zenworks_home%• Run as SYSTEM user• Wait before proceeding for 10 seconds