So far I have writting pretty straight forward scripts.
But now I would like to get slick !
I want to transmit a command and based on it's output set some varibals (IP addresess and so on)and then use the info to transmit a new command.
Example
transmit ^A get-info ^M
the output to the terminal would be:
INFO
IPADDR SPEED ROUTE
192.168.1.11 10 12.10.223.89
transmit ^A set-info;ip=
transmit IP;
transmit speed=
transmit SPEED; ^M
I want to do a snapshot or termget to capture the info then put them into varibals so I can then use the varibals as input to transmit a different command.
A couple of things are that I always know where the Varibal data will begin but not end i.e 10.1.1.1 vs 192.168.255.255
and I am not sure how to go get the data and then put the data into a varibal.
But now I would like to get slick !
I want to transmit a command and based on it's output set some varibals (IP addresess and so on)and then use the info to transmit a new command.
Example
transmit ^A get-info ^M
the output to the terminal would be:
INFO
IPADDR SPEED ROUTE
192.168.1.11 10 12.10.223.89
transmit ^A set-info;ip=
transmit IP;
transmit speed=
transmit SPEED; ^M
I want to do a snapshot or termget to capture the info then put them into varibals so I can then use the varibals as input to transmit a different command.
A couple of things are that I always know where the Varibal data will begin but not end i.e 10.1.1.1 vs 192.168.255.255
and I am not sure how to go get the data and then put the data into a varibal.