* How to get ethernet number of a running DECsystem? @ 1994-01-03 8:54 Uwe Schuerkamp 1994-01-03 14:06 ` Eiji Hirai 0 siblings, 1 reply; 3+ messages in thread From: Uwe Schuerkamp @ 1994-01-03 8:54 UTC (permalink / raw) Dear netters, can anyone tell me how to determine the physical ethernet address of an Ultrix host running in multi-user mode? I would like to set up an ethers file for etherman to convert numbers to names, but so far I have found no way of obtaining the address. Please make any answers via email and I'll summarize if there's interest. Thanks in advance, hoover -- ,__o Uwe "Hoover" Schuerkamp //////\\\\\ hoover@mathematik.uni-bielefeld.de _-\_<, "[...] I certainly don't consider it as important a problem as that of (*)/'(*) underprepared, incapable persons pointing 2000+ lb. unguided missiles down public roads." --- Kent Polk on c.s.a.advocacy ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: How to get ethernet number of a running DECsystem? 1994-01-03 8:54 How to get ethernet number of a running DECsystem? Uwe Schuerkamp @ 1994-01-03 14:06 ` Eiji Hirai 1994-01-03 15:20 ` Andy Jaworski 0 siblings, 1 reply; 3+ messages in thread From: Eiji Hirai @ 1994-01-03 14:06 UTC (permalink / raw) hoover@mathematik.uni-bielefeld.de (Uwe Schuerkamp) writes: : can anyone tell me how to determine the physical ethernet address of : an Ultrix host Compile the code below and run it. -- hirai@cc.swarthmore.edu (Eiji Hirai) | Unix Geek for Swarthmore College I don't speak for Swarthmore College | Computing Center, Swarthmore, PA, USA "I post, therefore I am." -Rene Descartes on Usenet /* * Newsgroups: comp.unix.ultrix * From: jm@decuk.uvo.dec.com (John McNulty) * Subject: Re: Help : Copy * Message-ID: <1992Oct16.072054.783@decuk.uvo.dec.com> * Organization: Digital Equipment Co. Ltd * Date: Fri, 16 Oct 1992 07:20:54 GMT */ #include <stdio.h> #include <sys/ioctl.h> #include <sys/socket.h> #include <netinet/in.h> #include <net/if.h> int main (int argc, char *argv[]) { int s; struct ifdevea i; if ( argc != 2 ) { fprintf (stderr, "usage: %s interface\n", argv[0]); exit (1); } if ((s = socket (AF_INET, SOCK_STREAM, 0)) == -1) { perror ("socket"); exit (1); } strncpy (i.ifr_name, argv[1], sizeof (i.ifr_name)); if (ioctl (s, SIOCRPHYSADDR, &i) == -1) { perror ("ioctl"); exit (1); } printf ("%s: %x-%x-%x-%x-%x-%x\n", i.ifr_name, i.default_pa[0], i.default_pa[1], i.default_pa[2], i.default_pa[3], i.default_pa[4], i.default_pa[5]); exit (0); } ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: How to get ethernet number of a running DECsystem? 1994-01-03 14:06 ` Eiji Hirai @ 1994-01-03 15:20 ` Andy Jaworski 0 siblings, 0 replies; 3+ messages in thread From: Andy Jaworski @ 1994-01-03 15:20 UTC (permalink / raw) In article <2g98og$4jj@larch.cc.swarthmore.edu>, hirai@cc.swarthmore.edu (Eiji Hirai) writes: |> hoover@mathematik.uni-bielefeld.de (Uwe Schuerkamp) writes: |> : can anyone tell me how to determine the physical ethernet address of |> : an Ultrix host |> |> Compile the code below and run it. |> |> -- |> hirai@cc.swarthmore.edu (Eiji Hirai) | Unix Geek for Swarthmore College |> I don't speak for Swarthmore College | Computing Center, Swarthmore, PA, USA |> |> "I post, therefore I am." -Rene Descartes on Usenet |> |> [...code deleted...] |> Another way is to look at the output of the ULTRIX error report formatter (/etc/uerf). It prints a record of system messges including the boot message. It should contain physical addresses of your ethernet ports. -- Andy Jaworski Alcoa Technical Center AMCT-D 100 Technical Drive Alcoa Center, PA 15069 andyj@alcoa.com (132.226.16.20) ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~1994-01-03 15:20 UTC | newest] Thread overview: 3+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 1994-01-03 8:54 How to get ethernet number of a running DECsystem? Uwe Schuerkamp 1994-01-03 14:06 ` Eiji Hirai 1994-01-03 15:20 ` Andy Jaworski
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox