<?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: How to get ESA VLN expiration date using API in Email Security</title>
    <link>https://community.cisco.com/t5/email-security/how-to-get-esa-vln-expiration-date-using-api/m-p/3877411#M19081</link>
    <description>&lt;P&gt;I don't use Virtual appliances to test on.&lt;BR /&gt;I assume you are trying to get to machine mode...&lt;BR /&gt;&lt;BR /&gt;create command file&lt;/P&gt;&lt;P&gt;clustermode&lt;/P&gt;&lt;P&gt;3&lt;/P&gt;&lt;P&gt;&amp;lt;blank line here as taking default&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;showlicense&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;( the carriage returns will be sending the command and the blank line to inherit the default, which will be current machine you are logged onto )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Create script file&lt;BR /&gt;set hh=%time:~0,2%&lt;BR /&gt;if "%time:~0,1%"==" " set hh=0%hh:~1,1%&lt;BR /&gt;set dt=%date:~-4,4%%date:~-7,2%%date:~-10,2%_%hh%%time:~3,2%%time:~6,2%&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;start echo y |&amp;nbsp;plink -i "&amp;lt;path to ppk" &amp;lt;username&amp;gt;@&amp;lt;hostname&amp;gt; -m&amp;nbsp;"&amp;lt;path to command file" &amp;gt; "path to log_%dt%.log" 2&amp;gt;&amp;amp;1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Or use Expect if available, or try to manipulate the above to work in your processes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Paul&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 21 Jun 2019 13:32:27 GMT</pubDate>
    <dc:creator>Paul Thomas Cyblue</dc:creator>
    <dc:date>2019-06-21T13:32:27Z</dc:date>
    <item>
      <title>How to get ESA VLN expiration date using API</title>
      <link>https://community.cisco.com/t5/email-security/how-to-get-esa-vln-expiration-date-using-api/m-p/3866981#M18975</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I need to monitor status of VLN on a number of ESA machines (ver. 12.1). I can check its status using CLI command 'showlicense'. I also receive alerts on email when something happens but I'd want not to rely on emails, but rather to get a Jira ticket.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We use Nagios for performing such service checks. Could you please help me to find out how can I query my ESAs using curl or similar tool to create some script for Nagios so it will create a Jira ticket for me when VLN is going to be expired?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Andrii&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jun 2019 18:21:57 GMT</pubDate>
      <guid>https://community.cisco.com/t5/email-security/how-to-get-esa-vln-expiration-date-using-api/m-p/3866981#M18975</guid>
      <dc:creator>afesenko</dc:creator>
      <dc:date>2019-06-03T18:21:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to get ESA VLN expiration date using API</title>
      <link>https://community.cisco.com/t5/email-security/how-to-get-esa-vln-expiration-date-using-api/m-p/3867132#M18978</link>
      <description>&lt;P&gt;&lt;FONT face="verdana,geneva" size="2" color="#333399"&gt;Hello,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="verdana,geneva" size="2" color="#333399"&gt;I was not able to find this via the API, but you can use cURL to pull the &lt;A href="https://www.cisco.com/c/en/us/support/docs/security/email-security-appliance/118349-qa-esa-00.html" target="_blank" rel="noopener"&gt;XML status&lt;/A&gt; page which has time remaining left on your feature keys.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;curl -k https://esa.example.com/xml/status -u admin:cisco123&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="verdana,geneva" size="2" color="#333399"&gt;Sample output (time_remaining is in seconds) :&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE class="line"&gt;&lt;SPAN class="html-tag"&gt;&amp;lt;features&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="html-tag"&gt;&amp;lt;feature&lt;SPAN class="html-attribute"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="html-attribute-name"&gt;name&lt;/SPAN&gt;="&lt;SPAN class="html-attribute-value"&gt;McAfee&lt;/SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class="html-attribute"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="html-attribute-name"&gt;time_remaining&lt;/SPAN&gt;="&lt;SPAN class="html-attribute-value"&gt;6474843&lt;/SPAN&gt;"&lt;/SPAN&gt;/&amp;gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="html-tag"&gt;&amp;lt;feature&lt;SPAN class="html-attribute"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="html-attribute-name"&gt;name&lt;/SPAN&gt;="&lt;SPAN class="html-attribute-value"&gt;Cloudmark SP&lt;/SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class="html-attribute"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="html-attribute-name"&gt;time_remaining&lt;/SPAN&gt;="&lt;SPAN class="html-attribute-value"&gt;6474843&lt;/SPAN&gt;"&lt;/SPAN&gt;/&amp;gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="html-tag"&gt;&amp;lt;feature&lt;SPAN class="html-attribute"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="html-attribute-name"&gt;name&lt;/SPAN&gt;="&lt;SPAN class="html-attribute-value"&gt;IronPort Image Analysis&lt;/SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class="html-attribute"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="html-attribute-name"&gt;time_remaining&lt;/SPAN&gt;="&lt;SPAN class="html-attribute-value"&gt;6474843&lt;/SPAN&gt;"&lt;/SPAN&gt;/&amp;gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="html-tag"&gt;&amp;lt;feature&lt;SPAN class="html-attribute"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="html-attribute-name"&gt;name&lt;/SPAN&gt;="&lt;SPAN class="html-attribute-value"&gt;Sophos&lt;/SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class="html-attribute"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="html-attribute-name"&gt;time_remaining&lt;/SPAN&gt;="&lt;SPAN class="html-attribute-value"&gt;6474843&lt;/SPAN&gt;"&lt;/SPAN&gt;/&amp;gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="html-tag"&gt;&amp;lt;feature&lt;SPAN class="html-attribute"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="html-attribute-name"&gt;name&lt;/SPAN&gt;="&lt;SPAN class="html-attribute-value"&gt;File Analysis&lt;/SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class="html-attribute"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="html-attribute-name"&gt;time_remaining&lt;/SPAN&gt;="&lt;SPAN class="html-attribute-value"&gt;6474843&lt;/SPAN&gt;"&lt;/SPAN&gt;/&amp;gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="html-tag"&gt;&amp;lt;feature&lt;SPAN class="html-attribute"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="html-attribute-name"&gt;name&lt;/SPAN&gt;="&lt;SPAN class="html-attribute-value"&gt;Bounce Verification&lt;/SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class="html-attribute"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="html-attribute-name"&gt;time_remaining&lt;/SPAN&gt;="&lt;SPAN class="html-attribute-value"&gt;5178843&lt;/SPAN&gt;"&lt;/SPAN&gt;/&amp;gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="html-tag"&gt;&amp;lt;feature&lt;SPAN class="html-attribute"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="html-attribute-name"&gt;name&lt;/SPAN&gt;="&lt;SPAN class="html-attribute-value"&gt;IronPort Anti-Spam&lt;/SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class="html-attribute"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="html-attribute-name"&gt;time_remaining&lt;/SPAN&gt;="&lt;SPAN class="html-attribute-value"&gt;6474843&lt;/SPAN&gt;"&lt;/SPAN&gt;/&amp;gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="html-tag"&gt;&amp;lt;feature&lt;SPAN class="html-attribute"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="html-attribute-name"&gt;name&lt;/SPAN&gt;="&lt;SPAN class="html-attribute-value"&gt;IronPort Email Encryption&lt;/SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class="html-attribute"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="html-attribute-name"&gt;time_remaining&lt;/SPAN&gt;="&lt;SPAN class="html-attribute-value"&gt;6474843&lt;/SPAN&gt;"&lt;/SPAN&gt;/&amp;gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="html-tag"&gt;&amp;lt;feature&lt;SPAN class="html-attribute"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="html-attribute-name"&gt;name&lt;/SPAN&gt;="&lt;SPAN class="html-attribute-value"&gt;Data Loss Prevention&lt;/SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class="html-attribute"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="html-attribute-name"&gt;time_remaining&lt;/SPAN&gt;="&lt;SPAN class="html-attribute-value"&gt;6474843&lt;/SPAN&gt;"&lt;/SPAN&gt;/&amp;gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="html-tag"&gt;&amp;lt;feature&lt;SPAN class="html-attribute"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="html-attribute-name"&gt;name&lt;/SPAN&gt;="&lt;SPAN class="html-attribute-value"&gt;Intelligent Multi-Scan&lt;/SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class="html-attribute"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="html-attribute-name"&gt;time_remaining&lt;/SPAN&gt;="&lt;SPAN class="html-attribute-value"&gt;6474843&lt;/SPAN&gt;"&lt;/SPAN&gt;/&amp;gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="html-tag"&gt;&amp;lt;feature&lt;SPAN class="html-attribute"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="html-attribute-name"&gt;name&lt;/SPAN&gt;="&lt;SPAN class="html-attribute-value"&gt;File Reputation&lt;/SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class="html-attribute"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="html-attribute-name"&gt;time_remaining&lt;/SPAN&gt;="&lt;SPAN class="html-attribute-value"&gt;6474843&lt;/SPAN&gt;"&lt;/SPAN&gt;/&amp;gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="html-tag"&gt;&amp;lt;feature&lt;SPAN class="html-attribute"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="html-attribute-name"&gt;name&lt;/SPAN&gt;="&lt;SPAN class="html-attribute-value"&gt;Incoming Mail Handling&lt;/SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class="html-attribute"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="html-attribute-name"&gt;time_remaining&lt;/SPAN&gt;="&lt;SPAN class="html-attribute-value"&gt;6558033&lt;/SPAN&gt;"&lt;/SPAN&gt;/&amp;gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="html-tag"&gt;&amp;lt;feature&lt;SPAN class="html-attribute"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="html-attribute-name"&gt;name&lt;/SPAN&gt;="&lt;SPAN class="html-attribute-value"&gt;Graymail Safe Unsubscription&lt;/SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class="html-attribute"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="html-attribute-name"&gt;time_remaining&lt;/SPAN&gt;="&lt;SPAN class="html-attribute-value"&gt;-16962900&lt;/SPAN&gt;"&lt;/SPAN&gt;/&amp;gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="html-tag"&gt;&amp;lt;feature&lt;SPAN class="html-attribute"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="html-attribute-name"&gt;name&lt;/SPAN&gt;="&lt;SPAN class="html-attribute-value"&gt;Outbreak Filters&lt;/SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class="html-attribute"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="html-attribute-name"&gt;time_remaining&lt;/SPAN&gt;="&lt;SPAN class="html-attribute-value"&gt;6474843&lt;/SPAN&gt;"&lt;/SPAN&gt;/&amp;gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="html-tag"&gt;&amp;lt;/features&amp;gt;&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;DIV class="line"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&lt;FONT face="verdana,geneva" size="2" color="#333399"&gt;Hopefully, this helps.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="verdana,geneva" size="2" color="#333399"&gt;Thanks!&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="verdana,geneva" size="2" color="#333399"&gt;-Dennis M.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jun 2019 02:07:01 GMT</pubDate>
      <guid>https://community.cisco.com/t5/email-security/how-to-get-esa-vln-expiration-date-using-api/m-p/3867132#M18978</guid>
      <dc:creator>dmccabej</dc:creator>
      <dc:date>2019-06-04T02:07:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to get ESA VLN expiration date using API</title>
      <link>https://community.cisco.com/t5/email-security/how-to-get-esa-vln-expiration-date-using-api/m-p/3874934#M19045</link>
      <description>Hi,&lt;BR /&gt;Thank you Dennis for your reply. However, these licenses are already monitored. The only license without monitoring is general VLN.&lt;BR /&gt;Thanks,&lt;BR /&gt;Andrii</description>
      <pubDate>Tue, 18 Jun 2019 10:26:00 GMT</pubDate>
      <guid>https://community.cisco.com/t5/email-security/how-to-get-esa-vln-expiration-date-using-api/m-p/3874934#M19045</guid>
      <dc:creator>afesenko</dc:creator>
      <dc:date>2019-06-18T10:26:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to get ESA VLN expiration date using API</title>
      <link>https://community.cisco.com/t5/email-security/how-to-get-esa-vln-expiration-date-using-api/m-p/3875202#M19047</link>
      <description>&lt;P&gt;&lt;FONT face="verdana,geneva" size="2" color="#333399"&gt;Hello,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="verdana,geneva" size="2" color="#333399"&gt;Thanks for the update. There is no variable specific to the VLN that I am aware of. In general, though, the VLN end date should be when the feature keys expire. You could potentially create a script to log in and run the showlicense command and grab the dates from there?&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="verdana,geneva" size="2" color="#333399"&gt;Thanks!&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="verdana,geneva" size="2" color="#333399"&gt;-Dennis M.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jun 2019 16:03:24 GMT</pubDate>
      <guid>https://community.cisco.com/t5/email-security/how-to-get-esa-vln-expiration-date-using-api/m-p/3875202#M19047</guid>
      <dc:creator>dmccabej</dc:creator>
      <dc:date>2019-06-18T16:03:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to get ESA VLN expiration date using API</title>
      <link>https://community.cisco.com/t5/email-security/how-to-get-esa-vln-expiration-date-using-api/m-p/3875863#M19055</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;That was a first thing I tried &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; Everything works well when I log into ESA and run 'showlicense' command:&lt;BR /&gt;(Machine ***.ironport.com)&amp;gt; showlicense&lt;BR /&gt;&lt;BR /&gt;Virtual License&lt;BR /&gt;===============&lt;BR /&gt;vln                      VLNESA3*****26&lt;BR /&gt;begin_date               Fri May 10 13:07:38 2019 GMT&lt;BR /&gt;end_date                 Tue May 26 13:07:38 2020 GMT&lt;BR /&gt;company                  Cisco SWIFT - Email:afesenko@cisco.com&lt;BR /&gt;seats                    1&lt;BR /&gt;serial                   B***F&lt;BR /&gt;email                    afesenko@cisco.com&lt;BR /&gt;issue                    363b***d0&lt;BR /&gt;license_version          1.1&lt;BR /&gt;&lt;BR /&gt;However, when I trying to get this info without establishing terminal session I'm getting following error:&lt;BR /&gt;$ ssh admin@***.ironport.com 'showlicense'&lt;BR /&gt;admin@***.sv4.ironport.com's password:&lt;BR /&gt;Unable to run as a batch command because this command has not been configured for the current mode.&lt;BR /&gt;&lt;BR /&gt;Is there any trick for such cases?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Andrii</description>
      <pubDate>Wed, 19 Jun 2019 08:08:51 GMT</pubDate>
      <guid>https://community.cisco.com/t5/email-security/how-to-get-esa-vln-expiration-date-using-api/m-p/3875863#M19055</guid>
      <dc:creator>afesenko</dc:creator>
      <dc:date>2019-06-19T08:08:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to get ESA VLN expiration date using API</title>
      <link>https://community.cisco.com/t5/email-security/how-to-get-esa-vln-expiration-date-using-api/m-p/3877084#M19073</link>
      <description>&lt;P&gt;&lt;FONT face="verdana,geneva" size="2" color="#333399"&gt;Hello,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="verdana,geneva" size="2" color="#333399"&gt;It sounds like you may be running the command at the cluster level, and we would want to run showlicense at the machine level.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="verdana,geneva" size="2" color="#333399"&gt;You could potentially try something like this.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;clustermode machine esa.test.com; showlicense&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="verdana,geneva" size="2" color="#333399"&gt;Thanks!&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="verdana,geneva" size="2" color="#333399"&gt;-Dennis M.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jun 2019 21:03:05 GMT</pubDate>
      <guid>https://community.cisco.com/t5/email-security/how-to-get-esa-vln-expiration-date-using-api/m-p/3877084#M19073</guid>
      <dc:creator>dmccabej</dc:creator>
      <dc:date>2019-06-20T21:03:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to get ESA VLN expiration date using API</title>
      <link>https://community.cisco.com/t5/email-security/how-to-get-esa-vln-expiration-date-using-api/m-p/3877337#M19080</link>
      <description>Hi Dennis,&lt;BR /&gt;&lt;BR /&gt;Unfortunately, using "clustermode machine ***.ironport.com; showlicense" shows the same output:&lt;BR /&gt;$ ssh admin@***.ironport.com 'clustermode machine ***.ironport.com; showlicense'&lt;BR /&gt;admin@***.ironport.com's password:&lt;BR /&gt;Unable to run as a batch command because this command has not been configured&lt;BR /&gt;for the current mode.&lt;BR /&gt;&lt;BR /&gt;By the way, another command is being executed successfully:&lt;BR /&gt;$ ssh admin@***.ironport.com 'version'&lt;BR /&gt;admin@***.ironport.com's password:&lt;BR /&gt;Current Version&lt;BR /&gt;===============&lt;BR /&gt;Product: Cisco C600V Email Security Virtual Appliance&lt;BR /&gt;Model: C600V&lt;BR /&gt;Version: 12.1.0-071&lt;BR /&gt;Build Date: 2019-04-03&lt;BR /&gt;Install Date: 2019-05-06 03:38:04&lt;BR /&gt;Serial #: 423E***-***03&lt;BR /&gt;BIOS: 6.00&lt;BR /&gt;CPUs: 8 expected, 8 allocated&lt;BR /&gt;Memory: 8192 MB expected, 16384 MB allocated&lt;BR /&gt;RAID: NA&lt;BR /&gt;RAID Status: Unknown&lt;BR /&gt;RAID Type: NA&lt;BR /&gt;BMC: NA&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Andrii</description>
      <pubDate>Fri, 21 Jun 2019 10:58:51 GMT</pubDate>
      <guid>https://community.cisco.com/t5/email-security/how-to-get-esa-vln-expiration-date-using-api/m-p/3877337#M19080</guid>
      <dc:creator>afesenko</dc:creator>
      <dc:date>2019-06-21T10:58:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to get ESA VLN expiration date using API</title>
      <link>https://community.cisco.com/t5/email-security/how-to-get-esa-vln-expiration-date-using-api/m-p/3877411#M19081</link>
      <description>&lt;P&gt;I don't use Virtual appliances to test on.&lt;BR /&gt;I assume you are trying to get to machine mode...&lt;BR /&gt;&lt;BR /&gt;create command file&lt;/P&gt;&lt;P&gt;clustermode&lt;/P&gt;&lt;P&gt;3&lt;/P&gt;&lt;P&gt;&amp;lt;blank line here as taking default&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;showlicense&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;( the carriage returns will be sending the command and the blank line to inherit the default, which will be current machine you are logged onto )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Create script file&lt;BR /&gt;set hh=%time:~0,2%&lt;BR /&gt;if "%time:~0,1%"==" " set hh=0%hh:~1,1%&lt;BR /&gt;set dt=%date:~-4,4%%date:~-7,2%%date:~-10,2%_%hh%%time:~3,2%%time:~6,2%&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;start echo y |&amp;nbsp;plink -i "&amp;lt;path to ppk" &amp;lt;username&amp;gt;@&amp;lt;hostname&amp;gt; -m&amp;nbsp;"&amp;lt;path to command file" &amp;gt; "path to log_%dt%.log" 2&amp;gt;&amp;amp;1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Or use Expect if available, or try to manipulate the above to work in your processes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Paul&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jun 2019 13:32:27 GMT</pubDate>
      <guid>https://community.cisco.com/t5/email-security/how-to-get-esa-vln-expiration-date-using-api/m-p/3877411#M19081</guid>
      <dc:creator>Paul Thomas Cyblue</dc:creator>
      <dc:date>2019-06-21T13:32:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to get ESA VLN expiration date using API</title>
      <link>https://community.cisco.com/t5/email-security/how-to-get-esa-vln-expiration-date-using-api/m-p/3877446#M19084</link>
      <description>Hello Paul,&lt;BR /&gt;&lt;BR /&gt;I've modified the command you posted and seems it works! Here is what exactly I did and what I got:&lt;BR /&gt;&lt;BR /&gt;$ echo 'clustermode machine ***.ironport.com; showlicense' | ssh admin@***.ironport.com&lt;BR /&gt;Pseudo-terminal will not be allocated because stdin is not a terminal.&lt;BR /&gt;admin@***.ironport.com's password:&lt;BR /&gt;NOTE: This session will expire if left idle for 30 minutes. Any uncommitted&lt;BR /&gt;configuration changes will be lost. Commit the configuration changes as soon&lt;BR /&gt;as they are made.&lt;BR /&gt;(Machine ***.ironport.com)&amp;gt;&lt;BR /&gt;Virtual License&lt;BR /&gt;===============&lt;BR /&gt;vln                      VLNESA3***26&lt;BR /&gt;begin_date               Fri May 10 13:07:38 2019 GMT&lt;BR /&gt;end_date                 Tue May 26 13:07:38 2020 GMT&lt;BR /&gt;company                  Cisco SWIFT - Email:afesenko@cisco.com&lt;BR /&gt;seats                    1&lt;BR /&gt;serial                   BF9CF&lt;BR /&gt;email                    afesenko@cisco.com&lt;BR /&gt;issue                    363b***d0&lt;BR /&gt;license_version          1.1&lt;BR /&gt;(Machine ***.ironport.com)&amp;gt;&lt;BR /&gt;Exiting...&lt;BR /&gt;&lt;BR /&gt;This output I can filter out for my needs.&lt;BR /&gt;Thank you for the tip!&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;Andrii&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 21 Jun 2019 14:22:32 GMT</pubDate>
      <guid>https://community.cisco.com/t5/email-security/how-to-get-esa-vln-expiration-date-using-api/m-p/3877446#M19084</guid>
      <dc:creator>afesenko</dc:creator>
      <dc:date>2019-06-21T14:22:32Z</dc:date>
    </item>
  </channel>
</rss>

