netstat -an
Results 1 to 5 of 5

Thread: netstat -an

  1. #1
    Registered User
    Join Date
    May 2001
    Location
    US
    Posts
    47

    Post netstat -an

    Hello everyone. I have a quick question i hope you could help me with. Is there a way to setup a batch file to show the results of a netstat -an and save it to a text file for logging? Thanks for any help.

  2. #2
    Registered User
    Join Date
    Mar 2001
    Location
    Dorset, UK
    Posts
    103

    Post

    put >lpt1 etc for prtiners or for a file
    >test.txt

    so type netstat -an >stats.txt

    you then get a text file of the screen including the bits that go off the top of the screen.

    Hope this helps
    As I say to all users - Shutup & Re-boot

    www.djrobjones.com - everything House

  3. #3
    Registered User
    Join Date
    May 2001
    Location
    US
    Posts
    47

    Post

    Thanks alot that is exactly what i needed. Have a good day.

  4. #4
    Registered User Higg's Avatar
    Join Date
    Jul 1999
    Posts
    295

    Post

    Originally posted by TeddyRuxspin:
    <STRONG>put >lpt1 etc for prtiners or for a file
    >test.txt

    so type netstat -an >stats.txt

    you then get a text file of the screen including the bits that go off the top of the screen.

    Hope this helps</STRONG>
    use ">>" instead of ">" if you wish to append to rather then create a new file

  5. #5
    Registered User techleet's Avatar
    Join Date
    Oct 2000
    Location
    San Jose, CA, USA
    Posts
    459

    Post

    Originally posted by h166:
    <STRONG>

    use ">>" instead of ">" if you wish to append to rather then create a new file</STRONG>
    Werd. Exactamundo
    DON'T PANIC

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •