Support  |  Contact Us  |  About Us  |  Blog   Questions? Call 888.71.SERVE (73783)

HARDWARE      API      INFRASTRUCTURE      DOCUMENTATION      


 
Hourly Billing
Automated Provisioning
API
Dedicated Servers & Disks







nscmd Command Line Tool

This is program written in Java using the NewServers™ Java Client SDK.  It enables making api calls from the command line.

Installation Instructions :

  1. Install Java JRE
  2. Setup a JAVA_HOME environment variable that points to the directory where Java was installed and add the bin directory to your PATH environment variable. (how do I do this)
  3. Download the distribution nscmd.zip
  4. Unzip the distribution, open a command window and go into the nscmd directory.
  5. Edit nscmd.bat and replace “yourusername” and “yourpassword” with your username and password
  6. execute “nscmd --help” to see available commands

For example, the addServer method is accessed by url like this:

https://noc.newservers.com/api/addServer?username=youruser&password=yourpass&config=small&os=centos5.4

Accomplish the same thing with nscmd from a command prompt with this:

nscmd addServer small centos5.4x64

Copyright © 2009 NewServers, Incorporated. All Rights Reserved.     AUP     |     SLA     |     Terms of Service     |     Privacy Policy     |     Partners     |     Jobs     |     News

Chat Now