This script is a simple command line wrapper for executing ftos cli commands on a specified switch.

Before use you must open the script and edit the variables at the top for the switch username and

password.

In addition to running this script in the switch environment it can also be used on a remote machine

by changing the value for "$switchip" that is currently set to localhost.

execution is simple just make it executable by doing chmod +x f10do after setting the username and

password variables and then run the script followed by the cli command that you want to run like this

f10do show ip interface gig 0/24

and the output will be what would normally come out of the cli on the command line.

GigabitEthernet 0/24 is down, line protocol is down

Hardware is Force10Eth, address is 00:01:e8:81:e3:05

Current address is 00:01:e8:81:e3:05

Pluggable media not present

Interface index is 40158210

Internet address is not set

MTU 1554 bytes, IP MTU 1500 bytes

LineSpeed auto, Mode auto

Auto-mdix enabled, Flowcontrol rx off tx off

ARP type: ARPA, ARP Timeout 04:00:00

Last clearing of "show interface" counters 21:53:37

Queueing strategy: fifo

Input Statistics:

0 packets, 0 bytes

0 64-byte pkts, 0 over 64-byte pkts, 0 over 127-byte pkts

0 over 255-byte pkts, 0 over 511-byte pkts, 0 over 1023-byte pkts

0 Multicasts, 0 Broadcasts

0 runts, 0 giants, 0 throttles

0 CRC, 0 overrun, 0 discarded

Output Statistics:

0 packets, 0 bytes, 0 underruns

0 64-byte pkts, 0 over 64-byte pkts, 0 over 127-byte pkts

0 over 255-byte pkts, 0 over 511-byte pkts, 0 over 1023-byte pkts

0 Multicasts, 0 Broadcasts, 0 Unicasts

0 throttles, 0 discarded, 0 collisions

Rate info (interval 299 seconds):

Input 00.00 Mbits/sec, 0 packets/sec, 0.00% of line-rate

Output 00.00 Mbits/sec, 0 packets/sec, 0.00% of line-rate

Time since last interface status change: 21:52:07