Report Available: Computer Browser

(imported topic written by Lee Wei)

I have posted a new Computer Browser report (app) at the Wiki.

Please check it out.

Link:

Computer Browser Report at the TEM Wiki

Lee Wei

1 Like

(imported comment written by SystemAdmin)

Any way to import this into Web Reports show it shows in the reports list?

(imported comment written by Lee Wei)

John,

No, not at the moment, the report is written to run outside of Web Reports.

I did this to get more screen space.

However, if more people are interested, I can create a version to run in the Web Reports sandbox.

Lee Wei

(imported comment written by SystemAdmin)

Lee,

I just want a way to link to it in Web Reports actually. So our users can find it without having to send them the link.

(imported comment written by Lee Wei)

John,

We can create 2 types of links and make them reports that can be clicked on.

The first will redirect to the Computer Browser, but keep it within the Web Reports frame. However, reauthentication still needed.

The second would be to redirect to a new browser window, thereby gaining the full browser screen estate.

In either case, create the reports by going Explore Data -> Custom.

Paste in the following code, then save the report.

Example 1 to redirect but staying within Web Reports

<script type=
"text/javascript"> <!-- window.location = 
"/computerbrowser/computerbrowser.html" 
// --> </script>

Example 2 to redirect to new browser window

Computer Browser has been started in another window.   <script language=
"javascript" type=
"text/javascript"> <!-- ComputerBrowser= window.open(
"/computerbrowser/computerbrowser.html",
"ComputerBrowser"); 
// --> </script>

Hope that works for you.

Lee Wei

(imported comment written by cstoneba)

I don’t use the analysis “BES Inventory and License”, causing the “Software Installed” tab to complain. is it possible for me to use a different analysis to populate data in this tab?

(imported comment written by Lee Wei)

Chris,

When you say “complain”, are you getting a message or error?

I am asking because I had intended to provide information if the Analysis is not available, rather than error out.

What property would you like to link that to? It is obviously hard coded in the report, and also checking different properties for different operating system.

Lee Wei

(imported comment written by cstoneba)

no, it is just a message saying that the analysis is not activated. It is not an error.

Get you say in which file the property is hard coded in and I can go tweak it for our environment, or is it a big blue secret?

thanks

(imported comment written by Lee Wei)

All the source codes are fully available and editable.

For the Computer Browser, the JavaScript file is here:

C:\Program Files (x86)\BigFix Enterprise\BES Server\BESReportsServer\wwwroot\computerbrowser\computerbrowser.js

And then you can search for “Application Information (Windows)”.

Lee Wei

(imported comment written by cstoneba)

LeeWei, in the computerbrowser.js, when it references a site, would the name of the site be the display name (e.g. TestSite), or the name that TEM gives the site (e.g. CustomSite_TestSite) ?

(imported comment written by Lee Wei)

Chris,

First of all, be careful that “bes sites” inspector returns the normal external sites that you subscribe from IBM/BigFix.

“bes custom sites” inspector is used to return custom sites that you create locally.

For custom sites, “name” and “display name” will return the same values.

For something like “CustomSite_XXX”, use the “tag” property.

The “display name” property was added a little later to serve 2 purposes.

  • We want to change the “name” of a site, but don’t want to break code that might depend on it. For example, for historical reason, Patches for Windows (English) has the name “Enterprise Security”. So “display name” is used to be more informative.
  • “display name” is also useful to embed local language support. So the “display name” for Patches for Windows (Spanish) will be in Spanish.

Lee Wei

(imported comment written by cstoneba)

Got it working. thanks!

(imported comment written by Bhargav.Balakrishnan)

Hi Team,

I have downloaded this Computer Browser. I am able to login into the Web console of BigFix but not able to see any client PC’s or any other information. I have followed the same step provided in this website “https://www.ibm.com/developerworks/mydeveloperworks/wikis/home?lang=en#/wiki/Tivoli%20Endpoint%20Manager/page/Computer%20Browser”. Please guide me on how to do this?

Regards,

Bhargav.Balakrishnan

(imported comment written by Lee Wei)

Hi Bhargav,

Can you please describe the error that you are getting.

From the screen shot, it looks like the page has loaded correctly, and you should search for the computers of interest using the Search panel on the left.

If you check “Global” and open the “Browse to a retrieved property…” drop list, do you see the properties?

An obvious search might be to select “OS” and then “Win” as the search string.

Lee Wei

(imported comment written by Bhargav.Balakrishnan)

Respected Sir,

As you said, that was exactly correct. I thought that it would provide me an info just like the application. When I put “XP” it provided me with all the information’s. It’s really useful. Sir, I would like to know how to add an image in the web reports that is Bank’s Logo in the report. I mean the script for that. Awaiting for your reply.

Thanks a lot for the support.

Regards,

Bhargav.Balakrishnan

(imported comment written by Lee Wei)

Bhargav,

The report is in HTML and JavaScript, so we will need someone who is familiar with HTML.

The file that we need to modify is ComputerBrowser.js.

Around line 967 is where the HTML is used to display the title and version number.

html: 
'<nobr>' + AppTitle + AppVersionDisplay + 
'</nobr>'

Lee Wei

(imported comment written by cstoneba)

In your next version, can you have SuSE logo detection? It looks like you are detecting “sle”, but not “suse”. thanks

operatingSystemParam.toLowerCase().contains(‘sle’))

(imported comment written by Lee Wei)

Chris,

Got it, thanks and I have included “suse”.

If anyone else notice a platform not detected, please let me know with the OS string.

For Windows computers, the “Computer Manufacturer - Windows” property.

Lee Wei

(imported comment written by SystemAdmin)

Lee,

I’m having trouble with the ‘Action History’ tab. Every time I click on it, it crashes the my web report server and I have to restart the service. This is in my Dev environment with only 17 machines.

Any ideas?

thanks,

Baraq

Console version 8.1.551.0 with DSS-SAM Version 1.3.1.597

(imported comment written by Lee Wei)

Wow Baraq,

I cannot figure out how this is missed. Obviously it worked at some point.

I just tried it on my version 8.2.1093 and got the same crash.

The simple Session Relevance that will cause the crash is:

((if (exists source fixlets of it) then (“good”) else (“bad”)) of actions of action results of it) of bes computers whose (id of it = 322607)

So I am going to file a bug and have engineering look at it.

Thanks for taking the trouble to report this.

Lee Wei