On 16/11/06, Yan Doldonov <[EMAIL PROTECTED]> wrote: > I have a situation where I need a SNMP management module to receive a trap > from UPS about an event of switching to battery mode and then initiate the > shutdown of Linux/Windows servers. Does any one have a clue how to turn the > UPS trap into the script to shutdown server machines remotely?
Take a step back, and forget about SNMP for a moment. Allowing *anything* to shut down a system remotely is relatively dangerous, and probably isn't available by default. This may well be something that you'll need to set up yourself. Once you've got a suitable mechanism in place, then you can look at writing a SNMP trap handler to invoke this, and shut the remote system down. The easiest approach might be to send these traps to a trap receiver running on the system itself, and have that shut down the *local* system. But again, you'd need to look very carefully about the access control setting of who was authotised to send such traps to the receiver. This sort of facility is an obvious potential Denial of Service attack! Dave ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Net-snmp-users mailing list [email protected] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
