<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: mgmt_cli options reference (man page) in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-options-reference-man-page/m-p/135964#M6494</link>
    <description>&lt;P&gt;Hi Dameon,&lt;/P&gt;&lt;P&gt;This is a helpful post and is the only place I have found the Unsafe switches documented.&lt;/P&gt;&lt;P&gt;I have sent an email to techpub about the sc1 API documentation not including this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have found that the 'command-name' API command does not appear to work (not for me anyway).&lt;BR /&gt;Is it still a valid API command.&lt;/P&gt;&lt;P&gt;The command 'command-name' is not working for me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Don&lt;/P&gt;</description>
    <pubDate>Thu, 09 Dec 2021 20:19:45 GMT</pubDate>
    <dc:creator>Don_Paterson</dc:creator>
    <dc:date>2021-12-09T20:19:45Z</dc:date>
    <item>
      <title>mgmt_cli options reference (man page)</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-options-reference-man-page/m-p/47148#M3150</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;Currently missing from the Management API Reference is a full options list for mgmt_cli, a la man page.&lt;BR /&gt;I knew I'd seen the full options somewhere, eventually realising I'd seen them on the tool itself but not the web.&lt;/P&gt;&lt;P&gt;It doesn't have a help parameter, rather it is displayed on error.&lt;/P&gt;&lt;PRE&gt;mgmt_cli command-name command-parameters optional-switches


optional-switches:
---------------
[--batch, -b]
        Execute command using parameters file in .CSV format.
[--ca-cert]
        SSL CA Bundle file.
        Environment variable: MGMT_CLI_CA_CERT
[--client-cert, -c]
        Use this flag to provide path to the client P12 certificate file for login.
        Environment variable: MGMT_CLI_CLIENT_CERTIFICATE
[--conn-timeout]
        Defines maximum time the request is allowed to take in seconds.
        Default {180}
        Environment variable: MGMT_CLI_CONNECTION_TIMEOUT
[--context]
        Context of WebAPI.
        Default {web_api}
        Environment variable: MGMT_CLI_CONTEXT
[--debug] {on|off}
        Whether to run the command in debug mode.
        Default {off}
        Environment variable: MGMT_CLI_DEBUG
[--debug-header]
        A value of a debug header which is sent to the WebAPI server. Server log records will be marked by this value.
        Environment variable: MGMT_CLI_DEBUG_HEADER
[--domain, -d]
        Name, uid or IP-address of the management domain.
        Environment variable: MGMT_CLI_DOMAIN
[--format, -f] {text|text-partial|text-full|json}
        Response format
        Default {text}
        Environment variable: MGMT_CLI_FORMAT
[--ignore-errors] {true|false}
        Ignore errors and continue execution when executing commands from parameters file. See (--batch).
        Default {false}
        Environment variable: MGMT_CLI_IGNORE_ERRORS
[--log-file]
        Path to the debugging log file.
        Default {mgmt_cli.log}
        Environment variable: MGMT_CLI_LOG_FILE
[--management, -m]
        Management server ip address.
        Default {127.0.0.1}
        Environment variable: MGMT_CLI_MANAGEMENT
[--password, -p]
        Management administrator password.
        Environment variable: MGMT_CLI_PASSWORD
[--port]
        Port of WebAPI server on management server.
        Default {443}
        Environment variable: MGMT_CLI_PORT
[--proxy, -x]
        Proxy settings. Example: user:password@proxy.server:port
        Environment variable: MGMT_CLI_PROXY
[--root, -r] {true|false}
        When running on the management server, use this flag with value set to 'true' to login as Super User administrator.
        Default {false}
[--session-file, -s]
        File containing session information retrieved by login.
        Environment variable: MGMT_CLI_SESSION_FILE
[--session-id]
        Established session identifier (sid) using login.
        Environment variable: MGMT_CLI_SESSION_ID
[--sync] {true|false}
        Synchronous execution of task - commands that generate the task will wait until the task is finished.
        Default {true}
        Environment variable: MGMT_CLI_SYNC
[--sync-frequency]
        Defines (in seconds) how frequently task status should be checked when command is executed synchronously.
        Environment variable: MGMT_CLI_SYNC_FREQUENCY
[--treat-value-as-file-by-prefix]
        Treat the value field as a file name and read its content, if the value starts with this prefix.
        Environment variable: MGMT_CLI_TREAT_VALUE_AS_FILE_BY_PREFIX
[--unsafe] {true|false}
        UNSAFE! Ignore certificate verification.
        Default {false}
[--unsafe-auto-accept] {true|false}
        UNSAFE! Auto accept fingerprint during certificate verification.
        Default {false}
[--user, -u]
        Management administrator user name.
        Environment variable: MGMT_CLI_USER
[--version, -v]
        What command version should be called. By default the latest version is used.
        Environment variable: MGMT_CLI_VERSION&lt;/PRE&gt;</description>
      <pubDate>Sat, 16 Mar 2019 12:25:35 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-options-reference-man-page/m-p/47148#M3150</guid>
      <dc:creator>Thomas_Starr</dc:creator>
      <dc:date>2019-03-16T12:25:35Z</dc:date>
    </item>
    <item>
      <title>Re: mgmt_cli options reference (man page)</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-options-reference-man-page/m-p/48351#M3184</link>
      <description>Agree this should probably be in the official documentation somewhere, but good that it's easily accessible.</description>
      <pubDate>Fri, 22 Mar 2019 22:47:50 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-options-reference-man-page/m-p/48351#M3184</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2019-03-22T22:47:50Z</dc:date>
    </item>
    <item>
      <title>Re: mgmt_cli options reference (man page)</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-options-reference-man-page/m-p/135964#M6494</link>
      <description>&lt;P&gt;Hi Dameon,&lt;/P&gt;&lt;P&gt;This is a helpful post and is the only place I have found the Unsafe switches documented.&lt;/P&gt;&lt;P&gt;I have sent an email to techpub about the sc1 API documentation not including this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have found that the 'command-name' API command does not appear to work (not for me anyway).&lt;BR /&gt;Is it still a valid API command.&lt;/P&gt;&lt;P&gt;The command 'command-name' is not working for me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Don&lt;/P&gt;</description>
      <pubDate>Thu, 09 Dec 2021 20:19:45 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-options-reference-man-page/m-p/135964#M6494</guid>
      <dc:creator>Don_Paterson</dc:creator>
      <dc:date>2021-12-09T20:19:45Z</dc:date>
    </item>
    <item>
      <title>Re: mgmt_cli options reference (man page)</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-options-reference-man-page/m-p/135999#M6495</link>
      <description>&lt;P&gt;Hi Don - that's just a placeholder for the structure of the tool. The commands should be like&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;mgmt_cli -u myuser -p mypassword show hosts --format json&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Stu&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Dec 2021 12:11:19 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-options-reference-man-page/m-p/135999#M6495</guid>
      <dc:creator>StuartGreen</dc:creator>
      <dc:date>2021-12-10T12:11:19Z</dc:date>
    </item>
    <item>
      <title>Re: mgmt_cli options reference (man page)</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-options-reference-man-page/m-p/136030#M6496</link>
      <description>&lt;P&gt;Thanks Stu,&lt;/P&gt;&lt;P&gt;I get it now &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I just had to run mgmt_cli on it's own to see all the arguments, options and switches listed.&lt;/P&gt;&lt;P&gt;It's a tip I give other people usually - to run a command on it's own to see the options...&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Don&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Dec 2021 18:05:43 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-options-reference-man-page/m-p/136030#M6496</guid>
      <dc:creator>Don_Paterson</dc:creator>
      <dc:date>2021-12-10T18:05:43Z</dc:date>
    </item>
  </channel>
</rss>

