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

            Updated: 18 Oct 2016 10:19 AM
            Helpful?  
            Help us to make this article better
            0 0