niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » *nix » BSD » OpenBSD
Hardware Identification (NICs)
Post new topic   Reply to topic Page 1 of 1 [7 Posts] View previous topic :: View next topic
Author Message
Shane (aka froggy)
*nix forums beginner


Joined: 23 Feb 2005
Posts: 41

PostPosted: Fri Mar 11, 2005 6:15 pm    Post subject: Re: Hardware Identification (NICs) Reply with quote

On Fri, 11 Mar 2005 10:45:33 +0000, Justins local account wrote:

Quote:
"Shane (aka froggy)" <spamspamuber.l33t.god@spamgmail.com> writes:


what I want is to issue a command at a prompt that will tell me the NIC's
I have installed on my box

the problem is I want only the 'rl0' or 'xl0' or w/ever the case may be

My guess is some grep or other needs piping in.. but guesses so far havent
got the desired result

ifconfig -a | awk -F: '/^[^ \t]+:/{print $1}'

Thanks Justin that did the trick
if I was to put that regexp into words would it read
anchored to the beginning with no spaces or tabs of any number until the
colon then print?

--

Hardware, n.: The parts of a computer system that can be kicked
Back to top
Shane (aka froggy)
*nix forums beginner


Joined: 23 Feb 2005
Posts: 41

PostPosted: Fri Mar 11, 2005 6:12 pm    Post subject: Re: Hardware Identification (NICs) Reply with quote

On Fri, 11 Mar 2005 12:48:14 +0000, jpd wrote:

Quote:
Begin <ay8y4usboy.fsf@bsdclient1.pipemedia.net
On 2005-03-11, Justins local account <justin-nntp@pipemedia.net> wrote:
ifconfig -a | awk -F: '/^[^ \t]+:/{print $1}'

Doesn't the openbsd ifconfig have an -l option?

unfortunately no it doesnt
--

Hardware, n.: The parts of a computer system that can be kicked
Back to top
jpd
*nix forums Guru


Joined: 22 Feb 2005
Posts: 877

PostPosted: Fri Mar 11, 2005 2:00 pm    Post subject: Re: Hardware Identification (NICs) Reply with quote

Begin <ay4qfis2qs.fsf@bsdclient1.pipemedia.net>
On 2005-03-11, Justins local account <justin-nntp@pipemedia.net> wrote:
Quote:
jpd <read_the_sig@do.not.spam.it.invalid> writes:

Begin <ay8y4usboy.fsf@bsdclient1.pipemedia.net
On 2005-03-11, Justins local account <justin-nntp@pipemedia.net> wrote:
ifconfig -a | awk -F: '/^[^ \t]+:/{print $1}'

Doesn't the openbsd ifconfig have an -l option?

Umm, I was answering the question asked (lame)

OP said he _guessed_ to have to resort to <handwave> greps and pipes </>,
which is a bit of a giveaway, methinks. But anyway.


Quote:
I'd assumed the OP had RTFM, so didn't do so myself (still lame but
true). One day I'll learn.

:-)


--
j p d (at) d s b (dot) t u d e l f t (dot) n l .
Back to top
Justins local account
*nix forums beginner


Joined: 10 Mar 2005
Posts: 20

PostPosted: Fri Mar 11, 2005 12:58 pm    Post subject: Re: Hardware Identification (NICs) Reply with quote

jpd <read_the_sig@do.not.spam.it.invalid> writes:

Quote:
Begin <ay8y4usboy.fsf@bsdclient1.pipemedia.net
On 2005-03-11, Justins local account <justin-nntp@pipemedia.net> wrote:
ifconfig -a | awk -F: '/^[^ \t]+:/{print $1}'

Doesn't the openbsd ifconfig have an -l option?

Umm, I was answering the question asked (lame)

I'd assumed the OP had RTFM, so didn't do so myself (still lame but
true). One day I'll learn.
--
Justin Murdock
Back to top
jpd
*nix forums Guru


Joined: 22 Feb 2005
Posts: 877

PostPosted: Fri Mar 11, 2005 11:48 am    Post subject: Re: Hardware Identification (NICs) Reply with quote

Begin <ay8y4usboy.fsf@bsdclient1.pipemedia.net>
On 2005-03-11, Justins local account <justin-nntp@pipemedia.net> wrote:
Quote:
ifconfig -a | awk -F: '/^[^ \t]+:/{print $1}'

Doesn't the openbsd ifconfig have an -l option?


--
j p d (at) d s b (dot) t u d e l f t (dot) n l .
Back to top
Justins local account
*nix forums beginner


Joined: 10 Mar 2005
Posts: 20

PostPosted: Fri Mar 11, 2005 9:45 am    Post subject: Re: Hardware Identification (NICs) Reply with quote

"Shane (aka froggy)" <spamspamuber.l33t.god@spamgmail.com> writes:


Quote:
what I want is to issue a command at a prompt that will tell me the NIC's
I have installed on my box

the problem is I want only the 'rl0' or 'xl0' or w/ever the case may be

My guess is some grep or other needs piping in.. but guesses so far havent
got the desired result

ifconfig -a | awk -F: '/^[^ \t]+:/{print $1}'
--
Justin Murdock
Back to top
Shane (aka froggy)
*nix forums beginner


Joined: 23 Feb 2005
Posts: 41

PostPosted: Fri Mar 11, 2005 7:20 am    Post subject: Hardware Identification (NICs) Reply with quote

I'm not sure how to google for this (that should cover my ass for some
flames)
what I want is to issue a command at a prompt that will tell me the NIC's
I have installed on my box
now before I get overloaded with 'ifconfig -a' or 'man ifconfig' replys
the problem is I want only the 'rl0' or 'xl0' or w/ever the case may be
My guess is some grep or other needs piping in.. but guesses so far havent
got the desired result
Also dmesg is no good because its also giving too much info
TIA
--
Hardware, n.: The parts of a computer system that can be kicked
\|/ ____ \|/
"@'/ ,. \'@"
/__|\__/|__\
\__U_/
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [7 Posts] View previous topic :: View next topic
The time now is Thu Jan 08, 2009 1:13 pm | All times are GMT
navigation Forum index » *nix » BSD » OpenBSD
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts mailserver backup (hardware change) Pol Hallen Debian 0 Wed Jul 19, 2006 1:40 pm
No new posts Squid capacity for hardware sekar it Squid 0 Wed Jul 19, 2006 8:53 am
No new posts Panic: Kernel trap, hardware diag failure Christian Speck FreeBSD 5 Wed Jul 12, 2006 3:19 pm
No new posts Interaction with system hardware with c++ prashant C++ 4 Tue Jul 11, 2006 7:21 am
No new posts Software vs. Hardware RAID 1 x0054 hardware 6 Mon Jul 10, 2006 11:57 pm

Payday Loans | Advertising | Bankruptcy | Personal Loans | Pocket PC Shareware
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.2176s ][ Queries: 20 (0.1282s) ][ GZIP on - Debug on ]