version 1.7, 2006/06/28 23:33:18 |
version 1.8, 2006/06/29 01:39:52 |
|
|
package Net::Telnet::Trango;
|
package Net::Telnet::Trango;
|
# $RedRiver: Trango.pm,v 1.6 2006/06/28 22:00:15 andrew Exp $
|
# $RedRiver: Trango.pm,v 1.7 2006/06/28 22:33:18 andrew Exp $
|
use strict;
|
use strict;
|
use warnings;
|
use warnings;
|
use base 'Net::Telnet';
|
use base 'Net::Telnet';
|
|
|
|
|
returns an array ref of hashes containing each log line.
|
returns an array ref of hashes containing each log line.
|
|
|
|
=item save_sudb
|
|
|
|
returns true on success, undef on failure
|
|
|
=cut
|
=cut
|
|
|
|
|
|
|
sulog => { decode => 'sulog', expect => $success },
|
sulog => { decode => 'sulog', expect => $success },
|
'exit' => { no_prompt => 1, cmd_disconnects => 1 },
|
'exit' => { no_prompt => 1, cmd_disconnects => 1 },
|
reboot => { no_prompt => 1, cmd_disconnects => 1 },
|
reboot => { no_prompt => 1, cmd_disconnects => 1 },
|
sudb_save => { String => "sudb save", expect => $success },
|
save_sudb => { String => "save sudb", expect => $success },
|
#su password???
|
#su password???
|
#_bootloader
|
#_bootloader
|
#temp
|
#temp
|
|
|
|
|
and returns true on success or undef otherwise.
|
and returns true on success or undef otherwise.
|
|
|
You should sudb_save() after calling this, or your changes will be lost
|
You should save_sudb() after calling this, or your changes will be lost
|
when the AP is rebooted.
|
when the AP is rebooted.
|
|
|
=cut
|
=cut
|
|
|
Takes either 'all' or the suid of the su to delete
|
Takes either 'all' or the suid of the su to delete
|
and returns true on success or undef otherwise.
|
and returns true on success or undef otherwise.
|
|
|
You should sudb_save() after calling this, or your changes will be lost
|
You should save_sudb() after calling this, or your changes will be lost
|
when the AP is rebooted.
|
when the AP is rebooted.
|
|
|
=cut
|
=cut
|
|
|
|
|
su2su takes a group id parameter that is in hex.
|
su2su takes a group id parameter that is in hex.
|
|
|
You should sudb_save() after calling this, or your changes will be lost
|
You should save_sudb() after calling this, or your changes will be lost
|
when the AP is rebooted.
|
when the AP is rebooted.
|
|
|
=cut
|
=cut
|