Jacques44 / node-red-contrib-bigssh

remote command using ssh big node
Apache License 2.0
8 stars 12 forks source link

More SSH commands #16

Closed Schubbie closed 3 years ago

Schubbie commented 4 years ago

Hello, to reconfigure my Security Gateway automatically it is necessary to submit more commands in one with SSH.

configure
edit service dns
set forwarding options host-record=abc.domain.de,192.168.153.1
set forwarding options host-record=def.domain.de,192.168.153.2
set forwarding options host-record=ghi.domain.de,192.168.153.3
set forwarding options host-record=jkl.domain.de,192.168.153.222
set forwarding options host-record=mno.domain.de,192.168.210.50

exit
commit
save

exit
exit

Is it possible to realise this?

With best regards Andreas

Jacques44 commented 4 years ago

Hello,

please check another issue which was closed: https://github.com/Jacques44/node-red-contrib-bigssh/issues/11 https://github.com/Jacques44/node-red-contrib-bigssh/issues/11 and tell me

Regards

On 22 Sep 2019, at 08:24, Schubbie notifications@github.com wrote:

Hello, to reconfigure my Security Gateway automatically it is necessary to submit more commands in one with SSH.

configure edit service dns set forwarding options host-record=abc.domain.de,192.168.153.1 set forwarding options host-record=def.domain.de,192.168.153.2 set forwarding options host-record=ghi.domain.de,192.168.153.3 set forwarding options host-record=jkl.domain.de,192.168.153.222 set forwarding options host-record=mno.domain,192.168.210.50

exit commit save

exit exit

Is it possible to realise this?

With best regards Andreas

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Jacques44/node-red-contrib-bigssh/issues/16?email_source=notifications&email_token=AEKS6MY52RSJ5VDI5ETRPY3QK4FRHA5CNFSM4IZBNNTKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HM3UOSA, or mute the thread https://github.com/notifications/unsubscribe-auth/AEKS6MYM5YB4X7I6TSCY3MTQK4FRHANCNFSM4IZBNNTA.

Schubbie commented 4 years ago

Hello, thanks for your response. I can´t send any correct command to that device.

vbash: configure: command not found and 24.9.2019, 01:58:42node: b1677874.620838 msg : error "Error: Return code 127"

This errors came if i only type "configure" in BigSSH and if i try it with the file (UTF 8). If i type the commands in putty all works fine.

Any idea?

With best regards Andreas

Jacques44 commented 4 years ago

Hello,

please don’t forget that when connected trough putty, you have all variables set in your environnement. The shell knows then where to search for binaries using the PATH variable When connected though bigssh, you have nothing set.

Please try using the full path for each command You can find them by typing which in putty

Regards

On 24 Sep 2019, at 02:08, Schubbie notifications@github.com wrote:

Hello, thanks for your response. I can´t send any correct command to that device.

vbash: configure: command not found and 24.9.2019, 01:58:42node: b1677874.620838 msg : error "Error: Return code 127"

This errors came if i only type "configure" in BigSSH and if i try it with the file (UTF 8). If i type the commands in putty all works fine.

Any idea?

With best regards Andreas

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Jacques44/node-red-contrib-bigssh/issues/16?email_source=notifications&email_token=AEKS6M3I36LLJ3S6TPATU4DQLFLAFA5CNFSM4IZBNNTKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD7MUI2A#issuecomment-534332520, or mute the thread https://github.com/notifications/unsubscribe-auth/AEKS6M727JODYDGCDM2TGF3QLFLAFANCNFSM4IZBNNTA.