Commit Graph

66 Commits

Author SHA1 Message Date
Ermal Luçi
cbe4111fea Add other needed files so everything works as expected. 2008-07-14 21:12:35 +00:00
Seth Mos
da669e7fb1 Add apinger binary for gateway monitoring 2008-06-18 05:23:50 +00:00
Scott Ullrich
9f2820d888 * Fix help
* Fix exit/quit
2008-04-14 17:31:33 +00:00
Scott Ullrich
f42fa13f97 Lower threshold to 86. Noticed a scenario where slbd was chewing up
roughtly 91% of the cpu.
2008-01-31 04:36:39 +00:00
Scott Ullrich
e6d907781a Do not reset every hour. Wait until the process goes out of control. 2008-01-07 21:38:05 +00:00
Chris Buechler
1d47cc7a66 Really kill off slbd
Ticket #1533
2007-11-25 19:56:22 +00:00
Scott Ullrich
e5b3e76789 Remove extra C/R 2007-11-24 05:02:32 +00:00
Scott Ullrich
47643f5b08 Detect playback file not found when passed as argument. Example: pfSsh.php replay cvssync RELENG_1 2007-11-23 22:36:17 +00:00
Scott Ullrich
96ebb0a6b6 Allow arguments to be passed to cvssync so you can do:
pfSsh.php playback cvssync RELENG_1
2007-11-23 07:57:22 +00:00
Scott Ullrich
415c850d1a Allow arguments to be passed to the pfSense php shell. 2007-11-23 06:07:38 +00:00
Scott Ullrich
93a3d24231 Bring us one step closer to being able to port cvs_sync.sh to pfSsh by adding multiline support. For example 2007-11-23 04:03:35 +00:00
Scott Ullrich
00ea455f0f Do not forget ; on php lines. 2007-11-22 06:47:17 +00:00
Scott Ullrich
328ab0aef4 Collect the help file into one variable and then pipe through more() 2007-11-22 06:22:15 +00:00
Scott Ullrich
02105da42b Add recording related commands 2007-11-22 06:14:41 +00:00
Scott Ullrich
60ff86015d Collect the help file into one variable and then pipe through more() 2007-11-22 06:12:48 +00:00
Scott Ullrich
da30a386c9 Really cleanup c/r usage. 2007-11-22 01:26:28 +00:00
Scott Ullrich
f9fd2b14d4 * Fix ! commands (do not echo commands but execute as shell)
* Fix grep commands in playback session for restart ftp helper
2007-11-22 01:04:35 +00:00
Scott Ullrich
8c4c46c3c2 Add showrecordings command which will show available sessions for playback 2007-11-22 00:32:17 +00:00
Scott Ullrich
a07fbc84de Teach pfSense's php shell how to record and playback a set of commands.
For instance you could automate a series of reptitive developer commands.  For example:

pfSense shell: record restartftp
pfSense shell: = killall ftp-proxy
pfSense shell: system_start_ftp_helpers();
pfSense shell: = ps awux | grep ftp-proxy
pfSense shell: stoprecording

And then you could replay the above commands later with:

pfSense shell: playback restartftp
2007-11-22 00:09:25 +00:00
Scott Ullrich
34af0cab0a Teach pfSense's php shell how to record and playback a set of commands.
For instance you could automate a series of reptitive developer commands.  For example:

pfSense shell: record restartftp
pfSense shell: = killall ftp-proxy
pfSense shell: system_start_ftp_helpers();
pfSense shell: = ps awux | grep ftp-proxy
pfSense shell: stoprecording

And then you could replay the above commands later with:

