How to Manually Add Virtual Machines to NodeGrid via CLI

How to Manually Add Virtual Machines to NodeGrid via CLI

Access your NodeGrid via telnet, ssh, or console, and log in as admin.

Type the following commands to add a VM Manager first to NodeGrid:

[admin@nodegrid /]# add /settings/auto_discovery/vm_managers/

[admin@nodegrid {vm_managers}]# set vm_server=<vm_server_IP>

[admin@nodegrid {vm_managers}]# set username=<admin_user>

[admin@nodegrid {vm_managers}]# set password=<admin_user_password>

[admin@nodegrid {vm_managers}]# set type=VMware

[admin@nodegrid {vm_managers}]# set html_console_port=7331,7343

[admin@nodegrid {vm_managers}]# save

[admin@nodegrid /]# set /settings/auto_discovery/vm_managers/<vm_server_IP>/ discover_virtual_machines=yes

[+admin@nodegrid /]# set /settings/auto_discovery/vm_managers/<vm_server_IP>/ interval_in_minutes=10

[+admin@nodegrid /]# set /settings/auto_discovery/vm_managers/<vm_server_IP>/ discovery_scope=<vCenter or Cluster>

[+admin@nodegrid /]# commit

 

Type the following commands to add a Virtual Machine device to NodeGrid:

[admin@nodegrid /]# add /settings/devices/

[admin@nodegrid {devices}]# set name=<vm_server>

[admin@nodegrid {devices}]# set ip_address=<vm_server_IP>

[admin@nodegrid {devices}]# set type=<virtual_console_xxxx>

[admin@nodegrid {devices}]# set mode=enabled

[admin@nodegrid {devices}]# save

 

Note: hitting <TAB> completes the command and show possible options

    • Related Articles

    • How to Manually Add Virtual Machines to NodeGrid via WebUI

      Select Managed Devices :: Devices, click the Add button to add a device in the system. For the purpose of this example, provide the following information: On the Name field, enter the name of the virtual machine you want to add. The name must be as ...
    • How to Auto-Discover and Add Virtual Machines to NodeGrid

      In order to discover virtual machines on the network, first you need to add at least one virtual machine type manually. See the article "How to manually add Virtual Machines to NodeGrid" for details.   Then, follow the steps below: Access the ...
    • How to Manually Add Network Devices with SSH or Telnet Support to NodeGrid via CLI

      Access your NodeGrid via telnet, ssh, or console, and log in as admin. Type the following commands to add Console device to NodeGrid: [admin@nodegrid /]# add /settings/devices/ [admin@nodegrid {devices}]# set name=<device_name> [admin@nodegrid ...
    • How to Manually Add NetApp Storage Devices to NodeGrid via CLI

      Access your NodeGrid via telnet, ssh, or console, and log in as admin. Type the following commands to add a NetApp device to NodeGrid: [admin@nodegrid /]# add /settings/devices/ [admin@nodegrid {devices}]# set name=<netapp_server> [admin@nodegrid ...
    • How to Manually Add Console Servers to NodeGrid via CLI

      Access your NodeGrid via telnet, ssh, or console, and log in as admin. Type the following commands to add a Console Server device to NodeGrid: [admin@nodegrid /]# add /settings/devices/ [admin@nodegrid {devices}]# set name=<console_server> ...