How do I list local shared computers through terminal?

I'm looking for a way to see Macs on the local network that have file sharing turned on that i could potentially connect to, through terminal.  I've looked into mount and showmount, but i haven't had any luck.  Any help is appreciated!

OK; an additional requirement. Scripting.  Quoting from the dns-sd man page:
  The dns-sd command is primarily intended for interactive use.  Because its command-line arguments and output format are subject to change, invoking it from a shell script will generally be fragile. Additionally, the asynchronous nature of DNS Service Discovery does not lend itself easily to script-oriented programming.
     For example, calls like "browse" never complete; the action of performing a "browse" sets in motion machinery to notify the client whenever instances of that service type appear or disappear from the network. These notifications continue to be delivered indefinitely, for minutes, hours, or even days, as services come and go, until the client explicitly terminates the call. This style of asynchronous interaction works best with applications that are either multi-threaded, or use a main event-handling loop to receive keystrokes, network data, and other asynchronous event notifications as they happen.
     If you wish to perform DNS Service Discovery operations from a scripting language, then the best way to do this is not to execute the dns-sd command and then attempt to decipher the textual output, but instead to directly call the DNS-SD APIs using a binding for your chosen language.
     For example, if you are programming in Ruby, then you can directly call DNS-SD APIs using the dnssd package documented at <http://rubyforge.org/projects/dnssd/>.
     Similar bindings for other languages are also in development.
Does that help get you where you want to be?  Calling into available Ruby or Python DNS-SD libraries would get you where you want, and there are other choices.  Off-hand, I don't know of a bash-friendly interface, but there may be one around.
And stepping back from this request slightly, there are already distributed-management packages which allow connections to remote servers, and managing multiple servers as a unit.  With Apple, Apple's ARD tool is one solution, and there are other packages available for Mac OS X and Mac OS X Server and other Unix platforms.
I'd also suggest considering ssh, as telnet is insecure, and as ssh can perform certificate-based and passphrase-based logins.

Similar Messages

  • How can I cancel existing shared  computers?

    I have used nearly all of my quota of "shared" computers, due to needing to re instals.  I now have a new computer, along with a new email.  How can I get rid of some of the old sharings, and share with myu new computer.

    wait until you reach the limit of five computers and use the deauthorize all option. then reauthorize those you currently use/have access to.
    click here for more information.

  • Access local shared folder through Sharepoint 2013

    Before we installed Sharepoint 2013 everyone within the company was sharing files and folders through a shared drive that is mapped to all the workstations. This shared folder on the server is very large, roughly 250gb in size. 
    I created a Sharepoint site called Document center using a Sharepoint template. Is there an easy way to either upload all those files and directories int sharepoint?
    Or even easier, create a link on the sharepoint site that can connect to this shared drive so users can access these files.

    You can use a data migration tool from a 3rd party, such as Metalogix, Metavis, AvePoint, or ShareGate to migrate file share content into SharePoint with the metadata (created by, last modified, etc.) intact. You can also use WebDAV (\\sharepointsite\) and
    copy them in, but the metadata will be lost.
    As far as integrating the file share into SharePoint, take a look at AvePoint's File Share Integration tool (http://www.avepoint.com/assets/pdf/doc6/DocAve_Connector_for_SharePoint_File_Share_Integration.pdf). This is the only one I'm aware of.
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • How do you update python that runs through terminal?

    I cant find how to update the python provided (2.6) to python 3. Is it possible?

    http://www.python.org/download/mac/
    and
    http://www.python.org/download/releases/3.1.2/
    I don't see if specific versions have specific OS requirements. Don't forget there are two main OS releases after Tiger and the latest on that site could require those. I know with Java if you want to have the latest then you have to upgrade OS.
    Personally I'd make sure I had a solid backup of my whole drive before doing this.

  • Enable Sharing SMB through terminal

    I'm looking for the shell command to enable SMB under the sharing options of system preferences. I've tried
    do shell script "cd /System/Library/LaunchDaemons; launchctl load -w smbd.plist" with administrator privileges
    And though it runs without error, it doesn't show as enabled under system preferences, or in the smbd.plist file. What am I doing wrong? Thanks!

    With a Mac OS X server we have a similar problem here.
    It´s like the finder doesn't understand ACLs with SMB, though it does understand ACLs with AFP. Everything works fine using SMB with CLI or mucommander.
    I did the tests with a Mac OS Server 10.5.4 and 10.5.5 and clients with 10.5.4 with filesharing (smb and afp) and OD enable.
    Using OD clients connecting to a share folder with ACLs and POSIX in a Mac OS Server, the results were the following:
    * SMB, Finder with ACLs > Finder ignore ACLs
    * SMB, Finder with POSIX > works fine
    * SMB, CLI or mucommander > works fine
    * SMB, from windows > works fine
    * AFP, Finder, CLI or mucommander with ACLs or POSIX > works fine
    I´ve tried to search it but it´s like very few guys have this problem and I coudn´t find any report from apple. I just need to know if this is a feature or a known bug because we are working with some big clients that demand an answer asap.
    Any help, please ...
    Thanks in advance

  • How to enable local sharing in iphone

    How can I enable local sharing in iPhone 4S?

    Hi Matt, I need to send IPA files downloaded on my iPhone to my iPod, I don't use iTunes and I was told that it's possible to send files wirelessly via local sharing.

  • How do I get shared computers to show up in the sidebar in Leopard?

    Still trying to come to terms with Leopard's way of doing things, and can't get shared computers to show up in the sidebar. I've never shared computers before, so need very basic instructions on how to do this. I thought I had set up for other specific computers to share, but nothing happens. Do they need to be using Leopard too?
    Thanks for any help.

    All of the things that folks seem to be having problems with are broadcast or multicast based. If you're not seeing things, chances are really good it's because you're not seeing the broadcasts / multicast packets. Why? Donno... shouldn't be any different than Tiger and "works fine for me".
    Here is how you see what multicasts are going on the wire (broadcast are just another type of multicast):
    sudo tcpdump -nvvXi en1 -s 1500 multicast
    When you do this, if it's the first time you've run sudo, it will give you a warning and ask for your password since this is a privileged command. The next time, it will only prompt you for a password (unless you ran it recently and your password is cached).
    There are a few different types of broadcasts that you'll want to be looking for. Note: These are only examples of each type - there are multiple sub-types of these to advertise other details. I'm only giving generic descriptions of each - the packet data in yours will be different, but a similar format.
    _This is a AFP Multicast (udp/5353)_
    You'll see here my wife's macbook advertising its services. This data gets collected and put in the mDNSResponder cache for when you need it. It is also used to make stuff show up on your finder.
    21:08:18.189071 IP (tos 0x18, ttl 255, id 26790, offset 0, flags [none], proto: UDP (17), length: 232) 192.168.15.101.5353 > 224.0.0.251.5353: [udp sum ok] 0*- [0q] 5/0/1 Melissa.device-info.tcp.local. TXT "model=MacBook2,1", Melissa.afpovertcp.tcp.local. (Cache flush) SRV Macintosh-3.local.:548 0 0, Melissa.afpovertcp.tcp.local. (Cache flush) TXT "", services._dns-sd.udp.local. PTR afpovertcp.tcp.local., afpovertcp.tcp.local. PTR Melissa.afpovertcp.tcp.local. ar: Macintosh-3.local. (Cache flush) A 192.168.15.101 (204)
    _This is a NetBIOS/NBT/SMB/Windows Share Broadcast (udp/137)_
    This is what your system looks for to make Windows systems show up on your finder.
    21:06:34.226681 IP (tos 0x0, ttl 64, id 41952, offset 0, flags [none], proto: UDP (17), length: 78) 192.168.15.101.50581 > 192.168.15.255.137: [udp sum ok]
    NBT UDP PACKET(137): QUERY; REQUEST; BROADCAST
    TrnID=0x28DB
    OpCode=0
    NmFlags=0x11
    Rcode=0
    QueryCount=1
    AnswerCount=0
    AuthorityCount=0
    AddressRecCount=0
    QuestionRecords:
    Name=_MSBROWSE_ NameType=0x01 (Unknown)
    QuestionType=0x20
    QuestionClass=0x1
    _This is a UPnP (Universal Plug and Play) Broadcast (udp/1900)_
    These are used for things like your Internet router, UPnP Music Servers, and other similar devices to advertise what they can do (similar to the Bonjour packets - but a different standard).
    21:08:25.042607 IP (tos 0x0, ttl 4, id 25012, offset 0, flags [none], proto: UDP (17), length: 353) 192.168.15.1.1900 > 239.255.255.250.1900: [udp sum ok] UDP, length 325
    0x0000: 4500 0161 61b4 0000 0411 9434 c0a8 0f01 E..aa......4....
    0x0010: efff fffa 076c 076c 014d d47e 4e4f 5449 .....l.l.M.~NOTI
    0x0020: 4659 202a 2048 5454 502f 312e 310d 0a48 FY.*.HTTP/1.1..H
    0x0030: 6f73 743a 3233 392e 3235 352e 3235 352e ost:239.255.255.
    0x0040: 3235 303a 3139 3030 0d0a 4361 6368 652d 250:1900..Cache-
    0x0050: 436f 6e74 726f 6c3a 6d61 782d 6167 653d Control:max-age=
    0x0060: 3630 0d0a 4c6f 6361 7469 6f6e 3a68 7474 60..Location:htt
    0x0070: 703a 2f2f 3139 322e 3136 382e 3135 2e31 p://192.168.15.1
    0x0080: 3a38 302f 7570 6e70 2f73 6572 7669 6365 :80/upnp/service
    0x0090: 2f64 6573 5f70 7070 2e78 6d6c 0d0a 4e54 /des_ppp.xml..NT
    0x00a0: 3a75 726e 3a73 6368 656d 6173 2d75 706e :urn:schemas-upn
    0x00b0: 702d 6f72 673a 7365 7276 6963 653a 5741 p-org:service:WA
    0x00c0: 4e50 5050 436f 6e6e 6563 7469 6f6e 3a31 NPPPConnection:1
    0x00d0: 0d0a 4e54 533a 7373 6470 3a61 6c69 7665 ..NTS:ssdp:alive
    0x00e0: 0d0a 5365 7276 6572 3a4e 542f 352e 3020 ..Server:NT/5.0.
    0x00f0: 5550 6e50 2f31 2e30 0d0a 5553 4e3a 7575 UPnP/1.0..USN:uu
    0x0100: 6964 3a75 706e 702d 5741 4e43 6f6e 6e65 id:upnp-WANConne
    0x0110: 6374 696f 6e44 6576 6963 652d 315f 302d ctionDevice-1_0-
    0x0120: 3030 3137 3366 3638 6364 3861 3a3a 7572 00173f68cd8a::ur
    0x0130: 6e3a 7363 6865 6d61 732d 7570 6e70 2d6f n:schemas-upnp-o
    0x0140: 7267 3a73 6572 7669 6365 3a57 414e 5050 rg:service:WANPP
    0x0150: 5043 6f6e 6e65 6374 696f 6e3a 310d 0a0d PConnection:1...
    0x0160: 0a .
    If you're not seeing these packets, you're not going to see anything in your finder.
    Why would you not see them?
    1) Your firewall is blocking them from going out from the system that is sharing data
    2) Your firewall is blocking them from coming in from the system that is looking for the data
    3) The necessary services are not started on either system
    4) Your network does not properly forward multicast and broadcasts between hosts
    I've posted a number of threads on how to figure out each of the above situations. An easy thing to check is to do a 'netstat -anp udp' and see if there is a *.XXX where XXX is the port number listed in each of the descriptions. If there is, your system is listening for the packets and I'd check the firewall. If there is not, your system isn't setup right to listen for them (double check your file sharing settings and options).

  • I am in a hotel in Panama and although I have sharing completely switched off there are still computers connecting. How do I stop others sharing?

    I am in a hotel in Panama and although I have sharing completely switched off there are still computers connecting. How do I stop others sharing?

    I think you are seeing sharing networked computers in your sidebar.
    That doesn't mean they are connecting to you, or even that you can connect to them (they are likely pass word protected).  It's a bit like looking around your room and seeing a bunch of computers on tables... you can see them, but that doesn't mean you have access to them.
    It's also like seeing a list of WIFI networks in your Airport menu window - just because they're listed doesn't mean you can connect to them, or they to you.
    Does that make sense?

  • How to list local admins in AD as a txt file which has a name as date of the day

    Hello,
    I have a script which lists local admins of all hosts in Active Directory:
    $Searcher = New-Object DirectoryServices.DirectorySearcher([ADSI]"")
    $Searcher.Filter = "(objectClass=computer)"
    $Computers = ($Searcher.Findall())
    md C:\All_Local_Admins
    Foreach ($Computer in $Computers)
    $Path=$Computer.Path
    $Name=([ADSI]"$Path").Name
    write-host $Name
    $members =[ADSI]"WinNT://$Name/Administrators"
    $members = @($members.psbase.Invoke("Members"))
    $members | foreach {$_.GetType().InvokeMember("Name", 'GetProperty',
    $null, $_, $null) | out-file -append C:\All_Local_Admins\$name.txt
    This script outputs HOST machine names as seperate txt files (HOST1.txt, HOST2.txt etc)
    What I want is to get a single text file which name gets the date of the day (for example: 05082014.txt --> This file will include local admins of all hosts)
    How should I modify above code to manage this?
    Thank you very much.

    Try setting the file name outside of the loop.
    $fname = "$((Get-Date).ToShortDateString().Replace('/','')).txt"
    after the write host line add
    $ | out-file
    -append C:\All_Local_Admins\$fname
    Change this line
    $null, $_,
    $null)
    | out-file
    -append C:\All_Local_Admins\$name.txt
    to
    $null, $_,
    $null)
    | out-file
    -append C:\All_Local_Admins\$fname
    See if that gives you what you need.

  • My iPod touch is stuck on one song in my play list when in the shuffle mode.  How do I fix this to shuffle through all the songs in that playlist?

    My iPod touch is stuck on one song in my play list when in the shuffle mode.  How do I fix this to shuffle through all the songs in that playlist?

    If you go to the Now Playing screen, the Repeat control is the the arrowed racetrack icon on the left side right below the scrubber bar. Tap the icon to change. It is white when Repeat is off.

  • How can I configure Home Sharing to work through a consumer VPN service?

    I recently purchased a year subscription to a VPN service know as Private Intenet Access (PIA). With this VPN executable program connected to it's servers, my data is "filtered" through it behind the router. The router IS NOT configure with the vpn so I can controll which devices use the VPN. Addiotionally, if I want I can configure the VPN as a proxy instead of just running the program ( i would use the proxy for mobile devices).
    My question is this: Is there an efficient way to configure iTunes and/or Apple TV3 in order to be able to use PIA while home sharing. I notice, often times that home sharing on the Apple TV will not read the Windows maching that has home sharing enabled through iTunes. But other machines work fine. Sometimes, depending on the "order" of the networks I connect to home sharing will work from the particular machine.
    for example:
    I can connect to the internet if I connect to my wifi and then enable the VPN (PIA) but cannot home share. However, if I connect to PIA then connect to the Wifi, it will work witout an issue.
    The real issue is that when the Apple TV and pr PC go to sleep these connecting can wake up connecting in a different order.
    I can only think to perhaps manually enter in the proxy info supplied by PIA to Apple TV. But there are not real instructions on how to do so.
    I know this question is broad and scattered, but I am hoping that someone out there has had or having the same issue with some kind of resolution.
    I've chatted online with PIA reps and they aren't entirely Apple savy. So here I am.
    Any help in the right direction is greatly appreciated!!
    -Cheers

    check out these links:
    Troubleshooting security software issues
    Troubleshooting Home Sharing
    and, last but not least, see this discussion concerning bonjour being the culprit.

  • How to get list of drives present in local file system?

    Hi all,
    I want to show all drives and their contents using JTree.
    Does anybody know how to get list of drives present in local file system?

    Thank you!
    I have new question.
    I want to disply size and file type. Can you give ur suggestion in order to do that?
    I want to provide following using JTree
    + root <Dir> 50KB
    - file1 <txt> 10KB
    - file2 <bmp> 20KB
    + root2 <Dir> 200KB
    -file1 <jpeg> 50KB
    Is this possible?
    Plz reply..........
    bye

  • HT1420 How can I see a list of which computers I have authorized?

    How can I see a list of which computers I have authorized? 

    List of authorized computers - https://discussions.apple.com/thread/4090165 - there isn't one.

  • HT1420 How can I get a list of authorized computers

    How do I get a list of the computers authorized to play iTunes music?

    There is no list available from your end.
    (77968)

  • How can you found out what computers you are home sharing so you can delete some, How can you found out what computers you are home sharing so you can delete some

    How can you find out what computers you are sharing with so you can delete some

    Oh, have you brought up so many good points. Not to take us off-topic, but I could rant all day about Eloqua consulting firms who let low-level employees (Eloqua skill-wise) loose on clients projects. Just not fair for either the employee or client. There was one company that did this to me a few years ago, and since then dozens of people have asked me about them for a reference.  Needless to say, they never get a good one from me, and have likely lost hundreds of thousands of dollars in projects because of this. Not worth it in the long-run to cut corners.
    Back to the topic at hand....
    You really hit the nail on the head in so many ways. It really all does come down to one thing: hard work. There are no shortcuts. Always keep learning. Embrace every Eloqua challenge you can, and never say never.  Never be fearful of being wrong by asking something 'silly', or 'looking stupid'. I remember several times that I've submitted Eloqua support tickets, or tickets to other related vendors about things that I was convinced were bugs/major issues. Turned out to be my mistake. But that's ok. You brush off, stand back up, and learn from them.
    And finally, be modest.  You will never know everything about Eloqua. Be willing to learn from others, and know that there actually may be a better way to do something than you may have spent days or weeks working on.

Maybe you are looking for