- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: C/C++/Perl/Shell code to get SCSI Info
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
07-04-2006 08:49 PM
07-04-2006 08:49 PM
C/C++/Perl/Shell code to get SCSI Info
I need a C/C++/Perl/Shell code to get SCSI disk information such as #cylinders, Tracks/Cylinder, Sectors/Track etc.. Any pointers would be helpful.
Thanks,
Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-04-2006 09:22 PM
07-04-2006 09:22 PM
Re: C/C++/Perl/Shell code to get SCSI Info
# diskinfo -v /dev/rdsk/c1t15d0
SCSI describe of /dev/rdsk/c1t15d0:
vendor: HP 73.4G
product id: ATLAS10K3_73_SCA
type: direct access
size: 71687369 Kbytes
bytes per sector: 512
rev level: HP05
blocks per disk: 143374738
ISO version: 0
ECMA version: 0
ANSI version: 2
removable media: no
response format: 2
(Additional inquiry bytes: (32)58 (33)39 (34)32 (35)32 (36)33 (37)5a (38)57 (39)20 (40)20 (41)20 (42)20 (43)51 (44)55 (45)41 (46)4e (47)54 (48)55 (49)4d (50)20 (51)c (52)0 (53)0 (54)0 (55)0 (56)0 (57)0 (58)0 (59)0 (60)0 (61)0 (62)0 (63)0 (64)0 (65)0 (66)0 (67)0 (68)0 (69)0 (70)0 (71)0 (72)0 (73)0 (74)0 (75)0 (76)0 (77)0 (78)0 (79)0 (80)0 (81)0 (82)0 (83)0 (84)0 (85)0 (86)0 (87)0 (88)0 (89)0 (90)0 )
Enjoy, Have FUN! H.Merijn
- Tags:
- diskinfo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-04-2006 09:27 PM
07-04-2006 09:27 PM
Re: C/C++/Perl/Shell code to get SCSI Info
Thanks again,
Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-04-2006 09:34 PM
07-04-2006 09:34 PM
Re: C/C++/Perl/Shell code to get SCSI Info
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=989308
You will find that you probably don't want to know this values.
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
07-04-2006 09:35 PM
07-04-2006 09:35 PM
Re: C/C++/Perl/Shell code to get SCSI Info
how about using fsdb.
As warning states, should only be used by experienced users.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-04-2006 09:54 PM
07-04-2006 09:54 PM
Re: C/C++/Perl/Shell code to get SCSI Info
"This file is provided for backward compatibility with previous HP-UX releases only. Its use is discouraged"
http://docs.hp.com/en/B2355-60127/disktab.4.html
What result do you expect?
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!
