SSH using php ssh library



Does you now evereone about programing ssh for configure ethernet swith DES-3526 .If you now somewone who can help me give me hi`s malL.
t would be great if
you could help me out
My problem is:I am using php ssh library php_ssh2.dll
or php library for linux
a connected to switch using ssh2_auth_password($connection, 'username', 'secret'))
sucsessfully
but a can`t
open shell ssh2_shell($connection, 'vt100' );
and a cant execute comands using ssh2_exec($connection, 'comand');
What can i do to write data to the switch&
.