Smarts IP: How to add a device from CLI as ICMPONLY; Is it possilble to add devices as ICMPONLY via command line
search cancel

Smarts IP: How to add a device from CLI as ICMPONLY; Is it possilble to add devices as ICMPONLY via command line

book

Article ID: 332182

calendar_today

Updated On:

Products

VMware Smart Assurance

Environment

VMware Smart Assurance - SMARTS

Resolution

The goal of this KB is to demonstrate how you can add a device from CLI as ICMPONLY access mode. If there are more than one devices, it is recommended to use a seedfile.



To add a single device please follow this two step process:

- Use sm_tpmgr to add the device first:
./sm_tpmgr -s <INCHARGE-AM-PM>  --add-agent=<host/ip address>
Example:./sm_tpmgr -s INCHARGE-AM-PM --add-agent=10.241.215.56 |tee  (note: using "|tee" bypasses login information)

Once the device is created and added to the pending list, you can set the accessmode to ICMPONLY
./dmctl -s <INCHARGE-AM-PM> invoke AD_PendingData::AD-Pending-<ip address/hostname> setAccessMode ICMPONLY
Example: ./dmctl -s INCHARGE-AM-PM invoke AD_PendingData::AD-Pending-10.241.215.56 setAccessMode ICMPONLY


If there is a need to add multiple devices, a Seedfile is recommended.

To create a seedfile manually:
- Create a file in your bin directory
- Add the following parameter to it:
# IP-ADDRESS COMMUNITY SNMPPORT SNMPVERSION SEEDNAME NAMEFORMAT ACCESSMODE USER PRIVPROTOCOL AUTHPROTOCOL AUTHPASS PRIVPASS ENGINEID ADDRESSFORMAT

To add the devices, create one line for each device and add it to the seedfile
NAMEORIP=<name/ip>    SNMPPORT=161    SNMPVERSION=V2C    SEEDNAME=<name/ip>    ACCESSMODE=ICMPONLY
Example: NAMEORIP=192.168.101.25    SNMPPORT=161    SNMPVERSION=V2C    SEEDNAME=192.168.101.25    ACCESSMODE=ICMPONLY

Additional Information

To learn how to create a seedfile from your topology, refer to KB 165119