Thread Probelm mit Telnetzugriff auf Router (27 answers)
Opened by Gast at 2006-01-27 10:47

krusty
 2006-01-27 12:06
#62334 #62334
User since
2006-01-27
91 Artikel
BenutzerIn
[default_avatar]
so habe jetzt noch ein paar dies eingebaut. Sieht jetzt folgendermaßen aus:

Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
 $session->login('xy', 'zzzzz');
$command1="set vrouter trust-vr";
$command2="unset protocol rip";
$command3="y";
$command4="exit";
$command5="save";
$command6="exit";
$session->cmd($command1) or die " Error giving \"set vrouter trust-vr\" command: $!";
$session->cmd($command2) or die " Error giving \"unset protocol rip\" command: $!";
$session->waitfor('/deleting RIP instance, are you sure? y\/[n]/') or die " Error getting \"deleting RIP instance, are you sure? y/[n]\" prompt: $!";
$session->cmd($command3) or die " Error giving \"y\" command: $!";
$session->cmd($command4) or die " Error giving \"exit\" command: $!";
$session->cmd($command5) or die " Error giving \"save\" command: $!";
$session->cmd($command6) or die " Error giving \"exit\" command: $!";
$session->close;


habe auf cpan schon die entsprechenden module durchgeschaut und nichts gefunden. Vielleicht habe ich auch was übersehen.

Beim Output hat sich auch nichts getan. Bekomme durch die dies auch keine weiteren meldungen auf der Konsole. Bin echt ratlos.

View full thread Probelm mit Telnetzugriff auf Router