Machine Details instead of Resource Explorer - Ron Crumbaker's Web Remote Tools

To make the Web Remote Tools more portable, I replaced the "Resource Explorer" button to instead redirect to the integrated Reporting Console "MachDetails.asp".  You can add as many per-machine reports as desired by creating new Reports at the admin console, and just check on "Display in Computer Details", and make sure you add a prompt and qualifier to limit the report to a computer name.  See any canned report that ends in "for a specific computer" for an example.

To make this change in machrest.asp, replace 2 things:

#1 from this: <input style='WIDTH: 180px' type='button' value='Resource Explorer' name='Btnl7' ID='Button6'>
to this:  <input style='WIDTH: 180px' type='button' value='SMS Machine Info' name='Btnl7' ID='Button6'>

#2: replace the entire Sub Btnl7_OnClick (from Sub to End Sub) with this, replacing the _sitecode with your sitecode on your Reporting server

Sub Btnl7_OnClick
 dim CompName,oWshShell
 CompName = trim(document.frmMain.txtValue.value)
 if len(trim(CompName)) = 0 then
 parent.frames.output.location.href "/SMSReporting_sitecode/MachDetails.asp"
 else
 parent.frames.output.location.href "/SMSReporting_sitecode/MachDetails.asp?Machine=" & CompName
 end if
End Sub

Published Wednesday, September 06, 2006 2:32 PM by skissinger

Comments

# Machine Details instead of Resource Explorer tweak for the SMS Web Remote Tools

Wednesday, September 06, 2006 10:29 PM by Ron Crumbaker at myITforum.com, Inc.

# re: Machine Details instead of Resource Explorer - Ron Crumbaker's Web Remote Tools

That is to funny Ron and I actually build that exact same button into my tweaked verion of the web reports 2 years ago when i was with a different agency.

I actually have both buttons.

here is the code i used

<input style="WIDTH: 180px; color:#FFFFFF; background-color:#527ABA" type="button" value="Machine Reports" name="Btnl24" ID="Button24">

Sub Btnl24_OnClick

On Error resume Next

Dim CompName

CompName = trim(document.frmMain.txtValue.value)

'You will need to edit the following line to fit your environment.  <Site Code> = Your 3 digit Site Code.  Remove the <>.

parent.frames.output.location.href  "/SMSReporting_<sitecode>/MachDetails.asp?Machine=" & CompName

End Sub

PS: i love the trim for the machine name wish i had used it sooner hehe

Chris Stauffer <><

SMS 2003 MCP

Thursday, September 07, 2006 10:31 AM by cstauffer