First time here? Check out the FAQ!
1

Check hardware lock status?

We are looking for away to query PSSE or the Sentinal license manager to see if the computer has a PSSE license dongle plugged in or not.

We have multiple computers but not enough dongles for everyone to have one at the same time. We use Enfuzion to automate our PSSE runs. The trouble is if Enfuzion tries to use a workstation for PSSE runs it does not have a dongle plugged in it will fail the jobs and mark the compute node as "down".

I am looking for a method that will check the computers to see if they have a dongle plugged in. Ideally the script would run and check the computers by computername (Windows 7 pc's in active directory network) and report back to the user what computers currently do or don't have a dongle.

I have been using the Microsoft PSTools to manipulate some of the workstations remotely, PSExec will allow me to start and stop tasks as well as small file operations.

stylus277's avatar
21
stylus277
asked 2013-05-01 11:21:15 -0500
edit flag offensive 0 remove flag close merge delete

Comments

The dongle is pretty proprietary stuff. I haven't seen an API for it. So I'm not sure if there is an "official" way to do it. Of course, this isn't an official forum, so we can discuss whatever techniques we like.

JervisW's avatar JervisW (2013-05-08 04:57:53 -0500) edit

One way is to wrap up a call to PSSE in it's own subprocess and check to see if it correctly loads or not.

JervisW's avatar JervisW (2013-05-17 00:07:49 -0500) edit
add a comment see more comments

1 Answer

1

I am not looting to circumvent any licensing. I am looking for a programmatic method to launch psse and figure out if the program reports no dongle found so thatwe can determine if the node will run psse or fail to open.

stylus277's avatar
21
stylus277
answered 2013-05-15 19:26:07 -0500
edit flag offensive 0 remove flag delete link

Comments

Check out the `subprocess` module. You can run another python script from the command line that tries to load PSSE. If that fails, then you know that there is no dongle available.

JervisW's avatar JervisW (2013-05-23 08:16:00 -0500) edit
add a comment see more comments