- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- script to determine internal vs external disks
Operating System - HP-UX
1752591
Members
2763
Online
108788
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
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
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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-22-2002 03:25 AM
тАО07-22-2002 03:25 AM
script to determine internal vs external disks
I am in the process of writing a "collection" script to be run on all of our HP servers. It was asked that I specify which disks are internal and which disks are external. However, since this script will be run on many different model servers, I don't see how this is possible without keeping a hardcoded table listing each type of server and the address for the internal disks. Does this sound correct?
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-22-2002 03:46 AM
тАО07-22-2002 03:46 AM
Re: script to determine internal vs external disks
Hi
I think you are right. What you can get is which SCSI-bus a disk is is connectet to but not automatic if this is a internal or external bus. In some cases it is also possible external and internal diska share the same bus.
I think you are right. What you can get is which SCSI-bus a disk is is connectet to but not automatic if this is a internal or external bus. In some cases it is also possible external and internal diska share the same bus.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-22-2002 04:08 AM
тАО07-22-2002 04:08 AM
Re: script to determine internal vs external disks
Yes, youre out of luck. Even a full ioscan | grep ext_bus shows both internal and external controllers for varoius models. You are going to have to keep a master list of which paths for which server types for internal/external.
Im from Palmerston North, New Zealand, but somehow ended up in London...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-22-2002 04:11 AM
тАО07-22-2002 04:11 AM
Re: script to determine internal vs external disks
Hi Penni,
as Leif wrote you could look after the bus to possibly decide whether the disks are internal.
Though it may give a propper indication I think it's not ultimately reliable.
Nor would be this method, I use because it works for most of our big application and db servers that are connected to disk storage systems.
I look at the description field of the ioscan command to parse the vendor (which in our case would either be EMC or HITACHI OPEN-*)
This will show you the specified field:
ioscan -kFCdisk|awk -F: '{print $(NF-1)}'
as Leif wrote you could look after the bus to possibly decide whether the disks are internal.
Though it may give a propper indication I think it's not ultimately reliable.
Nor would be this method, I use because it works for most of our big application and db servers that are connected to disk storage systems.
I look at the description field of the ioscan command to parse the vendor (which in our case would either be EMC or HITACHI OPEN-*)
This will show you the specified field:
ioscan -kFCdisk|awk -F: '{print $(NF-1)}'
Madness, thy name is system administration
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP