Mac: number of bytes transmitted over interface
up vote
7
down vote
favorite
On linux, I'm used to typing ifconfig
and looking for the line with "RX bytes" and "TX bytes" in it to find out how many bytes have been received and transmitted over a particular interface since boot. The line looks like this:
RX bytes:106951129 (101.9 MB) TX bytes:1577761831 (1.4 GB)
I tried running the same command in a terminal on a Mac (OS X, version 10.4.11) but didn't see this data anywhere. How do I get the same information from a Mac?
Edit: This is a test server, meant to simulate a typical out-of-the-box Mac install. So I need to avoid installing any programs if I can. A command-line tool would be ideal.
macos networking network-adapter monitoring
add a comment |
up vote
7
down vote
favorite
On linux, I'm used to typing ifconfig
and looking for the line with "RX bytes" and "TX bytes" in it to find out how many bytes have been received and transmitted over a particular interface since boot. The line looks like this:
RX bytes:106951129 (101.9 MB) TX bytes:1577761831 (1.4 GB)
I tried running the same command in a terminal on a Mac (OS X, version 10.4.11) but didn't see this data anywhere. How do I get the same information from a Mac?
Edit: This is a test server, meant to simulate a typical out-of-the-box Mac install. So I need to avoid installing any programs if I can. A command-line tool would be ideal.
macos networking network-adapter monitoring
add a comment |
up vote
7
down vote
favorite
up vote
7
down vote
favorite
On linux, I'm used to typing ifconfig
and looking for the line with "RX bytes" and "TX bytes" in it to find out how many bytes have been received and transmitted over a particular interface since boot. The line looks like this:
RX bytes:106951129 (101.9 MB) TX bytes:1577761831 (1.4 GB)
I tried running the same command in a terminal on a Mac (OS X, version 10.4.11) but didn't see this data anywhere. How do I get the same information from a Mac?
Edit: This is a test server, meant to simulate a typical out-of-the-box Mac install. So I need to avoid installing any programs if I can. A command-line tool would be ideal.
macos networking network-adapter monitoring
On linux, I'm used to typing ifconfig
and looking for the line with "RX bytes" and "TX bytes" in it to find out how many bytes have been received and transmitted over a particular interface since boot. The line looks like this:
RX bytes:106951129 (101.9 MB) TX bytes:1577761831 (1.4 GB)
I tried running the same command in a terminal on a Mac (OS X, version 10.4.11) but didn't see this data anywhere. How do I get the same information from a Mac?
Edit: This is a test server, meant to simulate a typical out-of-the-box Mac install. So I need to avoid installing any programs if I can. A command-line tool would be ideal.
macos networking network-adapter monitoring
macos networking network-adapter monitoring
edited Sep 27 '14 at 1:30
Journeyman Geek♦
112k43216365
112k43216365
asked Sep 1 '09 at 14:58
Douglas Squirrel
24337
24337
add a comment |
add a comment |
3 Answers
3
active
oldest
votes
up vote
8
down vote
netstat -ib
seems to do the trick. Thanks to nik for pointing in the right direction. (Putting the result in a new answer so as not to make future readers dig through comments.)
From user Girish: Just building on this answer,netstat -ib -I en0
would return the stats for a specific interface.
– fixer1234
Dec 9 at 0:32
add a comment |
up vote
0
down vote
The easiest way I know of seeing bytes in/out over an interface (w/o command line) is with MenuMeters. You can see all that info right on the top bar so it's always visually accessible.
This mac is a test server so I don't want to install stuff on it if I can avoid it. I need a command-line tool if at all possible. I'll edit the question to say that.
– Douglas Squirrel
Sep 1 '09 at 15:41
Whoops. Sorry, I thought this was for a desktop. :)
– osij2is
Sep 1 '09 at 15:54
add a comment |
up vote
0
down vote
Try ifconfig -a
.
But, I suspect there is a better command for the OSX.
It is discouraged to use the ifconfig
command in OSX like its used in Linux.
check networksetup
or netstat
.
ifconfig -a doesn't have the number of bytes (or if it does, I can't find it). networksetup doesn't seem to be available, and netstat (and netstat -a) doesn't seem to have it either.
– Douglas Squirrel
Sep 1 '09 at 15:40
I expected "netstat -i en0
" kind of command for the first Ethernet interface.
– nik
Sep 1 '09 at 15:49
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f33690%2fmac-number-of-bytes-transmitted-over-interface%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
8
down vote
netstat -ib
seems to do the trick. Thanks to nik for pointing in the right direction. (Putting the result in a new answer so as not to make future readers dig through comments.)
From user Girish: Just building on this answer,netstat -ib -I en0
would return the stats for a specific interface.
– fixer1234
Dec 9 at 0:32
add a comment |
up vote
8
down vote
netstat -ib
seems to do the trick. Thanks to nik for pointing in the right direction. (Putting the result in a new answer so as not to make future readers dig through comments.)
From user Girish: Just building on this answer,netstat -ib -I en0
would return the stats for a specific interface.
– fixer1234
Dec 9 at 0:32
add a comment |
up vote
8
down vote
up vote
8
down vote
netstat -ib
seems to do the trick. Thanks to nik for pointing in the right direction. (Putting the result in a new answer so as not to make future readers dig through comments.)
netstat -ib
seems to do the trick. Thanks to nik for pointing in the right direction. (Putting the result in a new answer so as not to make future readers dig through comments.)
answered Sep 1 '09 at 16:18
Douglas Squirrel
24337
24337
From user Girish: Just building on this answer,netstat -ib -I en0
would return the stats for a specific interface.
– fixer1234
Dec 9 at 0:32
add a comment |
From user Girish: Just building on this answer,netstat -ib -I en0
would return the stats for a specific interface.
– fixer1234
Dec 9 at 0:32
From user Girish: Just building on this answer,
netstat -ib -I en0
would return the stats for a specific interface.– fixer1234
Dec 9 at 0:32
From user Girish: Just building on this answer,
netstat -ib -I en0
would return the stats for a specific interface.– fixer1234
Dec 9 at 0:32
add a comment |
up vote
0
down vote
The easiest way I know of seeing bytes in/out over an interface (w/o command line) is with MenuMeters. You can see all that info right on the top bar so it's always visually accessible.
This mac is a test server so I don't want to install stuff on it if I can avoid it. I need a command-line tool if at all possible. I'll edit the question to say that.
– Douglas Squirrel
Sep 1 '09 at 15:41
Whoops. Sorry, I thought this was for a desktop. :)
– osij2is
Sep 1 '09 at 15:54
add a comment |
up vote
0
down vote
The easiest way I know of seeing bytes in/out over an interface (w/o command line) is with MenuMeters. You can see all that info right on the top bar so it's always visually accessible.
This mac is a test server so I don't want to install stuff on it if I can avoid it. I need a command-line tool if at all possible. I'll edit the question to say that.
– Douglas Squirrel
Sep 1 '09 at 15:41
Whoops. Sorry, I thought this was for a desktop. :)
– osij2is
Sep 1 '09 at 15:54
add a comment |
up vote
0
down vote
up vote
0
down vote
The easiest way I know of seeing bytes in/out over an interface (w/o command line) is with MenuMeters. You can see all that info right on the top bar so it's always visually accessible.
The easiest way I know of seeing bytes in/out over an interface (w/o command line) is with MenuMeters. You can see all that info right on the top bar so it's always visually accessible.
answered Sep 1 '09 at 15:09
osij2is
1,8321323
1,8321323
This mac is a test server so I don't want to install stuff on it if I can avoid it. I need a command-line tool if at all possible. I'll edit the question to say that.
– Douglas Squirrel
Sep 1 '09 at 15:41
Whoops. Sorry, I thought this was for a desktop. :)
– osij2is
Sep 1 '09 at 15:54
add a comment |
This mac is a test server so I don't want to install stuff on it if I can avoid it. I need a command-line tool if at all possible. I'll edit the question to say that.
– Douglas Squirrel
Sep 1 '09 at 15:41
Whoops. Sorry, I thought this was for a desktop. :)
– osij2is
Sep 1 '09 at 15:54
This mac is a test server so I don't want to install stuff on it if I can avoid it. I need a command-line tool if at all possible. I'll edit the question to say that.
– Douglas Squirrel
Sep 1 '09 at 15:41
This mac is a test server so I don't want to install stuff on it if I can avoid it. I need a command-line tool if at all possible. I'll edit the question to say that.
– Douglas Squirrel
Sep 1 '09 at 15:41
Whoops. Sorry, I thought this was for a desktop. :)
– osij2is
Sep 1 '09 at 15:54
Whoops. Sorry, I thought this was for a desktop. :)
– osij2is
Sep 1 '09 at 15:54
add a comment |
up vote
0
down vote
Try ifconfig -a
.
But, I suspect there is a better command for the OSX.
It is discouraged to use the ifconfig
command in OSX like its used in Linux.
check networksetup
or netstat
.
ifconfig -a doesn't have the number of bytes (or if it does, I can't find it). networksetup doesn't seem to be available, and netstat (and netstat -a) doesn't seem to have it either.
– Douglas Squirrel
Sep 1 '09 at 15:40
I expected "netstat -i en0
" kind of command for the first Ethernet interface.
– nik
Sep 1 '09 at 15:49
add a comment |
up vote
0
down vote
Try ifconfig -a
.
But, I suspect there is a better command for the OSX.
It is discouraged to use the ifconfig
command in OSX like its used in Linux.
check networksetup
or netstat
.
ifconfig -a doesn't have the number of bytes (or if it does, I can't find it). networksetup doesn't seem to be available, and netstat (and netstat -a) doesn't seem to have it either.
– Douglas Squirrel
Sep 1 '09 at 15:40
I expected "netstat -i en0
" kind of command for the first Ethernet interface.
– nik
Sep 1 '09 at 15:49
add a comment |
up vote
0
down vote
up vote
0
down vote
Try ifconfig -a
.
But, I suspect there is a better command for the OSX.
It is discouraged to use the ifconfig
command in OSX like its used in Linux.
check networksetup
or netstat
.
Try ifconfig -a
.
But, I suspect there is a better command for the OSX.
It is discouraged to use the ifconfig
command in OSX like its used in Linux.
check networksetup
or netstat
.
edited Sep 1 '09 at 15:18
answered Sep 1 '09 at 15:13
nik
48.2k786132
48.2k786132
ifconfig -a doesn't have the number of bytes (or if it does, I can't find it). networksetup doesn't seem to be available, and netstat (and netstat -a) doesn't seem to have it either.
– Douglas Squirrel
Sep 1 '09 at 15:40
I expected "netstat -i en0
" kind of command for the first Ethernet interface.
– nik
Sep 1 '09 at 15:49
add a comment |
ifconfig -a doesn't have the number of bytes (or if it does, I can't find it). networksetup doesn't seem to be available, and netstat (and netstat -a) doesn't seem to have it either.
– Douglas Squirrel
Sep 1 '09 at 15:40
I expected "netstat -i en0
" kind of command for the first Ethernet interface.
– nik
Sep 1 '09 at 15:49
ifconfig -a doesn't have the number of bytes (or if it does, I can't find it). networksetup doesn't seem to be available, and netstat (and netstat -a) doesn't seem to have it either.
– Douglas Squirrel
Sep 1 '09 at 15:40
ifconfig -a doesn't have the number of bytes (or if it does, I can't find it). networksetup doesn't seem to be available, and netstat (and netstat -a) doesn't seem to have it either.
– Douglas Squirrel
Sep 1 '09 at 15:40
I expected "
netstat -i en0
" kind of command for the first Ethernet interface.– nik
Sep 1 '09 at 15:49
I expected "
netstat -i en0
" kind of command for the first Ethernet interface.– nik
Sep 1 '09 at 15:49
add a comment |
Thanks for contributing an answer to Super User!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f33690%2fmac-number-of-bytes-transmitted-over-interface%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown