This question was originally posted on DCIM Support by Christopherus Laurentius on 2018-06-13
One trick developed locally with Singapore FSE team was to use basic batch file to do SNMP Set to name hundreds of rack PDUs at one go.
As name is typically unique, this cannot be done via mass configure from DCE.
There are many ways to do so, below is just an example: with netsnmp command line
Hope this can be of help.
1.Create excel list to concatenate SNMP write community name, ip address, OID and name, like below
OID for SysName: .220.127.116.11.18.104.22.168.0
Default write community name: private
Rack PDU naming convention, follow your own naming convention, e.g row name-rack name-A/B source-number
Netsnmp command to set is per example below
|snmpset -v 1 -c private 192.168.1.2 .22.214.171.124.126.96.36.199.0 s "A-R01-L"|
Use excel concatenate to combine those
2.Copy the list to a notepad, saved it as batch file started with @echo OFF like below, and saved it as .bat file e.g test.bat
3. Save the .bat file above in the bin folder where netsnmp is:
default is C:\usr\bin
4. Open command prompt, run the batch file created by typing test.bat
5. If you have discover these rack PDUs in DCE, refresh it, to check if correct names are assigned.
This comment was originally posted on DCIM Support by spezialist on 2018-06-13
Yes, this is the right solution, especially when you need to mass change sysContact, sysLocation, or sysName for SNMP devices. For this purpose I wrote a few small bash-scripts with loading of source data (IP-addresses, names, etc.) from plain text files 😀.
This comment was originally posted on DCIM Support by Ditte Drewer Mathiasen on 2018-07-02
Thanks for sharing Christopherus Laurentius! 😀
This comment was originally posted on DCIM Support by François on 2018-12-20
Hi Christopherus Laurentius, this is indeed a nice one ! Do you know however if and how it can be used to mass modify IP addresses of devices ?
This comment was originally posted on DCIM Support by Christopherus Laurentius on 2018-12-20
I am afraid this is not suitable to change device ip address assignment.
SNMP OID for ip address is read only.
You'll need to use other method to do mass config of ip address, perhaps dhcp, or light dhcp server/tools like tftp to do so?
Discuss challenges in energy and automation with 30,000+ experts and peers.
Find answers in 10,000+ support articles to help solve your product and business challenges.
Find peer based solutions to your questions. Provide answers for fellow community members!