- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Naming convention for SG control file.
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-19-2002 10:44 AM
07-19-2002 10:44 AM
Naming convention for SG control file.
We have 3 environments (testing&development, Integeration testing and production). We are looking for a naming convention for all the three environments so that any script which we develop(which references the package ip from SG) would be able to pick up the ip from the control file of that respective box. Does anyone have any suggestions?
Thanks
Brian.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-19-2002 10:48 AM
07-19-2002 10:48 AM
Re: Naming convention for SG control file.
We normally use the name of the package in the control file. So if the package name is database _test we use something like dbtstcntrl.sh for for the control file. the cluster name we follow as something like location_db_test or something like that. Naming conventions are more like something that you can be comfortable with.
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-19-2002 12:01 PM
07-19-2002 12:01 PM
Re: Naming convention for SG control file.
/etc/cmcluster/testdev/control.sh
/etc/cmcluster/prod/control.sh
etc.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-19-2002 12:15 PM
07-19-2002 12:15 PM
Re: Naming convention for SG control file.
/etc/cmcluster/pkg-tnd for test&dev
/etc/cmcluster/pkg-int for integration test
/etc/cmcluster/pkg-prd for production.
Depending on the environment, you can get the IP from the corresponding control file. An example simple script is below.
get_myip
/start/
#!/usr/bin/ksh
if [ $# -ne 1 ]
then
echo "Usage: $0 tnd|dev|prd"
fi
ENV=$1
myIPs=$(grep "^IP" /etc/cmcluster/pkg-${ENV}|awk -F "=" '{printf $2 " ") END {print ""})
echo myIPs
/end/
If you run 'get_myip tnd' should give out the virtual IPs for test and dev.
-Sri
- 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: Naming convention for SG control file.
There is no naming convention for package names, or control files per ServiceGuard documentation.
Having said that, I too use George's solution - using the same name for the control script in each package directory. I do this so that maintenance is easy - I don't have to inspect the directory to learn the file name that I want to work with. No matter the cluster, I name my Cluster ASCII Configuration File to "CONF", I name my package ASCII configuration files "config", and my package control scripts are named "control.sh" beneath each uniquely named package directory. The simplifies maintenance for the administrator.
-s.