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
ASKED:
January 25, 2011 11:46 PM
UPDATED:
January 28, 2011 9:38 AM
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
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.
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
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.