Sponsored Content
Special Forums UNIX and Linux Applications Infrastructure Monitoring How to monitor server dual power? Post 302473175 by pludi on Friday 19th of November 2010 05:48:06 AM
Old 11-19-2010
Uncompress the PSP somewhere, and install the hp-health*.rpm and hp-snmp-agents*.rpm packages. The first one will install the hpasmcli utility which enables you to query any sensors and BIOS settings available. See hpasmcli -s 'help' for more details.

The second package will install an SNMP agent that enables you to query the server using any SNMP-enabled monitoring software. I've never used it, so I can't give you any more information on its configuration.
This User Gave Thanks to pludi For This Post:
 

10 More Discussions You Might Find Interesting

1. UNIX Desktop Questions & Answers

Dual monitor for Intel 82915G & ATI Rage 128 card on FC6, Dell Optiplex Gx520

I want to setup dual monitor for the Dell Optiplex Gx520 computer. The motherboard has an Intel Corporation 82915G Integrated Graphics Controller. Then I add an ATI Rage 128 video card. The dual monitor work on Windows 2000 with the Intel chip as the primary screen and the ATI chip... (0 Replies)
Discussion started by: TsanChung
0 Replies

2. Linux

Dual Monitor not working

Hi, To simplify things, the name of the pc's are 'spectra1' and 'spectra3'. Spectra3 already has dual screen, and I'm trying to connect and 2nd screen for spectra1. I went to System Settings > Display > Dual head tab: on spectra1 and enabled the "use dual head" then clicked Configue... From... (0 Replies)
Discussion started by: shamrocks
0 Replies

3. Solaris

T2000 Server cannot power on

Hi All, I recently had issues with my new T2000 server. I purchased a new mainboard and swapped the CPU and DIMMs to the new board. Now when i power on the server im unable to do so. I get the following error: ‘SC Alert: Host system poweron failed due to fault at MB/FF_POK.' When i do... (2 Replies)
Discussion started by: Caully
2 Replies

4. UNIX for Advanced & Expert Users

Setting up Dual Monitor info and help

This is a nice little article for setting up dual monitors. Ubuntu Tips: How To Setup Dual Monitor (link removed) Does anyone know how to do this from the terminal? I wanted to add a key detail that was neglected from the first article I read. This only matters if you are trying to... (3 Replies)
Discussion started by: cokedude
3 Replies

5. Solaris

Sol 11 express X86:Dual monitor config,max resolution

Hello! I have some X86 desktop computer with G45 embedded dual-head video. Two monitors can be configured, but with "small" problem: the summ of dimensions in any direction (vert or horis) can't exceed 1680 pix- max sizeof virtual screen area. Attempts to edit "videoram" parameter in xorg.conf... (0 Replies)
Discussion started by: urry_buh
0 Replies

6. Hardware

FAQ, support multiple monitor 3 or 4 using dual video card SLI or Crossfire

Hi, I would like to ask if someone has knowlodge or perhaps own/experience this kind of a machine, Im buying a desktop with a plan of having multiple monitor 3 or 4,now my question is, i want to used the sli or crossfire config with each video card has 2 dvi or vga connector, does this 2... (0 Replies)
Discussion started by: jao_madn
0 Replies

7. UNIX for Advanced & Expert Users

how to power on remote server ?

i have doubt about how to power on server from remote location with out contacting with data center people? please anybody replay with whole info. thank you. (3 Replies)
Discussion started by: bhaskerreddy.ch
3 Replies

8. UNIX Benchmarks

power 5 p520 2-dual core CPU and 8 Gig

p520's prtconf ..two internal drives 10K RPMs 140G, 2 dual core 1.5 GHz processors, 8 Gig of RAM, running AIX 7.1, with the newest gcc compiler The numbers don't make sense, Can someone comment ?? BYTE UNIX Benchmarks (Version 3.11) System -- AIX p520 1 7 00CD5D0C4C00 Start... (2 Replies)
Discussion started by: ppchu99
2 Replies

9. Hardware

Fedora 16 dual monitor - dual head - automatic monitor shutdown

Hi, I am experiencing troubles with dual monitors in fedora 16. During boot time both monitors are working, but when system starts one monitor automatically shut down. It happend out of the blue. Some time before when I updated system this happend but then I booted older kernel release and... (0 Replies)
Discussion started by: wakatana
0 Replies

10. Linux

How to start pc automatically when power comes (Server)?

