BMC Atrium Discovery Community Forum

forgot password?
   
 
Windows USB Drives
Posted: 03 March 2009 02:52 PM   [ Ignore ]  
BMC ADDM Staff ADDM II Certified
RankRankRank
Administrator
Total Posts:  39
Joined:  2008-02-07

Just a quick post to back up this blog entry.

Attached here is the full pattern discussed in the post.

Try it out and if you find it useful or can suggest improvements then please reply to the thread.

File Attachments
USBDrives.tpl  (File Size: 5KB - Downloads: 486)
Profile
 
 
Posted: 04 March 2009 09:29 AM   [ Ignore ]   [ # 1 ]  
BMC ADDM Staff ADDM II Certified
RankRankRank
Administrator
Total Posts:  39
Joined:  2008-02-07

As a quick follow up to the pattern, I thought that posting a report fragment might be useful.

If you copy the attached file (00USBDrives.xml) to

$TIDEWAY/data/custom/reports 

and restart the tideway service then an additional Channel called “Custom Reports” will be available when customising a home page dashboard.

The channel contains a single report called “USB Mass Storage Devices”.  When run, you get output similar to that seen in the screenshot attached.

Image Attachments
report_result.png
File Attachments
00USBDrives.xml  (File Size: 1KB - Downloads: 277)
Profile
 
 
Posted: 04 April 2011 08:00 AM   [ Ignore ]   [ # 2 ]  
Rank
Newbie
Total Posts:  9
Joined:  2010-08-30

I tried all these steps and i am getting report of the USB Mass storage Device in home page…
But i am not getting “no result found” ...

I discovered a system with USB mouse and USB hard disk .” no results found “when i click on the report.
The above discovery has been done after tpl uploaded,xml and restart of tideway service also.

Please suggest me to resolve this issue….

Profile
 
 
Posted: 04 April 2011 01:21 PM   [ Ignore ]   [ # 3 ]  
ADDM I Certified
Rank
Newbie
Total Posts:  3
Joined:  2009-05-01

I recommend changing the pattern to reflect the code below as this pattern occasionally gave errors until I added the text.toNumber line.

if disk_size then
  disk_size 
:= text.toNumber(disk_size);
  
disk_size := disk_size/(1024*1024);
end if; 

Otherwise this pattern works fine for me to discover any number of attached USB drives to windows systems.

(Added code tags - Charles)

[ Edited: 05 April 2011 08:26 AM by Charles Oldham]
Profile
 
 
Posted: 05 April 2011 05:03 AM   [ Ignore ]   [ # 4 ]  
Rank
Newbie
Total Posts:  9
Joined:  2010-08-30

I tried out the same ..
It is working fine now..thanks for the quick reply…

:-)

Thanks,
Sairam KPV

Profile
 
 
Posted: 05 April 2011 05:40 AM   [ Ignore ]   [ # 5 ]  
RankRank
Member
Total Posts:  19
Joined:  2010-02-09

Mod to the above script - Replace with (Test with/For ADDM 8.2.1 and above)

TPL File

if disk_size then
  disk_size 
:= text.toNumber(disk_size)/1073741824;
end if; 

XML Report File

<show>
  
#:::Host.name AS "Host",
  
summary,
  
size AS 'Size (GB)',
  
media_loaded,
  
status,
  
last_seen,
  
#:::Host.last_update_success AS 'Host last success'
</show

For Reference Custom Query

SEARCH Detail
WHERE type 
"USB Drive" 
ORDER BY #:::Host.name 
SHOW #:::Host.name AS "Host", 
summary
size AS 'Size (GB)'
media_loaded
status
last_seen
#:::Host.last_update_success AS 'Host last success' 

(Added code tags - Charles)

[ Edited: 05 April 2011 08:29 AM by Charles Oldham]
Profile
 
 
Posted: 29 March 2012 06:58 PM   [ Ignore ]   [ # 6 ]  
Rank
Newbie
Total Posts:  2
Joined:  2012-03-29

Andy,

I am new to Atrium Discovery.  I have just become an administrator for our ADDM console and was asked to find a way to integrate USB device detection.  Everywhere I search leads me to your forum discussion and your blog entry.  Is the tpl file you have attached to your forum discussion appropriate for ADDM 8.3?

Thanks!

Dave

Profile
 
 
Posted: 30 March 2012 06:09 AM   [ Ignore ]   [ # 7 ]  
BMC ADDM Staff
RankRankRankRank
Administrator
Total Posts:  876
Joined:  2008-02-12

There pattern should work fine with ADDM 8.3.

Profile
 
 
Posted: 30 March 2012 08:01 AM   [ Ignore ]   [ # 8 ]  
BMC ADDM Staff ADDM II Certified
RankRankRank
Administrator
Total Posts:  39
Joined:  2008-02-07

We are still running that pattern (albeit a slightly updated one) on our internal deployment of ADDM and it works fine.  I would be interested to understand the Use Case you are looking to support with this, care to share?

I will tidy up the current version of the pattern and post it to this thread.  Hopefully that may be more help to you.

Andy

Profile
 
 
Posted: 30 March 2012 04:14 PM   [ Ignore ]   [ # 9 ]  
Rank
Newbie
Total Posts:  2
Joined:  2012-03-29

Thanks for the quick responses!  I’ll stay tuned for your latest version.  Andy, I’ll PM you about our use of this pattern.

Profile