Difference between revisions of "UpdateMacroDefFile"

From Vital Soft Wiki
Jump to: navigation, search
>Johno
(Updating the Macro Definition File)
>Johno
(Updating the Macro Definition File)
Line 8: Line 8:
 
:* Scroll to the bottom of the page and choose the version appropriate for AskPlus version E.8.3.3.
 
:* Scroll to the bottom of the page and choose the version appropriate for AskPlus version E.8.3.3.
  
Once the definition file You will then need to rebuild the /ASKPLUS/visimage/macro file.  This is the binary file Visimage and Askplus use.  To rebuild the /ASKPLUS/visimage/macro file you will need to have all Visimage users exit server.
+
'''1. Transfer the file to UNIX:'''
 +
:* Transfer the '''samp''' file, using an ASCII transfer, to the /ASKPLUS/visimage directory.
  
1. Login as the askplus user.
+
'''2. Backup the old definition file and copy the new definition file:'''
2. cd visimage
+
:* Logon to HPUX as '''askplus'''
3. Compile the macro source file by running the following script:
+
:: cd /ASKPLUS
load_macros
+
:: mv macrodef macrodefv26
 +
:: cp macrodef_e83.samp macrodef
  
It might be necessary to bring the listener down to ensure that the file is not being accessed.   
+
'''3. Rebuild the indexed macro file used by AskPlus and Visimage:'''
 +
:This step requires that the macro file (/ASKPLUS/visimage/macro) is '''not''' in useYou must have all users exit server in Visimage and no AskPlus jobs should be running.
 +
:* While still logged in as '''askplus'''
 +
:: cd /ASKPLUS/visimage
 +
:: mv macrodef macrodefv26
 +
:: ./load_macros
  
To kill the listener:
+
:It might be necessary to bring the listener down to ensure that the file is not being accessed. 
  
1. Login as root
+
:*To kill the listener:
2. Issue this command to stop the listener:
+
 
/ASKPLUS/kill_vsrvtcp -stop_all
+
::* Login as root
 +
:: /ASKPLUS/kill_vsrvtcp -stop_all
 
   
 
   
*Note, the above command will kill both the regular listener as well as the beta listener.
+
Note, the above command will kill all copies of the listener running on any port.
  
 
Run the load_macros script again, remember to login as the askplus user and cd visimage.
 
Run the load_macros script again, remember to login as the askplus user and cd visimage.
  
To restart the listener:
+
:* To restart the listener:
 +
 
 +
::* Login as root
 +
:: /ASKPLUS/vsrvtcp -a -t –n30501 –a >/dev/null
 +
:: /ASKPLUS/vsrvtcp_49 -a -t –n30503 –a >/dev/null
  
1. Login as root
+
:: Remember to start two listeners (on two different ports) if you have users running Visimage 2.6 and Visimage3.
2. Issue this command to start the non beta listener:  /ASKPLUS/vsrvtcp –n30501 -a >/dev/null
 
3. Issue this command to start the beta listener: /ASKPLUS/vsrvtcp_4913 -a -t –n30503 –a >/dev/null
 

Revision as of 04:07, 10 November 2014

Updating the Macro Definition File

The macro definition file is a text file that should be uploaded using an ASCII transfer.

Rename the current /ASKPLUS/visimage/macrodef to /ASKPLUS/visimage/macrodefv26. Transfer the macrodef file to the Unix box, using an ASCII transfer. Issue a chmod 644 on the macrodef file so that it is readable by everyone.

Download the macro definition file here.

  • Scroll to the bottom of the page and choose the version appropriate for AskPlus version E.8.3.3.

1. Transfer the file to UNIX:

  • Transfer the samp file, using an ASCII transfer, to the /ASKPLUS/visimage directory.

2. Backup the old definition file and copy the new definition file:

  • Logon to HPUX as askplus
cd /ASKPLUS
mv macrodef macrodefv26
cp macrodef_e83.samp macrodef

3. Rebuild the indexed macro file used by AskPlus and Visimage:

This step requires that the macro file (/ASKPLUS/visimage/macro) is not in use. You must have all users exit server in Visimage and no AskPlus jobs should be running.
  • While still logged in as askplus
cd /ASKPLUS/visimage
mv macrodef macrodefv26
./load_macros
It might be necessary to bring the listener down to ensure that the file is not being accessed.
  • To kill the listener:
  • Login as root
/ASKPLUS/kill_vsrvtcp -stop_all

Note, the above command will kill all copies of the listener running on any port.

Run the load_macros script again, remember to login as the askplus user and cd visimage.

  • To restart the listener:
  • Login as root
/ASKPLUS/vsrvtcp -a -t –n30501 –a >/dev/null
/ASKPLUS/vsrvtcp_49 -a -t –n30503 –a >/dev/null
Remember to start two listeners (on two different ports) if you have users running Visimage 2.6 and Visimage3.