/[pxelator]/lib/PXElator/amt.pm
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /lib/PXElator/amt.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 262 by dpavlin, Wed Aug 19 11:02:15 2009 UTC revision 263 by dpavlin, Wed Aug 19 11:51:51 2009 UTC
# Line 11  use Regexp::Common qw/net/; Line 11  use Regexp::Common qw/net/;
11  use Net::Ping;  use Net::Ping;
12    
13  use html;  use html;
14    use CouchDB;
15    
16  sub info {  sub info {
17          my ( $amt, $client_ip ) = @_;          my ( $amt, $client_ip ) = @_;
# Line 30  sub info { Line 31  sub info {
31          $ENV{AMT_HOST} = $ip;          $ENV{AMT_HOST} = $ip;
32          $ENV{AMT_PASSWORD} = $passwd;          $ENV{AMT_PASSWORD} = $passwd;
33    
34            my $amt = Intel::AMT::NetworkAdministration::network_settings;
35            $amt->{power_state} = Intel::AMT::RemoteControl::SystemPowerState;
36    
37            CouchDB::audit('network', $amt );
38    
39          my $out;          my $out;
40    
41          $out = qq|power: S| . Intel::AMT::RemoteControl::SystemPowerState          $out =
42                  . qq|<br>|                    qq| <a href="http://$ip:16992/" target="$ip">amt</a>|
                 . qq| <a href="http://$ip:16992/" target="$ip">amt</a>|  
43                  . qq| <a href="http://$ip:16992/ip.htm" target="$ip">ip</a>|                  . qq| <a href="http://$ip:16992/ip.htm" target="$ip">ip</a>|
44                  . qq|<br>|                  . qq|<br>|
45                  . html::pre_dump( Intel::AMT::NetworkAdministration::network_settings )                  . html::pre_dump( $amt )
46                  ;                  ;
47    
48          return $out;          return $out;

Legend:
Removed from v.262  
changed lines
  Added in v.263

  ViewVC Help
Powered by ViewVC 1.1.26