View Single Post
  #1  
Old 07-19-2019, 05:25 AM
Allan_D Allan_D is offline
Registered User
 
Join Date: Jul 2019
Posts: 3
ScreenSend variable

Hi
Having some issues sending a variable in a Screen Send.
For context.
This is on a H3c router. I first list routing instances, use Get2() to capture them to an array , then go via the array , list the peer IP , grab the peer with Get().

Then I try to list routes received from the peer but the variable do not print , i just get basic text in the screen send output:
(vLines and vPeer are the variables in this case)

crt.Screen.Send "dis bgp vpnv4 vpn" & vLines & "routing-table peer" & vPeer & "received-routes " & chr(13)


Code:
>dis bgp vpnv4 vpn & strLines(nIndex) & peer
                                   ^
 % Unrecognized command found at '^' position.
Sorry if this is a stupid newbie question. I read the guide and the syntax seems to be correct.
Reply With Quote