Help
  • Explore Community
  • Get Started
  • Ask the Community
  • How-To & Best Practices
  • Contact Support
Notifications
Login / Register
Community
Community
Notifications
close
  • Forums
  • Knowledge Center
  • Events & Webinars
  • Ideas
  • Blogs
Help
Help
  • Explore Community
  • Get Started
  • Ask the Community
  • How-To & Best Practices
  • Contact Support
Login / Register
Sustainability
Sustainability

Join our "Ask Me About" community webinar on May 20th at 9 AM CET and 5 PM CET to explore cybersecurity and monitoring for Data Center and edge IT. Learn about market trends, cutting-edge technologies, and best practices from industry experts.
Register and secure your Critical IT infrastructure

Smart APC command line configuration Qs - NTP and Email

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.

cancel
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Home
  • Schneider Electric Community
  • APC UPS, Critical Power, Cooling and Racks
  • APC UPS Data Center & Enterprise Solutions Forum
  • Smart APC command line configuration Qs - NTP and Email
Options
  • Subscribe to RSS Feed
  • Mark Topic as New
  • Mark Topic as Read
  • Float this Topic for Current User
  • Bookmark
  • Subscribe
  • Mute
  • Printer Friendly Page
Invite a Co-worker
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 Invite Cancel
Invitation Sent
Your invitation was sent.Thanks for sharing Exchange with your co-worker.
Send New Invite Close
Top Experts
User Count
BillP
Administrator BillP Administrator
5060
voidstar_apc
Janeway voidstar_apc
196
Erasmus_apc
Sisko Erasmus_apc
112
Teken
Spock Teken
109
View All

Invite a Colleague

Found this content useful? Share it with a Colleague!

Invite a Colleague Invite
Solved Go to Solution
Back to APC UPS Data Center & Enterprise Solutions Forum
Solved
Anonymous user
Not applicable

Posted: ‎2021-07-01 06:04 AM . Last Modified: ‎2024-03-04 11:52 PM

0 Likes
4
3559
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

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

Smart APC command line configuration Qs - NTP and Email

Hi

I'm currently trying to configure smart APC's using expect scripts (over telnet), and was running into 2 issues.

  1. How do you set the APC to use NTP over CLI?

         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

Labels
  • Labels:
  • UPS Management Devices & PowerChute Software
Reply

Link copied. Please paste this link to share this article on your social media post.

  • All forum topics
  • Previous Topic
  • Next Topic

Accepted Solutions
BillP
Administrator BillP Administrator
Administrator

Posted: ‎2021-07-01 06:04 AM . Last Modified: ‎2024-03-04 11:51 PM

0 Likes
0
3557
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

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 embarassed 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:

  • Network Management Card 2 config.ini upload for event notification settings does not enable events i... (Firmware Bug you should be aware of) v6.2.0 fixes it.)
  • What are some features I need to be aware of while manipulating the config.ini file of a APC Network...
  • How can I mass configure an Network Management Card (NMC) or NMC embedded product? | FAQs | US
  • Mass Configuration of Users and User Preferences on Network Management Card 2 (NMC2) v6.X.X | FAQs |...
  • Network Management Card Event Configuration Config.ini Syntax | FAQs |  US

I can help you with it when you download it with any questions/issues.

See Answer In Context

Reply

Link copied. Please paste this link to share this article on your social media post.

Replies 4
BillP
Administrator BillP Administrator
Administrator

Posted: ‎2021-07-01 06:04 AM . Last Modified: ‎2024-03-04 11:51 PM

0 Likes
0
3557
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

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.

Reply

Link copied. Please paste this link to share this article on your social media post.

BillP
Administrator BillP Administrator
Administrator

Posted: ‎2021-07-01 06:04 AM . Last Modified: ‎2024-03-04 11:51 PM

0 Likes
0
3557
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

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.

Reply

Link copied. Please paste this link to share this article on your social media post.

Anonymous user
Not applicable

Posted: ‎2021-07-01 06:04 AM . Last Modified: ‎2024-03-04 11:51 PM

0 Likes
0
3557
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

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 laughing

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!

Reply

Link copied. Please paste this link to share this article on your social media post.

BillP
Administrator BillP Administrator
Administrator

Posted: ‎2021-07-01 06:04 AM . Last Modified: ‎2024-03-04 11:51 PM

0 Likes
0
3558
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

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 embarassed 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:

  • Network Management Card 2 config.ini upload for event notification settings does not enable events i... (Firmware Bug you should be aware of) v6.2.0 fixes it.)
  • What are some features I need to be aware of while manipulating the config.ini file of a APC Network...
  • How can I mass configure an Network Management Card (NMC) or NMC embedded product? | FAQs | US
  • Mass Configuration of Users and User Preferences on Network Management Card 2 (NMC2) v6.X.X | FAQs |...
  • Network Management Card Event Configuration Config.ini Syntax | FAQs |  US

I can help you with it when you download it with any questions/issues.

Reply

Link copied. Please paste this link to share this article on your social media post.

Preview Exit Preview

never-displayed

You must be signed in to add attachments

never-displayed

 
To The Top!

Forums

  • APC UPS Data Center Backup Solutions
  • EcoStruxure IT
  • EcoStruxure Geo SCADA Expert
  • Metering & Power Quality
  • Schneider Electric Wiser

Knowledge Center

Events & webinars

Ideas

Blogs

Get Started

  • Ask the Community
  • Community Guidelines
  • Community User Guide
  • How-To & Best Practice
  • Experts Leaderboard
  • Contact Support
Brand-Logo
Subscribing is a smart move!
You can subscribe to this board after you log in or create your free account.
Forum-Icon

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.

Register today for FREE

Register Now

Already have an account? Login

Terms & Conditions Privacy Notice Change your Cookie Settings © 2025 Schneider Electric

This is a heading

With achievable small steps, users progress and continually feel satisfaction in task accomplishment.

Usetiful Onboarding Checklist remembers the progress of every user, allowing them to take bite-sized journeys and continue where they left.

of