Operating System - Tru64 Unix
1753432 Members
4729 Online
108793 Solutions
New Discussion

rpb->rpb_ssn is junk.

 
Vasu_3
New Member

rpb->rpb_ssn is junk.

Hi All,
We are machine unique serial number from rpb structure on a digital(Tru64) unix machine:

status = getsysinfo(GSI_GET_HWRPB,(caddr_t)&rpb,sizeof(rpb),0,0,0);
rpb.rpb_ssn returns the hardware serial number.

It is working fine on 3 machines, but one of my client's new machine returns junk value in this filed.
Below is the output while running dbx debugger on the problamatic digital/alpha machine :

/****************************************************************************************************************************
[main:80 ,0x1200013f0] status1 = getsysinfo(101, (caddr_t)&rpb, sizeof(rpb), 0, 0, 0);
(dbx) p rpb
(dbx) p rpb
struct {
rpb_selfref = 0x10000
rpb_string = 284815415112
rpb_vers = 14
rpb_size = 56400
rpb_cpuid = 0
rpb_pagesize = 8192
rpb_pa_size = 44
rpb_ext_va_size = 0
rpb_maxasn = 255
rpb_ssn = "¶î "
rpb_systype = 39
/****************************************************************************************************************************

This seems to be very strange and we have no idea as to how and when it is possible to get this junk value in this parameter of rpb structure:
char rpb_ssn[16]; /* 040: system serial num: 10 ascii chars */
How can we correct this error ?, Is it possible to get the unique machine number in some other way on digital box, On HP uname system call gives the serial number.

Thanks and Regards
Vasu V.M.
Amdocs Development Ltd.
1 REPLY 1
Venkatesh BL
Honored Contributor

Re: rpb->rpb_ssn is junk.

did u rebuilt the kernel on that machine?. If so, did u reboot the system?

rgds,
blv