Unix commandlines for ARD

I am looking for some help using ?Unix command lines and shell scripts with ARD. Is this the best forum for that....for example I am trying to start an ASR server remotely from ARD on a OS X.4 server...When I drag the script to terminal and start it using SUDO the server starts up and gives me the information it is waiting for client....however if I call the script using the following from ARD"/Users/admin/Desktop/MulticastConfig/ASRmulticastBiolab.sh" using ROOT as the logged in person I do not get feed back from the Unix window and the task just keeps running. When go to to the server and check Activity Monitor I see ASR running as a process. What really bothers me is that 1) I don't get the "waiting for clients message" and I cannot run any other tasks. Is there a way to have the process run from ARD just like I was at the server. If I stop the task it kills ASR....it seems as if the process is hooked into ARD until I kill the task....Which is not what I want to do....I have many questions about the unix command line and ARD so if someone could point me in the right direction I would appreciate it....
Thanks

I agree with Dave. The reason the "Send Unix Command" is in ARD, is so that you can send a command line to a group of Macs and you don't have to go around to each one and type in the command to each one of them. This comes in handy in a lab environment when you have to turn off something like DeepFreeze on all the computers.
For one machine, like the server, you are much better off just running SSH.

Similar Messages

  • 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

  • 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

  • Send a Unix command through ARD that will change a OS X admin user to a standard user.

    I would love to send a Unix command through ARD that will change a OS X admin user to a standard user. The only thing I found close is
    sudo dscl . -delete /Groups/admin GroupMembership USERNAME
    which does remove the user from the list of admins, but they are still listed as an admin in the user preference panel, and can still use their account to authenticate for admin privileges.

    I'm not having any problems adding or removing users from the 'admin' group by using the syntax's
    dscl . -delete /Groups/admin GroupMembership ARDusername
    or
    dscl . -append /Groups/admin GroupMembership ARDusername
    What I'm saying is if a user is ticked as an Adminstrator in System Preferences and I run the
    dscl . -delete /Groups/admin GroupMembership ARDusername syntax and remove them from the 'admin' GroupMembership they still have the Administrator box ticked in System Prefs and can administer the machine.
    By the way the '/' doesn't work in the syntax in ARD.
    Thanks

  • 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

  • How do you set up Port Forwarding for ARD 2.2 in AEB N?

    Help,
    I'm a novice at Apple Remote Desktop (ARD) - not an IT guy, so it has to be pretty basic and detailed.
    How do you set up Port Forwarding for ARD 2.2 on the Apple Airport Extreme BS router, 802.11 N. I have one at each end of the internet connection. At one end I have an Airport Extreme N router with 2 macs and eventually 1 windows XP machine (if I can) that I would like to be able to connect to over the interenet (the clients) and at the other end, I have a Mac with ARD 2.2 installed also with an Airport Extreme N router. Note: Both routers use Static IP addresses and all computers use static IP's internally not through DHCP. What are the settings or directions to do this.
    I have read and printed out the directions for Configuration of ARD 3.0 that are posted many times in the ARD discusion group, but it uses a Linksys router ( http://www.starkpr.com/ard.htm posted by Dave Sawyer). The Mac router is different, particularly with the place to set a Private IP address. I'm not sure about alot of things, but especially about the Private IP address, what number do I set it to, the one that is in my Network connections list? It automatically changes to a different number in AE N setup for Port Forwarding (by one) as if it is not suppose to the same?????
    Are there any directions available that are as straight forward for the Airport Extreme N router, as the one's that are listed here for the Linksys Router's? ( http://www.starkpr.com/ard.htm )
    Any and All help will be greatly appreciated.
    P.S. I know I should have 3.0 but bought 2.2 just weeks before 3.0 came out and they would not give me an upgrade price, so I'm waiting for 4.0 to upgrade.
    Thanks,
    Jim

    Try the following for each AirPort Extreme ...
    AEBSn - Port Mapping Setup
    To setup port mapping on an 802.11n AirPort Extreme Base Station (AEBSn), either connect to the AEBSn's wireless network or temporarily connect directly, using an Ethernet cable, to one of the LAN port of the AEBSn, and then use the AirPort Utility, in Manual Setup, to make these settings:
    1. Reserve a DHCP-provided IP address for the host device.
    Internet > DHCP tab
    o On the DHCP tab, click the "+" (Add) button to enter DHCP Reservations.
    o Description: <enter the desired description of the host device>
    o Reserve address by: MAC Address
    o Click Continue.
    o MAC Address: <enter the MAC (what Apple calls Ethernet ID if you are using wired or AirPort ID if wireless) hardware address of the host computer>
    o IPv4 Address: <enter the desired IP address>
    o Click Done.
    2. Setup Port Mapping on the AEBSn.
    Advanced > Port Mapping tab
    o Click the "+" (Add) button
    o Service: <choose the appropriate service from the Service pop-up menu>
    o Public UDP Port(s): 3283
    o Public TCP Port(s): 3283
    o Private IP Address: <enter the IP address of the host server>
    o Private UDP Port(s): 3283
    o Private TCP Port(s): 3283
    o Click "Continue"
    o Click the "+" (Add) button
    o Service: <choose the appropriate service from the Service pop-up menu>
    o Public UDP Port(s):
    o Public TCP Port(s): 5900
    o Private IP Address: <enter the IP address of the host server>
    o Private UDP Port(s):
    o Private TCP Port(s): 5900
    o Click "Continue"
    o Click the "+" (Add) button
    o Service: <choose the appropriate service from the Service pop-up menu>
    o Public UDP Port(s):
    o Public TCP Port(s): 5988
    o Private IP Address: <enter the IP address of the host server>
    o Private UDP Port(s):
    o Private TCP Port(s): 5988
    o Click "Continue"
    (ref: "Well Known" TCP and UDP ports used by Apple software products)

  • MARS - NFS on Unix Services for Windows and deleting files

    Hello !
    I've prepared NFS server on W2k3 server with Unix Services for Windows installed. It works OK, the only problem is moveing/deleting files and folders. It seems like a problem with permissions for anonymous user. Does anybody have similar experience ?

    If you receive the following error message "Error ./pnarchiver Thread 2051:PN-0102:SQL error: ORA-01005: null password given; logon denied" then there is a Problem with archiving to NFS server. The directories for the archiving are properly created on the server but those directories remain empty. The workaround is that an inter operability issue exists between MARS and CygWin NFS server running on Windows 2003 server. To work around such inter operability issues, replace the NFS server with Microsoft Windows Services for Unix.

  • 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

  • Windows client for ARD?

    I'm looking in to how to establish a remote desktop connection from Windows to Macs with the stipulation that we not use VNC so I'm wondering if a Windows client for ARD exists.
    If not, does anyone have a suggestion for doing RDC from Windows to Mac. I can already do it going from Mac to Windows using MS's client or the open source CoRD, but I'm really hitting dead-ends trying to figure out how to go the other way.

    To continue what Templeton Peck said, most any VNC client will work. I personally prefer UltraVNC, and I use that to control 5 different Windows machines from my Mac. While you don't get all the advanced options like sharing clipboards, waking/shutting down, collecting reports etc... You still get full access to the remote Windows machine as you do when you connect to a Mac in ARD.

  • Unix equivalent for ActiveXObject

    We have couple of JavaScripts which were originally written for Windows platform. We are now trying to run those scripts in a Sun Solaris 5.8 platform. However the script refers to ActiveXObjects such as those below
    var tFSO = new ActiveXObject("Scripting.FileSystemObject");
    var tADOConn = new ActiveXObject("ADODB.Connection");
    var tADOCmd = new ActiveXObject("ADODB.Command");
    var tBrowser = new ActiveXObject("MSXML2.ServerXMLHTTP.3.0");
    How do we port these ActiveXObjects into a Solaris platform, i.e., what will be the Solaris Unix equivalents for these ActiveX objects?
    Thanks for any help. Would appreciate if you cc: [email protected] in your response.
    Jit

    Thanks gopal. However this command "show tag-switching forwarding table" did not help me find a host in a network choking up the WAN link. I heard from one of the cisco reps saying cisco is releasing an IOS to do this in Feb. I hope that helps.

  • Unix cmd for opening cd door

    Hi All,
    Does anyone know the unix cmds for opening and closing the cd door?
    Thanks,
    Richard

    ...and for a stuck cd drawer, reboot while holding down the mouse.
    PowerMac G5 Dual 2GHz   Mac OS X (10.4.3)  

  • Unix SP1 for WL6.0 is broken?

    After sucessfully download of "Unix SP1 for WLS6.0":
    -rw-r----- 1 weblogic weblogic 39932910 Apr 04 15:31 wls60sp1_upgrade_generic.zip
    we get the following error with IBM AIX JDK1.2.2, 1.3.0
    and with the JDK1.3 Version supplied with Windows WebLogic6
    jar tvf wls60sp1_upgrade_generic.zip
    3933 Sun Mar 04 22:38:22 CET 2001 com/zerog/ia/installer/actions/ChooseFolder.
    class
    1042 Sun Mar 04 22:38:22 CET 2001 ZeroGc3.class
    16431 Sun Mar 04 22:38:24 CET 2001 cc/manifest
    772 Sun Mar 04 22:38:24 CET 2001 com/bea/installer/servicepack/WhereToSave$2.
    class
    730 Sun Mar 04 22:38:24 CET 2001 com/bea/installer/installpanels/WhichOneToIn
    stall$4.class
    java.util.zip.ZipException: invalid stored block lengths
    at java.util.zip.InflaterInputStream.read(InflaterInputStream.java(Compi
    led Code))
    at java.util.zip.ZipInputStream.read(ZipInputStream.java(Compiled Code))
    at java.util.zip.ZipInputStream.closeEntry(ZipInputStream.java(Compiled
    Code))
    at sun.tools.jar.Main.list(Main.java:705)
    at sun.tools.jar.Main.run(Main.java:192)
    at sun.tools.jar.Main.main(Main.java:778)
    If we use Winzip 8.0, then we get several warnings about replacing files (really
    dirs) with 0 file length as:
    "Replace file: c:\weblogic6\sp1\com\sun\xml\util
    0 bytes 04/04/2001 15:58
    With file: util
    0 bytes 04/03/2001 22:38"
    and inside the .zip file there are files with
    absolute windows paths like:
    spunix.jar 04/03/2001 22:38 38.108.645 0% 38.006.995 C:\weblogic\dev\src60\release\
    and others inside of c:\weblogic\dev\src60\release\iautils\
    We have downloaded three times the SP1 using FTP and HTTP with
    the same problem.
    Can someone confirm us that the file is really broken?
    TIA
    [email protected]

    Please forgot the previous post, we have not read the
    new service package install procedure.
    Using the method described in the docs
    "java -cp file.zip install" works fine.
    Sorry.
    Paco Garcia
    [email protected]
    >
    After sucessfully download of "Unix SP1 for WLS6.0":
    -rw-r----- 1 weblogic weblogic 39932910 Apr 04 15:31 wls60sp1_upgrade_generic.zip

  • If i want to learn unix-HP for SAP at first stage, please help me.

    Dear Friend,
    If i want to learn unix-HP for SAP at first stage, please help me.
    Thanks,
    Regards,
    sachin

    Hi Sachin,
                  please go thru the following url
    http://www.uga.edu/~ucns/wsg/unix/gstart/
    and
    http://whitepapers.techrepublic.com.com/whitepaper.aspx?&docid=10197&promo=100511
    happy learning!
    with BR,
    Raj
    <i> award points, plz </i>

  • If i want to learn unix-HP for SAP , please help me.

    Dear Friend,
    If i want to learn unix-HP for SAP at first stage, please help me.
    Thanks,
    Regards,
    BASIS TEAM

    Hi Sachin,
                  please go thru the following url
    http://www.uga.edu/~ucns/wsg/unix/gstart/
    and
    http://whitepapers.techrepublic.com.com/whitepaper.aspx?&docid=10197&promo=100511
    happy learning!
    with BR,
    Raj
    <i> award points, plz </i>

  • How do I prepare the environment for ARD?

    I'm planning to construct the ARD environment for a small company.
    I want to know the environment what is needed for it, especially "hardware" when it will be made by minimum construction.
    The company have 30macPC on several network segments(I estimate it about 10 network segments).
    I hope someone will give me some helpful advices!

    There's no special "environment" needed, though if you plan to be observing multiple workstation screens at once, it's strongly recommended to have at least a 100BaseT Ethernet connection with a gigabit connection preferred. Otherwise any network suitable for other uses will probably be fine for ARD. For technical specifications, features and system requirements, see:
    http://www.apple.com/remotedesktop/specs.html
    You may also want to read the Administrator's Guide:
    http://manuals.info.apple.com/en_US/ARD_3.1_AdminGuide.pdf
    Note that there is no client for Windows systems. You can take control of a Windows system from ARD if you install VNC on the Windows workstation, but there will be no other functionality.
    Regards.

Maybe you are looking for

  • How can i print proof of a recipents file view

    hi i need to print the history view on a dcoument i sent how can i do that

  • How do i find out which one of my family members bought a certain app

    I got an email from apple that a certain app has been bought, and  I would like to know who bought that app. And If posibble I would like to know what device was used to bought that app.

  • ODrive Edit in Place PDF Document Manual Versioning enabled Error

    Hi, Any one has tried or able to do edit in place with ODrive and PDF Document type? I have manual versioning enable. When I am doing edit in place from ODrive for PDF Document getting following error. I have manually check out the document before do

  • Firewire 400 or 800?

    So, I just purchased a Samsung camcorder, but only came with USB cable. From what I read from this forum is that you need to have the firewire cable to import video from camcorder to Mac. What exactly is the difference between Firewire 400 and Firewi

  • OnSoundComplete for external swfs

    My question is, does onSoundComplete works for sounds from externally loaded swfs (these are loaded into 2 different movieclips mc1 and mc2). I want swf1 to unload and swf2 to load after the sound in swf1 has completed. I used.... mc1.song1.onSoundCo