Startup Scripts for OBIEE 11g on Linux

Hi, I originally spent many hours trying to find a startup/shutdown script for OBIEE on linux, in the end I compiled a new one based on notes in the install manual and other posts on the subject until I got it working consistantly
Please add comments or improvements :)
Note: you need to create the boot.properties file (in /security) for each server, and provide the username/password so WebLogic won't prompt for it when starting automatically (otherwise it doesn't start :p) ....refer to the install manual or [weblogic boot.properties|http://onlineappsdba.com/index.php/2010/08/21/weblogic-startup-prompting-from-username-password-bootproperties/]
#!/bin/bash
# /etc/init.d/obiee
# Run-level Startup script for OBIEE
# set required paths
export ORACLE_BASE=/opt/oracle
export ORACLE_HOME=/opt/oracle/product/11.1.0/db_1
export ORACLE_OWNR=oracle
export ORACLE_FMW=/opt/oracle/product/fmw
export PATH=$PATH:$ORACLE_FMW/bin
case "$1" in
start)
echo -e "Starting Weblogic Server...."
su $ORACLE_OWNR -c "$ORACLE_FMW/user_projects/domains/bifoundation_domain/bin/startWebLogic.sh > /dev/null 2>&1 &"
sleep 30
echo -e "Starting Node Manager..."
su $ORACLE_OWNR -c "$ORACLE_FMW/wlserver_10.3/server/bin/startNodeManager.sh > /dev/null 2>&1 &"
sleep 30
echo -e "Starting Managed Server: bi_server1..."
su $ORACLE_OWNR -c "$ORACLE_FMW/user_projects/domains/bifoundation_domain/bin/startManagedWebLogic.sh bi_server1 [url for admin console] > /dev/null 2>&1 &"
sleep 30
echo -e "Starting Components...."
su $ORACLE_OWNR -c "$ORACLE_FMW/instances/instance1/bin/opmnctl startall > /dev/null 2>&1 &"
sleep 30
stop)
echo -e "Stopping Components...."
su $ORACLE_OWNR -c "$ORACLE_FMW/instances/instance1/bin/opmnctl stopall > /dev/null 2>&1 &"
sleep 30
echo -e "Stopping Managed Server: bi_server1..."
su $ORACLE_OWNR -c "$ORACLE_FMW/user_projects/domains/bifoundation_domain/bin/stopManagedWebLogic.sh bi_server1 [url for admin console] [weblogic user] [weblogic pass] > /dev/null 2>&1 &"
sleep 30
echo -e "Stopping Weblogic Server...."
su $ORACLE_OWNR -c "$ORACLE_FMW/user_projects/domains/bifoundation_domain/bin/stopWebLogic.sh > /dev/null 2>&1 &"
sleep 15
status)
echo -e "Component Status...."
su $ORACLE_OWNR -c "$ORACLE_FMW/instances/instance1/bin/opmnctl status"
restart)
$0 stop
$0 start
echo "Usage: `basename $0` start|stop|restart|status"
exit 1
esac
exit 0
Hopefully this helps others in the same situation
Cheers

HI,
Is this script for Enterprise Install on a single computer? For Simple install I think there is no concept of nodemanager and managedserver.
--Joe                                                                                                                                                                                                                                                                                                                           

