A comprehensive yast command line reference

Hello,

I’m interested in the full yast commandline reference. I’ve already gone through the following:

1. man yast -> says nothing about the yast modules, which speciffically I'm interested in
2. yast module longhelp -> is quite unspeciffic and mostly one cannot get off better than with scarce examples
3. http://doc.opensuse.org/projects/YaST/SLES11/onefile/yast-onefile.html -> no instructions on command line
4. several other Google("yast command line") hits explored -> very scarce instructions, just going to essentials
5. OpenSUSE forums on the topic of YaST and other -> no useful information found

I would really like to use yast command line tool, as I’m working with my server over the SSH channel. I know about the yast --ncurses, but I don’t like it, respectfully the rendition of the curses elements of the yast --ncurses windows is corrupted if I want to use the full UTF-8 encoding.

Just now I want to issue the command

yast firewall masqredirect add . . .

and I have no idea what’s the correct syntax for the rest of the line if I actually want to add a record. The example only shows how to remove a record. I had issues as such already for other cases of using this tool, so, please, do not just tell me what’s the correct spelling for the command in the above example, as that may not solve my future issues. Is there a comprehensive documentation about the syntax of the subcommands and functions supported by each yast module? Any help would be much appreciated.

Ian

On 2013-04-09 18:36, baldinwin wrote:
> I’m interested in the full yast commandline reference. I’ve already
> gone through the following:

There are 3 yast mail lists. You might try there. :-?


Cheers / Saludos,

Carlos E. R.
(from 12.1 x86_64 “Asparagus” at Telcontar)

4.3.4. Command Line Parameters of the YaST Modules To use YaST functionality in scripts, YaST provides command line support for individual modules. Not all modules have a command line support. To display the available options of a module, enter:

yast <module_name> --help

source:- 4.3.

Just on a whim I tried this:

Code:

yast firewall help

which showed me that ‘longhelp’ is available (seems to be common for Yast
things, like ‘lan’ as well).

Code:

yast firewall longhelp

Give it a shot and post back your results, please.

Good luck.

Hi all,

Thank you very much for your answers. As I say, I have tried the longhelp, and (only focused now on my example case above) it gives me this:

Command ‘masqredirect’
Redirect requests to masqueraded IP

Options:
    show                   Show current settings
    add                    Add a new record
    remove                 Remove a record
    sourcenet   [string]   Source network, such as 0/0 or 145.12.35.0/255.255.255.0
    protocol    [string]   Protocol (tcp|udp)
    req_ip      [string]   Requested external IP (optional)
    req_port    [string]   Requested port name or number
    redir_ip    [string]   Redirect to internal IP
    redir_port  [string]   Redirect to port on internal IP (optional)
    record      [integer]  Record number
    names                  Use port names instead of port numbers
    help                   Print the help for this command
    verbose                Show progress information

Options of the [string] type must be written in the form 'option=value'.

Example:
    masqredirect remove record=6

It says absolutelly nothing about how I can compose a valid yast firewall masqredirect add statement. In case of yast firewall services add I at least have some more examples, which turn my imagination on as to how i can spell out the interesting commands. But in case of masqredirect there is absolutelly no instructions on how I can do the add … nowhere i the world … at least it seems so.

I’ll also try with the YaST forums. I tried this one as I’m looking for documentation on this subject … and I could nowhere find it.

Ian

Hi Carlos,

As I’m new here, could you instruct me how I can subscribe one of the mailing lists you mention?

Ian

IMHO you’re barking up the wrong tree. The one thing you have to meet is a required module to work from CLI, which does not support CLI. Rather see that you get Yast in ncurses mode working. No need to append " --ncurses", just a plain

yast

is enough.

On 2013-04-09 22:46, baldinwin wrote:
>
> Hi Carlos,
>
> As I’m new here, could you instruct me how I can subscribe one of the
> mailing lists you mention?

openSUSE:Communication channels: Mailing lists
Mailinglist Archive:


Cheers / Saludos,

Carlos E. R.
(from 12.1 x86_64 “Asparagus” at Telcontar)

Sorry … I’ve got it now … I have been interpreting the lines of instructions from longhelp as separate commands … sorry for the confusion and thanks for your help …

Ian

Knurpht wrote:
> IMHO you’re barking up the wrong tree. The one thing you have to meet is
> a required module to work from CLI, which does not support CLI. Rather
> see that you get Yast in ncurses mode working. No need to append "
> --ncurses", just a plain
>
> Code:
> --------------------
> yast
> --------------------
> is enough.

Personally I prefer

ssh -X my_server

yast2

And then use the GUI version of YaST as normal