hanzonizer
Programmer
I´m trying to make a script that reads the mac-adress-table from a cisco 2610 router and then writes the data to a netdisco database. The problem is that I don´t get the command :
to work. The output thats supposed to be generated by the command and set to the list in @mac only shows when I watch the traffic with ethereal. when I try to print @mac it only returns null-values.
I have tried setting both telnet_mode and cmd_remove_mode to ones and zeros but with no luck.
Is there any way to trigger the cmd-command so that it generates the output, or do I need another solution?
Regards Jimmy
Code:
my @mac = $telnet->cmd(´show mac dynamic | begin 0´)
I have tried setting both telnet_mode and cmd_remove_mode to ones and zeros but with no luck.
Is there any way to trigger the cmd-command so that it generates the output, or do I need another solution?
Regards Jimmy