Checking status of Remote Management (VNC).

Hi there
We use puppet in our business to manage our Macs as well as other machines.
I'm currently looking at sending a command to force enable VNC on our OS X machines:
/System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/ki ckstart -configure -access -on -privs -all -users administrator,root -activate -restart -agent -console
What I'm having trouble with is checking on the status of VNC - I want to first check that it is disabled before running the kickstart command.
I ended up writing a script which reads every plist file in the following directories:
/Library/Preferences/
/Library/Preferences/SystemConfiguration/
/Library/LaunchDaemons/
/Library/LaunchAgents/
/System/Library/LaunchDaemons/
/System/Library/LaunchAgents/
~/Library/Preferences/
~/Library/LaunchDaemons/
~/Library/LaunchAgents/
It outputs the contents to a file.  I did this with VNC enabled then with VNC disabled.  I then do a diff on the files and nothing shows up relevant to VNC.
Does anyone know how to check if VNC is enabled via command line?
Many thanks,
Luke
Message was edited by: servicefromeveleigh
Apologies I just realised I posted this in the iMac discussions.. Really its just a general OS X query.  Not sure how to change that.

Send it some data. If there's no listener you will get an error. You could try sending an empty datagram if your application protocol doesn't have some sort of PING or ECHO command, which IMHO it should have ...

