[Name]
hanetrestore - Restoring the environment definition files
[Synopsis]
/opt/FJSVhanet/usr/sbin/hanetrestore -f backupfilename
[Feature description]
The hanetrestore command restores the environment definition files used by Redundant Line Control Function.
[Option]
You can specify the following options:
Specify a file created using the backup command.
[Related commands]
hanetbackup
[Notes]
After executing this command, be sure to reboot the system.
Do not execute this command when the environment setting is completed. If executed, there is a possibility that a conflict will occur in the definition information, which makes it not possible to work properly. In this case, delete the definition information by a resethanet command and set the environment again. See "7.20 resethanet Command" for the detail of a resethanet command.
Recovery can be made exclusively on the same system configuration where the configuration file is backed up.
After recovering the configuration file, if a numeric string is specified as the host name, change the numeric string to the IP address before rebooting the system.
Here is the example to change a numeric string to the host name by using hanetconfig.
1) Check the current configuration status. # /opt/FJSVhanet/usr/sbin/hanetconfig print [IPv4,Patrol / Virtual NIC] Name Hostname Mode Physical ipaddr Interface List +-----------+---------------+----+-----------------+---------------------------+ sha0 123456 d 123457 eth2,eth3 [IPv6] Name Hostname/prefix Mode Interface List +-----------+---------------------------------+----+---------------------------+ 2) Use the modify command to change a numeric string used as the host name This is when changing the numeric string to the IP address. Change 123456 to 0.1.226.64 Change 123457 to 0.1.226.65 # /opt/FJSVhanet/usr/sbin/hanetconfig modify -n sha0 -i 0.1.226.64 -e 0.1.226.65 3) Confirm the changed configuration status. # /opt/FJSVhanet/usr/sbin/hanetconfig print [IPv4,Patrol / Virtual NIC] Name Hostname Mode Physical ipaddr Interface List +-----------+---------------+----+-----------------+---------------------------+ sha0 0.1.226.64 d 0.1.226.65 eth2,eth3 [IPv6] Name Hostname/prefix Mode Interface List +-----------+---------------------------------+----+---------------------------+ |
[Examples]
The following shows an example of restoring a file (/tmp/hanet20041231.bk) created using the backup command.
# /opt/FJSVhanet/usr/sbin/hanetrestore -f /tmp/hanet20041231.bk |