| 1 | |||
| 2 | 3 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | |||
| 4 | 3 | ▶ | use Class::Generate qw(class); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 3 | class 'Nmap::Scanner::OS::Uptime' => { | |
| 7 | qw(seconds $ | ||
| 8 | lastboot $), | ||
| 9 | '&as_xml' => q!qq(<uptime seconds="$self->{seconds}" ) . | ||
| 10 | qq(lastboot="$self->{lastboot}"/>);! | ||
| 11 | }; | ||
| 12 | |||
| 13 | 3 | 1; | |
| 14 | |||
| 15 | =pod | ||
| 16 | |||
| 17 | =head1 NAME | ||
| 18 | |||
| 19 | Uptime - uptime for remote host (not always available) | ||
| 20 | |||
| 21 | =head2 seconds() | ||
| 22 | |||
| 23 | Seconds up since last boot | ||
| 24 | |||
| 25 | =head2 lastboot() | ||
| 26 | |||
| 27 | Time/date of last boot | ||
| 28 | |||
| 29 | =cut | ||