Brand Logo
Help
  • Get started
  • Ask the Community
  • How-To & Best Practices
  • Contact Support
Login / Register
Help
  • Get started
  • Ask the Community
  • How-To & Best Practices
  • Contact Support
close
  • Community Home
  • Forums
    • By Topic
    • By Topic
      EcoStruxure Building
      • Field Devices Forum
      • SmartConnector Forum
      EcoStruxure Power & Grid
      • Gateways and Energy Servers
      • Metering & Power Quality
      APC UPS, Critical Power, Cooling and Racks
      • APC UPS Data Center & Enterprise Solutions Forum
      • APC UPS for Home and Office Forum
      EcoStruxure IT
      • EcoStruxure IT forum
      Remote Operations
      • EcoStruxure Geo SCADA Expert Forum
      • Remote Operations Forum
      Industrial Automation
      • Alliance System Integrators Forum
      • AVEVA Plant SCADA Forum
      • CPG Expert Forum DACH
      • EcoStruxure Automation Expert / IEC 61499 Forum
      • Fabrika ve Makina Otomasyonu Çözümleri
      • Harmony Control Customization Forum
      • Industrial Edge Computing Forum
      • Industry Automation and Control Forum
      • Korea Industrial Automation Forum
      • Machine Automation Forum
      • Modicon PAC Forum
      • PLC Club Indonesia
      Schneider Electric Wiser
      • Schneider Electric Wiser Forum
      Power Distribution IEC
      • Eldistribution & Fastighetsautomation
      • Elektrik Tasarım Dağıtım ve Uygulama Çözümleri
      • Paneelbouw & Energie Distributie
      • Power Distribution and Digital
      • Solutions for Motor Management
      • Specifiers Club ZA Forum
      • Електропроектанти България
      Power Distribution NEMA
      • Power Monitoring and Energy Automation NAM
      Power Distribution Software
      • EcoStruxure Power Design Forum
      • LayoutFAST User Group Forum
      Light and Room Control
      • SpaceLogic C-Bus Forum
      Solutions for your Business
      • Solutions for your Business Forum
      Support
      • Ask the Community
  • Knowledge Center
    • Building Automation Knowledge Base
    • Geo SCADA Knowledge Base
    • Industrial Automation How-to videos
    • Digital E-books
    • Success Stories Corner
  • Events & Webinars
    • All Events
    • Innovation Talks
    • Innovation Summit
    • Let's Exchange Series
    • Partner Success
    • Process Automation Talks
    • Technology Partners
  • Ideas
    • EcoStruxure Building
      • EcoStruxure Building Advisor Ideas
      Remote Operations
      • EcoStruxure Geo SCADA Expert Ideas
      • Remote Operations Devices Ideas
      Industrial Automation
      • Modicon Ideas & new features
  • Blogs
    • By Topic
    • By Topic
      EcoStruxure Power & Grid
      • Backstage Access Resources
      Remote Operations
      • Remote Operations Blog
      Industrial Automation
      • Industrie du Futur France
      • Industry 4.0 Blog
      Power Distribution NEMA
      • NEMA Power Foundations Blog
      Light and Room Control
      • KNX Blog
      Knowledge Center
      • Digital E-books
      • Geo SCADA Knowledge Base
      • Industrial Automation How-to videos
      • Success Stories Corner

Smart APC command line configuration Qs - NTP and Email

APC UPS Data Center & Enterprise Solutions Forum

Schneider Electric support forum for our Data Center and Business Power UPS, UPS Accessories, Software, Services, and associated commercial products designed to share knowledge, installation, and configuration.

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
  • Communities
  • 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 Exchange 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
5022
voidstar_apc
Janeway voidstar_apc
195
Erasmus_apc
Sisko Erasmus_apc
111
TheNotoriousKMP_apc
Sisko TheNotoriousKMP_apc
108
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
farrell_apc
farrell_apc
Cadet

Posted: ‎2021-07-01 06:04 AM

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

Posted: ‎2021-07-01 06:04 AM

Smart APC command line configuration Qs - NTP and Email

This was originally posted on APC forums on 9/23/2014


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
Share
  • All forum topics
  • Previous Topic
  • Next Topic

Accepted Solutions
BillP
Administrator BillP Administrator
Administrator

Posted: ‎2021-07-01 06:04 AM

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

Posted: ‎2021-07-01 06:04 AM

This reply was originally posted by Angela on APC forums on 9/24/2014


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
Share
Replies 4
BillP
Administrator BillP Administrator
Administrator

Posted: ‎2021-07-01 06:04 AM

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

Posted: ‎2021-07-01 06:04 AM

This reply was originally posted by Angela on APC forums on 9/23/2014


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
Share
BillP
Administrator BillP Administrator
Administrator

Posted: ‎2021-07-01 06:04 AM

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

Posted: ‎2021-07-01 06:04 AM

This reply was originally posted by Angela on APC forums on 9/23/2014


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
Share
farrell_apc
farrell_apc
Cadet

Posted: ‎2021-07-01 06:04 AM

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

Posted: ‎2021-07-01 06:04 AM

This was originally posted on APC forums on 9/24/2014


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
Share
BillP
Administrator BillP Administrator
Administrator

Posted: ‎2021-07-01 06:04 AM

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

Posted: ‎2021-07-01 06:04 AM

This reply was originally posted by Angela on APC forums on 9/24/2014


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
Share
Preview Exit Preview

never-displayed

You must be signed in to add attachments

never-displayed

Additional options
You do not have permission to remove this product association.
 
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 forum after you log in or create your free account.
Forum-Icon

Create your free account or log in to subscribe to the forum - 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 © 2023 Schneider Electric, Inc