Schneider, APC support forum to share knowledge about installation and configuration for Data Center and Business Power UPSs, Accessories, Software, Services.
Send a co-worker an invite to the portal.Just enter their email address and we'll connect them to register. After joining, they will belong to the same company.
You have entered an invalid email address. Please re-enter the email address.
This co-worker has already been invited to the Exchange portal. Please invite another co-worker.
Please enter email address
Send InviteCancel
Invitation Sent
Your invitation was sent.Thanks for sharing Exchange with your co-worker.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2024-05-1003:48 AM
NMC Mass Config Updates - Script Utility
During my research, I have reviewed several posts, none of which provided me with the appropriate information or tools necessary to achieve the desired outcome.
Over the past week, I have determined the need to create a solution for the mass configuration of over 4000 NMC cards within our various environments.
I have developed a Python GUI (tkinter) application with the following functions:
Mass Upload
Input / select a configuration file with the desired fields that need to be mass configured.
Input / select the host file that contains a list of the device IPs, Primary Credentials and Secondary Credentials. i.e. 192.168.1.1,username1,password1,username2,password2
Type the remote path location, in this instance, I only need to type “config.ini” to overwrite / update the existing file in the root directory.
Click upload and the following will then take place:
Attempts a connection via SSH/SCP with the primary credentials, if that fails, it attempts the secondary set of credentials.
If none of the SSH/SCP credentials work or method of connectivity is possible, it moves onto FTP with the same primary and secondary credentials.
During the attempts, this process is logged in several log files: Transaction log: Shows the output and result from the login to upload Successful log: shows the output of the successful uploads that took place Failed log: Shows the output of the failed uploads ( issue with credentials or connectivity)
Mass Download
In addition to the above, the same function applies to download current config files from the input host file and the log files get updated accordingly.
Another item which I have added to make life easier for the task I was given to validate the current config and firmware of the devices was to incorporate a analyse config files: Although this is only looking for a few fields currently, I may look to make it variable in the future. It is looking at the Current Firmware Version, SNMP user profiles, SNMP Trap Receivers.
Lastly, if I needed to to perform a quick upload or download to one host only, this is also possible: