unable to logon using CLI

Database
WAQ
N/A

unable to logon using CLI

i am trying to logon using bteq interactive mode. i did as:

.logon myIP/username;
password: myPassword

It connects perfectly.

However if i try to connect CLI as:

.logon TDPIP/username;
password: myPassword

it thorws an error:

*** CLI error: CLI2: BADLOGON(303): Invalid logon string.

*** Return code from CLI is: 303
*** Error: Logon failed!

*** Total elapsed time was 21 seconds.