Direct program in a different LPAR

275 pts.
Tags:
LPAR
MIMIX
MIMIX on iSeries
Telnet
If I have 3 LPAR's. IF1, IF2 and IG3. IF1 and IF2 are primary and IG3 is backup LPAR. Now if I have to clear and restore libraries on IG3 from IF2 but my program is on IF2. Now how can I go straight in to the command CLRLIB right after tenet from IF2. But my program in on IF2.

This is for MIMIX purposes.

Ex.

telnet IF2

CLRLIB LIB(ABCDEFG)

Now the program will log me out first and will ask me to sign on to IG3 but my next command in my program on IF2 will not work which is CLRLIB. Is there a way that I can start CLRLIB right after TELNET.

KHAN. 



Software/Hardware used:
Software

Answer Wiki

Thanks. We'll let you know when a new response is added.

Thank you both of you. Now let me describe my problem again. I am not a very high level programmer but I am trying to finish my program which is working fine but I have this problem.
Now forget about IF1 and just take 2 LPARS. There is IF1(Source) also but for now just take IF2 (Source) and IG3 (Target). I am writing a program on IF2 and program does everything like I check data areas and other stuff. during this time I have to do an install and now I have stopped all data groups. After install I have to clear and restore libraries on IG3 which is a backup LPAR. Since my program is on IF2 and I want to clear and restore libraries on IG3 so I can restore them from the very latest backup on IF2. Now this is purely for resync (MIMIX) purpose. How can I clear and restore libraries on IG3 when my program is on IF2. When I take option 11 for example which suppose to start Clear on IG3 I have to signon to IG3. So now I say TELNET and SIGN ON screen comes and I have to sign on to IG3 but I do not have a connection with my program.

OPTIONS
1.
2.
3.
.
.
11. Clear libraries on backup (IG3)

Now behind option 11 is simply this
TELNET
and after telnet I want to say CLRLIB LIB(ABCDE)
But TELNET takes me away from IF2 and into IG3. My CLRLIB command after TELNET has no meanings.

Regards

KHAN

Discuss This Question: 4  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • TomLiotta
    telnet IF2 CLRLIB LIB(ABCDEFG) If those are instructions in your program, then no, it won't work. The CLRLIB command cannot run until the TELNET command ends. When the TELNET command ends, you will be back on the original system again -- because TELNET ended. If you want CLRLIB to run on another system, you need to send it to another system. You might send it with a SBMRMTCMD command, or RUNRMTCMD, or various other ways. Tom
    125,585 pointsBadges:
    report
  • pdraebel
    If I understand you right IF1 and IF2 are "Source" systems and IG3 is the "Target" system in MIMIX. Where does the program you are describing run? If it is on IF1 the CLRLIB will kick in after you exit the Telnet session and Clear the library on the system where your program runs: Disaster. Mimix has a command SNDNETOBJ to send over Objects. Make sure MiMix is not Maintaining the Library on IG3. You need to restart resynchronisation afterwards. TELNET starts a session on the Target specified, there you will have to logon and make your calls.
    2,635 pointsBadges:
    report
  • TomLiotta
    When I take option 11 for example which suppose to start Clear on IG3 I have to signon to IG3. If option 11 Clears on IG3, you'd better hope you have to log on to IG3! If IG3 allowed someone from some remote system to cause libraries to be cleared on IG3 without even logging on, then IG3 is a very insecure system. In any case, if this is a MIMIX setup, does the same program exist on IF2 and IG3? If you telnet to IG3, can you call the same program on IG3 and take option 11? If you can, do you know if option 11 calls another program that contains the Clear commands? Do you have the capability of changing the program that displays option 11? If so, it might be possibly to make it work as you need. Tom
    125,585 pointsBadges:
    report
  • pdraebel
    As I see the problem you are trying to solve is that you do not want to start a session on your Target machine to do Maintenance there. So forget TELNET. You could use the SBMRMTCMD or RUNRMTCMD. Also check the SRVAUTE commands that enable you to store your Login Credentials for the Target Server so you would not have to key them every time. In my experience with Mimix (limited) I was always told to use seperate sessions for both Target and Source systems. These sessions shoudl look distinctively different to avoid confusion. Done by using different colors for the Characters should be clear enough.
    2,635 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following