Similar Messages

  • Startup/Shutdown script for OBIEE 11g on Linux

    Hi all,
    as a follow-up to [url http://forums.oracle.com/forums/thread.jspa?messageID=4546010]an earlier thread by some fine gentleman, I have improved the original startup/shutdown script for Linux a bit, making sure that all processes are handled correctly. The script has been tested and works fine on CentOS 5.5 with Oracle BI 11.1.1.3.0 in a clustered configuration. Instructions:
    Manual start/stop:
    > service obiee start
    > service obiee stop
    > service obiee status
    Automatic start/stop during boot sequence:
    > chkconfig --add obiee
    > chkconfig obiee on
    Note that in order for the procedure to go through smoothly, you need to provide the admin credentials (username/password, defaulting to weblogic/weblogic) in three different places:
    1. In configuration file <FMW_HOME>/user_projects/domains/<domain name>/servers/AdminServer/security/boot.properties for the administration server;
    2. In script <FMW_HOME>/user_projects/domains/<domain name>/bin/startManagedWebLogic.sh (variables WLS_USER and WLS_PW) for the managed server;
    3. In the startup script itself (variables BIEE_USER and BIEE_PASSWD) for shutting down the managed server.
    Complete logs are available in /var/log/obiee-start (-stop).log files.
    Please comment as necessary,
    Chris
    #!/bin/bash
    # File:    /etc/init.d/obiee
    # Purpose: Start and stop Oracle Business Intelligence 11g components.
    # chkconfig: 2345 99 10
    # description: Manage OBIEE service.
    # These values must be adapted to your environment.
    ORACLE_OWNR=oracle                  # Local Unix user running OBIEE
    ORACLE_FMW=/home/oracle/biee        # Deployment root directory
    BIEE_USER=<username>                # BIEE administrator name
    BIEE_PASSWD=<password>              # BIEE administrator password              
    BIEE_DOMAIN=<domain name>           # Domain name
    BIEE_INSTANCE=instance1             # Instance name
    BIEE_SERVER=bi_server1              # Server name
    BIEE_MANAGER_URL=<hostname>:7001    # Admin server URL (hostname:port)   
    # These should require no change.
    WL_PATH=$ORACLE_FMW/wlserver_10.3/server/bin
    BIEE_PATH=$ORACLE_FMW/user_projects/domains/$BIEE_DOMAIN/bin
    ORACLE_INSTANCE=$ORACLE_FMW/instances/$BIEE_INSTANCE
    export ORACLE_INSTANCE
    START_LOG=/var/log/obiee-start.log
    STOP_LOG=/var/log/obiee-stop.log
    SUBSYS=obiee
    start() {
        echo "********************************************************************************"
        echo "Starting Admin Server on $(date)"
        echo "********************************************************************************"
        su $ORACLE_OWNR -c "$BIEE_PATH/startWebLogic.sh" &
        wait_for "Server started in RUNNING mode"
        echo "********************************************************************************"
        echo "Starting Node Manager on $(date)"
        echo "********************************************************************************"
        su $ORACLE_OWNR -c "$WL_PATH/startNodeManager.sh" &
        wait_for "socket listener started on port"
        echo "********************************************************************************"
        echo "Starting Managed Server $BIEE_SERVER on $(date)"
        echo "********************************************************************************"
        su $ORACLE_OWNR -c "$BIEE_PATH/startManagedWebLogic.sh $BIEE_SERVER http://$BIEE_MANAGER_URL" &
        wait_for "Server started in RUNNING mode"
        echo "********************************************************************************"
        echo "Starting BI components on $(date)"
        echo "********************************************************************************"
        su $ORACLE_OWNR -c "$ORACLE_INSTANCE/bin/opmnctl startall"
        echo "********************************************************************************"
        echo "OBIEE start sequence completed on $(date)"
        echo "********************************************************************************"
    stop() {
        echo "********************************************************************************"
        echo "Stopping BI components on $(date)"
        echo "********************************************************************************"
        su $ORACLE_OWNR -c "$ORACLE_INSTANCE/bin/opmnctl stopall"
        echo "********************************************************************************"
        echo "Stopping Managed Server $BIEE_SERVER on $(date)"
        echo "********************************************************************************"
        su $ORACLE_OWNR -c "$BIEE_PATH/stopManagedWebLogic.sh $BIEE_SERVER t3://$BIEE_MANAGER_URL $BIEE_USER $BIEE_PASSWD"
        echo "********************************************************************************"
        echo "Stopping Node Manager on $(date)"
        echo "********************************************************************************"
        pkill -TERM -u $ORACLE_OWNR -f "weblogic\\.NodeManager"
        echo "********************************************************************************"
        echo "Stopping Admin Server on $(date)"
        echo "********************************************************************************"
        su $ORACLE_OWNR -c "$BIEE_PATH/stopWebLogic.sh"
        echo "********************************************************************************"
        echo "OBIEE stop sequence completed on $(date)"
        echo "********************************************************************************"
    wait_for() {
        res=0
        while [[ ! $res -gt 0 ]]
        do
            res=$(tail -5 "$START_LOG" | fgrep -c "$1")
            sleep 5
        done
    case "$1" in
        start)
            echo "********************************************************************************"
            echo "Starting Oracle Business Intelligence on $(date)"
            echo "Logs are sent to $START_LOG"
            echo "********************************************************************************"
            start &> $START_LOG &
            touch /var/lock/subsys/$SUBSYS
        stop)
            echo "********************************************************************************"
            echo "Stopping Oracle Business Intelligence on $(date)"
            echo "Logs are sent to $STOP_LOG"
            echo "********************************************************************************"
            stop &> $STOP_LOG
            rm -f /var/lock/subsys/$SUBSYS
        status)
            echo "********************************************************************************"
            echo "Oracle BIEE components status...."
            echo "********************************************************************************"
            su $ORACLE_OWNR -c "$ORACLE_INSTANCE/bin/opmnctl status"
        restart)
            $0 stop
            $0 start
            echo "Usage: $(basename $0) start|stop|restart|status"
            exit 1
    esac
    exit 0

    You can use WLST to start/stop BI Services and it works on both Linux and Windows.
    Following link has the sample -
    http://download.oracle.com/docs/cd/E21764_01/bi.1111/e10541/admin_api.htm#CDEFAHDD

  • Starting OBIEE 11g on Linux 64 bit

    Hi,
    I installed OBIEE 11g on Linux 64 bit and it worked fine after installation. I rebooted the system and I need to start it again.
    I am trying to run
    run-sa.sh
    run-saw.sh
    etc.
    but it looks like the scripts are broken:
    ./run-saw.sh: line 43: syntax error near unexpected token `('
    ./run-saw.sh: line 43: `ANA_INSTALL_DIR=$N($P(installLocation))'
    it looks like these scripts were not processed by the installer during installation, $N($P(installLocation)) should have been replaced by the installer with actual paths I assume.
    is there another way to start OBIEE?
    Thanks,
    Calin

    Are you sure you are running OBIEE 11g? YOu are meant to use those scripts any more in 11g. See this post:
    Startup Scripts for OBIEE 11g on Linux

  • Installing  Repository Creation Utility (RCU) for OBIEE 11g

    Hello,
    We are working on installing the Oracle Business Intelligence Entreprise Edition Plus 11g (v 11.1.1.6.0) for a POC in our Company's network.
    We have to install the OBI Server and other server-side components on a IBM AIX (64-Bit) server; and the client tools on the local Desktops.
    My queries:
    *1. I am downloading the following softwares for this setup. Please help me understand is this the complete list of softwares required, or are there any more softwares required for OBIEE 11g intallation?*
    List of softwares to be downloaded:
    1) Oracle Business Intelligence, v. 11.1.1.6.0
    - for AIX (64-Bit):
    Disk 1 (1of2) (1.4G) (cksum 4182440856)
    Disk 1 (2of2) (1.5G) (cksum 2020935297)
    Disk 2 (1of2) (1.7G) (cksum 796853559)
    Disk 2 (2of2) (1.3G) (cksum 685152953)
    Disk 3 (1.6G) (cksum 1431984641)
    2) Repository Creation Utility (11.1.1.6.0)
    for Microsoft Windows (32-bit) (320M) (cksum 2503314275) OR for Linux x86 (32-bit) (391M) (cksum 201758785)
    Link for (1) and (2): http://www.oracle.com/technetwork/middleware/bi-enterprise-edition/downloads/bi-downloads-1525270.html
    3) Oracle Business Intelligence Developer Client Tools Installer (11.1.1.6.0)
    - for Microsoft Windows x86 (32/64-bit): (360M) (cksum 3317017977)
    Link for (3): http://www.oracle.com/technetwork/middleware/bi-enterprise-edition/downloads/bus-intelligence-11g-165436.html
    NOTE: The JDK 1.5.0 is installed
    *2. Where should the additional required software 'Repository Creation Utility' be installed in this case?*
    I can see it is available for 32-bit OS (Windows or Linux x86), and that is why I suspect it to be a client-side software - which is to be installed on my local desktop. Hence, Can I download the Repository Creation Utility (11.1.1.6.0) for Microsoft Windows (32-bit) (320M) (cksum 2503314275)
    Please clarify.
    *4. I will not be installing any of the Oracle BI Applications, so will I require the software Oracle Business Intelligence Data Warehouse Administration Console (10.1.3.4.1)?*
    I assume NO.
    *5. IMP: Is there a Web server (E.g. Oracle WebLogic Server) included in the OBIEE suite, which gets installed in the default installation settings?*
    OR Is there a need to download and install a separate Webserver on the AIX system before installing OBIEE.
    Please reply ASAP.
    Thanks,
    Shweta.

    Although it is a POC, but the installation has to be done on a AIX6.1 remote system, which will be used as a server in the enterprise, with 5 to 7 people accessing it. So 'simple install' is not suitable in this case.
    The AIX6.1 system has a JDK 6 (64 bit).
    I understand that the OBIEE 11g suite comes with a Oracle WebLogic Server (OWLS) installable included in the suite. However, in case of Software Only installation type, the OWLS needs to installed first and then the installer has to be started in 'Softwar Only' mode.
    Could anyone please suggest:
    *1) does 'Enterprise Install' type suite on the AIX6.1 system? If yes, does it mean that it will install JDK once again? is this recommended, as the host system is a shared server and the existing JDK 6 (64-bit) can be in use by other applications on this system.*
    *2) If (1) is not true, is there a way to install the Oracle WebLogic server using the OBIEE 11g installer itself? or do I need to download the WebLogic server installer separately from the OTN site?*
    Thanks in advance for any helping pointers on the above.
    Please reply ASAP, as this is urgent.
    Thanks,
    Shweta.

  • How to Save Agent Output in Local Disk in OBIEE 11g on linux

    Hi
    I am using OBIEE 11.1.1.6.2
    I want to schedule some reports which will run everyday night and the Output to be saved in my local disk
    I read this article http://obiee1000.blogspot.in/2012/01/actions-in-agents-part-1.html ...but this solution is only for windows platform.
    i need to implement this on Linux.
    Please help me .
    Thanks.

    Hello Srini,
    This article talks the process for Ibots. Is the procedure same for OBIEE 11g agents.
    are you sucessful in achiving this . since i have to involve others in implementing this just wanted to be sure this works for OBIE 11g on linux.
    Please let me know.
    Thanks.

  • How to create a second OracleBIApplication in WebLogic for OBIEE 11g?

    I want to create a second OracleBIApplication in WebLogic for OBIEE 11g. The default one is called "coreapplication". I can create a new one but it doesn't show up in Enterprise Manager. Anyone can help?

    I have been trying to create a second OracleBIApplicatino in WebLogic for OBIEE 11g without success. I don't want to end up installing it twice as it is going to consume a lot of resources and also because I want to have a single WebLogic Domain. Has anyone faced the same situation?
    What about deploying the "analytics" web application as a new web application with a different context-root (e.g. analytics_test)? I am also trying but I can't make it work. Anyone available to help?

  • Missing startup script for version cue

    I'm having the problem where I don't seem to have the startup scripts for version cue in bridge.
    When I check the list of startup scripts in preferences, the other scripts all seem to be there like for contribute, fireworkds etc. However version cue is missing.
    I also checked the actual locations for the startup scripts.
    The scripts for version cue seem to be in the actual locations but for some reason they're not running or showing up in bridge or that's what I'm assuming anyway.
    I'm running bridge CS4 and version cue CS4.
    If anyone could help me that would be great!

    What then do they recommend?  The URL listed below is broken/no longer available.  The solution listed above does appear to work.  I installed Version Cue Server CS4 after having installed the rest of the suite on my workstation.  I used drive to link to the server(my machine which I am using for testing).  I had CS3 on this machine before uninstalling it and installing CS4.
    Re: Missing startup script for version cue
    Matthew Laun wrote:
     Adobe recommends that you do not follow the steps above to enable Version Cue CS4 in Bridge CS4.
    Please see this thread for more details:
    http://www.adobeforums.com/webx/.59b6d12f

  • Proper steps to UNINSTALL OBIEE 11g on linux ?

    Hi Experts,
    Because of different new errors , decided to uninstall OBIEE 11g on linux.
    Does any one knows proper steps to uninstall and help me in regarding this.
    Already lot of time is invested in resolving the errors. But could not resolved.
    Regards,
    Kalyan

    Hi Kalyan,
    Try this one
    Uninstall OBIEE 11g
    Thanks,
    Sri

  • Hardware/system requirements for OBIEE 11g

    Does anyone have the hardware and system requirements for OBIEE 11g? I'm trying to procure hardware for an internal environment but want to make sure that the system requirements have not changed significantly from 10g.
    Can anyone share this information? It would be greatly appreciated. I know 11g is not out yet but trying to get a headstart on ordering hardware in preparation.

    I don't think there will be any major changes in the hardware side of things. Basically anything that was able to run 10g should be able to run 11g. They will probably add support for newer software components which normally happens at each release.

  • Oracle Startup Scripts for AIX

    Does anyone have experience setting up automatic Oracle startup scripts for AIX?
    Any help would be greatly appreciated!
    Thanks,
    Mike

    Some recommandation here :
    http://download-uk.oracle.com/docs/cd/B19306_01/server.102/b15658/strt_stp.htm#sthref255
    Nicolas.

  • Linux Startup script for Forms Services 11g with Weblogic

    Hi,
    Does anybody know where I can find info about the startup script process for Forms Service 11g under linux? I can't find it googling it... I think I have to startup weblogic first... isnt it ? or opmnctl works alone ?
    In 10g we just need to set env vars and then "opmnctl startall" and if we need enterprise manager "emctl start iasconsole" ... what about on 11g?
    Regards
    Ricardo

    You can start directly the WLS_FORMS without starting the Admin and Node manager ..
    I think if you go through this link , you will get more information ..
    Re: Forms 11g - Installation steps for a developer machine

  • Startup/Shutdown script for OBIEE 11.1.1.5.0 on Linux

    There was a very good thread on start/stop scripts for Oracle BI 11.1.1.3.0 that can be found at
    https://forums.oracle.com/forums/thread.jspa?messageID=9896816#9896816Now OBI11.1.1.5.0 is out and I tried to use the scripts in the post to start OBI 11.1.1.5.0 after system reboot. I did the following
    1) saved the scripts modified with my environemnt variables in /etc/init.d
    2) login as root
    3) issue command, and got in std out right away
    # service obiee start
    Starting Oracle Business Intelligence on Tue Sep 27 10:39:31 PDT 2011
    Logs are sent to /var/log/obiee-start.log
    4) check the log file
    [oracle@cchdb ~]$ tail -f /var/log/obiee-start.log
    at weblogic.security.providers.authentication.LDAPAtnLoginModuleImpl.login(LDAPAtnLoginModuleImpl.java:261)
    at com.bea.common.security.internal.service.LoginModuleWrapper$1.run(LoginModuleWrapper.java:110)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.bea.common.security.internal.service.LoginModuleWrapper.login(LoginModuleWrapper.java:106)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    Truncated. see log file for complete stacktrace
    >
    <Sep 27, 2011 10:39:54 AM PDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FAILED>
    <Sep 27, 2011 10:39:54 AM PDT> <Error> <WebLogicServer> <BEA-000383> <A critical service failed. The server will shut itself down>
    <Sep 27, 2011 10:39:54 AM PDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FORCE_SHUTTING_DOWN>
    5) Check running processes
    [root@cchdb oracle]# ps -fe|grep obiee
    root 9332 1 0 10:39 pts/2 00:00:00 /bin/bash /etc/init.d/obiee start
    oracle 9452 9179 0 10:39 pts/1 00:00:00 tail -f /var/log/obiee-start.log
    root 9481 9305 0 10:40 pts/2 00:00:00 grep obiee
    OBI is not started. Can some one help ?

    Tried various things and has a work around.
    First of all, cannot make WLST work for me. Then tried manually step by step as described in reference https://forums.oracle.com/forums/thread.jspa?messageID=9896816#9896816 that is in fact agree with document e10541.
    1) Start Admin Server and response to prompt to username/password
    <BI Domain Home>/bin/startWebLogic.sh
    2) Start node manager
    $WL_PATH/startNodeManager.sh
    3) Start managed Server with Weblogic Server Admin Console
    4) Start System Components with opmnctl
    ./opmnctl startall This works with the following notes1) Do step one in backgroumd not work, cannot response the username/password prompt properly.
    2) If change WLS_USER and WLS_PW in <BI Domain Home>/bin/startManagedWebLogic.sh as in the reference cited abover, step 1 still prompt for username and stops right after username is provided.
    3) Step 3 does not work if use command line
    <BI Domain Home>/bin/startManagedWebLogic.sh bi_server1 http://<admin_server_host_name>:7001
    Has to use UI tool Weblogic Server Admin Console.  Question1) How to provide username/password to startWebLogic.sh to allow run it in background
    2) How to provide username/password to startManagedWebLogic.sh to allow run it in background

  • Requirement to upgrade OBIEE 10g on Windows to OBIEE 11g on Linux

    Dear All,
    I have a requirement to upgrade OBIEE 10g from current windows 2003 environment to OBIEE 11g Linux environment.
    I went through forums and many threads on upgrade, everywhere they talk about Upgrade Assistant (UA). And oracle documentation says ,
    +"Do not change from one platform or architecture to a different platform or architecture as part of the upgrade process.+
    +For example, if the existing 10g system is running on a Windows 32-bit platform, do not install Oracle BI 11g on a Linux 64-bit platform and then run the Linux 64-bit Upgrade Assistant to upgrade the existing 10g system."+
    But there would certainly be scenarios with other users the way I have. Then what is the way out to do this upgrade?
    Can anyone give some advice on this. It is little urgent.
    Thanking in advance.
    Regards,
    Deepika.

    Thats are huge change in platform. win32 to linux 64.
    Yet what we upgrade is only
    catalog and rpd.
    this might involve some manual change if UA cannot complete successfully.
    Its better to do a prototype before the actual upgrade as recommended by Oracle. This will show what can the possible issues and road blocks.
    Edited by: user10615659 on May 23, 2013 11:22 AM
    Edited by: user10615659 on May 23, 2013 12:26 PM

  • OBIEE 11g on linux

    HI all
    I have downloaded the oracle 11g and obiee 11g version for Linux 86-64
    Thinking that regardless of my Linux OS version I might be able to install on both 32 and 64 bit.
    But as I got down downloading ubuntu there are only single flavours either 64 or 32 bit
    I want to know if I download and install 64 bit version will the above oracle applications (86-64) work
    If not what would be the easiest way to settle this.
    Edited by: U1111B on 15-Jul-2011 05:10

    If you are going to Linux with your Oracle BI install you might as well go with Oracle Unbreakable/Enterprise Linux.
    This is also in-line with the RedHat kernel but it is actually certified to work. And you still are able to pull from the additional YUM repositories like RPMForge as well as the Oracle Unbreakable/Enterprise Linux repositories for Free.
    You may wind up with small issues on CentOS even though it is a flavor of Red Hat. But, whatever you do, don't installl OBIEE on Ubuntu.

  • Need to write a startup script for TunTap

    Dear community,
    I am using 10.10.1, 13" MBPr Late 2013 and I need to be able to access my Work VPN. From what i have been told, the OS X client can't work and that I have been advised to use Shrew Soft VPN. (We initially tried to get the WatchGuard Firewall to build a Mac .dmg and that didn't work). To get ShrewSoft to work, I have had to follow these steps:
    http://ulaptech.blogspot.co.uk/2012/11/shrew-soft-vpn-client-for-mac-os-x.html
    ·         Install the qt-mac-opensource-4.7.1.dmg file first
    ·         Install the tuntap20111101.tar.gz file second
    ·         Install the shrew soft client.
    But the TunTap download that is above will not work as it is unsigned and Yosemite has now killed off unsigned kexts.I tried turning off the requirement for OS X for signed kexts by using this command:
    sudo nvram boot-args="kext-dev-mode=1"
    Then rebooting, but it didnt work.
    I can get the VPN to work if I open up terminal and enter these two commands:
    sudo kextload /library/extensions/tap.kext
    sudo kextload /library/extensions/tun.kext
    But I have to do this everytime i turn my Mac on.
    Could somebody please help me write those two lines into a startup script? As I really have no idea how to do it.
    Your help and guidance would be appreciated

    Choose Utilities from the Finder’s Go menu, open the AppleScript Editor, and paste in the following:
    set thepassword to text returned of (display dialog "Your administrator password is required." default answer "" with hidden answer)
    do shell script "kextload /Library/Extensions/tap.kext" with administrator privileges password thepassword
    do shell script "kextload /Library/Extensions/tun.kext" with administrator privileges password thepassword
    Save it as an application and set it as a login item.
    (120186)

Maybe you are looking for