Hi Nagu,

I tried your 2nd approach that is working fine.
But, as I mentioned earlier, on executing the set of commands directly on
the controller things  are working fine i.e. opensaf is getting started
properly and there are no error messages seen.
But what I am trying to do here is to start the opensaf and related
services from a different machine via a TCL script, which still is not
working.
Openhpi, plmc and plmc boot these three are coming up properly and PIDs of
these are also available.

Regarding telnet: telnet (from script machine to Controller1) is done via
root user.
Starting the processes on the controller1: The commands to start openhpi,
plmc, plmcboot and opensaf  are also given in root user.

I am looking for the difference in the behavior when the processes are
directly started on the controllers and when they are being invoked via a
TCL script from a different machine.

If some further information is required on the same, do let me know.

Thanks.
-
Adnan

-----Original Message-----
From: Nagendra Kumar [mailto:[email protected]]
Sent: Thursday, September 11, 2014 1:08 AM
To: Adnan Yasin; [email protected]
Subject: RE: [users] SessionOpen failed with err:-1012

Hi Adnan,

> Sep 10 12:44:41 controller1 osafplmd[4031]: ER SessionOpen failed with
> err:-1012

This error indicate that openhpid is not started or there is some
permission issues during telnet.
But, you can debug this further.

1. Check whether openhpid gets started or not on controller1 (ps -e | grep
hpi) when these errors are coming.

# ps -ef | grep hpi
root     15336     1  0 20:41 ?        00:00:00 /usr/sbin/openhpid -c
/etc/openhpi/openhpi.conf

OR
2. If it gets started, but still error are coming, then when these errors
starts coming(PLM repeats 31 times after sleep of 2 seconds), execute
/etc/init.d/opensafd stop command and then /etc/init.d/opensafd start
command on Controller1 directly. The error should stop coming.
Then verify openhpid again by running ps -ef | grep hpi.


Thanks
-Nagu

