Welcome to the VanDyke Software Forums

Join the discussion today!


Go Back   VanDyke Software Forums > Scripting

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 09-25-2007, 01:36 PM
jujordan jujordan is offline
Registered User
 
Join Date: Sep 2007
Posts: 23
Unix Boxes

i am writing a script to login to a unix box and restart a process. below is the output once logged in. I want to restart the tfed process on line 19, process (18). It is only a matter of pressing the (B) button to busy the process out, then pressing (R) to returin it to service. However I need the script to look at the output of the screen and determine if the process returns to service in which case it should log out, or if the process goes into a SYSTEMBUSY:SELFTERMINATE 3 /3 0 state such as the process in line 17 or process 16. if this happens the script should restart the process by pressing the (R) button. Any help would be appreciated. The key in this script is if the MSR goes to a SYSTEMBUSY:SELFTERMINATE state and the corrective actions thereafter.

# MSR STATE FAULTS PID
1 opcdbmgr INSERVICE:AVAILABLE 0 /3 263
2 mitshmld INSERVICE:AVAILABLE 0 /3 264
3 warmstandby INSERVICE:AVAILABLE 0 /3 265
4 eventhandler INSERVICE:AVAILABLE 0 /3 271
5 downloadmgr INSERVICE:AVAILABLE 0 /3 272
6 cmisassocmgr INSERVICE:AVAILABLE 0 /3 273
7 backuprestoremgr INSERVICE:AVAILABLE 0 /3 274
8 neshadow INSERVICE:AVAILABLE 0 /3 275 HELP
9 logalarmsystem INSERVICE:AVAILABLE 0 /3 276 q-quit
10 nelogger INSERVICE:AVAILABLE 0 /3 13945 d-down
11 loadisumgr INSERVICE:AVAILABLE 0 /3 282 u-up
12 opmcoll INSERVICE:AVAILABLE 0 /3 284 b-Busy MSR
13 tbosalarmmgmt INSERVICE:AVAILABLE 0 /3 286 r-Return MSR
14 IPObjectMgr INSERVICE:AVAILABLE 0 /3 288 v-details
15 x25vcprofileom INSERVICE:AVAILABLE 0 /3 291
16 TL1X25SM SYSTEMBUSY:SELFTERMINATE 3 /3 0
17 stsconnectionmgr INSERVICE:AVAILABLE 0 /3 28080
18 tfed INSERVICE:AVAILABLE 0 /3 15130
Reply With Quote
  #2  
Old 09-26-2007, 07:36 AM
jujordan jujordan is offline
Registered User
 
Join Date: Sep 2007
Posts: 23
unix Boxes

Can anyone help with this?
Reply With Quote
  #3  
Old 09-26-2007, 10:13 AM
jjh jjh is offline
VanDyke Customer Support
 
Join Date: Feb 2004
Posts: 814
Hello jujordan

In your description, you said that you need to press the "B"
button to "busy the process out".

Does the "B" button only affect the "tfed" process or is
there something else that needs to be done to associate the
"B" button press with "tfed"?

Is the only process that you need to do this for the "tfed"
process?

Is it fair to say that the script needs to do the
following?:
  • Look at the page to see if "tfed" exists
  • If it exists, check the "state" setting
  • If the "state" is "INSERVICE:AVAILABLE", do something to get to the "tfed" process and press "B" or just press "B" if "B" only applies to "tfed"
  • If the state changes to "SYSTEMBUSY:SELFTERMINATE 3 /3 0", press "R"
  • If the state changes to "INSERVICE:AVAILABLE", log out
If this is not correct, can you provide more details about
what needs to happen?

Would you also be able to provide a log of what this looks
like when you do it manually?

Thank you
JJH
Reply With Quote
  #4  
Old 09-26-2007, 11:15 AM
jujordan jujordan is offline
Registered User
 
Join Date: Sep 2007
Posts: 23
unix Box

Sorry i left out hit the "U" button which moves the highlight line to the TFED line. other than that it sounds like you had everyhting on the head.
Reply With Quote
  #5  
Old 09-26-2007, 11:25 AM
jujordan jujordan is offline
Registered User
 
Join Date: Sep 2007
Posts: 23
I attached the UNIX Box procedure

here let me know if you can see it. You would just telnet to the IP
Attached Files
File Type: doc Procedure.doc (297.5 KB, 263 views)
Reply With Quote
  #6  
Old 09-26-2007, 12:24 PM
jjh jjh is offline
VanDyke Customer Support
 
Join Date: Feb 2004
Posts: 814
Thank you for providing that document.

Would it be possible for you to capture a raw log of that
same session and send it to us at support@vandyke.com?

Please include a reference to this forum thread in your
message.

Thanks

JJH
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -6. The time now is 01:08 PM.