APC UPS Data Center & Enterprise Solutions Forum
Schneider, APC support forum to share knowledge about installation and configuration for Data Center and Business Power UPSs, Accessories, Software, Services.
Posted: 2021-07-01 06:04 AM . Last Modified: 2024-03-04 11:52 PM
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-07-01 06:04 AM . Last Modified: 2024-03-04 11:52 PM
Hi
I'm currently trying to configure smart APC's using expect scripts (over telnet), and was running into 2 issues.
I have this line of code: "ntp -OM enable -p
-s " as far as I can tell, there are no other arguments for NTP. Also, when I check the web-UI, NTP is still not set as the mode of time management (That remains manual.) Is there any way to modify my code to set NTP as active?
2. How do you configure the APC to send notification emails to a desired address over CLI?
For this issue here is my code "email -s1 server.domain.edu -f1 $email -t1 address@domain.edu"
How can I modify this to send notification emails to "address@domain.edu"
Thanks!
Ethan
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: 2021-07-01 06:04 AM . Last Modified: 2024-03-04 11:51 PM
OK, thanks for the information. FYI, 6.0.6 has a lot of bugs, especially with the user command on the CLI. I would definitely recommend we get you updated unless you have any questions/objections to that. You can get SFSUMX620 here -> UPS Network Management Card 2 with Environmental Monitoring - Download Software and Firmware | APC and you see the instructions to update the firmware here, if you need it -> How do I upgrade the firmware on an APC Network Management Card? | FAQs | Schneider Electric US
Anyway, i don't think at this time anyway, upgrading will "fix" these questions.
4) What I'm attempting to do is say "UPS should use email address $email (user entered in the script call) and server server.domain.edu to send alerts to address@domain.edu."
Yes, this recipient already exists on the domain, but not on the UPS.
I understand they'll receive all the notifications, but that's the way things are set up right now. We may look to solve this with the next point...
5) I was aware that you could download the config.ini file. However, I believed that it was "Available via serial interface only" (with the xferINI command). if there's another way to do it (for instance, with FTP), then please let me know! I'll be glad to pull down the ini, edit it, and upload it again.
I am not a scripting guru so I am not sure how the $email thing works you have in there. The script would pull it in from the system you're executing it on? Does the code break at a certain point? As soon as a recipient is added, notifications should be enabled assuming the recipient has a server associated to it and the actual recipient creates itself.
Nope - config.ini can be downloaded via FTP, SCP (if you enable SSH), via the Web now in v6 (under About->Support as part of the file dump download and under Configuration->General->User Config File). It can be uploaded all of those ways too + the Xfer INI command I believe.
Usually we recommend you use the web as an editor and then download it when you're done to avoid typos/invalid values. You can also delete certain sections and keep separate .ini files with just certain sections if you want - you don't need to upload the full file all the time. You just need the section name (in square brackets and then a keyword with a value under it.
Here is some information on that:
I can help you with it when you download it with any questions/issues.
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: 2021-07-01 06:04 AM . Last Modified: 2024-03-04 11:51 PM
Hello,
Sounds like you're using a UPS Network Management Card 2 (AP9630 or AP9631) in your UPS and that is what you're communicating with.
Can you tell me the firmware on that? You can see it in the about command and paste that response to me (which you can remove the serial number cause it will display there). I just want to make sure I look at the same firmware and also see if for some reason, we should upgrade the firmware.
Have you reviewed this? (I just realized for some reason it is not posted and I will see about addressing that now but the link should work) -> http://www.apcmedia.com/salestools/PMAR-9LLM9N/PMAR-9LLM9N_R0_EN.pdf
It only seems to cover the NTP command though and provides what you already did. So again, once I know you're firmware, I'll see what I get. I don't see email in that user's guide either..I will see what I can find out about that separate issue with the documentation.
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: 2021-07-01 06:04 AM . Last Modified: 2024-03-04 11:51 PM
I had some time to do some checking on v6.2.0 which is the latest firmware for Smart-UPS.
1.) I confirmed in that version there is no way to enable NTP via the CLI. I did find an enhancement request already completed asking to support that so you'll see it in a future firmware release.
2.) I need more information here. What you've done with that command there is said recipient 1, address@domain.edu should use server.domain.edu. Is this the creation of a new recipient or does this recipient already exist? Either way, by default, when you add a new recipient to the system, they will receive all possible events, every 1, 2, 5, or 10 minutes (depending on the event). If you want to customize the events and enable/disable certain ones, I don't see a way to do this via CLI. There are hundreds of events and I imagine it will be tedious. Once the recipient is added, I recommend configuring the recipient the way you want it via the web UI, and then downloading the config.ini file which then just the notification portion of the config.ini can be cascaded to multiple devices. (Many other settings, including what you're looking at can also be done via config.ini if you were not aware of that option.) It could replace or compliment your script perhaps. Let me know if that sounds like what you want and I can get some more info for you.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-07-01 06:04 AM . Last Modified: 2024-03-04 11:51 PM
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-07-01 06:04 AM . Last Modified: 2024-03-04 11:51 PM
Wow! Hi Angela, thanks for the quick response.
1) Here is my response from the "about" command:
Model Number: AP9630
Serial Number:
Hardware Revision: 05
Manufacture Date: 01/08/2014
MAC Address: 00 C0 B7 B8 48 29
Management Uptime: 48 Days 22 Hours 26 Minutes
Application Module
---------------
Name: sumx
Version: v6.0.6
Date: Apr 5 2013
Time: 11:25:39
APC OS(AOS)
---------------
Name: aos
Version: v6.0.6
Date: Apr 5 2013
Time: 10:36:37
APC Boot Monitor
---------------
Name: bootmon
Version: v1.0.2
Date: Jan 21 2010
Time: 13:35:57
2) I have reviewed that document, thanks. It didn't provide much more help than the ? command, but that's alright.
3) There's no way to do NTP over CLI? Alright, thanks. I appreciate the fact finding, and look forward to the firmware update where it's included
4) What I'm attempting to do is say "UPS should use email address $email (user entered in the script call) and server server.domain.edu to send alerts to address@domain.edu."
Yes, this recipient already exists on the domain, but not on the UPS.
I understand they'll receive all the notifications, but that's the way things are set up right now. We may look to solve this with the next point...
5) I was aware that you could download the config.ini file. However, I believed that it was "Available via serial interface only" (with the xferINI command). if there's another way to do it (for instance, with FTP), then please let me know! I'll be glad to pull down the ini, edit it, and upload it again.
Thanks for all your help!
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: 2021-07-01 06:04 AM . Last Modified: 2024-03-04 11:51 PM
OK, thanks for the information. FYI, 6.0.6 has a lot of bugs, especially with the user command on the CLI. I would definitely recommend we get you updated unless you have any questions/objections to that. You can get SFSUMX620 here -> UPS Network Management Card 2 with Environmental Monitoring - Download Software and Firmware | APC and you see the instructions to update the firmware here, if you need it -> How do I upgrade the firmware on an APC Network Management Card? | FAQs | Schneider Electric US
Anyway, i don't think at this time anyway, upgrading will "fix" these questions.
4) What I'm attempting to do is say "UPS should use email address $email (user entered in the script call) and server server.domain.edu to send alerts to address@domain.edu."
Yes, this recipient already exists on the domain, but not on the UPS.
I understand they'll receive all the notifications, but that's the way things are set up right now. We may look to solve this with the next point...
5) I was aware that you could download the config.ini file. However, I believed that it was "Available via serial interface only" (with the xferINI command). if there's another way to do it (for instance, with FTP), then please let me know! I'll be glad to pull down the ini, edit it, and upload it again.
I am not a scripting guru so I am not sure how the $email thing works you have in there. The script would pull it in from the system you're executing it on? Does the code break at a certain point? As soon as a recipient is added, notifications should be enabled assuming the recipient has a server associated to it and the actual recipient creates itself.
Nope - config.ini can be downloaded via FTP, SCP (if you enable SSH), via the Web now in v6 (under About->Support as part of the file dump download and under Configuration->General->User Config File). It can be uploaded all of those ways too + the Xfer INI command I believe.
Usually we recommend you use the web as an editor and then download it when you're done to avoid typos/invalid values. You can also delete certain sections and keep separate .ini files with just certain sections if you want - you don't need to upload the full file all the time. You just need the section name (in square brackets and then a keyword with a value under it.
Here is some information on that:
I can help you with it when you download it with any questions/issues.
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.