Click here to Skip to main content
Sign Up to vote bad
good
See more: C++Linux
Needed C/C++ code which returns MAC address on on solaris platform without root user..
Posted 10 Jan '13 - 20:27

Comments
Richard MacCutchan - 11 Jan '13 - 4:30
This sort of information is for root user only; and with good reason.
Jochen Arndt - 11 Jan '13 - 8:57
I don't know Solaris. But with Linux, this information can be grepped from the boot.msg log file which is readable for all users. If there is a similar file with Solaris, you might parse it.
Albert Holguin - 13 Jan '13 - 8:54
that's a good suggestion... I haven't used Solaris since way back in the day... so I can't remember much about this type of stuff

1 solution

Its been a very long time since I've played with Solaris but if I recall you can get it by running system("arp hostname") and parsing the results.
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Your Filters
Interested
Ignored
     
0 Sergey Alexandrovich Kryukov 508
1 Arun Vasu 315
2 Maciej Los 218
3 OriginalGriff 205
4 Aarti Meswania 170
0 Sergey Alexandrovich Kryukov 9,670
1 OriginalGriff 7,409
2 CPallini 3,968
3 Rohan Leuva 3,352
4 Maciej Los 2,861


Advertise | Privacy | Mobile
Web02 | 2.6.130523.1 | Last Updated 19 Jan 2013
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid