- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: ServiceGuard SDK, API
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
06-23-2003 02:56 AM
06-23-2003 02:56 AM
ServiceGuard SDK, API
As far as I read, I could use EMS SDK to communicate with ServiceGuard, but I still have to see how to write code to communicate with the cluster.
Is there another solution? A specific SDK, API to use for communicating with ServiceGuard? (The one used with ServiceGuard Manager maybe) Or is EMS the right way to do it?
Thanks for your time,
Cristi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-23-2003 04:31 AM
06-23-2003 04:31 AM
Re: ServiceGuard SDK, API
ideally you should write your app, so that it communicates with the package-ip address, and it's service(s) only keeping in mind that the app must be able to cope with a lost connection to the ip address (I.e. the package, or virtual server if you like) disappear, and comes back up.
The package itself should take care of the underlaying infrastructure.
I think you are asking for problems, if the application should be dependant of information like volumegroups, number of nodes and so on.
(Unless it is an app. for tracking config changes in a cluster that is... :-))
Rgds Jarle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-23-2003 04:34 AM
06-23-2003 04:34 AM
Re: ServiceGuard SDK, API
the EMS interface is mainly used by monitor scripts inside the sg-package, to monitor availability of the hw, for the package to take decisions about how to behave in error-conditions.
This should not be a task of the application that will use the package services.
Rgds Jarle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-23-2003 04:45 AM
06-23-2003 04:45 AM
Re: ServiceGuard SDK, API
I can see a piece of software called HP Cluster API installed on my machine, but it seems not to be documented.
If you want, I need to get the information you can get with the ServiceGuard Manager.
10x,
Cristi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-23-2003 05:20 AM
06-23-2003 05:20 AM
Re: ServiceGuard SDK, API
execute the following commands, from remote using remshell or ssh, you will get what you need.
You will have to run the commands towards the package ip, since you then automgically will reach the node that runs the package.
cmviewcl (-v) will give you info about nodes and packages in the cluster, the status of them, and location.
strings /etc/lvmtab will give you which volumegrups exist on a system.
vgdisplay will show you active volumegroups on the system.
Rgds Jarle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-23-2003 07:26 AM
06-23-2003 07:26 AM
Re: ServiceGuard SDK, API
I thought about using the SG commands to get the cluster resources status, but I would prefer to do it programatically, i.e. directly from my C application by calling the appropriate functions from API (this can be done on Windows or Netware for example and in my opinion it is necessary to have such API for writing cluster aware applications).
If I can not get this API (I am sure that this exists :) ) I will probably get an workaround using the shell commands.
Thanks again for your time.
Cristi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-23-2003 11:17 AM
06-23-2003 11:17 AM
Re: ServiceGuard SDK, API
So you should just be able to go wherever the package IP address is, and have confidence that the packages volumes are available.
HTH
Duncan
I am an HPE Employee

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-23-2003 01:43 PM
06-23-2003 01:43 PM
Re: ServiceGuard SDK, API
So as Jarli & Duncan told you,you 'll be bound on the package ip, if the package is not running then your FS is not mounted then you 'll not be able on communicate with the VG.
With the help of cmviewcl & vgdisplay you can see where is your package 're running.
Also just keep in a document which is the primary en the secondary node of your package.
Good luck,
Hamdy