- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Does HP-UX provide an API to LVM, ioscan, cm* ...
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
Discussions
Discussions
Forums
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
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
тАО01-06-2003 09:18 AM
тАО01-06-2003 09:18 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-06-2003 10:14 AM
тАО01-06-2003 10:14 AM
Re: Does HP-UX provide an API to LVM, ioscan, cm* ?
From a provisioning standpoint, I'd wrap the existing 1m commands.
- Tags:
- pstat
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-06-2003 10:33 AM
тАО01-06-2003 10:33 AM
Re: Does HP-UX provide an API to LVM, ioscan, cm* ?
- Tags:
- Perl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-08-2003 05:08 AM
тАО01-08-2003 05:08 AM
Re: Does HP-UX provide an API to LVM, ioscan, cm* ?
I already knew the mentioned HPUX modules,
but I don't want to use them since they are not much different from mine.
These modules (like mine) only parse the output of the vg|lv|pvdisplay, ioscan commands to put it in a LoL.
Whereas I would rather prefer to have a more direct access through an API library (probably in C) for three reasons.
First, I don't want to modify my modules whenever the output format of the above mentioned commands changes.
2nd, I guess it is a bit faster, and leaves you a greater degree of control.
3rd, I want to play a bit with creating a module that embeds C because I recently bought the book "Extending and Embedding Perl" by Cozens and Jennes,
that whet my appetite.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-08-2003 05:24 AM
тАО01-08-2003 05:24 AM
SolutionFor LVM and ServiceGuard, the answer is clearly NO. I'm from HP and I wrote a lot of tools around system admin, but never succeeded in getting such APIs ...
For ioscan, it's possible to read /etc/ioconfig file using struct defined in /usr/include/sys/ioparams.h. Have a look to union ioconfig_record for example.
Regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-08-2003 05:25 AM
тАО01-08-2003 05:25 AM
Re: Does HP-UX provide an API to LVM, ioscan, cm* ?
If that's the case (I'm assuming you're reading), then pstat is exactly what you want (it's C).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-08-2003 06:23 AM
тАО01-08-2003 06:23 AM
Re: Does HP-UX provide an API to LVM, ioscan, cm* ?
If you think XS is too hard to start with, try Inline::C first. Very easy interface, immediate results.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-09-2003 04:14 AM
тАО01-09-2003 04:14 AM
Re: Does HP-UX provide an API to LVM, ioscan, cm* ?
that was a good hint.
I had a look at man pstat and the pstat.h header file to see that it offers amongst others get_lvinfo() and get_diskinfo().
Maybe that's already enough to get me starting.
Unfortunately I lack an HP-UX workstation at home for development, and I don't seem to find time to do this sort of playing at work :-(