From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,9b7a4088100a29c1 X-Google-Attributes: gid1164f8,public X-Google-Thread: 10b612,9b7a4088100a29c1 X-Google-Attributes: gid10b612,public X-Google-ArrivalTime: 1992-02-22 05:30:05 PST Xref: sparky comp.unix.ultrix:2737 comp.sys.dec:1668 Path: sparky!uunet!think.com!mips!mips!decwrl!pa.dec.com!shodha.enet.dec.com!alan From: alan@shodha.enet.dec.com ( Alan's Home for Wayward Notes File.) Newsgroups: comp.unix.ultrix,comp.sys.dec Subject: Re: Interregating a DECstation, Ultrix Message-ID: <5689@shodha.enet.dec.com> Date: 22 Feb 92 17:31:14 GMT References: <1992Feb21.210928.26927@amc.com> Followup-To: comp.unix.ultrix Distribution: na Organization: Digital Equipment Corp. - Colorado Springs, CO. In article <1992Feb21.210928.26927@amc.com>, stuart@amc.com (Stuart Poulin) writes: > > I'm looking for one liners someone could use to interregate a > DECstation running Ultrix 4.2. > > Internet Address : /etc/ifconfig ln0 > (Is there a better one for this? Is it > always ln0?) It depends on the machine. The DECsystem 5500 uses a second generation Ethernet adapter that will be called "ne0". You could also have multiple adapters, so you might have to check for ln0 and ln1. As you branch out more systems, the names may change. > > Now, some more I like to know are: > Physical Memory : I think this got asked recently in lots of places... Some of my favorites: # wc -c /dev/mem # kvar -k -s physmem -rl /vmunix addr = 0x-Number-of-pages You can also look in the error log. See the manual page for the command uerf(8). The boot messages are record type 300: # uerf -R -r 300 | grep "real mem" There's also an undocumented op for getsysinfo(2) to get the amount of physical memory. Look in /usr/include/sys/sysinfo.h. > Ethernet Address : > (How about if this changes after boot?) SEE ALSO: uerf(8). Another way is to write a program that looks for all Ethernet devices and prints their addresses. As I mentioned before a system can have multiple devices and new names could pop up at anytime. In Pre-V4.0 ULTRIX a lot of people hardcoded the name "se0" and then we changed it to "ln0" when merging a couple of drivers together. > > I can't seem to find the equivalent of "dmesg", is there one? The ULTRIX error log formatter (uerf) is the closest equivalent. Using the "-o terse" option you can get output that looks vaguely like the contents of dmesg. > > Thanks. > stuart@amc.com -- Alan Rollow alan@nabeth.cxo.dec.com