|
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 :
- Install Java JRE
- 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)
- Download the distribution nscmd.zip
- Unzip the distribution, open a command window and go into the nscmd directory.
- Edit nscmd.bat and replace “yourusername” and “yourpassword” with your username and password
- 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
|