/build/static/layout/Breadcrumb_cap_w.png

Meter asset using labels

Is it possible to assign labels to specific software metering jobs? I have some Windows computers that have stata installed with their own license, and other computers that are running stata from a share using a site license for concurrent use. I want to meter only the stata process on computers using the site license. I see that the global metering settings use labels, but not the individual metering jobs.

Thanks.


0 Comments   [ + ] Show comments

Answers (1)

Posted by: SMal.tmcc 11 years ago
Red Belt
1

You can create a custom inventory based on the running process.  I created one that looks for any process's that are running from the users appdata, you should be able to modify it to suite your needs.

ShellCommandTextReturn(c:\windows\system32\wbem\WMIC.exe PROCESS where (commandline like "%%AppDat%%") get commandline)

without testing should be for you

ShellCommandTextReturn(c:\windows\system32\wbem\WMIC.exe PROCESS where (commandline like "%%Stata%%") get name)

you can create a bat file and run on a machine with it running to test

c:\windows\system32\wbem\WMIC.exe PROCESS where (commandline like "%%Stata%%") get name.

Here is my custom inventory rule


Comments:
  • I use this to look for malware and programs the user self installed. - SMal.tmcc 11 years ago
    • command may even be like
      ShellCommandTextReturn(c:\windows\system32\wbem\WMIC.exe PROCESS where (name like "%strata.exe%") get name) - SMal.tmcc 11 years ago
  • Thanks. Either I'm way lost on what you're saying, or I screwed up my original message, so just to be clear - I'm able to meter the process StataSE-64.exe whether it's being run from a local install or a share, but kbox can't tell me which one of those is happening on which PCs. So are saying I can create an inventory item that can determine that (ie, an inventory item that sees stata running but also sees that it isn't installed locally), then meter that inventory item? - tpr 11 years ago
    • if you use the name like "%%StataSE-64.exe%%" it will report on that exe running no matter from where.
      ShellCommandTextReturn(c:\windows\system32\wbem\WMIC.exe PROCESS where (name like "%stratase-64.exe%") get name) - SMal.tmcc 11 years ago
      • if you change the get command from get name to get commandline it will tell you the full path the exe is running from. - SMal.tmcc 11 years ago
  • If you use the "name" you will meter it running from any location. if you use "commandline" then you can get more granular to the exact location it is running from. - SMal.tmcc 11 years ago
  • Ah, ok, sounds great. I'll try it out.

    Thanks. - tpr 11 years ago
    • remember the machines will have to do a inventory after you create the custom item to get it to populate. To test your rule.
      Create rule
      force an inventory update on a machine running the exe and it should show under the item - SMal.tmcc 11 years ago

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