This document was generated from CDN thread Created by: Rolando Lozano on 25-01-2011 08:37:35 PM Hi,I need to send a command to the tandberg C20 via SSH in an automatic way to display a message:ssh admin@192.168.101.2 xCommand Message Alert Display Test: "Hello"and i get the following answer:Failed to open -c for reading: no such file or directoryif i do this, it works:ssh root@192.168.101.2 ls -lathen i get all the info.....Can someone tell me how can i fix the error that i get with the ssh to admin or how can i manipulate the message alert display inside root?ThanksRolandoSubject: RE: SSH to admin in a C20 Replied by: Viggo Fredriksen on 26-01-2011 09:23:42 AMHi Rolando, this is because the admin shell is driven by stdin. You could try do something like this:1echo 'xCommand Message Alert Display Text: "Hello"' | ssh admin@host
Regards, ViggoSubject: RE: SSH to admin in a C20 Replied by: Rolando Lozano on 26-01-2011 04:08:49 PMHi, Thanks for the answer... i tried but i get this message:admin@192.168.101.2's password:ssh: failed reading termmodesSubject: RE: SSH to admin in a C20 Replied by: Viggo Fredriksen on 27-01-2011 09:58:03 AMHi Rolando, you may have better luck with http POST.1# wget http://host/putxml \2 --post-data="<Command><Message><Alert><Display><Text>Hi</Text></Display></Alert></Message></Command>" \
3 --user=admin --password=password
Regards, ViggoSubject: RE: SSH to admin in a C20 Replied by: Rolando Lozano on 27-01-2011 09:45:15 PMHi,I tried the command but no success:wget http://192.168.101.2/putxml --post-data="<Command><Message><Alert><Display><Text>Hi</Text></Display></Alert></Message></Command>" --user=admin --password=passwordConnecting to 192.168.101.2 (192.168.101.2:80)wget: can't open 'putxml': File existsThanksRolandoSubject: RE: SSH to admin in a C20 Replied by: Rolando Lozano on 28-01-2011 02:11:17 AMWorking!!!!
we have to do it like this in order to work:wget http://192.168.101.2/formputxml?xmldoc=%3CCommand%3E%3CMessage%3E%3CAlert%3E%3CDisplay%20command=%22True%22%3E%3CText%3EHi%3C/Text%3E%3C/Display%3E%3C/Alert%3E%3C/Message%3E%3C/Command%3EThanksRolandoSubject: RE: SSH to admin in a C20 Replied by: Rolando Lozano on 04-02-2011 03:48:56 AMHi,We were able to send the messages to the Tandberg unit, but we want to send a message to cover the message that displays “can not connect call” but when that message shows up in the screen there is no way to put one in top of itThat is our whole intention, to block it completely for one that will say “please wait...connecting your call”.Any idea on how can I do this? Or how can we stop having the can not connect call?for example if we send a message when the default tandberg message of "connecting to xxxx.xxxx.xxxx.xxxx" then the message that we send cover or goes on top, but with the one that says canot connect, then the story is different..ThanksRolandoSubject: RE: SSH to admin in a C20 Replied by: Rolando Lozano on 04-02-2011 04:48:04 PMHi Viggo,i think i have places some comments in my post but with reply to myself.... i previous post i mentioned that we managed to make the ssh work to display messages but......... see below...Hi,We were able to send the messages to the Tandberg unit, but we want to send a message to cover the message that displays “can not connect call” but when that message shows up in the screen there is no way to put one in top of itThat is our whole intention, to block it completely for one that will say “please wait...connecting your call”.Any idea on how can I do this? Or how can we stop having the can not connect call?for example if we send a message when the default tandberg message of "connecting to xxxx.xxxx.xxxx.xxxx" then the message that we send cover or goes on top, but with the one that says canot connect, then the story is different..ThanksRolandoSubject: RE: SSH to admin in a C20 Replied by: Viggo Fredriksen on 04-02-2011 05:17:33 PMHi Rolando, unfortunately, there is currently no way to block popup messages from the OSD.Regards, Viggo