OpenVZ Forum


Home » General » Discussions » OpenVZ Simple Scripts
OpenVZ Simple Scripts [message #13265] Wed, 23 May 2007 23:18 Go to next message
OVZJustin is currently offline  OVZJustin
Messages: 6
Registered: May 2007
Location: Toronto, Ontario
Junior Member

From: *cpe.net.cable.rogers.com
Hey,

I've been working on some scripts that make VPS Management easier...

Hopefully I will get them into a web gui eventually but for now I doubt it...

Heres what I've done so far:

File Name: createvps.sh
Usage: ./createvps.sh [VPSID] [OSIMAGE] [CONFIGFILE] [HOSTNAME] [IPADDRESS] [NAMESERVER] [PASSWORD] [ONBOOT]
Explanation: This is used to create new vps's... it will create a vps and set hostname, ip, nameserver, password and yes/no for start on boot.

That's the main file. I've created a few more:

destroyvps.sh = Destroy VPS with specified ID
restartvps.sh = Restarts VPS with specified ID
stopvps.sh = Halts VPS with specified ID
startvps.sh = Starts VPS with specified ID
listimages.sh = Lists all files in /vz/template/cache
addip.sh = Adds IP to vps with specified ID

I will be making a few more before I release it, but I'm wondering. Do you guys like what I have so far?

Are you interested in this type of thing?


http://static.openvz.org/userbars/openvz-user.png
Re: OpenVZ Simple Scripts [message #13267 is a reply to message #13265] Thu, 24 May 2007 03:01 Go to previous messageGo to next message
OVZJustin is currently offline  OVZJustin
Messages: 6
Registered: May 2007
Location: Toronto, Ontario
Junior Member

From: *cpe.net.cable.rogers.com
Wow, these forums are barely active!

However, my scripts have been released.

You can download them here: http://vzspot.com/?p=4

If you want to read the README before you download them (To get a idea of what they do) click here: http://www.vzspot.com/downloads/ovz-scripts/README

From the download page you can download a ZIP archive or a auto installer (Just a serious of WGET's)


http://static.openvz.org/userbars/openvz-user.png
Re: OpenVZ Simple Scripts [message #16256 is a reply to message #13267] Wed, 29 August 2007 22:30 Go to previous message
PureGrain is currently offline  PureGrain
Messages: 3
Registered: August 2007
Location: Louisville, KY
Junior Member
From: *dhcp.insightbb.com
These are very nice. Saves people time making scripts like these and I thank you for your time and offering them for others to use.

I was getting an error when trying to use the vpsstatus.sh script.
./vpsstatus.sh: line 1: [: not: unary operator expected

I fixed this by changing some things around in your script. Hope you do not mind. Surprised)

Where you have:
if [ not $1 ]

I changed to:
if [ "$1" = "" ];

[Updated on: Wed, 29 August 2007 22:30]

Report message to a moderator

Previous Topic: High Availability
Next Topic: OpenVZ article on Italian "Linux Magazine"
Goto Forum:
  


Current Time: Mon Nov 18 08:37:42 GMT 2019