terça-feira, 13 de agosto de 2013

SCRIPT



Datacom_2290#  EFM

Script 

conf
ip snmp-server community modemEFM ro
ip snmp-server community modemEFM rw
ip snmp-server
ip snmp-server contact vivo
ip snmp-server location cliente
interface g.shdsl 1
group members 1 2 3 4
exit
interface ethernet 1
switchport native vlan 10
no shutdown
exit
interface vlan 10
set-member tagged g.shdsl 1
set-member untagged ethernet 1
no shutdown
exit
interface mgmt g.shdsl
vlan 100
ip address 10.118.185.211/25
no shutdown
exit
ip route 0.0.0.0/0 10.118.185.1
hostname Datacom_dm2290
exit
Datacom_2290# copy running-config startup-config   Salvar as configurações

reboot

 – Interface g.shdsl



MODEM DIGISTAR EFM 

SCRIPT 

enable                                 < habilita o prompt do modem   >
configure terminal                 <  conf t  >
hostname
                            < com o nr do LP >
logging remote 200.204.1.4
ip route 0.0.0.0 0.0.0.0  < 2 ip do gateway da dslan >  ex. ip route 0.0.0.0 0.0.0.0 10.118.214.1
interface efm 0.100               < acessa a interface efm 0.100 >
ip address  < 1 ip de gerencia do modem mais a maskara > ex. ip address 10.118.214.116 255.255.255.128  >
exit    < volta para o config do modem >
exit    < novamente para voltar ao pront inicial >
write   < para gravar >
reload < para reinciar o modem >
y        < para confirmar,  espere ate ele aparecer welcome digistar >




SCRIPT


MODEM TITANIUM EFM


  aaa off
  unit remote
  vlan-list add 10 0
  vlan-list add 100 0
  interface bond wan1 1 4
  interface mgt1 ip 192.168.1.1 255.255.255.0
  interface mgt1 link up
  interface mgt1 dhcp none
  interface mgt1.1 ip 0.0.0.0 0.0.0.0
  interface mgt2 ip 10.118.194.245 255.255.255.128   <<<<<  ALTERAR O IP   >>>>>>
  interface mgt2 link up
  interface mgt2 dhcp none
  interface mgt2 switch-port mode access
  interface mgt2 switch-port access vlan 100
  interface mgt2.1 ip 0.0.0.0 0.0.0.0
  interface fe1 media auto
  interface fe1 link up
  interface fe1 oam off
  interface fe1 switch-port mode access
  interface fe1 switch-port access vlan 10
  interface wan1.1-4 annex auto
  interface wan1.1-4 psd sym
  interface wan1.1-4 pwrbo forced 0
  interface wan1.1-4 rate auto
  interface wan1.1-4 switch-port mode trunk
  interface wan1.1-4 switch-port trunk add 10
  interface wan1.1-4 switch-port trunk add 100
  ntpclient off
  oam mode passive
  oam off
  route add   0.0.0.0 0.0.0.0 10.118.194.129 1       <<<< <<    ALTERAR O IP   >>>>>>>
  snmp community no-view public rw
  sys contact unknown
  sys location unknown
  sys name LP_3834-1092
  sys secret admin 1Er4UuTuXj.96
  sys secret guest 1Er4UuTuXj.96
  sys timeout 300
  sys timezone -3
  sshserver off
  telnetserver on

LP_37140496_ID__EFM_2m:show interface wan1.1-4 status

Loop  Status      Annex   Rate        SNR Margin  Loop Att.
-----------------------------------------------------------
1     discon.      -       -           -           -
2     discon.      -       -           -           -
3     discon.      -       -           -           -
4     discon.      -       -           -           -

##########################################################################

Verificar erros do modem 

LP_37140496_ID__EFM_2m:show interface wan1.1-4 counters

Loop 1  Counters     Last: 15 minutes     8 hours    24 hours      1 week
-------------------------------------------------------------------------
Code Violations      (CV):           0           0           0           0
Errored Seconds      (ES):          0           0           0           0
Severely Errored    (SES):          0           0           0           0
Unavailable Seconds (UAS):     0           0           0           0
Loss of Sync Word (LOSWS):   0           0           0           0

Loop 2  Counters     Last: 15 minutes     8 hours    24 hours      1 week
-------------------------------------------------------------------------
Code Violations      (CV):           0           0           0           0
Errored Seconds      (ES):          0           0           0           0
Severely Errored    (SES):          0           0           0           0
Unavailable Seconds (UAS):     0           0           0           0
Loss of Sync Word (LOSWS):   0           0           0           0

Loop 3  Counters     Last: 15 minutes     8 hours    24 hours      1 week
-------------------------------------------------------------------------
Code Violations      (CV):           0           0           0           0
Errored Seconds      (ES):          0           0           0           0
Severely Errored    (SES):          0           0           0           0
Unavailable Seconds (UAS):      0           0           0           0
Loss of Sync Word (LOSWS):    0           0           0           0

Loop 4  Counters     Last: 15 minutes     8 hours    24 hours      1 week
-------------------------------------------------------------------------
Code Violations      (CV):           0           0           0           0
Errored Seconds      (ES):          0           0           0           0
Severely Errored    (SES):          0           0           0           0
Unavailable Seconds (UAS):      0           0           0           0
Loss of Sync Word (LOSWS):    0           0           0           0


Zerar contadores do :

LP_37140496_ID__EFM_2m:clear counters wan1.1-4

###########################################################################

Verificar configuração do modem 

LP_37140496_ID__EFM_2m# show running-config
  aaa off
  unit remote
  vlan-list add 10 0
  vlan-list add 100 0
  interface bond wan1 1 4
  interface mgt1 ip 192.168.1.1 255.255.255.0
  interface mgt1 link up
  interface mgt1 dhcp none
  interface mgt1.1 ip 0.0.0.0 0.0.0.0
  interface mgt2 ip 10.118.190.88 255.255.255.128
  interface mgt2 link up
  interface mgt2 dhcp none
  interface mgt2 switch-port mode access
  interface mgt2 switch-port access vlan 100
  interface mgt2.1 ip 0.0.0.0 0.0.0.0
  interface fe1 media auto
  interface fe1 link up
  interface fe1 oam off
  interface fe1 switch-port mode access
  interface fe1 switch-port access vlan 10
  interface wan1.1-4 annex auto
  interface wan1.1-4 psd sym
  interface wan1.1-4 pwrbo forced 0
  interface wan1.1-4 rate auto
  interface wan1.1-4 switch-port mode trunk
  interface wan1.1-4 switch-port trunk add 10
  interface wan1.1-4 switch-port trunk add 100
  ntpclient off
  oam mode passive
  oam off
  route add 0.0.0.0 0.0.0.0 10.118.190.1 1
  snmp community no-view public rw
  sys contact unknown
  sys location unknown
  sys name LP_37140496_ID__EFM_2m
  sys secret admin 1Er4UuTuXj.96
  sys secret guest 1Er4UuTuXj.96
  sys timeout 300
  sys timezone -3
  sshserver off
  telnetserver on
  webserver on



LP_37140496_ID__EFM_2m#

Um comentário:

Unknown disse...

Ola amigo, tenho seguido seu blog e tem me ajudado bastante nas coisas do dia a dia.
Ouvi dizer que existe uma forma de resetar via hardware os edd da datacom, em especial o edd 2104g2, sabae algo a respeito como funciona isso?

Obrigado

Postagem em destaque

MicroSIP

 MICRO SIP  MicroSIP - softphone SIP portátil de código aberto baseado na pilha PJSIP para o sistema operacional Windows. Permite fazer cham...