ARD-Unix Command for Energy Saver Settings

I need to take out the schedule for turning on and off 100 + iMacs. The setup was done with managed preferences in OSX server but cannot be taken off now. Is there a way to turn this off using a unix command with ARD? I've been doing one by one with ARD!

Use ARD to send the Unix command systemsetup -help
This will return a bunch of different commands for you to look at that are related to power and energy saving settings. Make sure you send the command as the root user
You can always read the man files for the pmset command using your Terminal app. Also check out this page too:
http://www.hmug.org/man/1/pmset.php

Similar Messages

  • UNIX command for Energy Saver settings - Set Schedule

    Using ARD 3, can anyone help me with a UNIX command for setting the scheduled sleep and wake times for 10.4 clients?
    Thanks,
    Josh

    Thanks for getting me on the right track, I've been working with pmset for a couple days now and I'm having some problems getting my basic schedule that I'd like to work. I'm hoping for another nudge in the right direction. Here's the scenario:
    I need the computers to wake at 7am on weekdays and to sleep at 3:30pm on weekdays as well. I've also got an addition to make the displays sleep after half an hour of inactivity, Here's what I'm trying.
    pmset repeat wake MTWRF 7:00:00;
    pmset repeat sleep MTWRF 15:30:00;
    systemsetup -setdisplaysleep 30;
    I've been trying to push this out as a batch of commands in a template which would be slick, but the problem I'm having is that the two pmset commands don't get along and whichever one is run last cancels out the other. In the actual System Prefs of the machine I'm sending the commands to, there are the two check boxes for Wake or Power On and the other for Sleep or Power Down but I can't get them both to be checked from my UNIX commands.
    Could anyone please help, I feel like I'm so close!
    Regards,
    Josh

  • My macbook pro's screen constantly goes dim. I have set the energy saver settings for battery to 7 mins but it goes dim if the period of inactivity is less than 7 mins. Please help.  MBP 13" OSX 10.6.8 (2011)

    My macbook pro's screen constantly goes dim. I have set the energy saver settings for battery to 7 mins but it goes dim even if the period of inactivity is less than 7 mins. Please help.  MBP 13" OSX 10.6.8 (2011)

    Doesn't sound like it.  It sounds like you're being logged-off.
    Does your Mac go through the complete Restart cycle -- black screen, gray and/or blue screen momentarily, startup chime, etc? 
    If you're not sure, do a Restart just to watch the process; the next time the problem occurs, see if it's the same.
    You need to know which it is, as these will have very different causes, and different places to look for a solution.

  • ARD Unix Command install with root

    I'm a bit of a unix novice, I am trying to install a script file, 'install.sh', via ARD. Works fine in Terminal locally but I can't work out how to input the root password via the ARD unix command tool.
    cd Desktop
    chmod +x install.sh
    ./install.sh -i
    & set to run command as Root.
    I'm getting seemingly nonsense errors e.g. 'Error 127 sh: line 1: cd: Desktop: No such File or Directory' when the file is definitely there, on the desktop.
    I'm pretty sure it needs to enter the root pw in the code window, can anyone advise please?

    when you say install.sh is on the desktop of the remote computer. Is that the desktop for account root? Or is that the desktop of the current logged in users? (assuming the currently logged in user is not root)
    when you run a command as root you start at "/var/root/" there is only going to be a folder /var/root/desktop/, if you've used the login window at least ones to log into root.
    if the current user logged into the remote computer is another account, then your install.sh resides in another location. Witch will look some thing like this. /Users/nameOfUser/Desktop/install.sh
    try this. Send the command:
    cd Desktop
    pwd
    send the command first as the current logged in user, then as root. When you run it the first time, you should get some thing like  /Users/nameOfUser/Desktop/
    when you run it as root you'll probable see /var/root/.
    if you do then you would probable want to do some thing like
    chmod +x /Users/nameOfUser/Desktop/install.sh
    /Users/nameOfUser/Desktop/install.sh -i

  • Machine goes to sleep faster than Energy Saver settings

    Hi all,
    (I've searched for existing threads aboutthis but couldn't find any. Hope I'm not "re" posting)
    I use my laptop (MBP 2.4, 8gb, INtel Core i7) to play music live, so I need it to not go to sleep for at least... 30-40 minutes as I will frequently not touch it directly for that long as I'm busy playing my instruments. But it goes to sleep consistently after about 10 minutes even though I've got the display set to sleep abfter 1.5 hours and the computer to sleep after 2 hrs.
    Then I noticed the same thing on my Mac Pro in my studio. Same Energy Saver settings, still goes to sleep after about 10-15 minutes. Which means I have to re-enter my password there too. Same thing on my older MBP. Theyr'e all on Lion 10.7.4.
    This is very annoying. Anyone know what I'm doign wrong?
    Huge thanks!

    I'm not sure why Energy Saver is doing that, but you may want to download Caffeine from the Mac App Store. It's a menu bar application that you can click and unclick that, when clicked, keeps your Mac on until it is unclicked or if you close the laptop lid/manually put it to sleep.

  • Energy Saver settings not controlling shutdown

    I've reset the SMU and PRAM and my problem continues to return. The computer shuts down in about 30 minutes regardless of what settings I put into Energy Saver. The only way I can prevent it is to open an image in Photoshop and then open an edit screen in a NIK plug-in. It still tries to shutdown but this stops it. I've noticed if Lightroom is running as well that it gets shutdown (even if playing a slideshow) and then the computer tries to quit but Photoshop stops it.
    This has been going on for several months. I posted previously here and only response was to reset the above, which I do periodically. Any other suggestions? Is this a software or hardware problem?
    I just want control back of my Energy Saver settings. It's almost impossible to download anything that is of any size - say an Apple 150Mb update.

    Hi Mel
    Set Computer sleep to Never, Display Sleep to say 10 minutes and uncheck the box "Put the hard disk(s) to sleep when possible"
    Then click the Schedule... button and make sure that the boxes for Startup, Wake, Sleep, Restart, Shutdown are unchecked and click OK.
    Dennis

  • Strange behaviour of the Energy Saver settings

    I noticed that the two sliders in the Energy Saver settings seem to work in tandem. If I set the Display to "Never shutdown" (I used this as I don't want my display/TV to go off in the middle of a movie as the mac sees there are no user interactions), and then try to adjust the sleep timer to anything (15min, 30min, etc.), it aligns the slider for the Display at the same point!
    Is it happening only on my mac or is it the way it works for others?

    That would be the simple logic. But, the scenario I mentioned is also a logical one. I have noticed that when I am watching a long Youtube video or an online movie from sites like Jaman, the screen would go off even though the system access is alive. At that time I have to scramble to the mouse/kbd to reactivate the display.
    At the same time, I want to put the mini to sleep after 30min of inactivity. Hence, I want to set the sleep timer to 30min and the display to "never".
    The energy saver settings show two separate sliders and there is no indication that they are attached at the hips.
    Since it works this way for you as well, then I am not doing something weird. I think this is a bug in the OS.

  • Energy saver settings do not stick when set in system preferences

    For some reason when I restore the default settings for the energy saver settings, the settings go back to a custom setting I set months prior of Display Sleep at 1 minute.
    Here is what I am doing:
    Going to "System Preferences"
    Going to "Energy Saver"
    Pressing the button "Restore Defaults"
    Everything goes back to the default settings of Computer Sleep of 10 minutes and Display Sleep of 10 minutes and I close the window out.
    Problem happens: A bit later I come back to my iMac and wake it up, the setting is back to 1 minute of Display Sleep (which I did months ago, I no longer want that).
    I have even locked the setting to prevent further changes. Which locks the settings in place like it should I believe. However, once the iMac sleeps and I wake it up in a couple of hours it switches back to the old setting I made months ago, 1 minute of Display Sleep, which I no longer want.
    Thanks in advance for any assistance!

    i have the opposite problem... i would like to use custom Energy Saver settings but they will not "stick." instead they keep returning to the default settings. i followed the advice on this thread, thinking it might solve my problem too. but it did not. any suggestions?
    i had one hunch - that it might have something to do with the file of same name but with ~orig at the end (see image below). should i remove the other file as well?
    thanks!

  • Drive sleep too quickly - all drives, regardless of energy saver settings

    i have a g5 quad which from day one has had "narcolepsy issues". all drives (boot and secondary internal sata, fw400, fw800, usb2, and esata) have a tendency to spin down very soon, resulting in SBBODs. sometime for the standard few seconds but often indefinitely resulting in "not responding" status in both the finder and drive dependent apps like final cut pro.
    energy saver settings all set to never - and spin down when possible is unchecked.
    boot drives have been zero level formatted 4 times now, so im dead certain its not a drive issue...
    i have heard of others having this issue but have yet had anyone propose any solutions.
    help! - wG
    g5quad Mac OS X (10.4.8)

    I would first try a PMU reset and nvram reset. Instructions here:
    http://docs.info.apple.com/article.html?artnum=300341
    and here:
    http://www.macosg.com/group/viewtopic.php?t=5819
    Secondly I would create another user account and see if the problem persists.

  • ARD UNIX Commands (create user)

    Looking for a good resource for ARD Unix commands.. have lots of projects trying to do through ard..
    first is create a new user so I can do it across many machines..
    Thanks.

    In addition to the sources Templeton mentioned, a good book on UNIX for Mac OS X (such as the O'Reilly books) would be useful. You can send through ARD many of the UNIX commands that Mac OS X recognizes, though of course you have to be careful what you send or you can cause yourself lots of problems.

  • Energy saver settings won't stick

    I've set my iBook to NOT dim the screen prior to going to sleep. I've also disabled the screen saver and have set the display to sleep after 1 hour. Still, the screen dims (not much, but noticeably) after just a couple of minuts of inactivity. It seems that the energy saver settings have no effect. Does anyone else see this behavior?
    Joe

    Keep in mind that the "Energy Saver" lock is the same lock as all the other system Preferences locks. If one is unlocked they all are.
    My Macbook never has gone to Sleep on it's own, ore rarely if at all. I have attributed it to a 56 dialup accelerator that I use as that program also causes it to take about 31 seconds to go to sleep any time you manually select Sleep from the menu. I just point this out because maybe you have some application that is causing a problem with Sleep.

  • Unix Command for tracing WebIntelligence Server

    Hi All,
    Please can any one tell me that what is the Unix command for tracing WebIntelligence Server. I know we use -trace parameter. But where do we use this parameter? With which script do we use it? Please give me complete command for the same.
    Thanks & Regards,
    Ani

    Hi
    Refer "To configure server tracing through the command line"  page number 207 in http://help.sap.com/businessobject/product_guides/boexir31SP3/en/xi31_sp3_bip_admin_en.pdf
    This guide is for Windows but should be same for UNIX
    Regards
    Ashiwni

  • Can this script be converted to a UNIX command for ARD?

    First I'd like to thank "Neil" again for providing the script below:
    set the_versions to (do shell script "mdls -name kMDItemVersion /Applications/Microsoft\\ Office\\ 2011/Microsoft\\ Excel.app")
    set the_versions to the_versions & return & (do shell script "mdls -name kMDItemVersion /Applications/Adobe\\ Reader.app")
    set the_versions to the_versions & return & (do shell script "mdls -name kMDItemVersion /Applications/Safari.app")
    set the_versions to the_versions & return & (do shell script "mdls -name kMDItemVersion /Applications/Google\\ Chrome.app")
    set the_versions to the_versions & return & (do shell script "mdls -name kMDItemVersion /Applications/Adobe\\ Acrobat\\ X\\ Pro/Adobe\\ Acrobat\\ Pro.app")
    set the_versions to the_versions & return & (do shell script "SW_vers")
    Output for this script yields exactly what I requested in the thread.  Ex:
    "kMDItemVersion = \"14.4.1\"
    kMDItemVersion = \"11.0.07\"
    kMDItemVersion = \"7.0.4\"
    kMDItemVersion = \"35.0.1916.114\"
    kMDItemVersion = \"10.1.10\"
    ProductName:          Mac OS X
    ProductVersion:          10.9.3
    BuildVersion:          13D65"
    I'd like to be able to run this command (or a variation) in Apple Remote Desktop (ARD) remotely, and as a UNIX command in order to generate a similar ARD report if possible.  Even better, I'd like the report to include the Application name and I'd like it to not to halt if an Application isn't present. My guess is that functionality like this for ARD would help a LOT of ARD Administrators because it would seem that the only way to do anything similar is to derive the metadata piecemeal (machine by machine) or end up having to wade through a ton of unwanted content using a full System Report...  Thanks.

    Forum software NOW prevents posting complete shell scripts. You'll have to piece together the code.
    First build an array of the applications that you are looking for in this form. Note; I truncated the applications.
    apps=( "/Applications/Microsoft Office 2011/Microsoft Excel.app" "/Applications/Adobe Reader.app" "/Applications/Safari.app" )
    Next loop thru the array
    for i in "${apps[@]}"; do
         printf "%s: %s\n" "$i" "$(mdls -name kMDItemVersion "$i")"
    done
    If you want to create a report then change the above loop to the following
    for i in "${apps[@]}"; do
         printf "%s: %s\n" "$i" "$(mdls -name kMDItemVersion "$i")"
    done > app_report.txt
    sw_vers >> app_report.txt
    Message was edited by: Mark Jalbert

  • UNIX command for disabling Firewall in Leopard?

    I'd like to use ARD to send a unix command to all my Macs running Leopard that will set the OS's application firewall to "allow all incoming connections." I believe that's the default setting, but I've run into some machines that are setting specific access - not sure how, don't really care, just want to turn it off.
    I've been reading up on /usr/libexec/ApplicationFirewall/socketfilterfw but the Help seems incomplete and I'm not sure this will accomplish what I'm after.

    defaults write /Library/Preferences/com.apple.sharing.firewall state -boolean No
    followed by a reboot works like a charm. thanks for you help.

  • Networksetup ARD Unix command - Joining AirPort loop

    Hi,
    I'm attempting to mass-set a bunch of iBooks to join a specific AirPort network with a WEP key.
    My understanding is with ARD, I can run the following unix command en masse:
    808:/ root# /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Support/net worksetup -setairportnetwork "myAirport" "aaaaa"
    Which returns: You cannot join a network when AirPort power is off.
    So I try to power on the AirPort:
    808:/ root# /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Support/net worksetup -setairportpower on
    Which Returns: You cannot set AirPort power because all AirPort network services are disabled.
    So I check to see what's actually enabled:
    808:/ root# /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Support/net worksetup -listallnetworkservices
    An asterisk (*) denotes that a network service is disabled.
    Built-in Ethernet
    AirPort
    *Internal Modem
    *Bluetooth
    *Built-in FireWire
    Built-in FireWire
    808:/ root#
    Seems like the airport is enabled. So, lets check it specifically:
    808:/ root# /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Support/net worksetup -getNetworkServiceEnabled AirPort
    Enabled
    Next I disable the network service and check that it is truly disabled:
    808:/ root# /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Support/net worksetup -setNetworkServiceEnabled AirPort off
    808:/ root# /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Support/net worksetup -getNetworkServiceEnabled AirPort
    Disabled
    Then re-enable it and power up the AirPort:
    808:/ root# /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Support/net worksetup -setNetworkServiceEnabled AirPort on
    808:/ root# /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Support/net worksetup -getNetworkServiceEnabled AirPort
    Enabled
    808:/ root# /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Support/net worksetup -setairportpower onYou cannot set AirPort power because all AirPort network services are disabled.
    Back to where we were.
    808:/ root# /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Support/net worksetup -setairportnetwork "myAirport" "aaaaa"
    You cannot join a network when AirPort power is off.
    Any ideas? Basically I want to be able to set the airport and the wep en-mass via ARD. This seems like the logical place to accomplish it.
    Thanks!
    iBook G4 Mac OS X (10.4.7) ARD Client 3.1

    Hi
    I found this out a few weeks ago after trying for about 20-30 minutes or so. Won't be the first time manual pages were wrong or out-of-date, nor the last. Depending which OS you're running there are manual pages for utilities that don't exist any more. I remember ktrace disappearing in 10.5 yet the manual page was still available. Completely gone in 10.6.
    Tony

Maybe you are looking for

  • Is iweb09 available on server osx 10.8.4?

    is iweb09 available on server osx 10.8.4?

  • Alarm on WCS

    Dear all, in WCS i have several alarms ( mainly Major). Without gonin in the details of the type of alarm, can somebody let me know: 1) If WCS realize that it no more present by default it will be automatically eliminated? For example I see in the ev

  • Add a buffer space between two parts of formula

    I have a formula that combines a date command (field) and some text at the end.  It's repeated for each row of a cross-tab, so they are stacked vertically.  I need to add a buffer of blank space in between the date command and the text at then end, s

  • ITunes Update Error Message - Unable to Download

    Tonight I've tried to update my iTunes to the latest version, and I receive an error message saying that "I don't have an authorized signature." I called Apple Support and for $150 I could pay to have them tell me how to fix it. I'm a young teacher p

  • File names changed when imported into iphoto

    I scanned thousands of photos and slides. I named them numerically with year and order it was taken (example for 102nd photo taken in 1984 is 84.102.jpg) I used Photoshop's file info to add a description on maybe 20% of the photos. Unfortunately, whe