Re: AIX Client automatic start for dsmcad
Anders Stehlbom wrote: Hi, Where is the best place for starting dsmcad during boot on AIX 4.3.3? Like /etc/rc.d/rc.local for Linux Several ways. Pick the one you like best. You could 1. Edit /etc/rc.tcpip run it out of there 2. Create a new /etc/rc.local and put that in /etc/inittab (Using mkitab) to run at runlevel 2 3. Use the SYSV init support of AIX 4.3.3rml06 or later (i.e. Put a startup script names Sddwhatever - where dd == some number) in /etc/rc.d/rc2.d 4. Put an entry directly into /etc/inittab (Using mkitab) to run the executable Each has advantages over the others. 1. Is easy. Just edit go. 2. Almost as easy as 1, but you don't need to edit system supplied scripts (Some people don't like to). 3. Easy to extend. Better than 2 because all the scripts are separate. 4. Also an easy option. Very nice if your app runs in the foreground, because you can set it to respawn which means init will restart it if it exits for any reason. H I got some suggestions yesterday but not really described exactly. I'm not a AIX Guru but I know Linux. ManagedServices is webclient schedule dsmcad is in /var/tivoli/tsm/client/ba/bin/ I'm asking for: 1. On AIX is the TSMCAD Daemon the best way to run the Schedule? 2. Name of the scriptfile for start, based on the answer on the first Q. 3. Correct syntax for that entry, based on the answer on the first Q. Thanks i advance //Anders -- I don't suffer from Insanity... | Linux User #16396 I enjoy every minute of it... | | http://www.travellingkiwi.com/ |
Re: AIX Client automatic start for dsmcad
I'm at AIX 4.3.3 ML 10 Somewhere along ML 6 or so, additional entries were added to /etc/inittab such that an rc script gets executed and passed the run-level much like in Solaris and other unix environments. Example: l2:2:wait:/etc/rc.d/rc 2 l3:3:wait:/etc/rc.d/rc 3 l4:4:wait:/etc/rc.d/rc 4 l5:5:wait:/etc/rc.d/rc 5 l6:6:wait:/etc/rc.d/rc 6 l7:7:wait:/etc/rc.d/rc 7 l8:8:wait:/etc/rc.d/rc 8 l9:9:wait:/etc/rc.d/rc 9 The rc script gets a listing of user defined scripts residing in each corresponding rc(runlevel).d directory and executes kill scripts followd by start scripts by passing a stop or start parameter. These allow for a much more user controlled run-level to run-level environment switch. contents of /etc/rc.d/rc script: #!/bin/ksh # IBM_PROLOG_BEGIN_TAG # This is an automatically generated prolog. # # bos43V src/bos/etc/rc.d/rc.sh 1.2 # # Licensed Materials - Property of IBM # # Restricted Materials of IBM # # (C) COPYRIGHT International Business Machines Corp. 2000,2001 # All Rights Reserved # # US Government Users Restricted Rights - Use, duplication or # disclosure restricted by GSA ADP Schedule Contract with IBM Corp. # # IBM_PROLOG_END_TAG # # file name:rc # purpose: run user-provided scripts in rc directories # #run level parameter run_level=${1} #check if valid run level was requested case $run_level in [01] ) echo Invalid run level choice; levels 0 and 1 are reserved in AIX ;; [a-zA-Z] ) echo Please enter a run level from 2 to 9 ;; esac #check if run level directory exists if [[ -s /etc/rc.d/rc${run_level}.d ]] then #get a list of the kill scripts in this directory k_list=$(ls /etc/rc.d/rc${run_level}.d | grep ^K | sort -) #get a list of the start scripts in this directory s_list=$(ls /etc/rc.d/rc${run_level}.d | grep ^S | sort -) #execute kill scripts if [[ -n ${k_list} ]] then echo ${k_list} | while read item do /etc/rc.d/rc${run_level}.d/${item} stop done fi #execute start scripts if [[ -n ${s_list} ]] then echo ${s_list} | while read item do /etc/rc.d/rc${run_level}.d/${item} start done fi else echo Requested run level directory does not exist fi exit 0 The normal AIX run-level is 2, so in /etc/rc.d/rc2.d I have: lrwxrwxrwx 1 root system16 Nov 13 13:46 S81tsmcad - /etc/rc.d/tsmcad in other runlevels, you put (or should put): K81tsmcad - /etc/rc.d/tsmcad /etc/rc.d/tsmcad contents are: case $1 in 'start') nohup /usr/tivoli/tsm/client/ba/bin/dsmcad # TSM web client acceptor ;; 'stop') kill -9 `ps -ef|grep dsmcad|grep -v grep|awk ' {print $2} '` ;; esac At anytime I can start or stop dsmcad manually; To start: /etc/rc.d/rc2.d/S81tsmcad start To stop: /etc/rc.d/rc2.d/S81tsmcad stop WORKS GREAT! Regards, Al Barth David Longo [EMAIL PROTECTED] Sent by: ADSM: Dist Stor Manager [EMAIL PROTECTED] 02/26/03 12:14 PM Please respond to ADSM: Dist Stor Manager To: [EMAIL PROTECTED] cc: Subject:Re: AIX Client automatic start for dsmcad SNIPPED TO END
AIX Client automatic start for dsmcad
Hi, Where is the best place for starting dsmcad during boot on AIX 4.3.3? Like /etc/rc.d/rc.local for Linux I got some suggestions yesterday but not really described exactly. I'm not a AIX Guru but I know Linux. ManagedServices is webclient schedule dsmcad is in /var/tivoli/tsm/client/ba/bin/ I'm asking for: 1. On AIX is the TSMCAD Daemon the best way to run the Schedule? 2. Name of the scriptfile for start, based on the answer on the first Q. 3. Correct syntax for that entry, based on the answer on the first Q. Thanks i advance //Anders
Re: AIX Client automatic start for dsmcad
Anders -- 1) I'm not familiar with tsmcad (I'm on 4.2) and I use dsmc sched to launch the schedule proceess 2a) as root - mkitab (local:2:once:/etc/rc.local 21 /dev/console)) (see 'man mkitab') 2b) in /etc/rc.local, include this line: nohup /usr/tivoli/tsm/client/ba/bin/dsmc sched /dev/null 21 You'll have to create your own rc.local, AIX doesn't include a sample. Mine is owned by root:system and permisions of 744 -- here's part of it: begin rc.local #!/bin/sh # # start entropy gathering daemon for ssh and gpg usage /usr/bin/startsrc -s prngd # Set memory constraints /usr/samples/kernel/vmtune -p 3 -P 8 -R 64 /ROOT/tuning.cust more site-specific stuff deleted ... # # Application startup goes after this line . . . # # start ess paging spaces /usr/sbin/swapon /dev/paging00 /dev/paging01 # # start tsm server # /usr/tivoli/tsm/server/bin/rc.adsmservnib /dev/console 21 # Need to let the server start up . . . sleep 30 /usr/local/bin/start_adsm.sh === end rc.local = In my case, I've put the 'nohup /usr/tivoli. . .' as the one-line entry in /usr/local/bin/start_adsm.sh (and this is the entry from my TSM server system). HTH -- Tom Kauffman NIBCO, Inc -Original Message- From: Anders Ståhlbom [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 5:09 AM To: [EMAIL PROTECTED] Subject: AIX Client automatic start for dsmcad Hi, Where is the best place for starting dsmcad during boot on AIX 4.3.3? Like /etc/rc.d/rc.local for Linux I got some suggestions yesterday but not really described exactly. I'm not a AIX Guru but I know Linux. ManagedServices is webclient schedule dsmcad is in /var/tivoli/tsm/client/ba/bin/ I'm asking for: 1. On AIX is the TSMCAD Daemon the best way to run the Schedule? 2. Name of the scriptfile for start, based on the answer on the first Q. 3. Correct syntax for that entry, based on the answer on the first Q. Thanks i advance //Anders
Re: AIX Client automatic start for dsmcad
Hi, I use /etc/inittab file. If you're not familiar with AIX, please refer to document; http://publibn.boulder.ibm.com/doc_link/en_US/a_doc_lib/cmds/aixcmds3/mkitab.htm#HDRA3059129 Entries that you should add may look like the followings; tivoliba:2:respawn:/usr/tivoli/tsm/client/ba/bin/dsmc schedule /dev/console 21 tivolicad:2:once:/usr/tivoli/tsm/client/ba/bin/dsmcad /dev/console 21 These lines works in my environm. You may call also AIX support line for help. Hope this helps. [EMAIL PROTECTED] 02/26/03 05:08AM Hi, Where is the best place for starting dsmcad during boot on AIX 4.3.3? Like /etc/rc.d/rc.local for Linux I got some suggestions yesterday but not really described exactly. I'm not a AIX Guru but I know Linux. ManagedServices is webclient schedule dsmcad is in /var/tivoli/tsm/client/ba/bin/ I'm asking for: 1. On AIX is the TSMCAD Daemon the best way to run the Schedule? 2. Name of the scriptfile for start, based on the answer on the first Q. 3. Correct syntax for that entry, based on the answer on the first Q. Thanks i advance //Anders
AIX Client automatic start for dsmcad
Where is the best place for starting dsmcad during boot on AIX 4.3.3? Like /etc/rc.d/rc.local for Linux //Anders
Re: AIX Client automatic start for dsmcad
I use /etc/inittab file to bring dsmcad with ONCE option. Jin Bae Chi (Gus) System Admin/Tivoli Data Center, CSCC 614-287-5270 614-287-5488 Fax [EMAIL PROTECTED] [EMAIL PROTECTED] 02/25/03 09:45AM Where is the best place for starting dsmcad during boot on AIX 4.3.3? Like /etc/rc.d/rc.local for Linux //Anders