--> --> -->
 
 
<type 'exceptions.Exception'>
Python 2.7.11: /usr/local/bin/python2.7
Thu Apr 26 10:02:58 2018

A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.

 /var/www/html/ulg/ulg.py in ()
     38 import whois
     39 
=>   40 config = ulgmodel.import_config()
     41 
     42 IPV4_ANNOTATE_REGEXP = '([0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}(/[0-9]{1,2})?)'
config undefined, ulgmodel = <module 'ulgmodel' from '/var/www/html/ulg/ulgmodel.pyc'>, ulgmodel.import_config = <function import_config>
 /var/www/html/ulg/ulgmodel.py in import_config()
     55     filename, ext = os.path.splitext(filename)
     56     sys.path.append(path)
=>   57     module = __import__(filename)
     58     reload(module)
     59     del sys.path[-1]
module undefined, builtin __import__ = <built-in function __import__>, filename = 'config'
 /etc/ulg/config.py in ()
     28         BirdRouterRemote('196.216.148.234','root','#Ixpn234#',asn=36932,name='rs2-med-lagos.ixp.net.ng'),
     29         CiscoRouter(host='196.216.150.233', user='noc_charles', password='#charles1251#', asn=36932, name='rs-abuja.ixp.net.ng'),
=>   30         CiscoRouter(host='196.216.148.15', user='noc_charles', password='#charles1251#', asn=36932, name='ixpn-lagos.ixp.net.ng'),
     31         CiscoRouter(host='196.216.149.1', user='noc_charles', password='#charles1251#', asn=36932, name='r1-lagos.ixp.net.ng'),
     32         ]
CiscoRouter = None, host undefined, user undefined, password undefined, asn undefined, name undefined
 /var/www/html/ulg/ulgcisco.py in __init__(self=<ulgcisco.CiscoRouter object>, host='196.216.148.15', user='noc_charles', password='#charles1251#', port=22, commands=None, enable_bgp=True, asn=36932, name='ixpn-lagos.ixp.net.ng', acl=None)
    815                 self.rescanHook()
    816             else:
=>  817                 self.loadBGPPeers()
    818 
    819             rid = hashlib.md5(self.getName()).hexdigest()
self = <ulgcisco.CiscoRouter object>, self.loadBGPPeers = <bound method CiscoRouter.loadBGPPeers of <ulgcisco.CiscoRouter object>>
 /var/www/html/ulg/ulgcisco.py in loadBGPPeers(self=<ulgcisco.CiscoRouter object>)
    888 
    889         if(not self.getBGPIPv4Peers()) or (not self.getBGPIPv6Peers()):
=>  890             self.rescanHook()
    891 
    892     def runRawCommand(self,command,outfile):
self = <ulgcisco.CiscoRouter object>, self.rescanHook = <bound method CiscoRouter.rescanHook of <ulgcisco.CiscoRouter object>>
 /var/www/html/ulg/ulgcisco.py in rescanHook(self=<ulgcisco.CiscoRouter object>)
    854         
    855     def rescanHook(self):
=>  856         self.rescanBGPIPv4Peers()
    857         self.rescanBGPIPv6Peers()
    858         self.saveBGPPeers()
self = <ulgcisco.CiscoRouter object>, self.rescanBGPIPv4Peers = <bound method CiscoRouter.rescanBGPIPv4Peers of <ulgcisco.CiscoRouter object>>
 /var/www/html/ulg/ulgcisco.py in rescanBGPIPv4Peers(self=<ulgcisco.CiscoRouter object>)
    848 
    849     def rescanBGPIPv4Peers(self):
=>  850         self.bgp_ipv4_peers = self.rescanBGPPeers(RESCAN_BGP_IPv4_COMMAND,BGP_IPV46_TABLE_LINE_REGEXP)
    851 
    852     def rescanBGPIPv6Peers(self):
self = <ulgcisco.CiscoRouter object>, self.bgp_ipv4_peers = ['196.216.148.47', '196.216.148.233'], self.rescanBGPPeers = <bound method CiscoRouter.rescanBGPPeers of <ulgcisco.CiscoRouter object>>, global RESCAN_BGP_IPv4_COMMAND = 'show bgp ipv4 unicast summary', global BGP_IPV46_TABLE_LINE_REGEXP = r'^\s*([0-9a-fA-F:\.]+)\s+([0-9]+)\s+([0-9]+)\s+([...\s+([a-zA-Z0-9\(\)]+|[a-zA-Z0-9]+\s\(Admin\))\s*$'
 /var/www/html/ulg/ulgcisco.py in rescanBGPPeers(self=<ulgcisco.CiscoRouter object>, command='show bgp ipv4 unicast summary', regexp=r'^\s*([0-9a-fA-F:\.]+)\s+([0-9]+)\s+([0-9]+)\s+([...\s+([a-zA-Z0-9\(\)]+|[a-zA-Z0-9]+\s\(Admin\))\s*$')
    834 
    835     def rescanBGPPeers(self,command,regexp):
=>  836         table = self.runRawSyncCommand(command)
    837 
    838         peers = []
table undefined, self = <ulgcisco.CiscoRouter object>, self.runRawSyncCommand = <bound method CiscoRouter.runRawSyncCommand of <ulgcisco.CiscoRouter object>>, command = 'show bgp ipv4 unicast summary'
 /var/www/html/ulg/ulgmodel.py in runRawSyncCommand(self=<ulgcisco.CiscoRouter object>, command='show bgp ipv4 unicast summary')
    477     def runRawSyncCommand(self,command):
    478         cr = StringIO.StringIO()
=>  479         self.runRawCommand(command,cr)
    480         return cr.getvalue()
    481 
self = <ulgcisco.CiscoRouter object>, self.runRawCommand = <bound method CiscoRouter.runRawCommand of <ulgcisco.CiscoRouter object>>, command = 'show bgp ipv4 unicast summary', cr = <StringIO.StringIO instance>
 /var/www/html/ulg/ulgcisco.py in runRawCommand(self=<ulgcisco.CiscoRouter object>, command='show bgp ipv4 unicast summary', outfile=<StringIO.StringIO instance>)
    915                 elif(i==1):
    916                         if(p>1):
=>  917                                 raise Exception("pexpect session failed: Password not accepted.")
    918 
    919                         s.sendline(self.password)
builtin Exception = <type 'exceptions.Exception'>

<type 'exceptions.Exception'>: pexpect session failed: Password not accepted.
      args = ('pexpect session failed: Password not accepted.',)
      message = 'pexpect session failed: Password not accepted.'