Changing the Cisco Prime Optical 9.3 Server IP Address
This appendix describes how to change the IP address of the Prime Optical server when Prime Optical and Oracle are on the same or separate servers.
E.1 Changing the IP Address when Prime Optical and Oracle Are on the Same Server
To change the IP address of a standalone Prime Optical server with a single IP interface when Prime Optical and Oracle are on the same server, do the following:
Caution
This procedure lets you change the IP address but not the hostname.
Step 1
Log into the Prime Optical server as the root user.
Step 2
Enter the following command to shut down the Prime Optical server:
Step 3
Enter the following commands to shut down Oracle:
SQL> connect username/password as sysdba
Step 4
(For Solaris operating systems only; not applicable to Linux) On Solaris, do the following:
a.
Enter the following command to change the IP address and subnet mask in the /etc/netmasks file:
b.
Enter the following command to change the IP address in the /etc/inet/hosts file:
c.
Enter the following command to verify that the /etc/inet/ipnodes file contains the changed IP address:
d.
Enter the following command to change the default router file, if required:
Step 5
(For Linux operating systems only; not applicable to Solaris) On Linux, do the following:
a.
On GNOME, choose System > Administration > Network.
b.
Select the correct interface.
c.
Edit and save the interface properties (IP address, subnet mask, and default gateway).
Step 6
Do the following at the application level:
a.
Enter the following command to change the IP address in the Oracle listener file:
# vi /oracle/product/11.2.0/network/admin/listener.ora
b.
Enter the following command to change the IP address in the Oracle tnsnames file:
# vi /oracle/product/11.2.0/network/admin/tnsnames.ora
c.
Enter the following commands to change the IP address in the Prime Optical server configuration file:
# vi /opt/CiscoTransportManagerServer/cfg/CTMServer.cfg
# vi /opt/CiscoTransportManagerServer/cfg/CTMServer.perm
Note
Make sure to change all IP addresses where they are referenced.
d.
Enter the following command to change the IP address in the jacORB properties file:
# vi /opt/CiscoTransportManagerServer/openfusion/classes/jacorb.properties
e.
Enter the following command to change the IP address in the web server configuration file:
# vi /opt/CiscoTransportManagerServer/webServer/conf/httpd.conf
Step 7
Enter the following command to reboot the Prime Optical server:
Step 8
After the Prime Optical server has rebooted, enter the following command to verify that it has started:
Step 9
Enter the following command to stop the Prime Optical server:
Step 10
Enter the following command to start the Prime Optical server:
If you change the Prime Optical server IP address, you must replace the old IP address with the new IP address in the configuration files shown in the following table. Use a standard UNIX text editor such as vi to update the files. Changes in the configuration files take effect after you reboot the server.
Table E-1 Configuration Files that Require Updating
|
|
|
hosts |
/etc |
netmasks |
/etc |
defaultrouter |
/etc |
ipnodes |
/etc/inet |
Oracle Configuration Files
|
tnsnames.ora |
/oracle/product/11.2.0/network/admin |
listener.ora |
/oracle/product/11.2.0/network/admin |
Prime Optical Server Configuration File
|
CTMServer.cfg |
/opt/CiscoTransportManagerServer/cfg |
jacorb.properties |
/opt/CiscoTransportManagerServer/openfusion/classes |
httpd.conf Note Two IP address instances require modification:
Listen IP-address:51 ServerName IP-address:51 |
/opt/CiscoTransportManagerServer/webServer/conf |
CTMServer.perm |
/opt/CiscoTransportManagerServer/cfg/ |
NotificationService.xml Note The NotificationService.xml file is present only if Prime Optical GateWay/CORBA is installed. |
/opt/CiscoTransportManagerServer/openfusion/domains/ OpenFusion/localhost/NotificationService/ |
E.2 Changing the IP Address when Prime Optical and Oracle Are on Separate Servers
To change the IP address of the Prime Optical server when Prime Optical and Oracle are on separate servers, complete Changing the IP Address when Prime Optical and Oracle Are on the Same Server on both the Prime Optical server workstation and the Prime Optical database workstation. Apply the changes to the same files on both servers.