Can anyone tell me how to start pc automatically when power comes, here I just want to start server automatically, on boot, my server starts automatically because I have written some startup commands in rc.local file but if power fails, then how can I boot automatically (2 Replies)
Discussion started by: Akshay Hegde
2 Replies
NETSNMP_AGENT_API(3)						     Net-SNMP						      NETSNMP_AGENT_API(3)

NAME
netsnmp_agent_api - embedding an agent into a external application SYNOPSIS
#include <net-snmp/net-snmp-config.h> #include <net-snmp/net-snmp-includes.h> #include <net-snmp/agent/net-snmp-agent-includes.h> int main (int argc, char *argv[]) { int agentx_subagent = 1; /* Change this if you're a master agent. */ snmp_enable_stderrlog(); /* If we're an AgentX subagent... */ if (agentx_subagent) { /* ...make us an AgentX client. */ netsnmp_ds_set_boolean(NETSNMP_DS_APPLICATION_ID, NETSNMP_DS_AGENT_ROLE, 1); } init_agent("yourappname"); /* Initialize your MIB code here. */ init_my_mib_code(); /* `yourappname' will be used to read yourappname.conf files. */ init_snmp("yourappname"); /* If we're going to be a SNMP master agent... */ if (!agentx_subagent) init_master_agent(); /* Listen on default port (161). */ /* Your main loop here... */ while (whatever) { /* if you use select(), see snmp_api(3) */ /* --- OR --- */ agent_check_and_process(0); /* 0 == don't block */ } /* At shutdown time: */ snmp_shutdown("yourappname"); } Then: $(CC) ... `net-snmp-config --agent-libs` DESCRIPTION
Our goal is to create a easy to use interface to the Net-SNMP package such that you can take code that you have written that has been designed to be a Net-SNMP MIB module and embed it into an external application where you can either chose to be a SNMP master agent or an AgentX sub-agent using the same MIB module code. Our suggestion is that you use our (or another) SNMP agent as the AgentX master agent and chose to become an AgentX subagent which then attaches to the master. The Net-SNMP package provides a pair of libraries that enables easy embedding of an SNMP or AgentX agent into an external software package. AgentX is an extensible protocol designed to allow multiple SNMP sub-agents all run on one machine under a single SNMP master agent. It is defined in RFC 2741. You will need to perform a few tasks in order to accomplish this. First off, you will need to initialize both the SNMP library and the SNMP agent library. As indicated above, this is done slightly differently depending on whether or not you are going to perform as a master agent or an AgentX sub-agent. CONFIGURATION
If you intend to operate as an AgentX sub-agent, you will have to configured the Net-SNMP package with agentx support (which is turned on by default, so just don't turn it off) Additionally, you will need to link against the Net-SNMP libraries (use the output of "net-snmp-config --agent-libs" to get a library list) and call subagent_pre_init() as indicated above. COMPILING
In order to make use of any of the above API, you will need to link against at least the four libraries listed above. FUNCTIONS
where to find out more information on them. It is certainly not a complete list of what is available within all the Net-SNMP libraries. snmp_enable_stderrlog() Logs error output from the SNMP agent to the standard error stream. netsnmp_ds_set_boolean() Please see the default_store(3) manual page for more information about this API. init_agent(char *name) Initializes the embedded agent. This should be called before the init_snmp() call. name is used to dictate what .conf file to read when init_snmp() is called later. init_snmp(char *name) Initializes the SNMP library. Note that one of the things this will do will be to read configuration files in an effort to config- ure your application. It will attempt to read the configuration files named by the name string that you passed in. It can be used to configure access control, for instance. Please see the netsnmp_config_api(3), snmp_config(5), and snmpd.conf(5) manual pages for further details on this subject. init_master_agent(void) Initializes the master agent and causes it to listen for SNMP requests on its default UDP port of 161. agent_check_and_process(int block) This checks for packets arriving on the SNMP port and processes them if some are found. If block is non-zero, the function call will block until a packet arrives or an alarm must be run (see snmp_alarm(3)). The return value from this function is a positive integer if packets were processed, zero if an alarm occurred and -1 if an error occured. snmp_shutdown(char *name); This shuts down the agent, saving any needed persistent storage, etc. SEE ALSO
http://www.net-snmp.org/tutorial-5/toolkit/ select(2), snmp_api(3), default_store(3), snmp_alarm(3), netsnmp_config_api(3), snmp_config(5), snmpd.conf(5) V5.7.2 13 Aug 2010 NETSNMP_AGENT_API(3)
All times are GMT -4. The time now is 07:42 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy