HT5627 when I copy it in the terminal, it tells me : " sudo: serveradmin: command not found "

what should I do ? What did I do wrong ?

This error?
$ sudo serveradmin
Password:
sudo: serveradmin: command not found
$
That usually means you're not logged in on an OS X Server configuration — which is separate from having the Server.app tool loaded onto the system, when you're doing remote management —  or as Linc Davis mentions, that the PATH setting is incorrect.  The correct PATH should look something like this:
$ sudo echo $PATH
/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/Applications/Server.app/Contents/S erverRoot/usr/bin:/Applications/Server.app/Contents/ServerRoot/usr/sbin
$
I wouldn't expect PATH to be incorrect on the root user on the server, barring some site-local tweaks to that context.  But if there have been changes to PATH, then I'd add both bin and sbin within Server.app into the path.  (This change should not be necessary, though.  The PATH should have the correct settings within Server.app by default.)
If you're looking to use serveradmin on a remote server, then the usual approach is to enable and ssh into the target OS X Server system (ssh [email protected]), or to use ARD or related to push commands, or to use screen sharing and a remote desktop.   ssh is by far the lightest and fastest of these options.  
AFAIK, the command-line serveradmin tool doesn't do remote management.  There's no obvious way provided to specify the identity of a target server.

Similar Messages

  • TS5376 HI, I installed Itunes on my computer. When i wanted to open the application, it gives error "Apple Application Support not found" "Error 2 (Windows error 2)"

    HI, I installed Itunes on my computer. When i wanted to open the application, it gives error "Apple Application Support not found" "Error 2 (Windows error 2)"

    For general advice see Troubleshooting issues with iTunes for Windows updates.
    The steps in the second box are a guide to removing everything related to iTunes and then rebuilding it which is often a good starting point unless the symptoms indicate a more specific approach. Review the other boxes and the list of support documents further down page in case one of them applies.
    Your library should be unaffected by these steps but there is backup and recovery advice elsewhere in the user tip.
    The section Install missing components has advice on breaking down the iTunes installer into the individual .msi files which might prove useful if a component such as Apple Application Support won't install normally.
    tt2

  • Recover Accidentally Deleted Files in OS X via Terminal, "command not found"

    Hi!
    I am trying to recover a folder from the trash. It was deleted 30 min ago. The command I am trying to use is;
    Mys-MacBook-Pro:~ storedisk$ com.apple.Finder AppleShowAllFiles true
    And the response is;
    -bash: com.apple.Finder: command not found
    When I open any Terminal window I get this message, I don't know if this is relevant;
    Last login: Wed Nov 13 08:27:40 on ttys001
    I have found some similar replies on the forum but they do not seem to work in my case. I'm new to Terminal so I would really appreciate the help to find the cause and to resolve my problem.
    Thanks a lot!

    Thank you so much. This is the reply that I got;
    Mys-MacBook-Pro:~ storedisk$ ls -a .Trash
    .                                        Cherry Blossoms
    ..                                        FLiCKS
    .DS_Store                              Nicholas Nickleby (1977)
    13 Tzameti                              Robin Hood (2010)
    Catch-22 [1970]                              We Live in Public 2009
    Mys-MacBook-Pro:~ storedisk$ mv .Trash/FLiCKS .
    Mys-MacBook-Pro:~ storedisk$
    Mys-MacBook-Pro:~ storedisk$ mv .Trash/FLiCKS
    usage: mv [-f | -i | -n] [-v] source target
           mv [-f | -i | -n] [-v] source ... directory
    It is the FLiCKS folder that I am trying to retreive. Does this mean that I can retreive it? And if so, when I use the command mv .Trash/filename, where should it appear? Sorry for not fully understanding the instructions.
    I also tend to empty the trash cumpulsively, which is how this happened in the first place. Trying to empty the files already in the trash but accidentally having had this folder selected I emptied that and kept the files that I didn't want.
    The trash folder still has the size as if the folder FLiCKS is still in there though, if that makes any difference?
    Thank you for all of your help.

  • HT4480 When I enter my redemption code I get a message that says the code is not recognized, even when I copy and paste the code.

    When I enter my redemtion code in the app store I get a message that says code not recognized, even when I copy and paste the code.

    Use the email form to contact Apple here >  Apple - Support - Mac App Store - Contact

  • Canon Pixma 922 - when I copy a document the pages come out blank.

    When I copy a document the pages came out blank.
    Also, when I print an MS-Word document, the pages come out blank, however, if I print an HTML document from a website, the printer prints fine.

    Hi dstei33162,
    Since HTML documents are printing correctly, it is possible that the large black ink tank in the unit may be clogged.  You can print a nozzle check pattern from the printer to see if the inkjet nozzles are dispensing the ink correctly.  To do this, please follow the steps located here.  Once it is printed, please examine it and compare it to a correctly print pattern here.  If all of the colors are not appearing, including the black grid at the top above the colors, performing print head cleanings on the unit may resolve the issue.  To perform the cleanings, please follow the steps located here.  We recommend performing at least one cleaning and two deep cleanings.
    Should you still experience difficulty, the printer may require servicing; please call or email us using one of the methods on the Contact Us page for further assistance.
    Did this answer your question? Please click the Accept as Solution button so that others may find the answer as well.

  • The majority of Terminal command, "not found"

    When I was trying to mess around with my Kinect camera on my iMac today, via Terminal, I noticed a peculiar thing occurring when I tried to use even the most basic of Terminal commands.
    For example, I typed in "ls" to try to list the directories and files of my current directory, but was presented with the following instead:
    "-bash: ls: command not found"
    Without the quotes obviously.
    Why is this happening? Should I be concerned?

    Is there any reason why I don't have a ".profile saved.profile" or a ".bash_profile saved.bash_profile"?
    It just displays:
    "No such file or directory".
    Ouch! By default there are no shell initialization files. I was assuming that the MySQL installation created either a .profile or a .bash_profile, or the instructions had you manually creating one of them.
    If you do not have a .profile nor a .bash_profile, then I'm not sure where the MySQL installation put them.
    But just to be on the safe side and make sure we are looking in the correct directory try:
    echo $HOME # just want to make $HOME variable is properly setup.
    /bin/ls -l $HOME/.profile $HOME/.bash_profile $HOME/.bash_login $HOME/.bashrc
    I apologize if I missed some of your explanations, I don't mean to be fussy!
    Your Terminal sessions are not working. I would be more than "fussy" if that happened to me! Then again, I live inside of terminal sessions
    xurizaemon had an earlier post where he listed some additional places that PATH could be modified.
    /bin/cat /etc/profile
    /bin/ls -R /etc/paths.d
    You might go back and re-read what xurizaemon wrote in that post.
    Another thing you could try is, using System Preferences -> Accounts, create a new account, and see if that account has the same Terminal problem (this is an experiment, not a solution). If it does, then it would seem the changes were global, so the /etc/profile, and /etc/paths.d locations are candidates. If the problem does NOT occur for a new account, then this would point to $HOME/.profile, $HOME/.bash_profile, $HOME/.bash_login.
    Message was edited by: BobHarris

  • Download Photoshop CS3 from Adobe when I click the link I am getting http 404 page not found.

    I have a copy of Photoshop CS3 on my old Macbook. Need to move to my new Macbook with no CD drive.  Following instructions it says to download CS3 and enter serial number.  When I attempt to download from Adobe and click the link I am getting http 404 page not found.

    Download CS3 products
    Works for me. If there are issues, use another browser and check your network configuration.
    Mylenium

  • I have lightroom 5.7 and a macbook pro 10.9.5.  Occasionally when I am editing a photo in the develop module, I suddenly get a "file not found" message and the editing ceases to work.  There is no "exclamation" icon below the histogram box in the Library

    I have lightroom 5.7 and a macbook pro 10.9.5.  Occasionally when I am editing a photo in the develop module, I suddenly get a "file not found" message and the editing ceases to work.  There is no "exclamation" icon below the histogram box in the Library module or on the photo in grid view, and the histogram is gone.  What is going on? Trying to find it using the "find missing photos" in the library menu does nothing.

  • When I try to run iTunes I receive the following error message: "Apple Application Support was not found.  Apple Application Support is required to run iTunes helper.  Please unistall iTunes, then install iTunes again". I have done this twice.  What now?

    When I try to run iTunes I receive the following error message: "Apple Application Support was not found.  Apple Application Support is required to run iTunes helper.  Please unistall iTunes, then install iTunes again". I have done this twice and continue to get the error message.  What now?

    Hi texasslagle,
    It sounds like you are having issues installing iTunes on your Windows 7 PC, a frustrating situation I am sure.
    There is an article that you may want to use to try to complete your install here -
    iTunes 11.1.4 for Windows: Unable to install or open
    http://support.apple.com/kb/ts5376
    Thanks for using Apple Support Communities.
    Best,
    Brett L

  • When I try to start iTunes I get the following error message: Itunes.exe – Entry Point Not Found - The procedure entry point kCMByteStreamNotification_AvailableLengthChanged could not be located in the dynamic link library CoreMedia.dll.

    When I try to start iTunes I get the following error message: Itunes.exe – Entry Point Not Found - The procedure entry point kCMByteStreamNotification_AvailableLengthChanged could not be located in the dynamic link library CoreMedia.dll.

    Any answers how to fix it? All Im getting is error for the past 3 days!

  • I installed windows 7 on my iMac 21.5 (late 2009) and when I boot windows 7, the lag drivers are missing and bootcamp is not installed. The windows package would not download through bootcamp, even when left alone for 2 hours.

    I installed windows 7 on my iMac 21.5 (late 2009) and when I boot windows 7, the lag drivers are missing and bootcamp is not installed. The windows package would not download through bootcamp, even when left alone for 2 hours. Don't have the lion disk... Drivers seem impossible to get. Please help!

    lan drivers*

  • I made a purchase on iTunes and it is not showing on any of my devices. When I tried to watch the show in my purchased file I could not. When I go back to iTunes it tells me I made the purchase already. Why can't I access my purchases. Case

    I made a purchase on iTunes and it is not showing on any of my devices. When I tried to watch the show in my purchased file I could not. When I go back to iTunes it tells me I made the purchase already. Why can't I access my purchases. Case # 506294747

    Hi Paul,
    If you are having an issue such as this with an item such as a movie purchased from the iTunes store, you may want to report it to the store. Use the steps in this article -
    Report an problem with an item you bought from the iTunes Store, App Store, Mac App Store, or iBooks Store
    Thanks for using Apple Support Communities.
    Best,
    Brett L 

  • After hard drive crash I needed to authorise my pc again. itunes tells me iphone cannot sync as pc not authorised. when I try to authorise the pc, itunes tells me pc is already authorised... what can i do?

    After a recent hard drive crash I needed to authorise my pc again. I first de-authorised all previous computers (there was no other option)
    Then I authorised the pc with the new hard drive.
    then I tried to sync
    Then itunes tells me iphone cannot sync as pc not authorised.
    when I try to authorise the pc, itunes tells me pc is already authorised...
    I have been playing this game 10 times now ... "cannot sync because pc not authorised" and then "cannot authorise as already authorised"
    what can i do?
    thanks

    yes, a few times. the number of authorised computers decreases and increases from zero to one and vice versa accordingly. yet I am still being told that it cannot sync.

  • When i open iTunes i get this message "iTunes: iTunes.exe - Entry Point Not Found" "The procedure entry point RefAudioFileWritePackets could not be located in the dynamic link library CoreAudioToolbox.dll." how do i fix this!

    when i open iTunes i get this message "iTunes: iTunes.exe - Entry Point Not Found" "The procedure entry point RefAudioFileWritePackets could not be located in the dynamic link library CoreAudioToolbox.dll." how do i fix this!

    Taken at face value, you're having trouble with an Apple Application Support program file there. (Apple Application Support is where single copies of program files used by multiple different Apple programs are kept.)
    Let's try something relatively simple first. Restart the PC. Now head into your Uninstall a program control panel, select "Apple Application Support" and then click "Repair".
    Does iTunes launch properly now?
    If no joy after that, try the more rigorous uninstall/reinstall procedure from the following post:
    Re: I recently updated to vista service pack 2 and I updated to itunes

  • HT1657 I rented Trouble with the Curve and haven't it yet and I when I went to watch the movie it tells me the file can not be found -  please help

    I rented Trouble with the Curve and haven't it yet and I when I went to watch the movie it tells me the file can not be found -  please help

    Yes, thank you.  My apologies, I was typing one handed and did not add that. 
    Anyway, I have tried deleting the cache, deleting my pics and then re-syncing, etc. and nothing is working This is very frustrating, as I had no problems up until about 2 weeks ago, and now all of a sudden, I have this issue......UGH!

Maybe you are looking for

  • Export through Final Cut Pro of .mov file results in non-viewable file...

    Hello, I recently worked on a film and had asked for a .mov version of the movie so I could get an uncompressed HD version in case I wished to use it for my demo reel (video for actors). I was present when the director exported it and he exported it

  • BRtools table space creation error

    hi, Iam trying to create new table space in my R/3 system. When i went to brtools - space management sytem throwing error owner failed.I tried with all users to login like ( <SID>adm,administrator etc ...)even then same problem.Could you please sugge

  • How do I install Photoshop on my new computer?

    My old computer broke and I bought a new laptop.  When I tried to install Photoshop on my new computer, I got an error message because it had been registered to my old computer.  Can you help me with the installation on my new computer?

  • ActiveSync support!

    I am relatively new as a Blackberry (BB) user, and must say that I am a convert.  I can easily say that my productivity has increased tremendously, and others in my company have noticed as well.  That being said, the only show stopper as far as other

  • After clean install/SSD upgrade, how to keep prefs and wipe OS from HDD?

    I'm about to install an SSD in the boot bay and move my HDD to the optical bay.  I'm awaiting the arrival of the disk doubler before I get on with it. In the meantime have a couple questions: Firstly, after I've done a clean install of Mountain Lion