Save Money with Novell ZENworks           ®       ®



Configuration Management
Implementing Power Management




Jon Giff...
Contents

      Background

      Guidelines for Power Management

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


        ...
A Pain That I'm Used to

                                                North Am ric
                                    ...
Impact of Electricity Price on IT

    •   Scenario                          •   PC Specification
         –   1,000 PCs  ...
1000 PCs with 30% Off at Night

                                          PowerrConsumption Costs
                        ...
Impact of Power Management

    •   Same scenario as before with basic power
        management enabled

         –   Moni...
1000 PCs with 30% Off at Night
    with Basic Power Management

                                          PowerrConsumptio...
Why the Interest Around
    Power Management?
    •   Are you looking at power management because:
                   My c...
Guidelines for Power Management
Goals for Power Management

     •   Increase user adoption
          –   Flexible scheduling
          –   Centralized co...
Increase User Adoption

     •   Sell it to them
          –   Show how power management will be good for them
           ...
Integrate with IT Operations

     •   Power management must in control of IT
          –   Define power management polici...
Show and Tell

     •   Progress and adoption of power management
          –   Schemes that are being used and by who

  ...
What Sort of Power Management
         Productivity vs. Savings
Get the Balance Right

     •   Aggressive power management will provide
         highest savings
          –   Climate Sa...
Understand Work Patterns and Usage

     •   When are end users working?
          –   9 to 5, Monday to Friday no weekend...
The Bottom Line

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


          –   ...
Preparing for Power Management
Preparation

     •   Obtain VMware Workstation 6.5 or above
          –   Official Windows 7 support found in VMware Work...
Design Considerations

     •   Generic or granular policies
          –   One power management policy will be easy to mai...
Design Considerations
     (cont.)

     •   End user work hours and out of work hours

          –   Decide if multiple b...
What Settings to Use

       Windows
             –    XP/2003 has quite a few possible settings
             –   Vista/7 ...
Suggested Settings for Work Hours

     •   Objectives:
          –   Achieve greater savings than no power management at ...
Suggested Settings for Non-work Hours

     •   Objectives:
          –   Achieve greater savings than assertive power man...
Target Users or Devices?

       Users
             –   For
                  >   Define power scheme based on job role
  ...
Configuring Novell ZENworks Configuration
                 ®         ®



      Management for Power Management
Three Steps to Success

       1. Control
             –   Set power settings in ZCC
             –   Have as many power s...
Methodology


         Assignment                            Bundle
         Trigger at user log in/user log out
         ...
Control
     Overview

     •   Power settings are stored in the bundle
          –   Registry values hold the settings

 ...
Control
     Scheme Settings

     •   Stored in registry values
     •   Separate values for
         logged in and logge...
Control Details
     Scheme Settings Registry Values

     Name                                  Description              ...
Control
     The Bundles

     •   Three bundles
          –   Prepare
               >   Creates registry values
        ...
Deploy
     Sending the Bundles Out

     •   Assignments
          –   Bundle: Set logged in
               >   Install: ...
Report
     Overview

     •   Audit power management settings
          –   Logged in and logged out

     •   Bring back...
Report
     Process




       Vbscript obtains                    Stores in           CDF grabs                 Novell ZE...
Report
     The Bundles

     •   Two bundles


          –   Get logged in and get logged out



               >   Obtai...
Report
     The Results ZCC Reports




38   © Novell, Inc. All rights reserved.
Report
     The Results ZRS Report




39   © Novell, Inc. All rights reserved.
Rollout Best Practice
Guidance

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




         Development ...
Development

     •   Treat use VMs/laptop from policy design as
         development environment
     •   Modify power sc...
Test

     •   Move out from development environment to
         use end user devices
          –   But not all of them
  ...
Production

     •   Expand further out from your nice end users
     •   Avoid career defining moments
          –   No b...
Questions and Answers
Unpublished Work of Novell, Inc. All Rights Reserved.
This work is an unpublished work and contains confidential, propriet...
Geek zone
Bundle details
Bundle: Prepare




49   © Novell, Inc. All rights reserved.
Bundle: Prepare
     Install actions

     •   Install MSI
          –   Install subinacl.exe from resource kit MSI
     •...
Bundle: Prepare
     Install Actions: Install MSI

     •   Download MSI from www.microsoft.com
          –   Search for s...
Bundle: Prepare
     Install Actions: Install File(s)

     •   File name: set-power.vbs
     •   Destination: %zenworks_h...
