Wallace1
Dec 10, 2015Nimbostratus
TMSH vs BASH
Hello,
I am creating a script and have run into an issue. Some users have tmsh and other users have BASH. Is there a quick and easy way to test for bash vs tmsh? I tired to do the following:
test=$( ssh users@devcieip.com 'show sys version' |awk -F"::" '{ print $2}' if $test="Version" then tmsh list ltm virtual else list ltm virtual fi
Not sure what I am doing wrong, but if anyone has any ideas, that would be great.
Thank you.