Xref: utzoo comp.unix.wizards:19903 comp.lang.c:24741 Path: utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!samsung!zaphod.mps.ohio-state.edu!rpi!crdgw1!ge-dab!peora!ucf-cs!ki4pv!cdin-1!dsinc!oid!root From: root@oid.UUCP (Admin-P.L. Aeten) Newsgroups: comp.unix.wizards,comp.lang.c Subject: Software Serial Number Keywords: 3B2, NVRAM, SYS3B, CHKSER Message-ID: <2010@oid.UUCP> Date: 24 Dec 89 20:52:58 GMT Followup-To: poster Organization: VU/TEXT Information Services, Phila, Pa. Lines: 37 Is there any a to read the Software Serial number for an AT&T 3B2/600 or up? The serial number is I believe kept on the FIRMWARE Proms and is accessible via the "version" cmd in firmware mode. This is okay if you are able to bring the system down but in most cases is unacceptable to our users. What we'd like to do is read the serial number and write it to a file. I have used the following code fragment to VERIFY it but what is needed is a way to read the serial number during a soft- ware installation. The code relies on the header "sys3b.h" and the "CHKSER" command: #include main() { int serial = 0x8Bytenum; /* From Firmware command: version */ if(sys3b(CHKSER, serial) == 0) printf("%x CPU Serial Number\n", serial); else printf("Serial number and Software Load does not match: %x\n", serial); . . . . } Any suggestions ??? -- P. L. Aeten {attmail,dsinc,lsicom2,netsys,lll-winken}oid!paeten Bus [215-574-4400 ext 4477] or Home [215-461-5540]