2G HD over IP Dealer Support Manual
– Page 8
©2011 Just Add Power Cardware Co, Inc. All rights reserved. Unauthorized use or disclosure prohibited. V1.2
Console APIs Description:
Debug Console APIs:
Turn on/off RS232 Console application debug message
NAME: setconsole
EXAMPLE:
Turn off: $setconsole /dev/ttyS1
Turn on: $setconsole
–r
Turn on/off RS232 Console kernel debug message
NAME: dmesg
EXAMPLE:
Turn off: $dmesg -n 1
Turn on: $dmesg -n
Reboot system
NAME: reboot
EXAMPLE: $reboot
Telnet client
NAME: telnet
EXAMPLE:
telnet to IP 169.254.0.101 port 24
$telnet 169.254.0.101 24
telnet to ast-client0000.local port 24
$telnet ast-client0000.local 24
List all 2G devices
NAME: node_list
OPTIONS
-t : specify the device type to list
EXAMPLE
List all clients:
$./node_list -t client
List all hosts:
$./node_list -t host
Get IP from hostname:
NAME: astresname
EXAMPLE:
Get "ast-gateway0001.local"'s IP address:
$./astresname ast-gateway0001.local
To kill a running process by process name:
NAME: pkill
EXAMPLE:
kill a process named "abc"
pkill -9 abc