Ask Your Question
1

Check hardware lock status?

asked 2013-05-01 11:21:15 -0500

stylus277 gravatar image

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.

edit retag flag offensive 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 gravatar imageJervisW ( 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 gravatar imageJervisW ( 2013-05-17 00:07:49 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
1

answered 2013-05-15 19:26:07 -0500

stylus277 gravatar image

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.

edit flag offensive delete link more

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 gravatar imageJervisW ( 2013-05-23 08:16:00 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Question Tools

Stats

Asked: 2013-05-01 11:21:15 -0500

Seen: 1,349 times

Last updated: May 15 '13