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.
Send Invite Cancel
80570members
346457posts

Command Line or C++ code for Controlling PDU

Solved
srafx_apc
Cadet
0 Likes
1
109

Command Line or C++ code for Controlling PDU

This was originally posted on APC forums on 1/23/2008


I am looking for some code to control my PDU. C++ would be great, but I could always use a batch script. I tried to create a batch script but I ended up running into problems because I cant provide a password for telnet. All I want to accomplish is to turn everything on and off by code. Maybe turn off delay.

Any help would be appreciated.

Thanks,

Steve


Accepted Solutions
voidstar_apc
Janeway
Janeway
0 Likes
0
109

Re: Command Line or C++ code for Controlling PDU

This was originally posted on APC forums on 1/24/2008


The best way to programmatically control APC devices in my opinion is through SNMP. Once turned on, SNMP provides an interface for you to get and set variables controlling the operation of your PDU.

The [Cuddletech SNMP Paper|http://www.cuddletech.com/articles/snmp/snmp_paper.html] is an overview of the net-snmp command line toolset and its C programming API. It's a bit short on details on setting SNMP variables. For that, please refer to an earlier post on this board: [AppleScript solutions for APC interface|http://forums.isxusergroups.com/thread.jspa?threadID=1458&tstart=0].

[net-snmp|http://www.net-snmp.org/] comes with many operating systems such as Debian linux and MacOS X. They also offer a windows version for download. Lastly, GetIF is a nice tool for exploring the SNMP capabilities of your APC device.

I hope this helps.

See Answer In Context

1 Reply 1
voidstar_apc
Janeway
Janeway
0 Likes
0
110

Re: Command Line or C++ code for Controlling PDU

This was originally posted on APC forums on 1/24/2008


The best way to programmatically control APC devices in my opinion is through SNMP. Once turned on, SNMP provides an interface for you to get and set variables controlling the operation of your PDU.

The [Cuddletech SNMP Paper|http://www.cuddletech.com/articles/snmp/snmp_paper.html] is an overview of the net-snmp command line toolset and its C programming API. It's a bit short on details on setting SNMP variables. For that, please refer to an earlier post on this board: [AppleScript solutions for APC interface|http://forums.isxusergroups.com/thread.jspa?threadID=1458&tstart=0].

[net-snmp|http://www.net-snmp.org/] comes with many operating systems such as Debian linux and MacOS X. They also offer a windows version for download. Lastly, GetIF is a nice tool for exploring the SNMP capabilities of your APC device.

I hope this helps.