Add device to snmpcollector via probe utility PU command from the command line
search cancel

Add device to snmpcollector via probe utility PU command from the command line

book

Article ID: 266421

calendar_today

Updated On:

Products

DX Unified Infrastructure Management (Nimsoft / UIM)

Issue/Introduction

I want to add a device to snmpcollector via the command line.

Environment

Release : 20.4
Component: snmpcollector

Resolution

Example via pu command for v1 or v2c:

    pu -u administrator -p <password> /_domain/_hub/_robot/snmpcollector add_snmp_device 1.1.1.1 snmpv2c MYDescription 161 public 

Examples via pu command for v3:

    pu -u administrator -p <password> /_domain/_hub/_robot/snmpcollector add_snmp_device 1.1.1.1 snmpv3 MYDescription 161 "" mysnmp3username NoAuthNoPriv

    pu -u administrator -p <password> /_domain/_hub/_robot/snmpcollector add_snmp_device 1.1.1.1 snmpv3 "" 161 "" mysnmp3username AuthNoPriv MD5 snmp3password

    pu -u administrator -p <password> /_domain/_hub/_robot/snmpcollector add_snmp_device 1.1.1.1 snmpv3 MYDescription 161 "" mysnmp3username AuthPriv MD5 snmp3password AES-128 snmp3privpassword

 

Values added:

host = host or IP to be added
SecurityLevel = snmpv1, snmpv2c, or snmpv3
Description = a description of the device, or ""
Port = port used generally 161
CommunityName = community name used for snmpv1, snmpv2c, or "" if snmpv3 is being used

All values below this point can be left blank if using v1 or v2c

V3UserName = (snmpv3) user name used
V3AuthType = (snmpv3) NoAuthNoPriv, AuthNoPriv, AuthPriv

All values below this point can be left blank if using NoAuthNoPriv snmpv3

V3AuthProtocol = (snmpv3) MD5, SHA
V3AuthKey = (snmpv3) auth password

All values below this point can be left blank if using AuthNoPriv snmpv3

V3PrivProtocol = (snmpv3) DES, 3-DES, AES-128, AES-192, AES-256
V3PrivKey = (snmpv3) priv password
user_defined_property_1 = user defined property