pfSense shell: playback restartftp
2007-11-22 00:05:49 +00:00
Scott Ullrich
1988691378 Add carriage return after outputting help screen 2007-11-19 20:38:34 +00:00
Scott Ullrich
376807d71b Remove debugging echo 2007-11-19 20:23:38 +00:00
Scott Ullrich
50fa05d113 Add pipe_cmd() function 2007-11-19 05:38:34 +00:00
Scott Ullrich
7aa6eee621 Missed a c/r 2007-11-19 04:30:51 +00:00
Scott Ullrich
7116ab7f87 * Allow shell commands to be executed if you proceed the command with =
* Clean up carriage returns and make presentation look nicer
2007-11-19 04:30:04 +00:00
Scott Ullrich
3d3be83663 If readline is not included in PHP then fall back to normal boring text input methods. 2007-11-19 03:23:01 +00:00
Scott Ullrich
cd8ca22fad Add second argument of more allowing control of when press Return is displayed 2007-11-19 02:57:27 +00:00
Scott Ullrich
5003c48ab4 add more($text) function. With this function it will ask the person to press return after 24 rows of output. Good for stuff like this:
$temp = print_r($config, true);
more($temp);
2007-11-19 02:52:30 +00:00
Scott Ullrich
ebe2951eb6 Add libreadline support for command histories.
Requested-by: CMB
2007-11-09 02:09:35 +00:00
Scott Ullrich
1b8a2f5cf7 Set $pkg_interface='console'; in php shell. 2007-08-28 19:19:15 +00:00
Scott Ullrich
b1d7bc0178 Reset SLBD every 5 hours to avoid 100% cpu utilization Ticket #1316 2007-06-27 19:37:11 +00:00
Scott Ullrich
46d5398808 Move help / common usage scenarios to the "help" command. 2007-05-03 05:42:59 +00:00
Scott Ullrich
4fca174c22 Show how to output the wireless options such as channels, modes, etc. 2007-05-03 04:51:41 +00:00
Scott Ullrich
94e2459b14 Clarify DHCP server comment 2007-05-03 04:17:47 +00:00
Scott Ullrich
8ea3c32971 * Correct printr typo. * Show how to output the interfaces and dhcpd portions of the configuration 2007-05-03 03:55:04 +00:00
Scott Ullrich
c64bccc058 Show the reboot command as well for php pfSense shell Sponsored-by: Bluegrass.net 2007-05-03 03:49:36 +00:00
Scott Ullrich
73b2c79937 Minor text updates 2007-05-03 03:38:46 +00:00
Scott Ullrich
2ae831274d Minor text updates 2007-05-03 03:37:56 +00:00
Scott Ullrich
03b85ded5b Show common commands in the php pfsense shell such as: * Enabling SSH * Enabling wireless on an interface (hostap, channel, ssid, etc) * Enabling DHCP Server on an interface * Disable firewall filter * Set up an interface for DHCP and enable * Set up an interface for static and enable These commands come in handy when configuring a 1 port ethernet wrap with 2 wireless cards. Sponsored-by: Bluegrass.net 2007-05-03 03:32:40 +00:00
Scott Ullrich
40a1b7af90 Add multiline support for multi-line mini programs/scripts. 2007-04-30 00:51:48 +00:00
Scott Ullrich
123bfdac65 Show that exit is a valid command 2007-04-29 23:58:37 +00:00
Scott Ullrich
6855dff019 Escape $ so that it does not try to print out the variable 2007-04-29 23:51:35 +00:00
Scott Ullrich
d776e07789 Add a pfSense interactive php shell for developers. 2007-04-29 23:49:37 +00:00
Scott Ullrich
ff56cd83d6 Add console application which shows the filter reloading status 2006-06-10 03:03:44 +00:00
Scott Ullrich
56dca0f898 We don't use ipfilter any longer, toto. 2006-04-10 22:48:51 +00:00
Scott Ullrich
c09bb9c116 Remove update_file.sh, its not pulling from RELENG_1 correctly 2006-01-16 00:53:50 +00:00
Scott Ullrich
1c07024617 Default to RELENG_1 2005-12-14 20:48:30 +00:00
Scott Ullrich
a71e520d0d Do not allow mpd to block 2005-11-28 19:47:19 +00:00
Scott Ullrich
7a79c4f037 Recompile for FreeBSD 6 2005-11-04 22:13:19 +00:00
Scott Ullrich
5e46b37c89 MFC 7196
mpd blocks until ppp-linkup exits, background rc.newwanip as dyndns is tripping this up (it tries to connect out a pppoe connection that's blocking on this script).

Tested-by: DungaBee, Hoba, and a few others.
2005-10-27 17:32:30 +00:00