Ssh Keys; Scripts - RACOM RAy3 User Manual

Microwave link
Hide thumbs Also See for RAy3:
Table of Contents

Advertisement

Command Line Interface
• Entering more parameters in both units
cli_cnf_set -t b RADIO_TX_CHAN=17128000 PEER_RADIO_RX_CHAN=17128000
• Put parameters containing spaces in quotation marks:
cli_time_set -t b -T '2012-11-27 10:55:00'
Set time in both units

6.2.1. SSH keys

• Generation using ssh-keygen
[user@laptop ~]$ ssh-keygen -t dsa -f usr_ssh_key
Uses working directory to save private usr_ssh_key and public part of the key usr_ssh_key.pub
• Copying the key into the RAy unit
[user@laptop ~]$ scp usr_ssh_key.pub admin@192.168.141.202:/tmp
The public part of the key is written to the folder /tmp
• Installation of key in RAy unit
CLI(admin):/rrusrhomes/admin$ cli_user_authkey -c a -k /tmp/usr_ssh_key.pub
• Testing access to RAy unit using SSH key
[user@laptop ~]$ ssh -i usr_ssh_key admin@192.168.141.202

6.2.2. Scripts

• Script example with access using key
[user@laptop ~]$ ssh -i usr_ssh_key admin@192.168.141.202
"source /etc/profile;cli_info_link;echo \$?;cli_cnf_show | grep TX_PWR;echo $?"
Warning: Permanently added '192.168.141.202' (DSA) to the list of known hosts.
cli_info_link: Link status: up
0
RADIO_TX_PWR=4
0
[user@laptop ~]$
• The script contains:
source /etc/profile;
cli_info_link;
echo \$?;
cli_cnf_show | grep TX_PWR;
echo \$?
cli_info_link: Link status:up
0
RADIO_TX_PWR=4
0
172
environment settings
query for link status
reading return value
query for radio power
reading return value
return value
OK command
power +4 dBm
OK command
RAy3 Microwave Link – © RACOM s.r.o.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ray3-17Ray3-24

Table of Contents