- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- using STM - test 'x' harddrive from console.
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-04-2006 06:24 AM
05-04-2006 06:24 AM
Does anyone have simple scripts they use?
TIA!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-04-2006 07:53 AM
05-04-2006 07:53 AM
Re: using STM - test 'x' harddrive from console.
You can start the exercise or verify tool on disks, but you have to decide which one. Doing this on all drives will extremly decrease the performance.
You can pass your arguments to cstm, e.g.
echo "sel dev 1;info;wait;il"|cstm
to select the "system" device on a server and run the info tool.
But what is the reason for doing this by script? I can't see any.
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-04-2006 08:13 AM
05-04-2006 08:13 AM
Re: using STM - test 'x' harddrive from console.
I am using L&TT for tape diagnotics, so im good there, heres the scoop on the hard drives.
I am required to test drives with stm and send the logs along with it. I issue the stm command w/o agruments, find the device, right click, choose read write / hit ok a few times, wait for the excerise to finish, print the log and go. Doing this over and over and over is getting really old. I figure there must be a way to do this from the CLI, without using the GUI. It would be nice to have a script called 'drvtst' that calls up stm, tells stm to do a read/write test on /dev/rdsk/whatever.. and save the log.
Can that be done?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-04-2006 08:43 AM
05-04-2006 08:43 AM
SolutionYou have to run mstm or cstm to see the index of your device (first column).
Let's assume its ID4.
To run the exerciser do this:
echo "sel dev 4; exc;wait;efl"|cstm
sel dev 4 = select device 4 from the systems map
exc = run exercise program
wait = wait for finishing the tool
efl = exercise failure log report
If you want more information, just run "cstm" and type "help"
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-04-2006 08:56 AM
05-04-2006 08:56 AM
Re: using STM - test 'x' harddrive from console.
Thank you everyone.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-04-2006 09:22 AM
05-04-2006 09:22 AM
Re: using STM - test 'x' harddrive from console.
-- Updating map --
Updating map..
-- Exercise Tools for device SCSI Disk on path 10/0/14/0.0.0. --
Insert a CD into the drive, then select "OK" to continue with the test.
Enter,Cancel, Help, or OK [Cancel] #.
#
My device ID is 6, the real hardware path is 10/0/15/1.6.0
the command im used was:
echo "sel dev 6; exc;wait;efl"|cstm
using wrong id?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-04-2006 12:21 PM
05-04-2006 12:21 PM
Re: using STM - test 'x' harddrive from console.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-04-2006 12:48 PM
05-04-2006 12:48 PM
Re: using STM - test 'x' harddrive from console.
echo "map" | /usr/sbin/cstm
However, figuring out a specific disk from the device map is a pain. So you can specify the actual path. From a "map" listing:
8 8/4.10.0 SCSI Disk (SEAGATEST34572 Information Successful
The cstm-device is 8, but the path is 8/4.10.0 corresponding to SCSI address 10 on the I/O card at 8/4. So you can select the path like this to get the info:
echo "sel path 8/4.10.0;info;wait;infolog"|cstm
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-04-2006 12:54 PM
05-04-2006 12:54 PM
Re: using STM - test 'x' harddrive from console.
http://docs.hp.com/en/diag.html
and
http://docs.hp.com/en/diag/stm/stt_cmap.htm
For your example:
echo "sel path 10/0/15/1.6.0; exc;wait;efl"|cstm
Bill Hassell, sysadmin