UNSOLVED

Kirhner

updated

17 years ago

K

Kirhner

23 Posts

0

787

July 21st, 2009 02:00

How to create Networker documentation?

Hi,

How to generate Networker server with all the configuration settings into some readable file to create the documentation?
Is there some command that it can List all the settings in Networker?

thanks
  • DavidHampson

    2 Intern

    •

    1080 Posts

    355

    0

    Posted July 21st, 2009 02:00

    At the command line

    nsradmin
    option hidden (omit this one if you don't want everything but just the usual configured settings)
    p (for print)

    You can put the lines after nsradmin into a file and run it with nsradmin -i file and redirect the output to a file.
  • benzino1

    2 Intern

    •

    244 Posts

    355

    0

    Posted July 21st, 2009 03:00

    you can use gstclreport (NMC command line tool) to generate reports in many different formats (pdf | postscript | html | csv).
  • pbina

    75 Posts

    355

    0

    Posted July 21st, 2009 04:00

    Create a text file with the folloing text (make sure to hit return at the end of last line):

    ----------------
    option hidden;
    .type:NSR group
    show name
    print type: NSR group
    ----------------

    Then run the following command:

    nsradmin -i above-file-name.txt > nsr-output.txt

    The nsr-output.txt has all the information you need.

    Regards,
  • DavidHampson

    2 Intern

    •

    1080 Posts

    355

    0

    Posted July 21st, 2009 05:00

    That will only create a list of all group names - okay if that is what you want, also its a bit mixed up as you are doing unnecessary things!

    option hidden;
    - some configuration settings are hidden by default - this will allow those to be shown also (the show command below will hide those hidden fields again)

    .type:NSR group
    - typo here, there should be a space after the . character which indicates this is a query that we are setting (all resources where the type of resource is NSR group)

    show name
    - show just the field that has been specified (name)

    print type: NSR group
    - p or print would suffice here or you could omit the query which has already been set.

    Quite straightforward - it really depends on what you want the information for.
  • pbina

    75 Posts

    355

    0

    Posted July 21st, 2009 06:00

    Sorry, my mind must have been somewhere else, the file should contain the following:

    option dynamic; hidden; resource id
    print