Samlex UPS
Samlex makes a line of rack-mount inverters with a web management console and respond to SNMP requests. Their PSR-1200-24 and -48 models. They supply the MIB on an included USB thumb drive. If you lose it you may never find it again on the web. Here’s a copy just in case.
If you probe them without the MIB or knowing their enterprise OID, you don’t get much back.
snmpwalk -v2c -c public your.samlex.ip
However, you can probe the enterprise section and you’ll see they have thier own section with some 64 values and traps.
snmpwalk -v2c -c public your.samlex.ip 1.3.6.1.4.1
To make sense of these, you’ll need that MIB file from above.
snmpwalk -v2c -c public -m ./SAMLEXAMERICA-MIB.txt your.samlex.ip 1.3.6.1.4.1
The most useful values are probably the ones that tell you:
- which system is this (sysLocation)
- are you on battery or grid right now (inverterMode)
- what is your battery voltage (vin)
- what is your grid voltage (gridvout)
- how much power you’re putting out (power)
- what your temps are (tempDD tempDA)
You can pull those in a loop like so
while read X;do
snmpget -v2c -m +./SAMLEXAMERICA-MIB.TXT -c public $X \
sysLocation.0 inverterMode.0 vin.0 gridvout.0 power.0 tempDD.0 tempDA.0
echo
done < file_of_device_IPs
You can also pull this into Prometheus
https://samlexamerica.com/wp-content/uploads/2021/08/11001-PSR-1200-24-48-0821_Lrez.pdf
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.