Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

M1 IP Address Change for 6.2 Avaya SBCE

Status
Not open for further replies.

jallen2020

IS-IT--Management
Mar 23, 2009
41
US
Had to make use of this the other night, and found that Avaya had no idea what I was talking about, even though they wrote the article, so I thought I would post this for anyone else who runs into this issue with an old version of firmware. This is for 6.2 specifically, use at your own risk for other versions. The link for this has since broken, so I am posting the the entirety of the SOLN241349 article here. This only works for single standalone ASBCE's to my knowledge.

ASBCE - Procedure to change M1 interface-IP for ASBCE

Doc ID: SOLN241349
Version: 1.0
Status: Published
Published date: 06 Dec 2013
Author: Vijay Naik



Details:

**** Please take note - This procedure is applicable for Single-BOX ASBCE solution only for ASBCE of 6.2 or 4.0.5 release ****

If customer has an HA Solution or EMS and ASBCE on a separate BOX then it would have to be done manually, which means deleting SBC's from GUI and then perform ipcs-reconfigure on ems with factory reset. So complete reconfiguration is required.

So below procedure is applicable only for Single-BOX ASBCE solution which has a requirement of change in M1 IP.

Problem Clarification:

Request from customer to change M1 (Management Interface IP) of ASBCE (single box solution) i.e. EMS and SBC on the same box.

Please read FAQ for interface requirements : FAQ102247

Cause:

There have been requests from customers wanting to change the M1 IP. Why? e.g. M1 was erroneously created in the same Subnet was A1 . Since A1 and M1 interface in same subnet is not a supported configuration, either M1 or A1 IP needs to be changed. If A1 IP cannot be changed by customer, alternative is to change M1 IP only, then follow the procedure in solution tab.

Please read FAQ for interface requirements : FAQ102247

Solution:

1.Login to Web-Interface of ASBCE using credentials of "ucsec" login.
2.Perform back-up and store the back-up file on a remote PC. This backup file is to ensure that we have a configuration back-up, just incase we need to roll-back to previous IP through re-install.
3.Login to shell prompt of ASBCE using ipcs login and then "su - root" to get in to root permission.
4. Create a file using "vi" command i.e. "vi ./migrate-sb.py" in the /home/ipcs directory
5. Cut and paste script (below) into it the file "migrate-sb.py"

===================================Cut and paste below line in migrate-sb.py ===========================================

#!/usr/bin/python

import commands, sys, time
sys.path.append("/usr/local/ipcs/icu/pylib")
from IPCSSysInfo import *
from IPCSDb import *

if len(sys.argv) != 7:
print "USAGE: migrate-sb.py OLDIP NEWIP OLDGW NEWGW OLDNETMASK NEWNETMASK"
sys.exit(1)

old_ip = sys.argv[1]
new_ip = sys.argv[2]
old_gw = sys.argv[3]
new_gw = sys.argv[4]
old_netmask = sys.argv[5]
new_netmask = sys.argv[6]
sysinfo = IPCSSysInfo()
ipcs_db = IPCSDb()

print "Ensuring UC-Sec application is down, will take 20 seconds"
cmd_status, cmd_output = commands.getstatusoutput("/etc/init.d/ipcs-init stop")
cmd_status, cmd_output = commands.getstatusoutput("/etc/init.d/ipcs-init stop")
time.sleep(10)
cmd_status, cmd_output = commands.getstatusoutput("/etc/init.d/ipcs-init stop")
cmd_status, cmd_output = commands.getstatusoutput("/etc/init.d/ipcs-init stop")
time.sleep(10)

print "Updating UC-Sec IP in configuration files"
commands.getstatusoutput("sed -ie 's/%s$/%s/g' /usr/local/ipcs/etc/sysinfo" % (old_ip, new_ip))
commands.getstatusoutput("sed -ie 's/%s$/%s/g' /usr/local/ipcs/etc/sysinfo" % (old_gw, new_gw))
commands.getstatusoutput("sed -ie 's/%s$/%s/g' /usr/local/ipcs/etc/sysinfo" % (old_netmask, new_netmask))
commands.getstatusoutput("sed -ie 's/%s$/%s/g' /usr/local/ipcs/etc/ipcs.cfg" % (old_ip, new_ip))
commands.getstatusoutput("sed -ie 's/%s$/%s/g' /usr/local/ipcs/etc/ipcs.cfg" % (old_gw, new_gw))
commands.getstatusoutput("sed -ie 's/%s$/%s/g' /usr/local/ipcs/etc/ipcs.cfg" % (old_netmask, new_netmask))
commands.getstatusoutput("sed -ie 's/%s$/%s/g' /etc/ssh/sshd_config" % (old_ip, new_ip))

print "Updating UC-Sec IP in database"
node_id = sysinfo.get_node_id()
ipcs_db.set_host("127.0.0.1")
cmd_status, cmd_output = ipcs_db.exec_insert_stmt("update global_nodes set MANAGEMENT_IP='%s'" % new_ip)

cmd_status, cmd_output = commands.getstatusoutput("rm -f /usr/local/ipcs/db/dao/*.dat")

print "IP address updated."
print "UC-Sec will shut down in 10 seconds."
print "To cancel, press Ctrl-C"
time.sleep(10)
cmd_status, cmd_output = commands.getstatusoutput("shutdown -r now")


===================================Cut and paste above line in migrate-sb.py ===========================================

4. Change the script you have just created so it is executable
chmod +x migrate-sb.py

4. Run the script on shell prompt of ASBCE - example as below :
./migrate-sb.py OLDIP NEWIP OLDGW NEWGW OLDNETMASK NEWNETMASK


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top