EcoStruxure IT forum
Schneider Electric support forum about installation and configuration for DCIM including EcoStruxure IT Expert, IT Advisor, Data Center Expert, and NetBotz
Link copied. Please paste this link to share this article on your social media post.
Posted: 2020-07-04 06:49 PM . Last Modified: 2024-04-04 11:25 PM
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: .1.3.6.1.2.1.1.5.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 .1.3.6.1.2.1.1.5.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.
(CID:132651764)
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2020-07-04 06:49 PM . Last Modified: 2024-04-04 11:25 PM
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 😀.
(CID:132651781)
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2020-07-04 06:49 PM . Last Modified: 2024-04-04 11:25 PM
Thanks for sharing Christopherus Laurentius! 😀
(CID:132659404)
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2020-07-04 06:49 PM . Last Modified: 2024-04-04 11:25 PM
Nice one!
(CID:133367996)
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2020-07-04 06:50 PM . Last Modified: 2024-04-04 11:25 PM
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 ?
(CID:137727304)
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2020-07-04 06:50 PM . Last Modified: 2024-04-04 11:25 PM
Hi Francois,
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?
(CID:137727342)
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2020-07-04 06:50 PM . Last Modified: 2024-04-04 11:25 PM
Thanks Chris
F
(CID:137727385)
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2020-07-04 06:50 PM . Last Modified: 2023-10-22 03:09 AM
This question is closed for comments. You're welcome to start a new topic if you have further comments on this issue.
Link copied. Please paste this link to share this article on your social media post.
Create your free account or log in to subscribe to the board - and gain access to more than 10,000+ support articles along with insights from experts and peers.