How tijuca/raritan-pdu-json-rpc-sdk works
This repository combines Raritan PX2 JSON-RPC client bindings for Python and .NET with command-line examples and a documented PX2 deployment/configuration utility. The principal SDK workflow is a client issuing an RPC through a proxy and transport agent to a PDU, then decoding its response. The README also describes configuration, verification, identification, reboot, fitness export, firmware updates, and timezone operations, but the documented Perl entry point is not present in the supplied tree. Source excerpts show parts of the .NET transport and generated bindings; other domain coverage is based on the tree and SOURCE INDEX.
Main entry points: ObjectProxy.cs Object proxy · Agent.cs HTTP agent · rpc Python RPC API · System.cs System control
Components 16
.NET RPC client
- Object proxy
pdu-dotnet-api/src/Com/Raritan/JsonRpc/ObjectProxy.cs - HTTP agent
pdu-dotnet-api/src/Com/Raritan/JsonRpc/Agent.cs - JSON values
pdu-dotnet-api/src/LightJson/JsonValue.cs - Async requests
pdu-dotnet-api/src/Com/Raritan/Util/AsyncRequest.cs
Device domains
- System control
pdu-dotnet-api/_idlc_gen/dotnet/Com/Raritan/Idl/sys/System.cs - Event engine
pdu-dotnet-api/_idlc_gen/dotnet/Com/Raritan/Idl/_event/Engine.cs - Peripheral devices
pdu-dotnet-api/_idlc_gen/dotnet/Com/Raritan/Idl/peripheral/DeviceManager_3_0_1.cs - Webcam storage
pdu-dotnet-api/_idlc_gen/dotnet/Com/Raritan/Idl/webcam/StorageManager.cs - Lua service
pdu-dotnet-api/_idlc_gen/dotnet/Com/Raritan/Idl/luaservice/Manager_2_0_1.cs - Role management
pdu-dotnet-api/_idlc_gen/dotnet/Com/Raritan/Idl/usermgmt/RoleManager.cs - Cascade control
pdu-dotnet-api/_idlc_gen/dotnet/Com/Raritan/Idl/cascading/CascadeManager.cs
Python bindings
- Python RPC API
pdu-python-api/raritan/rpc - Python PDU models
pdu-python-api/raritan/rpc/pdumodel/__init__.py - Lua client example
luaservice_client.py
Other components
- API caller
- PX2 device
Connections 15
- API caller → Object proxy: invokes
- Object proxy → HTTP agent: sends RPC
pdu-dotnet-api/src/Com/Raritan/JsonRpc/ObjectProxy.cs - HTTP agent → PX2 device: HTTP POST
pdu-dotnet-api/src/Com/Raritan/JsonRpc/Agent.cs - HTTP agent → Object proxy: returns response
pdu-dotnet-api/src/Com/Raritan/JsonRpc/ObjectProxy.cs - Object proxy → JSON values: encodes RPC
pdu-dotnet-api/src/Com/Raritan/JsonRpc/ObjectProxy.cs - Object proxy → Async requests: tracks async
pdu-dotnet-api/src/Com/Raritan/JsonRpc/ObjectProxy.cs - System control → Object proxy: extends
pdu-dotnet-api/_idlc_gen/dotnet/Com/Raritan/Idl/sys/System.cs - Event engine → Object proxy: extends
pdu-dotnet-api/_idlc_gen/dotnet/Com/Raritan/Idl/_event/Engine.cs - Peripheral devices → Object proxy: extends
pdu-dotnet-api/_idlc_gen/dotnet/Com/Raritan/Idl/peripheral/DeviceManager_3_0_1.cs - Webcam storage → Object proxy: extends
pdu-dotnet-api/_idlc_gen/dotnet/Com/Raritan/Idl/webcam/StorageManager.cs - Lua service → Object proxy: extends
pdu-dotnet-api/_idlc_gen/dotnet/Com/Raritan/Idl/luaservice/Manager_2_0_1.cs - Role management → Object proxy: extends
pdu-dotnet-api/_idlc_gen/dotnet/Com/Raritan/Idl/usermgmt/RoleManager.cs - Cascade control → Object proxy: extends
pdu-dotnet-api/_idlc_gen/dotnet/Com/Raritan/Idl/cascading/CascadeManager.cs - Python RPC API → Python PDU models: provides models
pdu-python-api/raritan/rpc/__init__.py - Lua client example → Python RPC API: uses bindings
luaservice_client.py