Package: ipcheck
Version: 0.233-1
ipcheck does not detect the ip on Alcatel routers with firmware version
4.3.2.6.
The command to show the ip list has changed, and the list has another form,
Here is a transcript:
=> ip iplist
Interface Type IP-address Point-to-point/Mask
2 LocalNetwork Ethernet *192.168.xxx.xxx 255.255.255.0
1 Internet Serial 83.53.215.201 192.168.153.1
0 loop Internal 127.0.0.1 255.255.255.255
I made that modification to the ipcheck program, that works for me, and I
believe the previous functionality is preserved,
# connect to the router's admin webpage
try:
logger.logit("Trying Alcatel STP")
# disables negotiation to prevent the connection being dropped
telnetlib.IAC="\021"
tn = telnetlib.Telnet(iphost)
logger.logit("Creating telnetlib obj done")
tn.read_until(" : ")
logger.logit("User prompt found")
tn.write(Alcatel_user + "\r")
tn.write(opt_AlcatelSTP_password + "\r")
logger.logit("opt_AlcatelSTP_password sent")
tn.read_until("=>")
tn.write("ip aplist\r")
logger.logit("ip aplist sent")
ret=tn.read_until("SERIAL",5)
if string.find(ret,"SERIAL")==-1:
# is an Alcatel version 4.3.2.6 ?
tn.write("\r")
tn.read_until("=>")
tn.write("ip iplist\r")
logger.logit("ip iplist sent")
ret=tn.read_until("Serial ",5)
if string.find(ret,"Serial ")==-1:
raise "not connected"
else:
tn.read_until("addr:")
ip2 = tn.read_until(" ")
logger.logit("ip read")
ipdata = ip2[:-1]
I suggest do some modification like the previous one,
I am using Debian GNU/Linux 3.2, kernel 2.6.18
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]