10 Replies Latest reply on Aug 3, 2010 9:56 AM by R V

    set BLAdmin and RBACAdmin passwd from the command line

    Bill Robinson

      This is for a silent install of the appserver.  I'd like to set the BLAdmin and RBACAdmin user passwords from the command line instead of via blappconf.  Any thoughts as to how to do this?

       

      I was looking at bladduser but I can't find any docs on it and it's been a long time since I've used it.

        • 1. Re: set BLAdmin and RBACAdmin passwd from the command line
          Wenchi Liao

          bladduser user password .

           

          bladduser RBACAdmin bladelogic

           

          and

           

          bladduser BLAdmin bladelogic

           

          creates the RBACAdmin and BLAdmin users and sets their password to bladelogic. At this point, I pretty much never use blappconf

           

          I also do this I set the database information via blasadmin.

          • 2. Re: set BLAdmin and RBACAdmin passwd from the command line
            Bill Robinson

            you should write a document on there that describes how to install the appserver silently.

             

            also, have you found a way to silently setup the pxe server?  the installer prompts you for db and other info (unix atleast, haven't tried windows)

            • 3. Re: set BLAdmin and RBACAdmin passwd from the command line
              Bill Robinson

              That does not seem to work, see below.  the appserver did seem to startup correctly, but maybe i'm missing a config?

               

              function(){return A.apply(null,[this].concat($A(arguments)))}

              [root@blapp-rhel-01 br]# bladduser RBACAdmin bladelogic
              [01 Jun 2010 03:49:10,391] [main] [INFO] [::] [] Starting Agent Service...
              [01 Jun 2010 03:49:10,402] [main] [INFO] [::] [] Agent Service started.
              [01 Jun 2010 03:49:10,521] [main] [INFO] [::] [] Starting Configuration Service...
              [01 Jun 2010 03:49:10,899] [main] [INFO] [::] [] Configuration Service started.
              [01 Jun 2010 03:49:10,983] [main] [INFO] [::] [] Loading JNI libaries...
              [01 Jun 2010 03:49:11,009] [main] [INFO] [::] [] Loaded JNI library BlAsJni
              [01 Jun 2010 03:49:11,012] [main] [INFO] [::] [] Loaded JNI library XJNIService
              [01 Jun 2010 03:49:11,541] [main] [INFO] [::] [] Skipped Loading JNI library Atrium Core
              [01 Jun 2010 03:49:11,543] [main] [INFO] [::] [] Initializing JNI Configuration...
              [01 Jun 2010 03:49:11,544] [main] [INFO] [::] [] Initialized JNI library BlAsJni
              [01 Jun 2010 03:49:11,548] [main] [INFO] [::] [] Initialized JNI library XJNIService
              [01 Jun 2010 03:49:11,548] [main] [INFO] [::] [] Initialized JNI library Atrium Core
              [01 Jun 2010 03:49:11,548] [main] [INFO] [::] [] JNI Configuration complete.
              [01 Jun 2010 03:49:11,564] [main] [INFO] [::] [] Starting Model Graph Service...
              [01 Jun 2010 03:49:18,884] [main] [INFO] [::] [] Model Graph Service started.
              [01 Jun 2010 03:49:18,894] [main] [INFO] [::] [] Starting Non-Network Directory Service...
              [01 Jun 2010 03:49:18,895] [main] [INFO] [::] [] Non-Network Directory Service started.
              [01 Jun 2010 03:49:18,901] [main] [INFO] [::] [] Starting Non-Network Management Service...
              [01 Jun 2010 03:49:18,902] [main] [INFO] [::] [] Non-Network Management Service started.
              [01 Jun 2010 03:49:18,935] [main] [INFO] [::] [] Starting Port Provider...
              [01 Jun 2010 03:49:18,936] [main] [INFO] [::] [] Port Provider started.
              [01 Jun 2010 03:49:18,992] [main] [INFO] [::] [] Starting Sizing Service...
              [01 Jun 2010 03:49:18,992] [main] [INFO] [::] [] Sizing Service started.
              [01 Jun 2010 03:49:19,003] [main] [INFO] [::] [] Starting Caching Service...
              [01 Jun 2010 03:49:19,007] [main] [INFO] [::] [] Caching Service started.
              [01 Jun 2010 03:49:19,011] [main] [INFO] [::] [] Starting Session Service...
              [01 Jun 2010 03:49:19,051] [main] [INFO] [::] [] Session Service started.
              [01 Jun 2010 03:49:19,056] [main] [ERROR] [::] [] Error installing to Configured: name=bladelogic.service.AsDataSourceService state=Instantiated
              java.lang.IllegalArgumentException: Null value metadata
              at org.jboss.kernel.plugins.config.Configurator.getPropertySetterJoinPoint(Configurator.java:487)
              at org.jboss.kernel.plugins.config.Configurator.getPropertySetterJoinPoint(Configurator.java:434)
              at org.jboss.kernel.plugins.config.Configurator.getPropertySetterJoinPoints(Configurator.java:398)
              at org.jboss.kernel.plugins.config.AbstractKernelConfigurator.getPropertySetterJoinPoints(AbstractKernelConfigurator.java:112)
              at org.jboss.kernel.plugins.dependency.KernelControllerContextActions$ConfigureAction.installAction(KernelControllerContextActions.java:313)
              at org.jboss.kernel.plugins.dependency.KernelControllerContextActions$KernelControllerContextAction.install(KernelControllerContextActions.java:147)
              at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
              at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:226)
              at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:593)
              at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:346)
              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:438)
              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:379)
              at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:225)
              at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:151)
              at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBean(AbstractKernelDeployer.java:291)
              at com.bladelogic.app.service.bootstrap.ServiceBeanXMLDeployer.deployBean(ServiceBeanXMLDeployer.java:38)
              at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBeans(AbstractKernelDeployer.java:261)
              at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deploy(AbstractKernelDeployer.java:117)
              at org.jboss.kernel.plugins.deployment.xml.BeanXMLDeployer.deploy(BeanXMLDeployer.java:91)
              at com.bladelogic.app.service.bootstrap.ServiceBootstrap.deploy(ServiceBootstrap.java:240)
              at com.bladelogic.app.service.bootstrap.ServiceBootstrap.deployService(ServiceBootstrap.java:187)
              at com.bladelogic.app.service.bootstrap.ServiceBootstrap.bootstrap(ServiceBootstrap.java:141)
              at org.jboss.kernel.plugins.bootstrap.AbstractBootstrap.run(AbstractBootstrap.java:91)
              at com.bladelogic.app.service.bootstrap.ServiceBootstrap.startup(ServiceBootstrap.java:66)
              at com.bladelogic.mfw.fw.BlManager.startWithType(BlManager.java:576)
              at com.bladelogic.mfw.fw.BlManager.startWithUtilType(BlManager.java:686)
              at com.bladelogic.mfw.auth.AddUser.startServer(AddUser.java:159)
              at com.bladelogic.mfw.auth.AddUser.init(AddUser.java:97)
              at com.bladelogic.mfw.auth.AddUser.main(AddUser.java:32)
              [01 Jun 2010 03:49:19,081] [main] [INFO] [::] [] Starting Task Scheduling Service...
              [01 Jun 2010 03:49:19,093] [main] [INFO] [::] [] Task Scheduling Service started.
              [01 Jun 2010 03:49:19,096] [main] [INFO] [::] [] Registering remote services...
              com.bladelogic.app.service.bootstrap.DeploymentException: com.bladelogic.app.service.bootstrap.DeploymentException: Failed to deploy services: bladelogic.service.AppServerService
              bladelogic.service.AsDataSourceService
              bladelogic.service.AuthenticationSrpService
              bladelogic.service.CleanupService
              bladelogic.service.DatabaseService
              bladelogic.service.EventService
              bladelogic.service.FileManagerService
              bladelogic.service.NotificationService
              bladelogic.service.ObjectDeleterService
              bladelogic.service.RBACRoleService
              bladelogic.service.RBACService
              bladelogic.service.RBACUserService

              at com.bladelogic.mfw.fw.BlManager.startWithType(BlManager.java:582)
              at com.bladelogic.mfw.fw.BlManager.startWithUtilType(BlManager.java:686)
              at com.bladelogic.mfw.auth.AddUser.startServer(AddUser.java:159)
              at com.bladelogic.mfw.auth.AddUser.init(AddUser.java:97)
              at com.bladelogic.mfw.auth.AddUser.main(AddUser.java:32)
              Caused by: com.bladelogic.app.service.bootstrap.DeploymentException: Failed to deploy services: bladelogic.service.AppServerService
              bladelogic.service.AsDataSourceService
              bladelogic.service.AuthenticationSrpService
              bladelogic.service.CleanupService
              bladelogic.service.DatabaseService
              bladelogic.service.EventService
              bladelogic.service.FileManagerService
              bladelogic.service.NotificationService
              bladelogic.service.ObjectDeleterService
              bladelogic.service.RBACRoleService
              bladelogic.service.RBACService
              bladelogic.service.RBACUserService

              at com.bladelogic.app.service.bootstrap.ServiceBootstrap.checkStates(ServiceBootstrap.java:347)
              at com.bladelogic.app.service.bootstrap.ServiceBootstrap.registerRemoteServices(ServiceBootstrap.java:354)
              at com.bladelogic.app.service.bootstrap.ServiceBootstrap.bootstrap(ServiceBootstrap.java:147)
              at org.jboss.kernel.plugins.bootstrap.AbstractBootstrap.run(AbstractBootstrap.java:91)
              at com.bladelogic.app.service.bootstrap.ServiceBootstrap.startup(ServiceBootstrap.java:66)
              at com.bladelogic.mfw.fw.BlManager.startWithType(BlManager.java:576)
              ... 4 more
              [01 Jun 2010 03:49:19,101] [main] [INFO] [::] [] com.bladelogic.app.service.bootstrap.DeploymentException: Failed to deploy services: bladelogic.service.AppServerService
              bladelogic.service.AsDataSourceService
              bladelogic.service.AuthenticationSrpService
              bladelogic.service.CleanupService
              bladelogic.service.DatabaseService
              bladelogic.service.EventService
              bladelogic.service.FileManagerService
              bladelogic.service.NotificationService
              bladelogic.service.ObjectDeleterService
              bladelogic.service.RBACRoleService
              bladelogic.service.RBACService
              bladelogic.service.RBACUserService

              com.bladelogic.app.service.bootstrap.DeploymentException: com.bladelogic.app.service.bootstrap.DeploymentException: Failed to deploy services: bladelogic.service.AppServerService
              bladelogic.service.AsDataSourceService
              bladelogic.service.AuthenticationSrpService
              bladelogic.service.CleanupService
              bladelogic.service.DatabaseService
              bladelogic.service.EventService
              bladelogic.service.FileManagerService
              bladelogic.service.NotificationService
              bladelogic.service.ObjectDeleterService
              bladelogic.service.RBACRoleService
              bladelogic.service.RBACService
              bladelogic.service.RBACUserService

              at com.bladelogic.mfw.fw.BlManager.startWithType(BlManager.java:582)
              at com.bladelogic.mfw.fw.BlManager.startWithUtilType(BlManager.java:686)
              at com.bladelogic.mfw.auth.AddUser.startServer(AddUser.java:159)
              at com.bladelogic.mfw.auth.AddUser.init(AddUser.java:97)
              at com.bladelogic.mfw.auth.AddUser.main(AddUser.java:32)
              Caused by: com.bladelogic.app.service.bootstrap.DeploymentException: Failed to deploy services: bladelogic.service.AppServerService
              bladelogic.service.AsDataSourceService
              bladelogic.service.AuthenticationSrpService
              bladelogic.service.CleanupService
              bladelogic.service.DatabaseService
              bladelogic.service.EventService
              bladelogic.service.FileManagerService
              bladelogic.service.NotificationService
              bladelogic.service.ObjectDeleterService
              bladelogic.service.RBACRoleService
              bladelogic.service.RBACService
              bladelogic.service.RBACUserService

              at com.bladelogic.app.service.bootstrap.ServiceBootstrap.checkStates(ServiceBootstrap.java:347)
              at com.bladelogic.app.service.bootstrap.ServiceBootstrap.registerRemoteServices(ServiceBootstrap.java:354)
              at com.bladelogic.app.service.bootstrap.ServiceBootstrap.bootstrap(ServiceBootstrap.java:147)
              at org.jboss.kernel.plugins.bootstrap.AbstractBootstrap.run(AbstractBootstrap.java:91)
              at com.bladelogic.app.service.bootstrap.ServiceBootstrap.startup(ServiceBootstrap.java:66)
              at com.bladelogic.mfw.fw.BlManager.startWithType(BlManager.java:576)
              ... 4 more
              [01 Jun 2010 03:49:19,105] [Thread-0] [INFO] [::] [] Undeploying
              [01 Jun 2010 03:49:19,124] [Thread-0] [INFO] [::] [] Stopping task scheduling service...
              [01 Jun 2010 03:49:19,125] [Thread-0] [INFO] [::] [] Task scheduling service stopped.
              [01 Jun 2010 03:49:19,130] [Thread-0] [INFO] [::] [] Stopping Session Service...
              [01 Jun 2010 03:49:19,130] [Thread-0] [INFO] [::] [] Session Service stopped.
              [01 Jun 2010 03:49:19,133] [Thread-0] [INFO] [::] [] Shutting down Caching Service...
              [01 Jun 2010 03:49:19,134] [Thread-0] [INFO] [::] [] Caching Service stopped.
              [01 Jun 2010 03:49:19,136] [Thread-0] [INFO] [::] [] Shutting down Sizing Service...
              [01 Jun 2010 03:49:19,137] [Thread-0] [INFO] [::] [] Caching Sizing stopped.
              [01 Jun 2010 03:49:19,139] [Thread-0] [INFO] [::] [] Stopping Port Provider...
              [01 Jun 2010 03:49:19,139] [Thread-0] [INFO] [::] [] Port Provider stopped.
              [01 Jun 2010 03:49:19,142] [Thread-0] [INFO] [::] [] Stopping Non-Network Management Service...
              [01 Jun 2010 03:49:19,142] [Thread-0] [INFO] [::] [] Non-Network Management Service Stopped.
              [01 Jun 2010 03:49:19,144] [Thread-0] [INFO] [::] [] Stopping Non-Network Directory Service...
              [01 Jun 2010 03:49:19,145] [Thread-0] [INFO] [::] [] Non-Network Directory Service Stopped.
              [01 Jun 2010 03:49:19,146] [Thread-0] [INFO] [::] [] Stopping Model Graph Service...
              [01 Jun 2010 03:49:19,147] [Thread-0] [INFO] [::] [] Model Graph Service stopped.
              [01 Jun 2010 03:49:19,150] [Thread-0] [INFO] [::] [] Stopping Configuration Service...
              [01 Jun 2010 03:49:19,150] [Thread-0] [INFO] [::] [] Configuration Service stopped.

              • 4. Re: set BLAdmin and RBACAdmin passwd from the command line
                Wenchi Liao

                I tend to use blasadmin scripts for a scripted setup not as a silent install. IIRC, I was able to skip setting up the pxe setup portion, and come back in afterwards with blasadmin.

                 

                I use this (oracle) to setup pxe with "blasadmin -s _pxe".

                 

                set Pxe ConnectionString jdbc:oracle:thin:@dbserver:1521:SID
                set Pxe DriverClass oracle.jdbc.driver.OracleDriver
                set Pxe UserId databaseuser
                set Pxe Password password

                • 5. Re: set BLAdmin and RBACAdmin passwd from the command line

                  Just a stab, Do you have a default (or at least one) instance created?

                  • 6. Re: set BLAdmin and RBACAdmin passwd from the command line
                    Bill Robinson

                    yeah, the instance is up and running.  it looks like it started normally.  it looks like it was choking on the datasource config (db) but the xml file for it looks ok.

                    • 7. Re: set BLAdmin and RBACAdmin passwd from the command line
                      Bill Robinson

                      have you done this w/ 8.0?   i did a 8.0 install and did the blappconf and i can run bladduser just fine.  but when i did the blasadmin settings, no dice. 

                       

                      any thoughts?

                      • 8. Re: set BLAdmin and RBACAdmin passwd from the command line
                        Paul Seager-Smith

                        Bill,

                         

                        did you ever get this working? We could really do with a silent install of the PXE server too. In particular, getting rid of the X11 GUI at the end that configures the PXE would really help!

                         

                        Thanks,

                         

                        Paul

                        • 9. Re: set BLAdmin and RBACAdmin passwd from the command line
                          Bill Robinson

                          no.  i'm missing something in the blasadmin settings.  i haven't had time to figure this out yet.

                          • 10. Re: set BLAdmin and RBACAdmin passwd from the command line
                            R V

                            Sorry, but this answer couldn't be the final one. Someone - not necessarily you ;-) - really should know an answer to this.

                             

                            As I'm not in a project at the moment and therefore have no support-ID I couldn't open a ticket with the support. But someone of BMC should create or lead to an answer so we can completely install the application-server without first installing X11 (for use on Linux/UNIX of course).

                             

                            One idea:

                            Could "bladduser" really add the users BLAdmin/RBACAdmin? Maybe the problem is, that this users are already in the database and we only need a solution for setting their passwords.

                             

                            As I have a new server without X11 I'm VERY interested in a solution to this topic...