Mematikan Thinstation secara Remote

Supaya thinstation dapat di shutdown secara remote, module apm harus dimasukkan saat membuat thinstation image dan telnet harus dienable di thinstation.conf.network.

tambahkan baris berikut di thinstation.conf.network

NET_TELNETD_ENABLED=On

buat script berikut

#!/bin/bash
# shutdown_thinstation.sh

host=192.168.0.101
port=23
thin_user=root
thin_pass=123456
client_user=com-1
cmd=”poweroff”

# logoff user

skill -KILL -u $client_user

# shutdown thinstation

( echo open ${host} ${port}
sleep 1
echo ${thin_user}
sleep 1
echo ${thin_pass}
sleep 1
echo ${cmd}
sleep 1
echo exit ) | telnet

simpan dengan nama shutdown_thinstation.sh

jalankan

# sh shutdown_thinstation.sh

hasil searching dan coba-coba. masih banyak yang harus di tambahkan.

have fun 🙂

Iklan

2 comments on “Mematikan Thinstation secara Remote

  1. Kalo caranya nambahin module untuk network card Atheros(R) L2 Fast Ethernet di file thinstation.nbi-nya Thinstation 2.2rc5 prebuilt gimana yah??.. soalnya ngga tersedia disitu.. Thanks.

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout / Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s