How to write a script by using unix commands to down any server

Hi,

I need to do frequently server down and up. Every time i am using nearly 5 to 6 commands to down and agin i am using the commands to up.
Can anybody help me to write a script to down and up.
which i can use once on unix platform it can down later it can up the server.

The simplest way is to use and editor (vi ?) to create something like....

#!/bin/ksh
#################
# Server shutdown
#################
#
command1
command2
.
.
commandn

save this and endsure the script file is executable using chmod +x <scriptname>

then execute it by simply running the scriptfile - the same would apply for your shutdown script.

Depending on your situation it *may* not be quite as simple as this but I hope this gets you started