dafranco)cd /Users/danielantonio/Developer/especial_op
python3 op.py --device 9K-TAMBORE-RTC run "show version"
python3 op.py --device 9K-TAMBORE-RTC run "show ip interface brief"
python3 op.py --device 9K-TAMBORE-RTC run "show running-config"
ssh dafranco@10.230.0.8
ATENÇÃO: Senha do TACACS+ ainda não recuperada.
Consultarservers.mdpara status atual.
show version
show ip interface brief
show interfaces
show ip route
show ip route summary
show running-config
show running-config | section bgp
show bgp summary
show bgp neighbors
show platform
# Aplicar comandos de configuração (entra em conf t, aplica e salva)
python3 op.py --device 9K-TAMBORE-RTC config "interface GigE1/0/1" "description UPLINK"
python3 op.py --device 9K-TAMBORE-RTC config "interface GigE1/0/1" "no shutdown"
O
CiscoClient.configure()entra emconfigure terminal, aplica os comandos e executawrite memoryautomaticamente.
keyboard-interactive e passwordinvoke_shell() é mais confiável que exec_command() para Ciscoterminal length 0 logo após conectar para desativar paginação[#>]\s*$| Nome | IP | Usuário |
|---|---|---|
| 9K-TAMBORE-RTC | 10.230.0.8 | dafranco (TACACS+) |