Determining DNS name of clients via command line

Hi there,
I'm trying to find a quick way to interrogate all my clients (I use Apple Remote Desktop so can issue terminal commands to all of them at once) to find out their DNS name.
I'm having an issue with Windows DNS randomly not giving my clients a DNS entry so I'd like to send a command to each to return this information.
I can do: host my-client-ip-address
But I can't figure out how to tell make it generic so I can send the command to all the machines at once.
If I use:
ifconfig en0|grep "inet "|cut -d ' ' -f 2
It returns the client ip but I'm unable to pass that to host.
Does anyone have any ideas how I can do this?
Many thanks!!

I assume since you posted in the 10.5 Server forums that you are speaking about 10.5 clients?
10.5's AD plug-in supports dynamic DNS (for the forward lookup only). If you are not using the AD plug-in then of course it's the Windows Server's responsibility to maintain the DNS entries. The only way I know to do this is via the DHCP service which implies you need to be using its DHCP service. The service can be configured to support NT clients which is essential how the Windows Server sees the Macs when they're not bound to AD. For best results bind them to AD.
The 'hostname' command will return the name which the client has discovered for itself. This defaults to DNS first. If DNS fails to deliver then this then goes to the Bonjour name of the client. hostname needs no options and therefore by design will act generically.

Similar Messages

  • Setting IIS W3C Extended Log File settings via command line, registry or configuration file

    I am currently in need of a way to set IIS W3C Extended Log File settings via command line, registry or configuration file.  More specifically the 'Bytes Sent (sc-bytes)' and 'Bytes Received (cs-bytes)' settings that are not enabled by default. 
    If anyone knows where I can locate these setting (outside of the GUI) for all IIS versions that would be greatly appreciated.

    I believe I have found a valid solution. You must have the WebAdministration module loaded.  I hope this helps someone.
    Use the following syntax to view current W3C fields:
    Get-WebConfiguration -filter system.applicationhost/sites/sitedefaults/logfile | select-object -expandProperty logExtFileFlags
    Use the following syntax to set W3C fields:
    Set-WebConfigurationProperty -Filter System.Applicationhost/Sites/SiteDefaults/logfile -Name LogExtFileFlags -Value "Date,Time,ClientIP,UserName,SiteName,ComputerName,ServerIP,Method,UriStem,UriQuery,HttpStatus,Win32Status,BytesSent,BytesRecv,TimeTaken,ServerPort,UserAgent,Cookie,Referer,ProtocolVersion,Host,HttpSubStatus"}

  • Turn on "Real-time preotection" via command line

    Hello!
    We have a cient without networking resources and I need to turn on the "Real-time protection" which is currently in OFF state.
    How can I do that via command line?
    I tried to review the "mpcmdrun" command but did not found proper switch to turning on this service.
    Regards, 
    Tamas

    You could do a regedit command to silently import a .reg file with the setting in it:
    create a .reg file from the following key:
    HKLM\SOFTWARE\Policies\Microsoft\Microsoft Antimalware\Real-Time Protection
    Name: DisableRealtimeMonitoring
    Type: REG_DWORD
    Data: 0
    Then import it silently with this command:
    regedit /s C:\ExamplePath\Example.reg
    You could also do a PowerShell command:
    Set-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Microsoft Antimalware\Real-Time Protection' -Name DisableRealtimeMonitoring -Value 0

  • Can't rename the lap1041 hostname via command line

    We have lots of new lap1041 need be set static IP Adress, hostname, Controller Adress via command line, but when use command (capwap ap hostname) to set hostname , always give us cammand disabled, we used command:clear capwap private-config, but it does not work, why?

    Thanks for your reply.
    The Lap  is new and has not join the WLC( the WLC has not connect to the network), we can set the LAP IP address, Controller IP address via command line, but can not set host name, even though we power the lap via AC.
    LAP version 15.2(2)JA
    following is the error message:
    APacf2.c594.0137#capwap ap hostname test
    ERROR!!! Command is disabled.
    Further more, how to set the location?

  • Add protocol args with quotes via command-line

    I am creating a small script to insert objects into the SGD databases (ENS) via command-line and perl. I have some difficulties with protocol-arguments which require quotes (").
    For example:
    /opt/tarantella/bin/tarantella object new_windowsapp --name "o=applications/cn=new_winapp" --width 600 --height 800 --protoargs "<protocol-arguments>"
    The problem comes when I need to add multiple protocol-arguments with quotes like: -dir "c:\Program Files\Application Directory"
    Can someone tell me how to add those arguments including the quotes?
    Thanks,
    Remold Krol | Everett

    Try to use the single quote ( ' )
    say, for instance
    protoargs 'dir "c:\Program Files\Application Directory" '
    That works for me.
    Regards.

  • Error -402 upon installing an extension via Command Line

    When I try to install my extension via command line, i receive the following error message:
    "Failed to install, status = -402!"
    What does this error code -402 mean?
    I found someone with a similar problem in the forums: Re: Extension Manager CC failed to install extension
    He/She had file names containing non-ASCII characters. But i couldn't find any non-ASCII characters in my project or extension.
    Thanks in advance,
    Andreas

    Hi Carl,
    unfortunately unchecking the option did not work. This is what I found in the logs:
    ExManCoreLibrary.log:
    [Debug] Thu Oct 09 09:01:03.891 2014 (SignatureValidator.cpp, 48) -CSignatureValidator::verifySignature: Begin to validate signature /var/folders/yw/dnnpmtmn2xldzzs62gkq_lhm0000gn/T/tmp8212baaaaa
    [Debug] Thu Oct 09 09:01:03.924 2014 (SignatureValidator.cpp, 68) -CSignatureValidator::verifySignature: End to validate signature /var/folders/yw/dnnpmtmn2xldzzs62gkq_lhm0000gn/T/tmp8212baaaaa
    [Error] Thu Oct 09 09:01:03.924 2014 (SignatureValidator.cpp, 105) -CSignatureValidator::verifySignature: ZXPSign_verify() failed for "/var/folders/yw/dnnpmtmn2xldzzs62gkq_lhm0000gn/T/tmp8212baaaaa", sign_status is 50!
    [Error] Thu Oct 09 09:01:03.924 2014 (ExtensionBase.cpp, 170) -CExtensionManager::validateExtension: CSignatureValidator::verifySignature() failed for "/var/folders/yw/dnnpmtmn2xldzzs62gkq_lhm0000gn/T/tmp8212baaaaa", status is -402!
    [Error] Thu Oct 09 09:01:03.924 2014 (ExtensionBase.cpp, 607) -CExtensionBase::install: validateExtension() failed for zxp /Users/******/Desktop/plugin.zxp, status = -402!
    log0.log:
    10/9/2014 09:01:03.622 [INFO] com.adobe.exman.controller.InstallExtensionCommand execute(), InstallExtensionCommand is executed.
    10/9/2014 09:01:03.624 [INFO] com.adobe.exman.controller.session.composite.CompositeUpdateSession initiate()
    10/9/2014 09:01:03.624 [INFO] com.adobe.exman.controller.NotifyOperationBeginEndCommand execute(), NotifyOperationBeginEndCommand is executed.
    10/9/2014 09:01:03.625 [DEBUG] com.adobe.exman.controller.gateway.ExternalGateway ###call2extensionMgr airNotifyOperationBeginOrEnd,29,install,1,0
    10/9/2014 09:01:03.625 [INFO] com.adobe.exman.view.ExManApp handleNotification(), got notification: NOTIF_ACTION_BEGIN
    notification body: [object ActionBeginParameter]
    10/9/2014 09:01:03.625 [DEBUG] com.adobe.exman.view.ExManApp @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    10/9/2014 09:01:03.625 [DEBUG] com.adobe.exman.view.ExManApp NOTIF_ACTION_BEGIN
    10/9/2014 09:01:03.625 [INFO] com.adobe.exman.ExManGUI canAcceptUIInput(), set to: false
    10/9/2014 09:01:03.626 [INFO] com.adobe.exman.controller.AppWinOperationCommand execute(), AppWinOperationCommand is executed. notification=APPWIN_MODALDIALOG_POPUP
    10/9/2014 09:01:03.626 [INFO] com.adobe.exman.controller.gateway.ExternalGateway ###appWinOperate(), sessionId: 30, opCode=10, mouseX=0, mouseY=0
    10/9/2014 09:01:03.626 [DEBUG] com.adobe.exman.controller.session.composite.CompositeRollBackSession CompositeRollBackSession: executeNextSession()+++
    10/9/2014 09:01:03.627 [DEBUG] com.adobe.exman.controller.session.composite.CompositeRollBackSession CompositeRollBackSession: supper.executeNextSession
    10/9/2014 09:01:03.627 [DEBUG] com.adobe.exman.controller.session.composite.CompositeSession executeNextSession: run a frontend session
    10/9/2014 09:01:03.628 [INFO] com.adobe.exman.controller.session.frontend.FrontendInstallExtensionSession initiate()
    10/9/2014 09:01:03.628 [INFO] com.adobe.exman.controller.NotifyOperationBeginEndCommand execute(), NotifyOperationBeginEndCommand is executed.
    10/9/2014 09:01:03.628 [DEBUG] com.adobe.exman.controller.gateway.ExternalGateway ###call2extensionMgr airNotifyOperationBeginOrEnd,31,install,1,0
    10/9/2014 09:01:03.629 [INFO] com.adobe.exman.controller.session.composite.CompositeRollBackSession onChildSessionProgress() session total: 1 session lenght: 0 progress: 0 calculatedProgress: 0
    10/9/2014 09:01:03.629 [INFO] com.adobe.exman.view.ExManApp handleNotification(), got notification: NOTIF_PROGRESS
    notification body: 0
    10/9/2014 09:01:03.629 [DEBUG] com.adobe.exman.view.ExManApp @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    10/9/2014 09:01:03.629 [DEBUG] com.adobe.exman.view.ExManApp NOTIF_PROGRESS
    10/9/2014 09:01:03.629 [INFO] com.adobe.exman.view.ExManApp app got progress: 0
    10/9/2014 09:01:03.633 [DEBUG] com.adobe.exman.controller.session.backend.InstallExtensionSession initiate
    10/9/2014 09:01:03.633 [INFO] com.adobe.exman.controller.gateway.ExternalGateway installExtension(), the params to external install: sessionid=28, sourcepath= /Users/*******/Desktop/plugin.zxp
    10/9/2014 09:01:03.633 [DEBUG] com.adobe.exman.controller.gateway.ExternalGateway ###call2extensionMgr externalInstallExtension,28,/Users/*******/Desktop/plugin.zxp
    10/9/2014 09:01:03.634 [DEBUG] com.adobe.exman.view.ExManApp @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    10/9/2014 09:01:03.644 [DEBUG] com.adobe.exman.view.ExManApp NOTIF_RESET_SEARCH_BOX
    10/9/2014 09:01:03.890 [INFO] com.adobe.exman.controller.gateway.Application ###Receive airCallBack Message28,9,30
    10/9/2014 09:01:03.891 [INFO] com.adobe.exman.controller.gateway.ExternalGateway handleResponse(), parameters of handleResponse:
    sessionId= 28
    responseType= 9
    responseBody=30
    10/9/2014 09:01:03.891 [INFO] com.adobe.exman.controller.session.backend.BackendSession com.adobe.exman.controller.session.backend::InstallExtensionSession got parameters in handleResponse:
    responseType= 9
    10/9/2014 09:01:03.891 [INFO] com.adobe.exman.controller.session.backend.BackendSession responsebody 0 :30
    10/9/2014 09:01:03.891 [INFO] com.adobe.exman.controller.session.frontend.FrontendInstallExtensionSession onBackendSessionProgress(), 30
    10/9/2014 09:01:03.892 [INFO] com.adobe.exman.controller.session.composite.CompositeRollBackSession onChildSessionProgress() session total: 1 session lenght: 0 progress: 30 calculatedProgress: 30
    10/9/2014 09:01:03.892 [INFO] com.adobe.exman.view.ExManApp handleNotification(), got notification: NOTIF_PROGRESS
    notification body: 30
    10/9/2014 09:01:03.892 [DEBUG] com.adobe.exman.view.ExManApp @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    10/9/2014 09:01:03.892 [DEBUG] com.adobe.exman.view.ExManApp NOTIF_PROGRESS
    10/9/2014 09:01:03.892 [INFO] com.adobe.exman.view.ExManApp app got progress: 30
    10/9/2014 09:01:03.933 [INFO] com.adobe.exman.controller.gateway.Application ###Receive airCallBack Message28,1,-402,com.crossmedia_solutions.assetInformation
    10/9/2014 09:01:03.934 [INFO] com.adobe.exman.controller.gateway.ExternalGateway handleResponse(), parameters of handleResponse:
    sessionId= 28
    responseType= 1
    responseBody=-402,com.crossmedia_solutions.assetInformation
    10/9/2014 09:01:03.934 [INFO] com.adobe.exman.controller.session.backend.BackendSession com.adobe.exman.controller.session.backend::InstallExtensionSession got parameters in handleResponse:
    responseType= 1
    10/9/2014 09:01:03.934 [INFO] com.adobe.exman.controller.session.backend.BackendSession responsebody 0 :-402
    10/9/2014 09:01:03.934 [INFO] com.adobe.exman.controller.session.backend.BackendSession responsebody 1 :com.crossmedia_solutions.assetInformation
    10/9/2014 09:01:03.937 [INFO] com.adobe.exman.controller.session.frontend.FrontendInstallExtensionSession onBackendSessionFail()
    10/9/2014 09:01:03.938 [INFO] com.adobe.exman.controller.NotifyOperationBeginEndCommand execute(), NotifyOperationBeginEndCommand is executed.
    10/9/2014 09:01:03.938 [DEBUG] com.adobe.exman.controller.gateway.ExternalGateway ###call2extensionMgr airNotifyOperationBeginOrEnd,32,install,0,0
    10/9/2014 09:01:03.938 [DEBUG] com.adobe.exman.controller.session.composite.CompositeSession notifySuperSessionFail: set LASTSESSION FAILED
    10/9/2014 09:01:03.938 [INFO] com.adobe.exman.view.ExManApp handleNotification(), got notification: NOTIF_ACTION_FAIL_WITH_PARENT_SESSION
    notification body: [object SessionCompleteParameter]
    10/9/2014 09:01:03.939 [DEBUG] com.adobe.exman.view.ExManApp @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    10/9/2014 09:01:03.939 [DEBUG] com.adobe.exman.view.ExManApp NOTIF_ACTION_FAIL_WITH_PARENT_SESSION
    10/9/2014 09:01:03.939 [ERROR] com.adobe.exman.view.ExManApp null extension!
    10/9/2014 09:01:03.939 [INFO] com.adobe.exman.view.ExManApp onSessionCompleteFail()
    10/9/2014 09:01:03.940 [INFO] com.adobe.exman.view.ExManApp onActionFailHelper()
    10/9/2014 09:01:03.940 [INFO] com.adobe.exman.ExManGUI canAcceptUIInput(), set to: false
    10/9/2014 09:01:03.940 [INFO] com.adobe.exman.controller.AppWinOperationCommand execute(), AppWinOperationCommand is executed. notification=APPWIN_MODALDIALOG_POPUP
    10/9/2014 09:01:03.941 [INFO] com.adobe.exman.controller.gateway.ExternalGateway ###appWinOperate(), sessionId: 33, opCode=10, mouseX=0, mouseY=0

  • How can I install on Windows remotely via command line?

    Hello Folks.
    I want to install an application on Windows remotely and via command line, For example, I need a tool like Psexec or WMIC but I don't like the user understand it. Any idea? 

    Hi,
    Please also refer to following FAQ article and check if those four general ways will meet your requirement.
    [Forum FAQ] How to deploy applications remotely
    If any update, please feel free to let us know.
    Hope this helps.
    Best regards,
    Justin Gu
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • How to merge multiple documents via command line (Adobe Acrobat Pro 9.3.2)?

    I'm searching solutions to merge multiple documents (all stored in one folder) via command line or batch file to a single PDF-File...
    Is there a way to do this?
    Finaly I want to control this from a application written in MS-Access. So, perhaps there are some features already integrated in Access to do this?
    Thanks for answer!

    If you have some programming experience you could probably do this using VBA from within MS Access to control Acrobat via OLE.
    Lots of examples on the Web.
    Hope this helps

  • Adobe Reader 11 (XI) won't open file via command line

    Hello,
    I have posted this question to probably inapropriate topic earlier today, so I am repeating it again.
    I installed newest Adobe Reader XI today and when I tried to open certain pdf file via command line, it reported a syntax error. Now, this syntax worked so far on versions 9 and 10  (I checked today with them and it is working), so my question is - where can I find new syntax, if there is any? Googling didn't help. Or what else could wrong?
    In previous versions I was able to open pdf file (on page 5) like this (all was taken from Help file "Open parameters")
    "CompletePathToAdobeReader"/A"page=5""CompletePathToPDF",
    ie
    "C:\Program Files (x86)\Adobe\Reader 11.0\Reader\AcroRd32.exe"/A"page=5""d:\V2\DataSheet.pdf"
    but now - not that it doesn't open specific page, but it doesn't want to open file at all.
    edit:
    Operating systems running: Windows 7, Windows XP
    Thank you.
    Message was edited by: v604

    Yes, it reported correctly becuase there is a syntax error in your command. Try spaces between the /A switch and open parameter. Try this:
    "C:\Program Files (x86)\Adobe\Reader 11.0\Reader\AcroRd32.exe" /A "page=5" "d:\V2\DataSheet.pdf"
    Hope this helps.
    -Sumit

  • How to turn off Bluetooth adapter via command line or script?

    I'm trying to write a batch script that will be able to turn on/off any connected Bluetooth adapters.
    In the "Bluetooth Settings" window, how can I change the "Turn off Bluetooth adapter" setting via command line or script?
    Due to my account not being verified yet, I cannot post a screenshot.  I will update this thread as soon as my account is verified.

    get-service -DisplayName 'Bluetooth Support Service' | Stop-Service
    ¯\_(ツ)_/¯

  • How to change fcalias www via command line & particular port performance status

    how to change fcalias www via command line & particular port performance status

    how to change fcalias www via command line & particular port performance status

  • How do I get LR2 to "load from device" via command line?

    Hi,
    how do I get LR2 to "load from device" via command line?
    I've got XP to load LR2 when a "camera" (and only a camera) is connected but really cool would be if LR2 would also import the pictures.
    cu,
    Michael

    1. Make sure you are using IOS 7.
    2. Make sure your iPad is register in My Support Profile.
    https://supportprofile.apple.com/
    3. Try downloading again; it should be free.

  • [SOLVED] How to Crop an MP4 Video via Command-line?

    I have ffmpeg, mpg123, and mencoder. Does anyone know of a way I could use any of those to crop an mp4 video via command-line? I am trying to take off the black space above and below a video. Thanks in advance!
    Last edited by tony5429 (2009-04-12 00:12:57)

    I don't think it's possible to crop without re-encoding, but you can crop from the command line with ffmpeg and mencoder. Not sure about mpg123 - I think that's for playing audio but I could be wrong there.
    Anyway, with ffmpeg you can do cropping by using -croptop, -cropbottom, -cropleft, and -cropright. So if you wanted to crop 16 pixels off of the top and the bottom, your command line would look something like this:
    ffmpeg -i <input file> -croptop 16 -cropbottom 16 <video encoding options> <audio encoding options> <output file>
    With mencoder you use the "crop" video filter, like this:
    mencoder <input file> -o <output file> -vf crop=320:208:0:16 <other options>
    where the "320:208:0:16" means that the resulting picture is 320 pixels wide, 208 pixels high, and the 0:16 is the x,y position of the cropped area.
    These command lines are just really very basic examples - ffmpeg and mencoder have a LOT of options. Way too many to explain here. If you don't believe me, just try reading through the mencoder man page sometime. (There's an online version of it at: http://www.mplayerhq.hu/DOCS/man/en/mplayer.1.html)
    Hope this helps!!

  • How to see via command line blocked mails

    Im having a problem...i have a C100 Ironport appliance and i want to know via command line, how to grep and see mails that never went delivered.
    For example...i know that someone, like [email protected] send to my exchange server an email...but in exchange never entered. So i assume that it was filtered by Ironport.
    I go to the command line, use grep and 13 and search for [email protected] and i see something like this
    Wed Apr 18 14:17:54 2007 Info: MID 3977209 ICID 8813638 From: <pedro>
    Wed Apr 18 14:18:44 2007 Info: MID 3977209 ready 3019672 bytes from <pedro>
    I see that 2 mails came from pedro....so i want to see what happened to them...they were bounced? rejected? Delivered?
    I dont have any email in the local quarantine... and i want to know how to track what happened to those emails that never entered to my exchange server.
    Is there any command?
    Than you!

    Wanted to add that you can shortcut the "grep" process by putting everything on one line.
    grep -i "Mid 3977209" mail_logs
    grep -i "ICID 8813638" mail_logs
    grep -i "From: " mail_logs
    basically
    grep -i "pattern" mail_logs
    -i ===> ignore case
    Im having a problem...i have a C100 Ironport appliance and i want to know via command line, how to grep and see mails that never went delivered.
    For example...i know that someone, like [email protected] send to my exchange server an email...but in exchange never entered. So i assume that it was filtered by Ironport.
    I go to the command line, use grep and 13 and search for [email protected] and i see something like this
    Wed Apr 18 14:17:54 2007 Info: MID 3977209 ICID 8813638 From:
    Wed Apr 18 14:18:44 2007 Info: MID 3977209 ready 3019672 bytes from
    I see that 2 mails came from pedro....so i want to see what happened to them...they were bounced? rejected? Delivered?
    I dont have any email in the local quarantine... and i want to know how to track what happened to those emails that never entered to my exchange server.
    Is there any command?
    Than you!

  • How to install Developer Tools via command line

    Hello,
    is there a way, to install the Developer Tool via Command line?
    I need only the unix tools.
    I have to install the unix tools over a ssh connection.
    Thanks in advance and best regards
    Martin

    I followed the link you gave.  The only download I saw was for Xcode 4, and they either wanted $5 to purchase it from the app store or a 1 year mac developer license thing which was $100.
    <Edited by Host>

Maybe you are looking for

  • Color Correction in Final Cut Express HD

    I'm editing a stage production of A Midsummer Nights Dream that was shot on two different cameras. The set is very bright and vivid, and i have read and re-read the FCE Help page on the color correction topic. I have corrected my master shots (wides)

  • Synchronizing Contacts with Nokia 6500

    Hello I replaced my old Nokia 6230i with the Nokia 6500. The first time I got it, I immediatly synced my contacts to my new Nokia phone through Isync. Went pretty well, only 3 contacts gave problems. Now after a month on Holiday I tried to update (sy

  • Ms 8850 gf3ti200 pro-vt capture doesnt work one bit any more

    i have the ms 8850 gf3ti200 pro-vt and i posted a wile ago cause of probs with the capture now its realy bad now i cant even use it befor i tryed the drivers where going bad and if they where bad it reboots now it just DOESnt work wincoder trys to lo

  • LR 4 & PS 5 compatible?

    Is LR 4 compatible with PS 5?  That is if I switch from LR3 to LR 4, will I still be able to export to PS 5, edit the files in PS 5 and come back to LR for printing?

  • Failure of starting process in Photoshop Elements 3 on MacOS 10.5.6

    Hello, Up to today Ph.El.3 has been running an this computer. I experimented with gimp. And after that Ph.El 3 program ends "unexpectedly". I have deleted gimp and ph.El.3 and reinstalled ph.el.3 but nothing has changed. Can somebody help me? Thanks