IBM AIX Continuous Availability Features - IBM Redbooks
IBM AIX Continuous Availability Features - IBM Redbooks
IBM AIX Continuous Availability Features - IBM Redbooks
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Structure of a Vue script<br />
A Vue script consists of one or more clauses. The clauses in a Vue script can be specified in<br />
any order. Figure 3-3 is a typical layout of a Vue script.<br />
Figure 3-3 Structure of a Vue script<br />
Following are two Vue script examples.<br />
► This canonical “Hello World” program prints "Hello World" into the trace buffer and exits.<br />
#!/usr/bin/probevue<br />
/* Hello World in probevue */<br />
/* Program name: hello.e */<br />
@@BEGIN<br />
{<br />
printf("Hello World\n");<br />
exit();<br />
}<br />
► This “Hello World” program prints "Hello World" when is typed on the keyboard.<br />
#!/usr/bin/probevue<br />
/* Hello World 2 in probevue */<br />
/* Program name: hello2.e */<br />
@@END<br />
{<br />
printf("Hello World\n");<br />
}<br />
Each clause of a Vue script consists of the following three elements:<br />
► Probe point specification<br />
The probe point specification identifies the probe points to be dynamically enabled.<br />
► Action block<br />
The action block is used to identify the set of probe actions to be performed when the<br />
probe fires.<br />
Chapter 3. <strong>AIX</strong> advanced continuous availability tools and features 115