>
> I am trying to start the opensaf services via a TCL script as mention
below:
>
>
>
> send -i ${active_sid} "/etc/init.d/opensafd start\r"
>
> expect -i ${active_sid} -re {# $|#$}
>
>
>
> My scenario is :
>
> First of all I am executing a script on my Machine1, that script is
> doing a telnet to the Controller1 and then starting all the required
> services on
> Controller1 as given below:
>
>    send -i ${active_sid} "/etc/init.d/openhpid start\r"
>
>    expect -i ${active_sid} -re {# $|#$}
>
>    send -i ${active_sid} "/etc/init.d/plmcboot start\r"
>
>    expect -i ${active_sid} -re {# $|#$}
>
>    send -i ${active_sid} "/etc/init.d/plmcd start\r"
>
>    expect -i ${active_sid} -re {# $|#$}
>
>    sleep 5
>
>    send -i ${active_sid} "/etc/init.d/opensafd start\r"
>
>    expect -i ${active_sid} -re {# $|#$}
>
>
>
> After starting openhpid, plmcboot and plmcd when the opensaf is
> initiated, below error is noticed :
>
>
>
> Sep 10 12:44:41 controller1 osafplmd[4031]: ER SessionOpen failed with
> err:-1012
>
> Sep 10 12:44:41 controller1 osafplmd[4031]: ER SessionOpen failed with
> err:-1012
>
> Sep 10 12:44:41 controller1 osafplmd[4031]: ER SessionOpen failed with
> err:-1012
>
> Sep 10 12:44:41 controller1 osafplmd[4031]: ER SessionOpen failed with
> err:-1012
>
> Sep 10 12:44:41 controller1 osafplmd[4031]: ER SessionOpen failed with
> err:-1012
>
> Sep 10 12:44:41 controller1 osafplmd[4031]: ER SessionOpen failed with
> err:-1012
>
> Sep 10 12:44:41 controller1 osafplmd[4031]: ER SessionOpen failed with
> err:-1012
>
> Sep 10 12:44:41 controller1 osafplmd[4031]: ER SessionOpen failed with
> err:-1012
>
> Sep 10 12:44:41 controller1 osafplmd[4031]: ER SessionOpen failed with
> err:-1012
>
> Sep 10 12:44:41 controller1 osafplmd[4031]: ER SessionOpen failed with
> err:-1012
>
> Sep 10 12:44:41 controller1 osafplmd[4031]: ER SessionOpen failed with
> err:-1012
>
> Sep 10 12:44:41 controller1 osafplmd[4031]: ER SessionOpen failed with
> err:-1012
>
> Sep 10 12:44:41 controller1 osafplmd[4031]: ER SessionOpen failed with
> err:-1012
>
> Sep 10 12:44:41 controller1 osafplmd[4031]: ER SessionOpen failed with
> err:-1012
>
> Sep 10 12:44:41 controller1 osafplmd[4031]: ER SessionOpen failed with
> err:-1012
>
> Sep 10 12:44:41 controller1 osafplmd[4031]: ER SessionOpen failed with
> err:-1012
>
> Sep 10 12:44:41 controller1 osafplmd[4031]: ER SessionOpen failed with
> err:-1012
>
> Sep 10 12:44:41 controller1 osafplmd[4031]: ER SessionOpen failed with
> err:-1012
>
> Sep 10 12:44:41 controller1 osafplmd[4031]: ER SessionOpen failed with
> err:-1012
>
> Sep 10 12:44:41 controller1 osafplmd[4031]: ER SessionOpen failed with
> err:-1012
>
> Sep 10 12:44:41 controller1 osafplmd[4031]: ER SessionOpen failed with
> err:-1012
>
> Sep 10 12:44:41 controller1 osafplmd[4031]: ER SessionOpen failed with
> err:-1012
>
> Sep 10 12:44:41 controller1 osafplmd[4031]: ER SessionOpen failed with
> err:-1012
>
> Sep 10 12:44:41 controller1 osafplmd[4031]: ER SessionOpen failed with
> err:-1012
>
> Sep 10 12:44:41 controller1 osafplmd[4031]: ER SessionOpen failed with
> err:-1012
>
> Sep 10 12:44:41 controller1 osafplmd[4031]: ER SessionOpen failed with
> err:-1012
>
> Sep 10 12:44:41 controller1 osafplmd[4031]: ER SessionOpen failed with
> err:-1012
>
> Sep 10 12:44:41 controller1 osafplmd[4031]: ER SessionOpen failed with
> err:-1012
>
> Sep 10 12:44:41 controller1 osafplmd[4031]: ER SessionOpen failed with
> err:-1012
>
> Sep 10 12:44:41 controller1 osafplmd[4031]: ER SessionOpen failed with
> err:-1012
>
> Sep 10 12:44:41 controller1 osafplmd[4031]: ER SessionOpen failed with
> err:-1012 after retrying31 times
>
> Sep 10 12:44:41 controller1 osafplmd[4031]: ER plms_hsm_initialize
> failed
>
> Sep 10 12:44:41 controller1 osafplmd[4031]: ER Failed, exiting...
>
> Sep 10 12:44:41 controller1 opensafd[3893]: ER Failed
>
>
>
>
>
> One thing to note is that if I execute these above commands on
> Controller1 directly, it works fine and the opensaf gets started.
>
>
>
> Help is appreciated.
>
>
>
>
>
> Thanks.
>
>
>
>
>
> -
>
> Rgds,
>
> Adnan
>
> --
> .
> ----------------------------------------------------------------------
> --------
> Want excitement?
> Manually upgrade your production database.
> When you want reliability, choose Perforce Perforce version control.
> Predictably reliable.
> http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.
> clk
> trk
> _______________________________________________
> Opensaf-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/opensaf-users

-- 
.

------------------------------------------------------------------------------
Want excitement?
Manually upgrade your production database.
When you want reliability, choose Perforce
Perforce version control. Predictably reliable.
http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk
_______________________________________________
Opensaf-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-users

Reply via email to