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-06-29 06:39 AM . Last Modified: 2024-03-12 11:11 PM
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-06-29 06:39 AM . Last Modified: 2024-03-12 11:11 PM
Dear Friends,
I am able to get all the UPS details like Temperature,Voltage etc by using SNMP and loading Particular MIB`s .In this i have two Issues
1.I am getting only Int datatype values not in decimal values (for example : 229 V but actual value should be 229.2 V) i am missing that .2 decimal values.
2.How do i get the Event log status for the UPS.I need Common OID or APC Powervision OID anything to obtain the log...
If any one know about this problem please mail me at vijayrajpalanisamy@gmail.com.
Please anyone short out this problem as soon as possible friend.
With Best Regard`s
Vijayraj Palanisamy.
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-06-29 06:40 AM . Last Modified: 2024-03-12 11:10 PM
Hi Vijayraj,
SNMP doesn't have support for fractional amounts. Therefore every SNMP variable has a particular precision: for example volts, or tenths of volts, or hundredths of volts. We've added the High Precision branch for variables that offer more precision. So if a high precision OID reports in tenths of volts, and shows 2292, that means 229.2 V.
The event log is not directly available through SNMP polling. However there are so many ways to get the event log:
- Every event generates an SNMP trap, so you can record them with an SNMP trap receiver.
- You can also set up a syslog daemon and record events that way.
- You can ftp the event log from the card.
- I think the event log is also available as an RSS feed unless they've taken that out at some point.
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-06-29 06:39 AM . Last Modified: 2024-03-12 11:11 PM
You can try a free Trap Receiver program for testing..if you search the internet, there are several to choose from depending on your operating system.
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-06-29 06:39 AM . Last Modified: 2024-03-12 11:11 PM
First, make sure you've added your computer to the list of trap receivers on the NMC. Then make sure you're getting traps. Like Angela says, there are free trap receivers. You should also download wireshark and sniff port 162 to see if you're getting the traps.
I've attached a quick-and-dirty python script I use for testing. You'd probably be better off with some other full-featured solution. It's not C# but it's what I have.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-06-29 06:39 AM . Last Modified: 2024-03-12 11:11 PM
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-06-29 06:39 AM . Last Modified: 2024-03-12 11:11 PM
Thank you Voidstar and Angela,
1.) I tried SNMP Trap receiver now,What i did is i wrote the Receiver in C# the listener will watch the port 162 if any event happens at the agent it send the packet to manager,But i didnt get the Event Description and Event Name. Even i load the MIB file for SNMPV2M2M.mib & Notification mib.I think the data is not come in Vb collection(in Empty).But my query is " Is i am Send any particular event log ID or OID to that Port 162 or no need to send any OID to the agent." Please give me your valuable suggestions.!!!
2.) Can u please explain how i configure Syslog demeon and record events .
With Best Regard`s
Vijayraj Palanisamy.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-06-29 06:39 AM . Last Modified: 2024-03-12 11:11 PM
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-06-29 06:39 AM . Last Modified: 2024-03-12 11:11 PM
Dear Friends,
I am able to get all the UPS details like Temperature,Voltage etc by using SNMP and loading Particular MIB`s .In this i have two Issues
1.I am getting only Int datatype values not in decimal values (for example : 229 V but actual value should be 229.2 V) i am missing that .2 decimal values.
2.How do i get the Event log status for the UPS.I need Common OID or APC Powervision OID anything to obtain the log...
If any one know about this problem please mail me at vijayrajpalanisamy@gmail.com.
Please anyone short out this problem as soon as possible friend.
With Best Regard`s
Vijayraj Palanisamy.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-06-29 06:39 AM . Last Modified: 2024-03-12 11:11 PM
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-06-29 06:39 AM . Last Modified: 2024-03-12 11:11 PM
HI Angela,
Thank you for your reply!!
1.II am getting all the numeric value as integer. for Example Output Voltage OID is "1.3.6.1.2.1.33.1.4.4.1.2.1" its a common for all enterprises but it gives integer like that i need decimal value OID.
2.Thank you for this answer probably this will help me !!! but my question is, " Is any possible to get event log details from UPS itself "
With Best Regard`s
Vijayraj Palanisamy.
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-06-29 06:40 AM . Last Modified: 2024-03-12 11:11 PM
Hi,
For # 1 - you'll want to look under upsHighPrec values. For example, upsHighPrecInput tells me The current utility line voltage in tenths of VAC. and responds with "4914" - these upsHighPrec values are available for both input and output under the upsInput and upsOutput subtrees.
# 2 - I am not sure what you mean. upsBasicOutputStatus / .1.3.6.1.4.1.318.1.1.1.4.1.1 is an OID designed to give you a response regarding the UPS output status.
The current state of the UPS. If the UPS is unable to determine the state of the UPS this variable is set to unknown(1). It does not show the event log since you cannot get that via SNMP but it is designed to be a "common" OID you can check for the overall state of the UPS.
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-06-29 06:40 AM . Last Modified: 2024-03-12 11:11 PM
I understand a little better now what you're getting at.
1.) Are you referring to the RFC1628 MIB? Could you specify what UPS model this is and what UPS Network Management Card version firmware you're using? (giving me the response to .1.3.6.1.2.1.1.1 will actually provide me all of that). If you are using RFC1628 MIB, to get more detailed information, you'll most likely need to use the OIDs I referenced in the APC PowerNet MIB to get the level of detail you want on the voltage readings.
2.) We support SNMP traps, syslog, and email for notification options. You could configure SNMP traps to receive the events by SNMP.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-06-29 06:40 AM . Last Modified: 2024-03-12 11:10 PM
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-06-29 06:40 AM . Last Modified: 2024-03-12 11:10 PM
Dear Angela N,
1.) I can get the value from PowerNet MIB but its an integer (Round off Value) ,But i need exact value in decimals ( for example 229 V as a 229.2V)
2.)Why we should configure SNMP traps for syslog, My question is "MIB contains all the information about the UPS like Voltage,Temperature,Event logs etc why event log is critical to get from those MIB UPS-MIB.mib,apc-powernet.mib,PowerNet-MIB.mib,Xups.mib even i load all this MIB i missed that "Event Log" is possible to get the Syslog from this MIB if it is then what is the OID which should i refer. "
I am not expert in Networking please give me the clear step to get the Event log for UPS .which has all Severity.
I hope you understand my question very well!!!
With Best Regard`s
Vijayraj Palanisamy.
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-06-29 06:40 AM . Last Modified: 2024-03-12 11:10 PM
Hi Vijayraj,
SNMP doesn't have support for fractional amounts. Therefore every SNMP variable has a particular precision: for example volts, or tenths of volts, or hundredths of volts. We've added the High Precision branch for variables that offer more precision. So if a high precision OID reports in tenths of volts, and shows 2292, that means 229.2 V.
The event log is not directly available through SNMP polling. However there are so many ways to get the event log:
- Every event generates an SNMP trap, so you can record them with an SNMP trap receiver.
- You can also set up a syslog daemon and record events that way.
- You can ftp the event log from the card.
- I think the event log is also available as an RSS feed unless they've taken that out at some point.
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-06-29 06:40 AM . Last Modified: 2024-03-12 11:10 PM
Yes, as voidstar mentioned, there are some high precision OIDs I have been trying to let you know about for input and output voltage which provide the input or output voltage in tenths of volts.
.iso.org.dod.internet.private.enterprises.apc.products.hardware.ups.upsInput.upsHighPrecInput
This will give you a response in tengths of volts for the line voltage and frequency on the input and the .iso.org.dod.internet.private.enterprises.apc.products.hardware.ups.upsOutput.upsHighPrecOutput subtree will give you the same for the output.
voidstar also elaborated on the event log via SNMP already and the different methods to retrieve the event log.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-06-29 06:40 AM . Last Modified: 2024-03-12 11:10 PM
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-06-29 06:40 AM . Last Modified: 2024-03-12 11:10 PM
Dear Voidstar & Angela,
Really thanks for both of you !!! Its very useful for me.Especially voidstar great work !!!
Is anyone have sample C# code for SNMP Trap receiver to obtain the event log details ?
With Best Regard`s
Vijayraj Palanisamy.
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.