Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* locking software to a machine
@ 1995-05-07  4:00 Mr SH Cunningham
  1995-05-07  4:00 ` Dirk Grunwald
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Mr SH Cunningham @ 1995-05-07  4:00 UTC (permalink / raw)


Can anyone tell me how to lock a program to an AXP machine?
I have used software which does this and wish to be able
to lock a program to a machine by getting a unique ID
for that machine.

--
                 |================================================| ---
           I---, |-=|            Stuart Cunningham             |=-|  ----
      -----U ==| |================================================|   ---
      | :) U ==| |        shcun1@penfold.cc.monash.edu.au         | ---
 -----'----U   | |________________________________________________|   ---
 |)___()  'U   |______====____   \________________________________|  -----
[_/,-,\"--"----- // ,-,  ,-,\\\   |/         //,-,  ,-,  ,-,\\ __#  ---
  ( 0 )====#####// ( 0 )( 0 )''-  o          '( 0 )( 0 )( 0 )''    
---'-'--------------'-'--'-'-------------------'-'--'-'--'-'-------------- 



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: locking software to a machine
  1995-05-07  4:00 locking software to a machine Mr SH Cunningham
@ 1995-05-07  4:00 ` Dirk Grunwald
  1995-05-08  4:00 ` Ed Wilts
  1995-05-08  4:00 ` John Kohl
  2 siblings, 0 replies; 5+ messages in thread
From: Dirk Grunwald @ 1995-05-07  4:00 UTC (permalink / raw)


>>>>> "SC" == SH Cunningham <shcun1@penfold.cc.monash.edu.au> writes:
In article <3oi8b3$gds@harbinger.cc.monash.edu.au> shcun1@penfold.cc.monash.edu.au (Mr SH Cunningham) writes:
SC> Can anyone tell me how to lock a program to an AXP machine?  I
SC> have used software which does this and wish to be able to lock a
SC> program to a machine by getting a unique ID for that machine.
--

In general, this isn't a good thing to do, because users are then
penalized when they upgrade to a new machine which has a different
serial number. Worse yet, locking to the internet number is even
worse, because it means you can't change move to another ethernet.
You should be willing to move software to a new machine for free if
you do this.

Anyway, the getsysinfo program with the (undocumented) HWRPB function
returns an 'rpbbuf'.

	  err = getsysinfo(GSI_GET_HWRPB, &rpbbuf, sizeof(rpbbuf));

that buffer, documented in /usr/include/machine/rpb.h contains the field...

    char   rpb_ssn[16];		/* 040: system serial num: 10 ascii chars */

I've never looked at this field to see if its' really the ID or not.



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: locking software to a machine
  1995-05-07  4:00 locking software to a machine Mr SH Cunningham
  1995-05-07  4:00 ` Dirk Grunwald
  1995-05-08  4:00 ` Ed Wilts
@ 1995-05-08  4:00 ` John Kohl
  2 siblings, 0 replies; 5+ messages in thread
From: John Kohl @ 1995-05-08  4:00 UTC (permalink / raw)


>>>>> "Dirk" == Dirk Grunwald <grunwald@foobar.cs.colorado.edu> writes:
In article <GRUNWALD.95May7111938@foobar.cs.colorado.edu> grunwald@foobar.cs.colorado.edu (Dirk Grunwald) writes:

Dirk> Anyway, the getsysinfo program with the (undocumented) HWRPB function
Dirk> returns an 'rpbbuf'.
Dirk> 	  err = getsysinfo(GSI_GET_HWRPB, &rpbbuf, sizeof(rpbbuf));
Dirk> that buffer, documented in /usr/include/machine/rpb.h contains the field...
Dirk>     char   rpb_ssn[16];		/* 040: system serial num: 10 ascii chars */
Dirk> I've never looked at this field to see if its' really the ID or not.

I tried this, and the rpb_ssn was all zeros on my DEC 3000/500.

#include <sys/types.h>
#include <sys/sysinfo.h>
#include <machine/hal_sysinfo.h>
#include <machine/rpb.h>

main()
{
    int err;
    struct rpb rpbbuf;

    memset(&rpbbuf, 0, sizeof(rpbbuf));
    err = getsysinfo(GSI_GET_HWRPB, &rpbbuf, sizeof(rpbbuf), 0, 0);
    if (err == 1)
	printf("rbp_ssn=%lx,%lx\n", *(long *)&rpbbuf.rpb_ssn[0],
	       *(long *)&rpbbuf.rpb_ssn[8]);
}
--
John Kohl <jtk@atria.com> or <jtkohl@mit.edu>
working for but not representing:	Atria Software
sometimes hacking on:			NetBSD/i386



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: locking software to a machine
  1995-05-07  4:00 locking software to a machine Mr SH Cunningham
  1995-05-07  4:00 ` Dirk Grunwald
@ 1995-05-08  4:00 ` Ed Wilts
  1995-05-09  4:00   ` Mr SH Cunningham
  1995-05-08  4:00 ` John Kohl
  2 siblings, 1 reply; 5+ messages in thread
From: Ed Wilts @ 1995-05-08  4:00 UTC (permalink / raw)


In article <3oi8b3$gds@harbinger.cc.monash.edu.au>, shcun1@penfold.cc.monash.edu.au (Mr SH Cunningham) writes:
> Can anyone tell me how to lock a program to an AXP machine?
> I have used software which does this and wish to be able
> to lock a program to a machine by getting a unique ID
> for that machine.

There is no way to ensure uniqueness of your AXP system that will work today
and if you need hardware repairs.  All software I've seen that tried this has
failed in some fashion or another.  I've seen kludges like hardware Ethernet
addresses (this fails if you replace the controller) and system id registers
(fails on some firmware upgrades).

-- 
Ed Wilts, BC Systems, 4000 Seymour Place, Victoria, B.C., Canada, V8X 4S8
EWilts@Galaxy.Gov.BC.CA     Office:  (604) 389-3430   Fax: (604) 389-3412

Disclaimer: The opinions and statements contained in this posting are the sole
responsibility of the author and have not in any way been reviewed or approved
by my employer or any network service.



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: locking software to a machine
  1995-05-08  4:00 ` Ed Wilts
@ 1995-05-09  4:00   ` Mr SH Cunningham
  0 siblings, 0 replies; 5+ messages in thread
From: Mr SH Cunningham @ 1995-05-09  4:00 UTC (permalink / raw)


Ed Wilts (ewilts@vmsmail.gov.bc.ca) wrote:
: There is no way to ensure uniqueness of your AXP system that will work today
: and if you need hardware repairs.  All software I've seen that tried this has
: failed in some fashion or another.  I've seen kludges like hardware Ethernet
: addresses (this fails if you replace the controller) and system id registers
: (fails on some firmware upgrades).

I intend the use of software on the locked machine to be for a try-before-you
-buy purpose.  Therefor I would be interested in any way to get the hardware
Ethernet address and the system id registers.

On our OSF1 V3.0 DEC3000 300 getsysinfo(GSI_GET_HWRPB, &rpbbuf, sizeof(rpbbuf));
returns an empty rpb_ssn[16] array (all zeros).

Stuart Cunningham



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~1995-05-09  4:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1995-05-07  4:00 locking software to a machine Mr SH Cunningham
1995-05-07  4:00 ` Dirk Grunwald
1995-05-08  4:00 ` Ed Wilts
1995-05-09  4:00   ` Mr SH Cunningham
1995-05-08  4:00 ` John Kohl

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox