HP-UX Routing Services Administrator's Guide HP-UX 11i v2, HP-UX 11i v3 (B2355-91153, November 2011)

};
};
Starting gated
To start gated, complete the following steps:
1. Set the environment variable GATED to 1 in the file /etc/rc.config.d/netconf to start
gated automatically upon system startup.
2. Reboot your system, or issue the following command to run the gated startup script:
/sbin/init.d/gated start
You can also start gated by running the command gdc start. The following message appears
to indicate that gated has started:
gated started, pid 29777
where 29777 is the process ID (pid) of the gated process. You can specify the command-line
arguments for starting gated with the GATED_ARGS environment variable in the file
/etc/rc.config.d/netconf. Table 5 lists the commonly used command-line options for
gated.
Table 5 Command Line Options for gated
EffectFlag
When used alone, -t causes gated to log all error messages and route changes. It turns on the
general trace option automatically. When -t is followed by one or more trace options, only those
-t
options are turned on. (See “Specifying Tracing Options” (page 45) for more information.) Multiple
trace options are separated by commas. The -t flag must immediately precede the other flags.
Specifies that the configuration file will be parsed for syntax errors. gated exits with a status of 1 if
there are any errors and 0 (zero) if there are no errors.
-C
Specifies that the configuration file will be parsed for syntax errors. A dump file
/var/tmp/gated_dump is created if there are no errors. Only the trace option general is logged.
See “Specifying Tracing Options” (page 45) for a detailed description of all the tracing options.
-c
Specifies that gated will not modify the kernel’s routing tables.-n
For more information about the command-line options, type man 1M gated at the HP-UX prompt.
Verifying That gated Is Running
Issue the following command to determine if gated is running:
/usr/bin/ps -ef | /usr/bin/grep gated
This command reports the process identification (PID), current time, and the command invoked
(gated). Following is an example output:
daemon 4484 1 0 Feb 18 ? 0:00 gated
You can also check if gated is running by issuing the following command:
gdc running
The following message appears to indicate that gated is running:
gdc is running (pid 1312)
If gated is not running, the following message appears:
gated is not running
48 Configuring gated