7 Replies Latest reply on Sep 14, 2012 9:24 AM by richard mcleod

    Unable to run NSH Script Job

    richard mcleod

      Environment;

      AppServers: 4

      AppServer Platform: SLES 11.1 x64

      BSA: 8.1.03

      RSCD: 8.1.03

      NSH: 8.1.03

       

      Script Type: Execute the script seperately against each host (using "runscript")

      Script Description: Create additional server properties

      Code:

       

       

      blcli_connect

      blcli_execute PropertyClass addProperty

      "Class://SystemObject/Server" "dbS_HOST_TYPE" "CI Host Type" "Primitive:/String" true false "null"
       

      blcli_execute PropertyClass addProperty

      "Class://SystemObject/Server" "dbS_CLASSIFICATION" "CI Classification" "Primitive:/String" true false "null"
       

      blcli_execute PropertyClass addProperty

      "Class://SystemObject/Server" "dbS_LIFECYCLE_STATUS" "CI Lifecycle Status" "Primitive:/String" true false "null"
       

      blcli_execute PropertyClass addProperty

      "Class://SystemObject/Server" "dbS_SERVER_SUPPORT_GROUP" "CI Primary Support Group" "Primitive:/String" true false "null"
       

      blcli_execute PropertyClass addProperty

      "Class://SystemObject/Server" "dbS_IN_DMZ" "CI In DMZ?" "Primitive:/String" true false "null"
       

      blcli_execute PropertyClass addProperty

      "Class://SystemObject/Server" "dbS_BRAND" "CI Brand" "Primitive:/String" true false "null"
       

      blcli_execute PropertyClass addProperty

      "Class://SystemObject/Server" "dbS_MODEL" "CI Model" "Primitive:/String" true false "null"
       

      blcli_execute PropertyClass addProperty

      "Class://SystemObject/Server" "dbS_LOCATION" "CI Location" "Primitive:/String" true false "null"
       

      blcli_execute PropertyClass addProperty

      "Class://SystemObject/Server" "dbS_CITY" "CI City" "Primitive:/String" true false "null"
       

      blcli_execute PropertyClass addProperty

      "Class://SystemObject/Server" "dbS_COUNTRY" "CI Country" "Primitive:/String" true false "null"
       

      blcli_execute PropertyClass addProperty

      "Class://SystemObject/Server" "dbS_REGION" "CI Region" "Primitive:/String" true false "null"
       

      blcli_execute PropertyClass addProperty

      "Class://SystemObject/Server" "dbS_HCL_ACCESS" "CI HCL Access" "Primitive:/String" true false "null"
       

      blcli_execute PropertyClass addProperty

      "Class://SystemObject/Server" "dbS_SECONDARY_SUPPORT_GROUP" "CI Secondary Support Group" "Primitive:/String" true false "null"
       

      blcli_execute PropertyClass addProperty

      "Class://SystemObject/Server" "dbS_TR_SUPPORT_STATUS_HW" "CI TR HW Support Status" "Primitive:/String" true false "null"
       

      blcli_execute PropertyClass addProperty

      "Class://SystemObject/Server" "dbS_TR_SUPPORT_STATUS_OS" "CI TR OS Support Status" "Primitive:/String" true false "null"
       

      blcli_execute PropertyClass addProperty

      "Class://SystemObject/Server" "dbS_SLA" "CI SLA" "Primitive:/String" true false "null"
       

      blcli_execute PropertyClass addProperty

      "Class://SystemObject/Server" "dbS_SERVICE_TIER" "CI Service Tier" "Primitive:/String" true false "null"
       

      blcli_execute PropertyClass addProperty

      "Class://SystemObject/Server" "dbS_CONSOLE_SERVER_PORT" "CI Console Server Port" "Primitive:/String" true false "null"
       

      blcli_execute PropertyClass addProperty

      "Class://SystemObject/Server" "dbS_ASSOCIATED_BUS_AREA" "CI Associated Business Area" "Primitive:/String" true false "null"
       

      blcli_execute PropertyClass addProperty

      "Class://SystemObject/Server" "dbS_CC_CODE" "CI Cost Center" "Primitive:/String" true false "null"
       

      blcli_execute PropertyClass addProperty

      "Class://SystemObject/Server" "dbS_SERIALNO" "CI Serial Number" "Primitive:/String" true false "null"
       

      blcli_execute PropertyClass addProperty

      "Class://SystemObject/Server" "dbS_DISCOVERED_SERIALNO" "CI Discovered Serial Number" "Primitive:/String" true false "null"
       

       

      blcli_execute PropertyClass addProperty

      "Class://SystemObject/Server" "dbS_APP_TECH_CONTACT" "Application Technical Contact" "Primitive:/String" true false "null"
       

      blcli_execute PropertyClass addProperty

      "Class://SystemObject/Server" "dbS_CIO_OWNER" "CIO Owner" "Primitive:/String" true false "null"
       

      blcli_execute PropertyClass addProperty

      "Class://SystemObject/Server" "dbS_PORTCULLIS" "Portcullis?" "Primitive:/String" true false "null"
       

      blcli_execute PropertyClass addProperty

      "Class://SystemObject/Server" "dbS_HARDENED_BUILD" "Is Hardened Build?" "Primitive:/String" true false "null"
       

       

      The NSH script job is pointing at server 1. The job executes on server4_j01

       

      This is the error from BSA console

      Error Sep 13, 2012 1:31:53 PM Caught exception running command - /opt/bmc/BladeLogic/8.1/NSH/bin/nsh --norc -c /opt/bmc/BladeLogic/8.1/NSH/tmp/server

       

      4_j01/scripts/job__2c4bc179-b033-4265-9184-65c2ad148bc3/master_4b64e787-90d1-497e-8981-11c7187e0a42

      Error: java.rmi.NotBoundException: ProcessSpawner

       

       

      This is the error from the server4_j01.log

       

       

      [13 Sep 2012 18:09:09,584] [WorkItem-Thread-10] [INFO] [mcleric@domain:BLAdmins:] [NSHScript] Executing work item NSH Script Job:Create dbS Properties; Server:server1;  on application server: server4_j01

      [13 Sep 2012 18:09:09,714] [WorkItem-Thread-10] [INFO] [mcleric@domain:BLAdmins:] [NSHScript] Attempting to kill process: 0

      [13 Sep 2012 18:09:09,714] [WorkItem-Thread-10] [INFO] [mcleric@domain:BLAdmins:] [NSHScript] Process has been killed: 0

      [13 Sep 2012 18:09:09,714] [WorkItem-Thread-10] [ERROR] [mcleric@domain:BLAdmins:] [NSHScript] Caught exception running command - /opt/bmc/BladeLogic/8.1/NSH/bin/nsh --norc -c /opt/bmc/BladeLogic/8.1/NSH/tmp/server4_j01/scripts/job__4e86519c-6a79-4269-9e72-317605b4aad3/master_f9c008be-d949-43d6-924c-dbecb9308694

      Error: java.rmi.NotBoundException: ProcessSpawner

      1. com.bladelogic.om.infra.mfw.util.BlException: java.rmi.NotBoundException: ProcessSpawner

             at com.bladelogic.om.infra.app.process.BlProcessService.createProcessRemotely(BlProcessService.java:141)

              at com.bladelogic.om.infra.app.process.BlProcessService.createBlProcess(BlProcessService.java:102)

              at com.bladelogic.om.infra.app.nsh.NSHExec.exec(NSHExec.java:259)

              at com.bladelogic.om.infra.app.nsh.NSHExec.exec(NSHExec.java:165)

              at com.bladelogic.om.infra.model.job.script.ScriptBasedJobWorkItemImpl.executeScript(ScriptBasedJobWorkItemImpl.java:236)

              at com.bladelogic.om.infra.model.job.script.NSHScriptJobWorkItemImpl.executeScript(NSHScriptJobWorkItemImpl.java:699)

              at com.bladelogic.om.infra.model.job.script.NSHScriptJobWorkItemImpl.execute(NSHScriptJobWorkItemImpl.java:205)

              at com.bladelogic.om.infra.app.service.workitem.WorkItem.doExecute(WorkItem.java:114)

              at com.bladelogic.om.infra.app.service.workitem.thread.WorkItemThread.execute(WorkItemThread.java:173)

              at com.bladelogic.om.infra.app.service.workitem.thread.WorkItemThread.execute(WorkItemThread.java:49)

              at com.bladelogic.om.infra.app.service.thread.BlBlockingThread.run(BlBlockingThread.java:95)

      Caused by: java.rmi.NotBoundException: ProcessSpawner

              at sun.rmi.registry.RegistryImpl.lookup(RegistryImpl.java:106)

              at sun.rmi.registry.RegistryImpl_Skel.dispatch(Unknown Source)

              at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:386)

              at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:250)

              at sun.rmi.transport.Transport$1.run(Transport.java:159)

              at java.security.AccessController.doPrivileged(Native Method)

              at sun.rmi.transport.Transport.serviceCall(Transport.java:155)

              at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)

              at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)

              at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)

              at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)

              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)

              at java.lang.Thread.run(Thread.java:619)

              at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:255)

              at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:233)

              at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:359)

              at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)

              at com.bladelogic.om.infra.app.service.directory.DirectoryServiceImpl.getRemoteObject(DirectoryServiceImpl.java:213)

              at com.bladelogic.om.infra.app.process.BlProcessService.createProcessRemotely(BlProcessService.java:123)

              ... 10 more

      [13 Sep 2012 18:09:09,715] [WorkItem-Thread-10] [ERROR] [mcleric@domain:BLAdmins:] [NSHScript] Caught exception running command - /opt/bmc/BladeLogic/8.1/NSH/bin/nsh --norc -c /opt/bmc/BladeLogic/8.1/NSH/tmp/server4_j01/scripts/job__4e86519c-6a79-4269-9e72-317605b4aad3/master_f9c008be-d949-43d6-924c-dbecb9308694

      Error: java.rmi.NotBoundException: ProcessSpawner

      Havent been able to find much online?