- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Application start up when Machine starts
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
12-06-2004 03:04 AM
12-06-2004 03:04 AM
i am running OpenView NNM on an HPUX 11.11 server, i need to do the following, i need everytime the servers starts or reboots some openview maps are started and opend
usually i do this from shell using
ovw -map mapname and some other parameters
can someone tell me in details where to change or add this file so as i can make these ovw sessions starts everytime the machine starts ???
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2004 03:19 AM
12-06-2004 03:19 AM
Re: Application start up when Machine starts
you can add an entry in /sbin/rc3.d for your ovw session to start when you start in normal mode.
you have to add a file beginning by Sxxxovw.rc
and you type your command to start your application, don't forget to add entire path for your command...
Stf ;-)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2004 04:39 AM
12-06-2004 04:39 AM
Re: Application start up when Machine starts
You will have to write a Startup/Shutdown script... Depending on how purist you are: HPUX separates script execution and script variable into 2 different locations...
For the Startup/Shutdown script that you should put in /sbin/init.d there is a model called template at that location so you can copy it and customize to your needs
Then you just have to link to the init level you want your script to be executed at as S
All the best
Victor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2004 04:48 AM
12-06-2004 04:48 AM
SolutionAll actual startup scripts are in /sbin/init.d
To get a program to start up at boot time you set up a soft link in the run level directory desired.
Lets say you want the program to start at run level 3.
cd /sbin/rc3.d
ln -s /sbin/init.d/startprogram S880ovmstart
This says fire up startprogram in run level 3.
It is equivalent to this command line:
/sbin/init.d/startprogram start
Its usually a good idea to set up a kill to stop the program.
cd /sbin/rc2.d
ln -s /sbin/init.d/startprogram K120ovmstop
You can write a fresh startup script in /sbin/init.d
cd /sbin/init.d
cp template startupscript
You can then put your command line in the way you want. Remember, start scripts don't have an environment. If you need a PATH you must set it.
If you have the OpenView NNM program already auto starting, you may be able to add an additional command line and option to the startup script in /sbin/init.d
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2004 05:16 AM
12-06-2004 05:16 AM
Re: Application start up when Machine starts
Maybe this doc will help you understand the concept and write a small script for the startup/shitdown of the app.
http://docs.hp.com/hpux/onlinedocs/os/startup.pdf
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2004 07:03 AM
12-06-2004 07:03 AM
Re: Application start up when Machine starts
NOTE: start/stop scripts are executed before logins or other network tasks are completed so if ovw is the interactive program, it will fail because there is no place to display the program yet. If you want ovw to come up as you login, just add the code to your local .profile.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2004 09:51 AM
12-06-2004 09:51 AM
Re: Application start up when Machine starts
#!/usr/bin/sh
/opt/OV/bin/ovw -map
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2004 10:11 AM
12-06-2004 10:11 AM
Re: Application start up when Machine starts
that was a very good answers actually, now i know about startup and shutdown scripts. this is very good
let me get back to one point here please, ovw will try to open a gui, so as stated last it needs x server to be running.
isnt xserver will be running since the machine is starting up ??? xserver will start automatically i think?? right ?
so i just need to put my script to run after the xserver script runs so as i am sure that xserver is running , am i correct about this ??? or xserver only runs when some user logins over cde ???
please i need to know this more in details as you did guys with the startup/shutdown scripts.
Thanks in advance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2004 10:44 AM
12-06-2004 10:44 AM
Re: Application start up when Machine starts
$ echo $DISPLAY
This variable shows where X server is (at hostname). When you run ovw GUI, it will try to display its window at
For example if you are connecting to your NNM server from a PC running MS Windows, your PC must be running some flavour of X server emulation software (e.g. ReflectionX).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2004 11:41 AM
12-06-2004 11:41 AM
Re: Application start up when Machine starts
Now you *can* start the ovw program and give it the address of an already-running display server (another workstation or perhaps a PC already running an Xwindow emulator) by including the -display option as in:
ovw -display 12.34.56.78:0 -map mapname ...
Now this IPaddress can't be the local workstation because it isn't a display server yet. I used to run several Glance sessions and an ovw display on an Xwindow terminal. The Xwindow terminal is always running and can be configured to accept displays from any source.
So for your solution, create a permenent Xwindow server somewhere and display ovw there, or add ovw to your login profile on the local system.
Bill Hassell, sysadmin