Smarts IP: How to create a manual connection to a "fake" device that is not in the Smarts IP topology
search cancel

Smarts IP: How to create a manual connection to a "fake" device that is not in the Smarts IP topology

book

Article ID: 327724

calendar_today

Updated On:

Products

VMware

Environment

VMware Smart Assurance - SMARTS

Resolution

How to create a manual connection to a "fake" device that is not in the Smarts IP topology
How to create a connection to a fake device in the Smarts IP topology




The following sections of this Fix statement explain how to create a fake router and router interface, a fake switch and switch port, and a manual (user-defined) connection.

Creating a fake Router
To create a fake router device, run the following DMCTL command:

<BASEDIR>/IP/smarts/bin/dmctl -s <IP domain> create Router::fake_Router

Creating a fake Interface on the Router
Create a fake Interface on the router device example used in the preceding section, run the following DMCTL command (all on one line):

<BASEDIR>/IP/smarts/bin/dmctl -s <IP domain> invoke Router::fake_Router makeInterface 1 IF-fake_Router/1 Interface

Creating a fake Switch
To create a fake switch device, run the following DMCTL command:

<BASEDIR>/smarts/bin/dmctl -s <IP domain> create Switch::fake_switch

Creating a fake port on the Switch
To create a fake port on the switch device example used in the preceding section, run the following DMCTL command (all on one line):

./dmctl -s <IP domain> invoke Switch::fake_switch  makePort 1 PORT-fake_port/1 Port

Creating a manual (user-defined) connection
To create a user-defined connection, modify the Smarts user-defined-connections.conf configuration file found here:

<BASEDIR>/IP/smarts/bin/sm_edit conf/discovery/user-defined-connections.conf

For the "fake" connection to be built by Smarts IP, a post process must run. To start the post processing, rediscover any device that is in the Smarts IP topology.