Any unix commands to view network status & activity using the terminal?

I don't use the terminal much and was wondering if there are any unix network commands that let you view packet contents, connection status and other network information. I'm not interested in making any changes, I just want to use the terminal to get network and related information.
Thanks in advance to anybody who answers.
- Mark
G4/450MHz Sawtooth   Mac OS X (10.4.7)  

Hi Mark,
   There are tons of commands; it would help to know what you want to know. You can monitor the status of all ports with:
sudo lsof +Mi
That will display all network connections and all listening daemons. A command that is similar to that is:
netstat -a -f inet
Of course netstat specializes in network information and there are lots of different stats it will display.
   If you run a firewall, it keeps stats on rule matches. You can see them with:
sudo ipfw -atdN list
   As has already been mentioned, Mac OS X comes with tcpdump but there's only one great packet sniffer: Ethereal. It doesn't come with OS X but if you have X11, it can be installed with a packet manager like Fink.
   Finally, many running services keep their own stats or logs. You would have to read up on the ones you're running to see what information they provide.
Gary
~~~~
   A diplomat is man who always remembers a woman's
   birthday but never her age.
         -- Robert Frost

Similar Messages

  • Does anyone know the command and sequence to empty trash using the Terminal utility?

    Does anyone know the command and sequence to empty trash using the Terminal utility?

    Hi d,
    1. Open Terminal (in Applications, Utilities).
    2. Copy and paste the following command into theTerminal window (or type it exactly as follows):
    sudo rm -rf ~/.Trash/*
    3. Press Return.
    4. Type in your password when asked (note: you will not see anything being entered as you type your password).
    5. Hit Return.
    6.Wait until the process finishes/the Terminal prompt returns.
    7. Quit Terminal.

  • I cannot see my itunes library on the main menu under computers despite the network being active and the home sharing on on both the devices the mac and apple tv. Any ideas?

    I cannot see my itunes library on the main menu under computers despite the network being active and the home sharing on on both the devices the mac and apple tv. Any ideas?

    Hi Monty,
    Sorry to say it, but this is normal for Apple TVs. I've owned a TV2 and a TV3, and neither lasted for an entire year. They are quite fragile and of low quality, and as you can see here, quite fussy even when they work. The wi-fi receiver on these are cheap and unreliable.
    Consider the $99 an annual rental fee. They rarely work for a whole year, so if you are going to use the platform, you will have to replace them constantly.
    Also, when one dies under warranty, never, never send it to Apple for repair. Go to the Apple Store for replacement. I sent my ATV3 in for warranty repair using a box sent to me by Apple, and although FedEx tracking showed it was accepted by Apple, it was never seen again. Apple won't replace it or even return my calls.

  • Any UNIX command to defragment?

    Hello Apple Discussions Community.
    I would like to know if there is, same as "fsck -fy" to repair the HD, any UNIX command on Verbose Mode to optimize or defragment the Hard Drive. Thanks.

    Limnos wrote:
    OSX doesn't come with a defragment utility.
    That is not entirely correct.
    OS X continuously and automatically defragments files under 20MB. If you have many files larger than that, you can use a utility such as iDefrag. However, many say that the best and fastest way to defragment a large volume of large files is to back up, erase volume, restore volume. This is definitely a lot easier and faster than running a defragmentation utility. Possibly safer too, as extended defragmentation sessions can really hammer your hard disk heads.
    Also, you may want to read this article that describes why the obsession with defragmentation in other file systems doesn't always apply to OS X, because of the efficient way OS X writes to disk in the first place. That combined with OS X auto-defragmentation means there is a lot less reason to defrag in OS X.
    It mentions the sheer folly of running a defrag utility for several hours in order to speed up disk access time by a few seconds total. So, you saved how much time?

  • Texting and actively using the edge network

    if im actively using the edge network, like if im using an App like AOL Radio or searching on the web...and then someone texts me during that time, what happens to the text? will it show up after im done?....
    i have the original iPhone

    Yes, it will show up when you have finished actively accessing the web. It's a limitation of Edge.

  • HT1947 Does anyone else have my problem with atv3? Plays films in iTunes without any problems but on music every time I use the remote app on my iPhone 3GS it stops playing after around 5 tracks in. Anyone having this problem?

    Does anyone share my problem with atv3 I can play films through iTunes without any problems. When I start playing music using the remote app on my iPhone 3GS after around 5 tracks in it just stops playing and seems to lose my connection. Hoping this is human error on my part?

    I think this is probably a sign that your network could be better than it is.
    Intermittent problems are often a result of interference. Interference can be caused by other networks in the neighbourhood or from household electrical items.
    You can download and install iStumbler (NetStumbler for windows users) to help you see which channels are used by neighbouring networks so that you can avoid them, but iStumbler will not see household items.
    Refer to your router manual for instructions on changing your wifi channel or adjusting your multicast rate.
    There are other types of problems that can affect networks, but this is by far the most common, hence worth mentioning first.

  • Quicklook does not work with WMV files and quick look no longer maintains resized views when viewing from a folder using the up/down arrows

    Quicklook does not work with WMV files and quick look no longer maintains resized views when viewing from a folder using the up/down arrows. Any fixes?

    Same problem here...

  • Pages app unexpectedly quit whilst I was in the middle of a document. I can now not open it AT ALL. I find it's not just that particular document that won't open, but any of my Pages docs will not open using the current version of Pages. Any help?

    Pages app unexpectedly quit whilst I was in the middle of a document. I can now not open it AT ALL. I find it's not just that particular document that won't open, but any of my Pages docs will not open using the current version of Pages. The reports of the app unexpectedly closing each time, automatically went to Apple, but I am not sure what happens with them then. Does anyone know how to help me with this? We live in a very isolated region so rely on internet help. Thanks

    I also managed to read a few other discussions about Pages and files not being able to open. I actually went to the last back-up and restored the computer from that and everything seemed to work ok again, which is great!...advice from another discussion I think you may have been involved in PeterB. Thanks for the advice...also this advice, as I will make a note of trying to open using the Shift key if it happens again and see what happens...might be an easier first option than restoring from a back-up. Thans heaps for the help!
    I was interested to read some of the other discussions where it was stated that Pages '09 seems to be a better option to use. I have both installed, so I will lkeep this in mind. Thanks heaps!

  • Another network device is using the same IP adress!!!!!

    suddenly appeared on my MacBook Pro a notice that says: (another network device is using the IP address of this computer), I would like to know which is the reason of this notice ????? thanks for your help.

    It means another computer, router, phone, etc. likely has a static ip address that is within the scope of your computer's DHCP assigned address or your computer has a statically assigned address that is being assigned by your DHCP server to another device on your network.
    Or, a neighbor has connected to your network with a device with a static ip address that is within the scope of your DHCP assigned addresses.
    Or, you are having a DHCP server issue. Try rebooting all your devices.

  • My notification center (windows 7 64 bit) disappear from time to time, any idea? (When it disappears, I cannot use the special keyboard functions like sound...

    My notification center (windows 7 64 bit) disappear from time to time, any idea?
    When it disappears, I cannot use the special keyboard functions like sound,brightness...
    Thanks!

    How is Acrobat 8 not fully Windows 7 compatible?  I see discussions on this Adobe Community saying how Acrobat 8 does work on Windows 7 and with 64-bit.  It appears that if Acrobat 8 is updated to the latest version, then this should fix AA8-Win7 issues.  And I am at the latest AA8 version, 8.3.1. 
    And how are Acrobat 8 and Reader XI are not compatible?  I have always had Acrobat and Reader installed on the same PC, without ever having any issues.  And Adobe allows the installation of one after the other.  So apparently Adobe allows them both to exist together.  If they are incompatible, then why would Adobe allow them to exist together? 
    Anyway, I did uninstall the FileOpen Plug-in and the Reader XI, then reinstalled the FileOpen Plug-in.  So now Reader is not installed and only Acrobat 8 is installed.  I then tried to load the PDF file, but I still get the Acrobat 8 error described above. 

  • Any way to find out which apps I use the most?

    Sometimes there are apps that I don't realize I use a lot. Is there any way to find out which apps I use the most, so I can put those on my first home screen?

    I'd keep and eye on your multitask bar. This tells me what apps I use and often forget I've been in that day.

  • My iphone has been lost and already reported to the police is there any solution to get my phone imie? using the phone serial number?

    My iphone has been lost and already reported to the police is there any solution to get my phone imie? using the phone serial number?
    Help me pls

    http://support.apple.com/kb/HT4061

  • Is there an ARD command or Unix command that I can send to reset the desktop background image to default?

    I was forced to create a local user with an automatic login on all of the machines in the building. I listed off many various issues that could come arise by doing this but was tuned out. Now people are changing all of the desktop backgrounds to some pretty inappropriate images. I forewarned the person ordering this that this may be one of the many issues that would arise when doing away with our server based logins, and now I am charged with fixing every desktop every time someone changes it to something inappropriate.
    Is that an Apple Remote Desktop command or a Unix command that I can send through ARD v3.5.3 to the machines to reset the desktop background image to the default Aqua Blue jpeg image located in the /MacintoshHD/Library/Desktop\ Pictures/Aqua\ Blue.jpg.
    The machines that I am dealing with have OS X 10.4.11, OS X 10.5.8, OS X 10.6.8, and OS X 10.7.4 installed on them, but the OS X 10.4.11 machines are the ones that are creating the biggest issue so I would like to deal with those first.

    Ya, I'd love to have the computers connected to the Xserver, unfortunately against my heeding, I was ordered to take them off of the Xserver, so they only have a local account that automatically logs in on startup, and even though I have Parental Controls set, I can not stop them from going to Safari, selecting an inappropriate image and setting it as the background, so now I’ve been ordered to fix all of the backgrounds that people are messing with.
    My Xserver is running OS X 10.4.11 Server Edition. Yes, I would love a new server, but that’s not happening due to budget cuts.
    So what I am hoping for is a command that I can put into Apple Remote Desktop v3.5.3 and push out to all of the computers via its Unix commands and reset all the desktops to their default image.

  • Stolen iPhone 4S...any way to track it? other than using the Find My Iphone app

    Hi. So yesterday, my iPhone 4S got stolen while I was in PE class.
    Immediately after I realized that it was gone, I called my dad and he cancelled the service for me (Verizon) so that the person who stole it would not be able to use it.
    I've been checking my phone's status on the Find My iPhone app regularly, but it keeps saying that it's offline.
    So I was wondering, are there any other apps, websites, ANYTHING that I can use to find out where my phone is or turn it on? (so i can track it..)
    also, i didnt have iCloud on that phone.
    (as in i didnt turn it on on the phone itself)
    is there a way to get all my photos that i had on my old phone back?
    for example, if i get a new iphone, would i still be able to transfer the photos that were on my stolen iphone onto my new phone? (without iCloud....just using the same apple id user and pass)
    Thanks.
    O and one more thing..I read on other sites that I shouldn't contact the police because they just file a report and put the case aside.
    Do you recommend that I still report it to the police..just in case?

    Just so you don't hold on to that sinking feeling for not taking out every possible precaution aside from just leaving your phone at home and not using it...  after having your phone stolen or .. lost: 
    I paid the insurance to cover loss or damage for two year... (really dumb of me since the deductible is $200. USD: more than I can buy the exact phone online and more than I could have sold mine if I had sold it online; (iphone 4 -32g).  So don't kick yourself for not having insurance if you didn't. 
    I had all apps turned on: PhotoStream (which would have had to be active on your phone in order to retrieve photos to your pc or your mac now that it is lost).  However, it is only as good as the last internet connection you were on and only if your were on that connection long enough for the photos to upload to photo stream.  I was able to cover photos from Beijing and not the remaining 3/4 of my trip's photos. 
    Any photo app you may have been using most likely has an online access.  Did you download a photo app?  Start there.  Do you have an itunes account?  You can see what apps you have downloaded from there.  If you use a mac you can see the photos in photo stream, (a sunflower icon).
    Even if you had registered and jumped through all the hoops keeping app and updates up to par and a security passcode in place on the phone itself, your i phone tracking is not going to work at all unless the user is able to connect to the internet.  This is not going to happen unless they can access the internet by having your passcode.  So this tracking system, insurance and protection code is in most all cases a false since of security.  It doesn't help you 95% of the time... i am guessing. 
    The except is possible I know.   I found two iphones one time and saw the owners request to call them that was sent from the tracking system.  I called and returned their phones.   The people who have my phone have most likely dismantled it and are using the parts to recreate replications....  i lost it in China, lol.   where I saw massive fake reproduction within buildings that consume 7-15 floors and about 8 city blocks.  So, it isn't always about your information: in this case they wanted the hardware.  Which brings up the next point.
    In the iphone tracking portion of icloud.com there is an option to erase the phone.  I am not sure if this makes it unusable for the new owner of default or if it just clears your crap so they can actually use the phone.   I've left my stuff on the phone thinking it is most likely already in pieces.  (a kinda Frankenstein-ish feeling when I think about it).   If you erase you phone via the icloud it seems you are no longer able to track it.  it cuts all of your ties and abilities to do anything... if you could do something.  ...  hmmm.
    So, do not bother with phone carrier insurance on phones: better to make sure it is covered in a home renter's or owner's policy.  You have to specifically ask this of your agent or it is not a part of your coverage. This will cost you less than the usual cell phone insurance, shouldn't be more than $5. per month.  (i paid $10!!  ....  should be a class action going on somewhere around that in itself).   Phone carrier insurance is a scam from A to Z these days... don't fall for it like I did.  Yes, it was once a useful tool. Just make sure your home owner/renters ins deductible is not the same value as the phone. 
    So, do not fret that you did not have this "service" activated.  Do however, check to see if you can download Photo Stream to any computer and access your last uploaded pictures from the phone.  This application was most likely on your phone.  Although you would have had to tie it to an account on the phone in order to tap into photo in a cloud of sorts. 
    Hope this helps if nothing more but to ease the pain. 
    ferfer

  • How do you add an iTunes Gift Card so that all purchases of any members of a Family Sharing Group can use the credit?

    How can all family members of a Family Sharing Group use a gift card that has been been applied to the iTunes master account? I added a gift card to our master iTunes account for my grandson, and even though he's a family sharing group member, none of the purchases I have approved from his requests have used the gift card credit. A search of the iTunes support site failed to turn up anything that even remotely addresses this topic. It would seem reasonable to assume that any purchase made by any family member should be able to use the gift card credit since all purchases go through the master account, but this does not appear to be the case.

    Regarding your statement about the gift card balance being used if redeemed to the organizers account - http://www.apple.com/feedback.
    Regarding redeeming the gift card to the child's account, it is the same as redeeming to yours.  You have to be signed in to the iTunes store using the child's apple ID, then redeem the gift card there.  If you already redeemed the card on your ID, you won't be able to redeem it again.
    Redeem and use iTunes Gift Cards and content codes - Apple Support

Maybe you are looking for

  • Item Import Open Interface

    After running Import Items Open Interface the concurrent program gets completed normal.But the item does not come into display in front end.It is not in the back end tables also.

  • Problem with Advanced Table-in-Advanced Table

    Hi all, I have one Advanced Table-in-Advanced Table. I have done everything as mentioned in Jdev guide . But i am getting Null Pointer Exception like java.lang.NullPointerException      at oracle.apps.fnd.framework.webui.OAAdvancedTableHelper.updateI

  • Error in table parameter (file to rfc)

    hi, i debugged file to rfc(bapi wrapper)  sceneario and i did not find data in table parameter. data is perfect in import parameter. plz help me. vijender

  • How to use threads to reconnect a socket to a server in TCP/IP

    I want to know how to reconnect a socket to a server in TCP. Actually i wanted to do reconnection whenever a SocketException for broken connection etc. is thrown in my code. This I want to do for a prespecified number of times for reconnection in cas

  • Multiple cropped panels on 1 page

    Hi there, Iam sure there is an extremely simple answer to this question but I have been unable to find the information. Iam looking to create multiple cropped areas on a landscape a4 sheet. Almost like several small independent post card size pages o