About Ryan Stewart Expertise I can answer questions, provide advice and assist with troubleshooting several areas of internet and network security including but not limited to: Windows XP, Windows Server 2003 & 2008, Windows Vista, Windows 7 and Linux operating systems; planning, design, implementation, management & testing in small business, home and home office environments; server and workstation hardware; in-house and remote system auditing; software-based offensive security (penetration and vulnerability testing); software-based defensive security (firewall configuration, encrypting & securing services with SSL, VPN, AV gateway, antivirus, access control, monitoring & intrusion detection); hardware-based security configuration & techniques; Certificate Authority and SSL certificates; wireless security (WEP, WPA, WPA2, 802.1X).
Experience I've been an independent IT consultant for 5 years serving small businesses and home users.
Education/Credentials CISM - Certified Information Security Manager |
CCNA Security - Cisco Certified Network Associate Security |
MCSA - Microsoft Certified Systems Administrator
Question QUESTION: Hi,
when we double click the active network connection icon from the system tray and check the stauts... that is... Activity Sent and Received Packets give use some realtime numbers
how do i get the same numbers in command prompt
i belive the command line is netstat -e (not sure)
can you tell me which is the appropriate and accurate place of method to pull that information from command line
Your help is highly appreciated.. thanks in advance.
Regards,
Inayat.
ANSWER: Inayat,
To view the network traffic packets in the command prompt, use netstat -e (interval). The "interval" parameter re-displays the information every (X) seconds. Since you want to view real-time packet statistics from the command prompt, set the interval to "1". Example: "netstat -e 1". This will show you Sent and Received statistics for network packets including discards and errors, and will continuously update automatically every 1 second until you decide to end the session. Use "Ctrl-c" to stop the automatic updating.
Glad I could help!
-Ryan Stewart
---------- FOLLOW-UP ----------
QUESTION: Thanks a tone for your prompt reply...
just one more question that poped-up in my mind,
the numbers available in the status window and the numbers in netstat -e.. how does the calculation works.
the bytes... doest is means the overall bytes.. if so then is it kb,mb etc.
can you give a small eg. calculation... :)
Regards,
Inayat
Answer Inayat,
The number of bytes under the Received and Sent columns tell you how many single bytes have passed through the network interface since coming online. For example, if it shows 1235062126 Bytes received then that translates to roughly 1.24 gigabytes or 1,235 megabytes of data (1,024 bytes in a kilobyte & 1,024 kilobytes in a megabyte). Keep in mind that everytime the computer is restarted, the number count starts over.
If you have any other questions, don't hesitate to ask!