Operating System - HP-UX
1825512 Members
1831 Online
109681 Solutions
New Discussion юеВ

Transfer of Control (TOC)

 
Martyn Foster
Occasional Contributor

Transfer of Control (TOC)

Hi All,

Can anybody help find info on Transfer of Control (TOC). I need to write a TOC procedure for HP9000 servers. Any help would be gratefully received.

Regards,

Martyn
Tough times don't last, tough people do!
5 REPLIES 5
rainer doelker
Valued Contributor

Re: Transfer of Control (TOC)

Martyn

AFAIK TOC is a hardware based signal which is send to the Processor in order to initiate the stop of work and the dumping of all current memory information.

There seems to be an IOCTL() system call to introduce this as MC/SG does TOC nodes if necessarry.

Maybe someone knows in more detail.
rainer
Bill McNAMARA_1
Honored Contributor

Re: Transfer of Control (TOC)

A TOC (usually a push button located at back of system or on GSP) (Ctrl-B >TC from console or GSP)

When a TOC is issued a dump will be taken on system reboot. This is opposed to an RS, or reset which will interupt system processing and not dump. (quicker)
A dump can take quite a long time to take since it is a copy of system memory.. up to 4.5 MB/s on a Vclass.


man savecrash for more...


HE TC


==== GSP Help: Server Control ==============================================

TC : System reset through INIT or TOC (Transfer of Control) signal

Under normal operation, shut down the OS before issuing this command.

This command causes the system to be reset through the INIT (or TOC) signal.

Execution of this command irrecoverably halts all system processing and
I/O activity and restarts the computer system. It is different from the
RS command in that the processors are signaled to dump state on the way
down.

SEE ALSO: RS (ReSet)



==== GSP Help: Server Control ==============================================

RS : Reset System through RST signal

Under normal operation, shut down the OS before issuing this command.

This command causes the system to be reset through the RST signal.

Execution of this command irrecoverably halts all system processing and
I/O activity and restarts the computer system. The effect of this command
is very similar to cycling the system power- the OS is not notified, no
dump is taken on the way down, etc.


SEE ALSO: TC (Transfer Control)

It works for me (tm)
Sprint Unix Team
Frequent Advisor

Re: Transfer of Control (TOC)

As far as I know, TOC in L class servers is a small switch located inside the box. For this u need to pull the server out and open the right side cover(server facing you) and you will see 2 cards, the first one having a switch for a TOC and the second one having a switch for a GSP reset.

Hope this helps you to some extent
A. Clay Stephenson
Acclaimed Contributor

Re: Transfer of Control (TOC)

Hi:

If I understand your question, you can make a call to reboot.

#include

rslt = reboot(RB_HALT);

This will kill the box very quickly.

If it ain't broke, I can fix that.
John Bolene
Honored Contributor

Re: Transfer of Control (TOC)

We use TOC as a method of getting a system dump in the event that the server is unresponsive to any other means.

This has happened when a process goes real-time and then into a loop.
It is always a good day when you are launching rockets! http://tripolioklahoma.org, Mostly Missiles http://mostlymissiles.com