Similar Messages

  • Checking status of remote IP and port

    Hi,
    I want to check the whether DatagramSocket is listening on the remote PC(intranet) on a specified port. Can somebody give me some idea to check this?
    Thanking you,
    Shan

    Send it some data. If there's no listener you will get an error. You could try sending an empty datagram if your application protocol doesn't have some sort of PING or ECHO command, which IMHO it should have ...

  • Java code to check connection to OIM 11g Remote Manager

    Hi,
    I need to check if the remote manager is running or not, for that I am making an API call:
    What RMS data needs to be passed as argument to the below method?
    RemoteManagerOperationsIntf rmObj = (RemoteManagerOperationsIntf)Platform.getService(RemoteManagerOperationsIntf.class);
    rmObj.isRMRunning(+RMSData+);
    Please help.

    package com.thortech.xl.remotemanager;
    import java.io.Serializable;
    public class RMSData
    implements Serializable
    private String rmName;
    private String serviceName;
    private String url;
    private boolean isRunning;
    private boolean isITResource = true;
    private RMRemote rmInstance;
    public RMSData()
    public RMSData(String serviceName, String url, RMRemote rmInstance)
    this.serviceName = serviceName;
    this.url = url;
    this.rmInstance = rmInstance;
    public boolean isITResource()
    return this.isITResource;
    public boolean isRunning()
    return this.isRunning;
    public RMRemote getRmInstance()
    return this.rmInstance;
    public String getServiceName()
    return this.serviceName;
    public String getUrl()
    return this.url;
    public void setITResource(boolean b)
    this.isITResource = b;
    public void setRunning(boolean b)
    this.isRunning = b;
    public void setRmInstance(RMRemote remote)
    this.rmInstance = remote;
    public void setServiceName(String string)
    this.serviceName = string;
    public void setUrl(String string)
    this.url = string;
    public String getRmName()
    return this.rmName;
    public void setRmName(String string)
    this.rmName = string;
    -Kevin

  • Difference between remote management and vnc

    Difference between remote management and vnc

    By VNC I will presume you mean 'Screen Sharing'.
    Screen Sharing in System Preferences - Sharing is purely for remote control and is based on the VNC protocol with a few extra features added by Apple.
    Remote Management in System Preferences does everything Screen Sharing does and is fully compatible with another Mac doing just Screen Sharing, i.e. it allows remote control. However it can also do additional things. It is intended for use with Apple's Remote Desktop Administration software which can use this to send files to a Mac, send (Unix) commands to a Mac and ask for a report from the Mac (e.g. how much RAM it has).
    If you don't have Apple Remote Desktop there is no real point enabling Remote Management instead of Screen Sharing.
    Both Screen Sharing and Remote Management can also be configured to allow 100% standard VNC connectivity from say a PC, as standard they only accept connections from Macs.

  • How to use VNC-Client or sim. for remote management

    Hi folks,
    how can i use a VNC-Client to do a remote session with a ZCM10 RM-enabled
    client ?
    Any ideas ?
    Regards
    Thorsten

    thanks !!1
    >>> Michael Fleming<[email protected]> schrieb am
    Dienstag, 11. Januar 2011 um 14:06 in Nachricht
    <[email protected]>:
    > After you have set a Remote Management Policy (with VNC password) and
    > assigned to the device, then run %appdata%\novell\ZENworks\Remote
    > Management\bin\nzrViewer.exe. Put in device IP/DNS ~50. Done.

  • Command line enable of VNC/Remote Management?

    I have a situation where I need to enable remove mgmt (VNC) on my Mac at work, so I can get to it over VPN at home, to access my Parallels, etc. I can ssh to the system, but can't figure out how to enable the Remote Desktop (and it's specific parameters) via the command line. I believe it would be a defaults write.
    Can someone point me in the right direction? I just want to restrict VNC with a Password, then disable it when I'm done.
    Thanks.

    Hi
    Difficult to see why you're hesitating to use the kickstart utility as that will do what you originally asked. Just because it does not specifically mention VNC does not mean VNC is not running or working.
    VNC Server and Client is built into OSX since 10.5. If you enable Remote Management it will open ports 5900 and 3283 on that workstation. Port 5900 is the VNC Port and port 3283 is the special control port Apple add to the built in VNC/ARD Agent to allow their dedicated management VNC Server application - Apple Remote Desktop - to offer a lot more than simple control for remote clients. You don't have to buy ARD to do what you want.
    Enabling Screen Sharing only opens port 5900. On a Mac all you need is the local admin's name and password of the client workstation you're trying to control. If you're trying to control a mac from a PC then you'd need a dedicated VNC Viewer installing on the PC. Something like RealVNC Viewer. To allow the PC to control the mac you would have to add a VNC password option which should not be the same as the local admin's password.
    Tony

  • Remote Management and Windows VNC clients

    Hey guys,
    I recently had a go at getting the built-in VNC server in Leopard (as part of remote management) up and running.
    Remote control works flawlessly from other Macs, but it refuses connections to Windows clients most of the time (throws up errors like 'Error waiting for server message' or something).
    Any ideas? I thought it might have something to do with the Windows client not understanding the encryption, but haven't found any way to change security settings.
    Thanks in advance!

    Have you giving the server a VNC password?
    System Preferences -> Sharing -> Remote Management -> Computer Settings -> VNC viewers may control screen with password: xxxxxxx
    What VNC client are you using on Windows. Not all VNC clients are created equal? I know about TightVNC (which has been reported to work), RealVNC, and UltraVNC are 3 that I've heard about.
    You can also install your own VNC server (in parallel using a different port or instead of the Mac OS X VNC). Vine Server (aka OSXvnc) has been used successfully for years. After all not all VNC servers are created equal either

  • I want to share files from iMac to MacBookPro.  In "Sharing" setup I want to check "screen Sharing" but get the error message"Screen Sharing is currently being controlled by the Remote Management service."  What do I need to FIX???

    I want to share files from iMac to MacBookPro.  In "Sharing" setup I want to check "screen Sharing" but get the error message"Screen Sharing is currently being controlled by the Remote Management service."  What do I need to FIX???

    Care to share which OS you are using? 
    Have you read for possible solutions over in the "More Like This" thread over here?-----------------------> 

  • Remote manager is not running but it is running as per DC

    I have installed remote manager on windows 2008 R2 server recently to create exchange mail boxes. And I followed the instructions given in oracle documentation while installing this remote manager.
    Windows 2008 server R2 is a 64 bit OS so installed 64 bit java version in it. OIM version is 9.1.0.
    As we are trying to SSL connection to the remote machince, imported certificates on both OIM server and also on remote machine.
    But when I try to provision exchange account for a user, the creation of mail box is getting failed at the task "CheckRemoteManager Connection" saying "Remote manager is not running". But in design console it says that the remote manager is running.
    Here is the response from the task:
    Response: Exchange remote manager not running
    Response Description: Check if Remote Manager parameters are entered correctly
    When I bypass the task "checkRemoterManager Connection" in the adatper "Create mail box" then I am getting the below error.
    Response: error during JRMP connection establishment; nested exception is: javax.net.ssl.SSLHandshakeExcept
    Response Description: Unknown response received
    Error Details:
    Setting task status... "error during JRMP connection establishment; nested exception is: javax.net.ssl.SSLHandshakeExcept" does not correspond to a known Response Code. Using "UNKNOWN".
    Can you please let me know what might be the problem?
    Here is the log.
    DEBUG,19 Jan 2012 14:29:58,606,[XELLERATE.REMOTEMANAGER],Class/Method: RemoteManagerSupport/getRemoteManager entered.
    DEBUG,19 Jan 2012 14:29:58,606,[XELLERATE.REMOTEMANAGER],Class/Method: RemoteManagerSupport/getRemoteManager entered.
    DEBUG,19 Jan 2012 14:29:58,606,[XELLERATE.REMOTEMANAGER],Class/Method: RemoteManagerSupport/getRemoteManager Remote Manager Host Lookup URL is rmi://xx.xx.xxx.xxx:12346
    DEBUG,19 Jan 2012 14:29:58,606,[XELLERATE.REMOTEMANAGER],Class/Method: RemoteManagerSupport/getRemoteManager Remote Manager Host Lookup URL is rmi://xx.xx.xxx.xxx:12346
    DEBUG,19 Jan 2012 14:29:58,606,[XELLERATE.REMOTEMANAGER],Class/Method: RemoteManagerSupport/getRemoteManager Remote Manager service name is RManager
    DEBUG,19 Jan 2012 14:29:58,606,[XELLERATE.REMOTEMANAGER],Class/Method: RemoteManagerSupport/getRemoteManager Remote Manager service name is RManager
    INFO,19 Jan 2012 14:29:58,606,[XELLERATE.REMOTEMANAGER],Class/Method: RemoteManagerSupport/getRemoteManager Remote Manager full URL is rmi://xx.xx.xxx.xxx:12346/RManager
    INFO,19 Jan 2012 14:29:58,606,[XELLERATE.REMOTEMANAGER],Class/Method: RemoteManagerSupport/getRemoteManager Remote Manager full URL is rmi://xx.xx.xxx.xxx:12346/RManager
    DEBUG,19 Jan 2012 14:29:58,608,[XELLERATE.REMOTEMANAGER],Class/Method: RMISSLClientSocketFactory/createSocket entered.
    DEBUG,19 Jan 2012 14:29:58,608,[XELLERATE.REMOTEMANAGER],Class/Method: RMISSLClientSocketFactory/createSocket entered.
    INFO,19 Jan 2012 14:29:58,608,[XELLERATE.REMOTEMANAGER],Class/Method: RMISSLClientSocketFactory/createSocket Remote Manager client socket Host is xx.xx.xxx.xxx and port is 12345
    INFO,19 Jan 2012 14:29:58,608,[XELLERATE.REMOTEMANAGER],Class/Method: RMISSLClientSocketFactory/createSocket Remote Manager client socket Host is xx.xx.xxx.xxx and port is 12345
    DEBUG,19 Jan 2012 14:29:58,610,[XELLERATE.REMOTEMANAGER],Class/Method: RMISSLClientSocketFactory/createSocket left.
    DEBUG,19 Jan 2012 14:29:58,610,[XELLERATE.REMOTEMANAGER],Class/Method: RMISSLClientSocketFactory/createSocket left.
    DEBUG,19 Jan 2012 14:29:58,616,[XELLERATE.REMOTEMANAGER],Class/Method: RemoteManagerSupport/getRemoteManager left.
    DEBUG,19 Jan 2012 14:29:58,616,[XELLERATE.REMOTEMANAGER],Class/Method: RemoteManagerSupport/getRemoteManager left.

    Have you followed all the steps properly ?
    Have you imported Certificate as mentioned in the document ?
    Try with restarting the OIM Server
    Make sure your RM is running
    Try to telnet RM from OIM machine.
    Check xlconfig.xml file
    Re: Error in Provioning Exchange2007 with oim 11g

  • What's the difference between Screen Sharing and Remote Management?

    As the title asks. What is the difference between the two?
    Because heres the thing. I set Screen Sharing on in Sharing. Then a few days later I will go back to the Sharing preferences and instead of Screen Sharing being checked. Remote Management is now checked, not Screen Sharing. What's the deal? Is that normal?
    I was wondering if it was because I log into my iMac sometimes using my iPhone with that Mocha VNC program. Its the only program I use to remotely control my computer. Is that it?
    Any help I can get is appreciated! Thanks!

    Remote Management provides support for the additional functionality of Apple Remote Desktop as compared to a standard VNC setup. The options are otherwise identical.
    (35284)

  • Default Remote Management Settings

    I just (for the first time ever) looked at my Remote Management settings and VNC access was turned on and Show status in menu bar was turned off. That seems a bit precarious and unorthodox.
    Is that the default setting or has my system been changed by someone/thing? Is there a way to easily parse my secure.log (i.e., a useful string to search for) that would tell me if I have had unauthorized connections?

    Try the following steps:
    A] With the help of Cisco Connect Software (if at all you have installed the router with the help of this software)
    1] Open the software and go to the option which says "Router Settings"
    2] Then click on the option which says "Advanced Settings" which will take you to the router's configuration page.
    3] Then click on Security tab disable SPI Firewall Protection, uncheck Filter Anonymous Internet Requests...
    B] If you haven't installed Cisco Connect then you can log on to the router's user interface using it's default IP address in the browser which is 192.168.1.1 and type in 'admin' as the password leaving the username field blank. This will take you to the router's web interface and then follow steps as mentioned above to make the changes.

  • OIM 11.1.1.5.0 - Remote Manager not working

    Hi everyone,
    I am working with an AD which I installed on a different machine than my OIM and I would like to install Remote Manager with my AD. I followed all the steps which are described in the documentation but when I launch RemoteManager.bat, I have the following in the console :
    D:\Oracle\Middleware\Oracle_IDM1\remote_manager>"D:\Oracle\Middleware\jdk160_24\jre/bin/java" -cp .;.\lib\xlAPI.jar;.\lib\xlVO.jar;.\lib\xlScheduler.jar;.\lib\xlRemoteManager.jar;.\lib\xerces.jar;.\lib\xlDataObjects.jar;.\lib\log4j-1.2.8.jar;.\lib\xlUtils.jar;.\lib\xlLogger.jar;.\lib\xlCrypto.jar;.\lib\iam-platform-utils.jar;.lib\oimclient.jar;.\ext\spring.jar -Dlog4j.configuration=config\log.properties -DXL.HomeDir=D:/Oracle/Middleware/Oracle_IDM1/remote_manager com.thortech.xl.remotemanager.RemoteManager
    19 mars 2012 14:31:02 com.thortech.util.logging.Logger info
    INFO: Class/Method: RMIClientSocketFactory/static: sslEnabled : trueSSLContextAlgorithm : TLSKeyManagerFactory : SunX509KeyStore : D:\Oracle\Middleware\Oracle_IDM1\remote_manager\config\default-keystore.jksKeyStoreType : JKSTrustStore : default-keystore.jks
    19 mars 2012 14:31:02 com.thortech.util.logging.Logger info
    INFO: Class/Method: RMISSLServerSocketFactory/createServerSocket Remote Managerserver socket port is 12346
    19 mars 2012 14:31:02 com.thortech.util.logging.Logger info
    INFO: Class/Method: RMISSLClientSocketFactory/createSocket Remote Manager client socket Host is (+my ip address+) and port is 12346
    I'm not sure this means Remote Manager is working cause I have a problem when I am creating the IT Ressource on OIM : connection refused to host : (+my ip address+). And when I use nmap, I can notice that port 12346 is not open.
    Thanks for your help !
    Thibault

    Hi Thibault,
    Your problem looks like a firewall problem between these servers, because you should be able to do telnet once it is up into both(SSL and NONSSL) ports, default 12346 and 12345.
    What I normally do is:
    DEBUG,20 Mar 2012 09:17:10,170,[XELLERATE.REMOTEMANAGER],Class/Method: RemoteMan
    ager/RemoteManager: Binding Remote Manager to: rmi://TLEONCIO:12346/RManager
    ...DONE
    Allow unsafe renegotiation: false
    Allow legacy hello messages: true
    Is initial handshake: true
    Is secure renegotiation: false
    RMI TCP Connection(3)-OIM-IP, setSoTimeout(7200000) called
    RMI Scheduler(0), called close()
    RMI Scheduler(0), called closeInternal(true)
    RMI Scheduler(0), SEND TLSv1 ALERT: warning, description = close_notify
    Padded plaintext before ENCRYPTION: len = 18
    0000: 01 00 CF D4 CD 02 55 6E CA 00 E5 08 E8 EC 5C 19 ......Un......\.
    0010: 81 4E .N
    RMI Scheduler(0), WRITE: TLSv1 Alert, length = 18
    [Raw read]: length = 5
    [Raw write]: length = 23
    0000: 00001: 5 1035 01 00 120 3 .....
    [Raw read]: length = 18
    0000: EA 35 E7 8F 7F DB C0 01 000C 1 68 2A 24D EA 35 E 71C 8 F0B 7F 8DB0 C
    0 DF 5 A0C 68 2A .54..D. ...h*M....Z
    0010: F4 29 ......5 .)
    RMI TCP Connection(2)-THIAGO_REMOTEMANAGER_IP, READ: TLSv1 Alert, length = 18
    Padded plaintext after DECRYPTION: len = 18
    ....0..h*M0
    000010: 01 : 10C0 0 BCF D 840 DF CD 02 5 A55 6 EF4 29 C
    ..A 00 E5. 08 E8 EC.Z 5C .)1
    9 ......Un......\.
    0010: 81 4E .N
    RMI TCP Connection(2)-THIAGO_REMOTEMANAGER_IP, RECV TLSv1 ALERT: warning, close_notify
    RMI TCP Connection(2)-THIAGO_REMOTEMANAGER_IP, called closeInternal(false)
    RMI TCP Connection(2)-THIAGO_REMOTEMANAGER_IP, SEND TLSv1 ALERT: warning, description = c
    lose_notify
    Padded plaintext before ENCRYPTION: len = 18
    0000: 01 00 E1 43 9E 6C 4E BF 97 10 03 BA 29 1A 01 EA ...C.lN.....)...
    0010: 08 30 .0
    RMI TCP Connection(2)-THIAGO_REMOTEMANAGER_IP, WRITE: TLSv1 Alert, length = 18
    [Raw write]: length = 23
    0000: 15 03 01 00 12 0A F7 B7 14 70 18 A0 2C 05 E3 21 .........p..,..!
    0010: 4E D0 27 26 FE 6E F3 N.'&.n.
    RMI TCP Connection(2)-THIAGO_REMOTEMANAGER_IP, called close()
    RMI TCP Connection(2)-THIAGO_REMOTEMANAGER_IP, called closeInternal(true)
    RMI TCP Connection(2)-THIAGO_REMOTEMANAGER_IP, called close()
    RMI TCP Connection(2)-THIAGO_REMOTEMANAGER_IP, called closeInternal(true)
    I write into Telnet command and into telnet connection I write one command called +'EHLO something'+ to write and check a message from OIM-Server to RM-Server using SSL_port
    -->telnet THIAGO_REMOTEMANAGER_IP 12345
    [oracle@xxxxx~]$ telnet THIAGO_REMOTEMANAGER_IP 12345
    Trying THIAGO_REMOTEMANAGER_IP...
    Connected to THIAGO_REMOTEMANAGER_IP (192.xxx.xxx.xxx).
    Escape character is '^]'.
    EHLO THIAGO
    then you will see something like this:
    [Raw read]: length = 5
    0000: 45 48 4C 4F 20 EHLO ****
    RMI TCP Connection(3)-OIM-IP, receive SSL message
    RMI TCP Connection(3)-OIM-IP, WRITE: TLSv1 true, length = 2
    [Raw write]: length = 7
    0000: 15 03 01 00 02 02 0A .......
    RMI TCP Connection(3)-OIM-IP, called closeSocket()
    RMI TCP Connection(3)-OIM-IP, called close()
    RMI TCP Connection(3)-OIM-IP, called closeInternal(true)
    but as I said, first the telnet should be ok. If not, take a look into your firewall rules and let us know.
    I hope this helps,
    Thiago Leoncio

  • Change the input parameter in Check Status screen

    Hi,
    I have a requirment to change the input parameter option in the check status screen. Currently when we search the SC using the date and staus from the extended search it picks the SC created date and displays the SC, my requirement is to make the date as the approved date insted of SC created date with the status as aprpoved.
    Please suggest if this is possible with the help of any Badi.
    Regards
    GGL

    I managed to find the solution myself. If anyone is interested, just follow those steps here:
    http://apple.stackexchange.com/questions/44913/make-a-custom-keyboard-layout-the -system-default-even-for-the-login-screen
    (terminal skills required tho)

  • Modify the Overall credit check status in Sales order

    Dear all,
    Good morning/afternoon/evening!
    I have a question that how to modify the Overall credit check status (VBUK-CMGST) in sales order when the order saved?
    I try to do this in USEREXIT_SAVE_DOCUMENT_PREPARE, but it does not works.
    Maybe I need to do this in USEREXIT_SET_STATUS_VBUK ? But i also face the problem ........
    Anybody who can give me a sufficient solution? I promise reward to you!!!
    regards,
    Brian Liu

    Hi,
      user function 1 in credit management by using
    LVKMPFZ1 (FORM USER_CREDIT_CHECK1). If you branch into function module SD_ORDER_CREDIT_CHECK you can use the coding of FORM OLDEST_OPEN_ITEM_CHECK.
    <b>Reward points</b>
    Regards

  • Possible bug in x64 Remote Management firewall rule

    Updated to ZCM11 over the weekend and am now running some tests on some test machines with the new ZAA. The problem I'm seeing is I'm unable to remote control Win7 Pro x64 running ZAA11.
    I looked into the problem and the Win7 firewall is blocking the traffic as the autocreated rule to allow remote management is incorrect. The problem is there are 2 rules in the Win7 firewall that are slightly off. There are 2 rules to allow for remote management when in the Domain zone, which is fine, but the executable the rules are allowing have the incorrect path. The rules as created by the ZAA installer have a path of...
    C:\Program Files\Novell\ZENworks\bin\nzrWinVNC.exe
    but since this is x64 and that's not the path ZAA installs to, the rules NEED to be...
    C:\Program Files (x86)\Novell\ZENworks\bin\nzrWinVNC.exe
    Once the UDP and TCP rules are changed to the correct path of the executable remote control works normally.
    Can someone else confirm this being the case on Win7 x64? Is this a known issue?
    Thanks,
    Don

    dduvall,
    It appears that in the past few days you have not received a response to your
    posting. That concerns us, and has triggered this automated reply.
    Has your problem been resolved? If not, you might try one of the following options:
    - Visit http://support.novell.com and search the knowledgebase and/or check all
    the other self support options and support programs available.
    - You could also try posting your message again. Make sure it is posted in the
    correct newsgroup. (http://forums.novell.com)
    Be sure to read the forum FAQ about what to expect in the way of responses:
    http://forums.novell.com/faq.php
    If this is a reply to a duplicate posting, please ignore and accept our apologies
    and rest assured we will issue a stern reprimand to our posting bot.
    Good luck!
    Your Novell Product Support Forums Team
    http://forums.novell.com/

Maybe you are looking for

  • Report generation for Delivery Blocked Orders

    Hi All, I am trying to pull up a report which should contain only orders with the Delivery Block. Through VL06O i can get the orders which need to PGIed, which are open, which are stuck in workflow and which have got delivery block. So is it possible

  • How can I change the color of individual folders in Apple Mail?

    Hi, I would like to do to my mail folders what I do for my regular document folders -- highlight them in a color to set them off from one another. It's a great and helpful feature to be able to do this with regular folders on my hard drive (in my doc

  • Java server faces submit button

    i'm running a java server faces example in tomcat.In that example i'm having a text field and a submit button, both are visible, but when i run the same example in JBoss app server the submit button is not visible ........whats the problem? Thanks in

  • Iq505 screen is white

    The screen on my IQ505 touchsmart turned white! Cleaned and restarted, screen is white but can hear the computer go through startup and touch screen responds with sound when I touch it as if everything is working fine. I have found a few posts about

  • Conflicting in magento

    Hi. I am trying to add an animation to a magento site. I have narrowed the issue down to a conflict with a file called prototype.js but this is an essential file for the site. In chrome in the console I am getting the messages: Uncaught TypeError: Ob