Bundle: Prepare
     Install Actions: Registry edit

     •   Registry key changes to store active settings
          –   ...
Bundle: Prepare
     Install Actions: Registry edit

     •   Registry key changes to set active settings
          –   Cr...
Bundle: Prepare
     Install Actions: Run script

        @echo on
        cd "%ProgramFiles%Windows Resource KitsTools"
 ...
Bundle: Set Logged in




56   © Novell, Inc. All rights reserved.
Bundle: Set logged in
     bundle actions: Install

     •   Prepare for power management : Launch bundle
          –   Ru...
Bundle: Set logged in
     Install Actions: Launch bundle

     •   Launch bundle prepare




58   © Novell, Inc. All righ...
Bundle: Set logged in
     Launch actions

     •   Power details : Registry Edit
          –   Put registry keys & values...
Bundle: Set logged in
     Launch actions: Registry Edit

     •   Put registry keys & values into place
     •   Each reg...
Bundle: Set logged in
     Launch actions: Launch windows executable

     •   Runs vbscript which reads registry values, ...
Bundle: Set logged in
     Launch actions: Launch bundle

     •   Launch bundle Get logged in
     •   Wait to complete b...
Bundle: Set Logged out




63   © Novell, Inc. All rights reserved.
Bundle: Set logged out
     bundle actions: Install

     •   Prepare for power management : Launch bundle
          –   R...
Bundle: Set logged out
     Install actions: Launch bundle

     •   Launch bundle prepare




65   © Novell, Inc. All rig...
Bundle: Set logged out
     bundle actions: Launch

     •   Power details : Registry Edit
          –   Put registry keys...
Bundle: Set logged out
     Launch action: Registry Edit

     •   Put registry keys & values into place
     •   Each reg...
Bundle: Set logged out
     Launch action: Launch windows executable

     •   Runs vbscript which reads registry values, ...
Bundle: Set logged out
     Launch actions: Launch bundle

     •   Launch bundle Get logged in




69   © Novell, Inc. Al...
Configuration steps:
                                           Reporting




70   © Novell, Inc. All rights reserved.
Report
     Storing audit in ZCM with ADF and CDF

     •   Administrator Define Fields are lovely for storing
         ad...
Report
       Storing audit in ZCM with ADF for logged in user
       •   ZCC, Configuration → Asset inventory →
         ...
Report
     Storing audit in ZCM for logged in user

     •   Should end up with something like this




     •   Note the...
Report
       Storing audit in ZCM for logged out user
       •   ZCC, Configuration → Asset inventory →
           Admini...
Report
     Storing audit in ZCM for logged out user

     •   Should end up with something like this




     •   Note th...
Report
     Linking ADF fields with CDF

     •   ZCC, Configuration → Inventory → Collection Data
         Form
         ...
Report
     Linking ADF fields with CDF for logged in

      •   All registry keys are found under
           –   HKLMNove...
Report
     Linking ADF fields with CDF for logged out

      •   All registry keys are found under
      HKLMNovellZenwor...
Bundle: Get Logged in




79   © Novell, Inc. All rights reserved.
Bundle: Get logged in
     bundle actions: Install

     •   Prepare for power management : Launch bundle
          –   Ru...
Bundle: Get logged in
     Install action: Launch bundle

     •   Launch bundle prepare
     •   Wait for bundle to compl...
Bundle: Get logged in
     bundle actions: Launch

     •   Get scheme : Launch Windows Executable
          –   Run vbscr...
Bundle: Get logged in
     Launch action: Launch windows executable

     •   Runs vbscript which gathers active power sch...
Bundle: Get Logged out




84   © Novell, Inc. All rights reserved.
Bundle: Get logged out
     bundle actions: Install

     •   Prepare for power management : Launch bundle
          –   R...
Bundle: Get logged out
     bundle actions: Launch

     •   Set scheme : Launch Windows Executable
          –   Run vbsc...
Bundle: Get logged out
     Launch action: Launch windows executable

     •   Runs vbscript which gathers active power sc...
Save Money by Implementing Power Management Policies with Novell ZENworks Configuration Management
Upcoming SlideShare
Loading in …5
×

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

1,088 views
1,014 views

