Create a NetQ Simulation in DSX Air
NVIDIA DSX Air is a cloud-hosted, data center simulation platform that behaves like a real-world production environment. Follow the steps in this guide to create a NetQ simulation using DSX Air.
Prerequisites
To access DSX Air, you need an NGC account and organization. Refer to the NVIDIA DSX Air user guide for more information.
Create a Switch Topology in Air
- Navigate to https://dsx-air.nvidia.com/simulations
- Click New Simulation, enter a name, select Blank Canvas, then click Create.
- A blank canvas appears with a “System Palette” containing switches and servers. Drag and drop switches onto the canvas. Do not use the switch named
oob-mgmt-switch. - Build your topology by placing switches on the canvas. Click on any switch to configure links between switches.
- Rename switches (e.g.,
SN2100-1,SN2201-1) by clicking each switch. - After you’re finished configuring switches and links, enable OOB (out-of-band network) by selecting the toggle under your username.
- Click
Export Simulation to download the topology as a JSON file.
Add the NetQ Server to the JSON File
- Open the downloaded JSON file in a text editor.
- Add the following block at the end of the
Nodesarray, then save the file:
"netq-master": {
"memory": 65536,
"cpu": 16,
"storage": 500,
"os": "netq-5.2.0",
"cpu_mode": "host-passthrough"
}
- If a newer NetQ image is available, update the
osvalue accordingly.
Create the Simulation Using the Updated JSON
-
Click New Simulation and enter a name.
-
Select JSON as the simulation type and upload the JSON file you created in the previous section.
-
Enable Apply ZTP Template. Delete the contents and replace them with
ZTPScript.sh. The ZTP script sets the OOB management server IP address to192.168.200.1and updates the default switch password fromcumulustonetq_123: -
Click Create. After the simulation is loaded, select the play button to start the simulation.
-
It can take up to a minute to load the simulation. After the simulation is loaded, refresh the page to view it. You can drag the nodes using your mouse to reposition them.
After the ZTP script runs on all switches and NetQ fully boots, configure the NetQ agents and load the UI, as described in the next section.
Configure NetQ Agents and Expose the NetQ UI
Verify NetQ Services
-
Select the
netq-masternode to open the node’s terminal. -
Log in and update credentials when prompted:
- Username:
nvidia - Password:
nvidia
- Username:
-
Verify all NetQ pods are running:
kubectl get pods -A
Configure Switch Agents
-
Click each switch node and log in using the password configured by the ZTP script,
netq_123. -
Run the following command on each switch to point the NetQ agent to the
netq-masterserver:
netq config add agent server netq-master port 31980 vrf mgmt && netq config restart agent
Configure OOB Management Server and Create NetQ UI Service
-
Click the
OOB-mgmt-servernode and change the default credentials:- Username:
ubuntu - Password:
nvidia
- Username:
-
Run the following command on the OOB management server to configure port forwarding:
IP=$(getent hosts netq-master | awk '{print $1}') && sudo iptables -t nat -A PREROUTING -p tcp -m tcp --dport 444 -j DNAT --to-destination $IP:443
-
Create a service to expose the NetQ UI:
- Navigate to the Services tab
- Click New Service
- Provide the following values:
- Name:
netq-ui - Interface:
oob-mgmt-server:eth0 - Service Type:
HTTPS - Service Port:
444
- Name:
-
Refresh the page to see the new service.
Access the NetQ UI
-
Open a browser and navigate to
https://<external-host>:<external-port>/. The external host and port values are located on the Services page. -
Log in using the default credentials:
- Username:
admin - Password:
admin
- Username: