On my Computer is a Cisco WS-C3550 connected to serial interface, I can connect with following Command to the Device:
cu -l /dev/cuau0 -s 9600
If I connected to the Device i send following command
show interface FastEthernet0/2
And the output of this command I want to use in a shell script to get some values, how can I do this? I use FreeBSD (pfsense 2.0.1) as operating system.
I try anything like
echo 'show interface FastEthernet0/2' > cu -l /dev/cuau0 -s 9600 > test.log
But this dosen't work. I get following error:
Ambiguous output redirect.