Published on

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.

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
1,088
On SlideShare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
65
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

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

  1. 1. Save Money with Novell ZENworks ® ® Configuration Management Implementing Power Management Jon Giffard Bob Reynolds Product Management/PSE Product Management/PSE jgiffard@novell.com breynolds@novell.com
  2. 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 2 © Novell, Inc. All rights reserved.
  3. 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 3 © Novell, Inc. All rights reserved.
  4. 4. A Pain That I'm Used to North Am ric North America e a EElectricity Average Cost kW kWh ts ) le tric av ragec pe per ( c n(cents) c ity e ost r h e 11. 00 10. 00 9. 00 8. 00 7. 00 6. 00 5. 00 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 4 © Novell, Inc. All rights reserved.
  5. 5. Impact of Electricity Price on IT • Scenario • PC Specification – 1,000 PCs – Model: Dell Optiplex 330 – 250 work days per year – PSU: standard – 7 hours normal apps – CPU: Core 2 Duo – 1 hour max performance – Graphics: mid range – 30% left on overnight* – Optical drive: CD-Rom • Model – Memory: 2Gb – Dell Energy calculator – Display: 17” flat screen 5 © Novell, Inc. All rights reserved. *Lawerence Berkeley Laboratories Survey
  6. 6. 1000 PCs with 30% Off at Night PowerrConsumption Costs P e c su ptionc ow on m osts $120, 000 $115, 000 $110, 000 $105, 000 $100, 000 $95, 000 $90, 000 $85, 000 $80, 000 $75, 000 2009: $117,938 $70, 000 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 6 © Novell, Inc. All rights reserved.
  7. 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 7 © Novell, Inc. All rights reserved.
  8. 8. 1000 PCs with 30% Off at Night with Basic Power Management PowerrConsumption Costs P e c su ptionc ow on m osts $40, 000 $35, 000 $30, 000 $25, 000 $20, 000 $15, 000 2009: $30,729 $10, 000 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 8 © Novell, Inc. All rights reserved.
  9. 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 9 © Novell, Inc. All rights reserved.
  10. 10. Guidelines for Power Management
  11. 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 11 © Novell, Inc. All rights reserved.
  12. 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 12 © Novell, Inc. All rights reserved.
  13. 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 13 © Novell, Inc. All rights reserved.
  14. 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 14 © Novell, Inc. All rights reserved.
  15. 15. What Sort of Power Management Productivity vs. Savings
  16. 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 16 © Novell, Inc. All rights reserved. *Climate Savers: http://www.climatesaverscomputing.org
  17. 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 17 © Novell, Inc. All rights reserved.
  18. 18. The Bottom Line • Power management policies need to be related to end user work patterns – Avoid impacting productivity 18 © Novell, Inc. All rights reserved.
  19. 19. Preparing for Power Management
  20. 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 20 © Novell, Inc. All rights reserved.
  21. 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 21 © Novell, Inc. All rights reserved.
  22. 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 22 © Novell, Inc. All rights reserved.
  23. 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) 23 © Novell, Inc. All rights reserved.
  24. 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 24 © Novell, Inc. All rights reserved.
  25. 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 25 © Novell, Inc. All rights reserved.
  26. 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 26 © Novell, Inc. All rights reserved.
  27. 27. Configuring Novell ZENworks Configuration ® ® Management for Power Management
  28. 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 28 © Novell, Inc. All rights reserved.
  29. 29. Methodology Assignment Bundle Trigger 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 29 © Novell, Inc. All rights reserved.
  30. 30. Control Overview • 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 30 © Novell, Inc. All rights reserved.
  31. 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 31 © Novell, Inc. All rights reserved.
  32. 32. Control Details Scheme 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 Name pwr_monitor_ac Turn off monitor when on power Number of minutes pwr_monitor_dc Turn off monitor when onbattery Number of minutes pwr_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 minutes pwr_hibernate_dc Go into hibernate when on battery Number of minutes 32 © Novell, Inc. All rights reserved.
  33. 33. Control The 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 33 © Novell, Inc. All rights reserved.
  34. 34. Deploy Sending 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 34 © Novell, Inc. All rights reserved.
  35. 35. Report Overview • 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 35 © Novell, Inc. All rights reserved.
  36. 36. Report Process Vbscript obtains Stores in CDF grabs Novell ZENworks ® ® active power registry keys registry value, Configuration scheme details putting them into Management device inventory agent sends device record inventory Values stored in Available for ADFs in the viewing and database reporting 36 © Novell, Inc. All rights reserved.
  37. 37. Report The 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 37 © Novell, Inc. All rights reserved.
  38. 38. Report The Results ZCC Reports 38 © Novell, Inc. All rights reserved.
  39. 39. Report The Results ZRS Report 39 © Novell, Inc. All rights reserved.
  40. 40. Rollout Best Practice
  41. 41. Guidance Use 3 stages, each with exit criteria that must be met before moving to next Development Test Production 41 © Novell, Inc. All rights reserved.
  42. 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 42 © Novell, Inc. All rights reserved.
  43. 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 43 © Novell, Inc. All rights reserved.
  44. 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 44 © Novell, Inc. All rights reserved.
  45. 45. Questions and Answers
  46. 46. 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 Disclaimer This 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.
  47. 47. Geek zone Bundle details
  48. 48. Bundle: Prepare 49 © Novell, Inc. All rights reserved.
  49. 49. Bundle: Prepare Install 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 50 © Novell, Inc. All rights reserved.
  50. 50. Bundle: Prepare Install 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 filesWindows Resource KitsTools 51 © Novell, Inc. All rights reserved.
  51. 51. Bundle: Prepare Install 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 52 © Novell, Inc. All rights reserved.
  52. 52. Bundle: Prepare Install Actions: Registry edit • Registry key changes to store active settings – Create HKLMSOFTWARENovellZenworksPowerInfoLoggedIn – Create HKLMSOFTWARENovellZenworksPowerInfoLoggedOut – Under each branch, add the following string values , set to “create if don't exist” pwr_hibernate_state_ac pwr_monitor_ac pwr_monitor_dc pwr_hibernate_state_dc pwr_disk_ac pwr_hibernate_ac pwr_disk_dc pwr_hibernate_dc pwr_scheme 53 © Novell, Inc. All rights reserved.
  53. 53. Bundle: Prepare Install Actions: Registry edit • Registry key changes to set active settings – Create HKLMSOFTWARENovellZenworksPowerSettingsLoggedIn – Create HKLMSOFTWARENovellZenworksPowerSettingsLoggedOut – Under each branch, add the following string values , set to create if don't exist pwr_hibernate_state_ac pwr_monitor_ac pwr_monitor_dc pwr_hibernate_state_dc pwr_disk_ac pwr_hibernate_ac pwr_disk_dc pwr_hibernate_dc pwr_scheme 54 © Novell, Inc. All rights reserved.
  54. 54. Bundle: Prepare Install Actions: Run script @echo on cd "%ProgramFiles%Windows Resource KitsTools" subinacl.exe /noverbose /subkeyreg "HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows CurrentVersionControls FolderPowerCfg" /grant=users subinacl.exe /noverbose /subkeyreg "HKEY_LOCAL_MACHINESOFTWARENovellZenworksPowerInfo" /grant=users 55 © Novell, Inc. All rights reserved.
  55. 55. Bundle: Set Logged in 56 © Novell, Inc. All rights reserved.
  56. 56. Bundle: Set logged in bundle actions: Install • Prepare for power management : Launch bundle – Run registry change bundle 57 © Novell, Inc. All rights reserved.
  57. 57. Bundle: Set logged in Install Actions: Launch bundle • Launch bundle prepare 58 © Novell, Inc. All rights reserved.
  58. 58. Bundle: Set logged in Launch 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 59 © Novell, Inc. All rights reserved.
  59. 59. Bundle: Set logged in Launch 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 60 © Novell, Inc. All rights reserved.
  60. 60. Bundle: Set logged in Launch 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 61 © Novell, Inc. All rights reserved.
  61. 61. Bundle: Set logged in Launch actions: Launch bundle • Launch bundle Get logged in • Wait to complete before proceeding 62 © Novell, Inc. All rights reserved.
  62. 62. Bundle: Set Logged out 63 © Novell, Inc. All rights reserved.
  63. 63. Bundle: Set logged out bundle actions: Install • Prepare for power management : Launch bundle – Registry change bundle 64 © Novell, Inc. All rights reserved.
  64. 64. Bundle: Set logged out Install actions: Launch bundle • Launch bundle prepare 65 © Novell, Inc. All rights reserved.
  65. 65. Bundle: Set logged out bundle 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 66 © Novell, Inc. All rights reserved.
  66. 66. Bundle: Set logged out Launch 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 67 © Novell, Inc. All rights reserved.
  67. 67. Bundle: Set logged out Launch 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 68 © Novell, Inc. All rights reserved.
  68. 68. Bundle: Set logged out Launch actions: Launch bundle • Launch bundle Get logged in 69 © Novell, Inc. All rights reserved.
  69. 69. Configuration steps: Reporting 70 © Novell, Inc. All rights reserved.
  70. 70. Report Storing 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 71 © Novell, Inc. All rights reserved.
  71. 71. Report Storing audit in ZCM with ADF for logged in user • ZCC, Configuration → Asset inventory → Administrator-Defined Fields – Click on User Name Data type Size Description pwr_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 power pwr_hibernate_dc_user Character 10 Go into hibernate when on battery 72 © Novell, Inc. All rights reserved.
  72. 72. Report Storing audit in ZCM for logged in user • Should end up with something like this • Note the internal names, we'll need them later 73 © Novell, Inc. All rights reserved.
  73. 73. Report Storing 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 power pwr_hibernate_state_dc_system Character 10 Hibernate status on battery pwr_scheme_system Character 20 Current power scheme pwr_monitor_ac_system Character 10 Turn off monitor when on power pwr_monitor_dc_system Character 10 Turn off monitor when on battery pwr_disk_ac_system Character 10 Turn off hard disk when on power pwr_disk_dc_system Character 10 Turn off hard disk when on batter pwr_standby_ac_system Character 10 Go into standby when on power pwr_standby_dc_system Character 10 Go into standby when on battery pwr_hibernate_ac_system Character 10 Go into hibernate when on power pwr_hibernate_dc_system Character 10 Go into hibernate when on battery 74 © Novell, Inc. All rights reserved.
  74. 74. Report Storing audit in ZCM for logged out user • Should end up with something like this • Note the internal names, we'll need them later 75 © Novell, Inc. All rights reserved.
  75. 75. Report Linking 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 – HKLMSOFTWARENovellZenworksPowerInfo > LoggedIn > LoggedOut 76 © Novell, Inc. All rights reserved.
  76. 76. Report Linking ADF fields with CDF for logged in • All registry keys are found under – HKLMNovellZenworksPowerInfoLoggedIn ADF Registry key value pwr_hibernate_state_ac_user pwr_hibernate_state_ac pwr_hibernate_state_dc_user pwr_hibernate_state_dc pwr_scheme_user pwr_scheme pwr_monitor_ac_user pwr_monitor_ac pwr_monitor_dc_user pwr_monitor_dc pwr_disk_ac_user pwr_disk_ac pwr_disk_dc_user pwr_disk_dc pwr_standby_ac_user pwr_standby_ac pwr_standby_dc_user pwr_standby_dc pwr_hibernate_ac_user pwr_hibernate_ac pwr_hibernate_dc_user pwr_hibernate_dc 77 © Novell, Inc. All rights reserved.
  77. 77. Report Linking ADF fields with CDF for logged out • All registry keys are found under HKLMNovellZenworksPowerInfoLoggedOut ADF Registry key value pwr_hibernate_state_ac_system pwr_hibernate_state_ac pwr_hibernate_state_dc_system pwr_hibernate_state_dc pwr_scheme_system pwr_scheme pwr_monitor_ac_system pwr_monitor_ac pwr_monitor_dc_system pwr_monitor_dc pwr_disk_ac_system pwr_disk_ac pwr_disk_dc_system pwr_disk_dc pwr_standby_ac_system pwr_standby_ac pwr_standby_dc_system pwr_standby_dc pwr_hibernate_ac_system pwr_hibernate_ac pwr_hibernate_dc_system pwr_hibernate_dc 78 © Novell, Inc. All rights reserved.
  78. 78. Bundle: Get Logged in 79 © Novell, Inc. All rights reserved.
  79. 79. Bundle: Get logged in bundle actions: Install • Prepare for power management : Launch bundle – Run registry change bundle 80 © Novell, Inc. All rights reserved.
  80. 80. Bundle: Get logged in Install action: Launch bundle • Launch bundle prepare • Wait for bundle to complete before proceeding 81 © Novell, Inc. All rights reserved.
  81. 81. Bundle: Get logged in bundle actions: Launch • Get scheme : Launch Windows Executable – Run vbscript to get power information 82 © Novell, Inc. All rights reserved.
  82. 82. Bundle: Get logged in Launch 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 83 © Novell, Inc. All rights reserved.
  83. 83. Bundle: Get Logged out 84 © Novell, Inc. All rights reserved.
  84. 84. Bundle: Get logged out bundle actions: Install • Prepare for power management : Launch bundle – Run registry change bundle 85 © Novell, Inc. All rights reserved.
  85. 85. Bundle: Get logged out bundle actions: Launch • Set scheme : Launch Windows Executable – Run vbscript to create and activate scheme 86 © Novell, Inc. All rights reserved.
  86. 86. Bundle: Get logged out Launch 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 87 © Novell, Inc. All rights reserved.

×