You don't need to use tftp server. Just copy to a note pad, modify and paste
back

Export the xml as following. Note, the </url-list>, will be overlapping with
the ASA hostname prompt and hence you might miss to see it. Remember to add
</url-list> at the end.

asa1# export webvpn url-list template stdout
<?xml version="1.0" encoding="UTF-8"?>
<url-list>
  <title l10n="yes">URL list template</title>
  <favorite>yes</favorite>

  <bookmark>
    <title l10n="yes">XYZ GET</title>
    <method>get</method>
    <favorite>yes</favorite>
    <url>http://www.xyz.com</url>
    <subtitle l10n="yes"></subtitle>
    <thumbnail l10n="yes"></thumbnail>
    <smart-tunnel></smart-tunnel>
    <window>current|new</window>
  </bookmark>

  <bookmark>
     <title l10n="yes">XYZ POST</title>
     <method>post</method>
     <favorite>yes</favorite>
     <url>http://www.google.com</url>
     <subtitle l10n="yes"></subtitle>
     <thumbnail l10n="yes"></thumbnail>
     <smart-tunnel></smart-tunnel>
     <post-param>
       <value></value>
       <name></name>
     </post-param>
   </bookmark>





I have modified the default template which includes the url for
www.google.com and www.yahoo.com.

  <?xml version="1.0" encoding="UTF-8"?>
<url-list>
  <title l10n="yes">URL list template</title>
  <favorite>yes</favorite>

  <bookmark>
    <title l10n="yes">Google</title>
    <method>get</method>
    <favorite>yes</favorite>
    <url>http://www.google.com</url>
    <subtitle l10n="yes"></subtitle>
    <thumbnail l10n="yes"></thumbnail>
    <smart-tunnel></smart-tunnel>
    <window>current|new</window>
  </bookmark>

  <bookmark>
     <title l10n="yes">Cisco</title>
     <method>post</method>
     <favorite>yes</favorite>
     <url>http://www.yahoo.com</url>
     <subtitle l10n="yes"></subtitle>
     <thumbnail l10n="yes"></thumbnail>
     <smart-tunnel></smart-tunnel>
     <post-param>
       <value></value>
       <name></name>
     </post-param>
   </bookmark>
</url-list>


Now type the following command and paste the above XMLs. Then keep pressing
space bar. You see "successfully imported" message. You can try importing
the above xmls, it will work.


asa1# import webvpn url-list king stdin 900

%INFO: URL list 'king' was successfully imported

With regards
Kings

On Thu, Sep 8, 2011 at 10:43 PM, Mark Senteza <[email protected]>wrote:

> So I've tried this again, but still no joy. The error message I get is:
>
> "%ERROR: error closing parser: no element found (line=1, column=101,
> position=101"
>
> However, when I attempt to import the url-list using a tftp server, the
> import is successful.
>
> On another note - should the file be saved as a .txt file or without the
> .txt extension?
>
> Mark
>
>
> On Thu, Sep 8, 2011 at 9:47 AM, Mark Senteza <[email protected]>wrote:
>
>> Aha. I get it. I'll give that a go again then. Thanks
>>
>>
>> On Wed, Sep 7, 2011 at 10:54 PM, Kingsley Charles <
>> [email protected]> wrote:
>>
>>> Yes 900 worked for me. It takes sometime time to import them. Keep
>>> pressing "Enter" or "Space", you will get the prompt back.
>>>
>>> See bsically, if you give 900 and the actual texts in the xml are less,
>>> you need to fill up them using space bar which adds spaces. That's why you
>>> see that screen hanging, as it is expecting for more texts till it reaches
>>> 900.
>>>
>>>
>>> With regards
>>> Kings
>>>
>>>
>>> On Thu, Sep 8, 2011 at 7:57 AM, Mark Senteza <[email protected]>wrote:
>>>
>>>> Kingsley,
>>>>
>>>> I've just tried this again, using a size of 900. It seems to have hang
>>>> or crashed my ASA. Do I need to specify the location of the file or its 
>>>> fine
>>>> to just run the command as I did as follows:
>>>>
>>>>      "import webvpn url-list myurllist stdin 900"
>>>>
>>>> I see that thats the way you did it when you initially used a size of
>>>> 500.
>>>>
>>>> Mark
>>>>
>>>>
>>>> On Fri, Aug 26, 2011 at 11:29 AM, Mark Senteza <[email protected]
>>>> > wrote:
>>>>
>>>>> I havent tried it with the size before, but I'll give it another go and
>>>>> get comfortable with that option too
>>>>>
>>>>>
>>>>> On Thu, Aug 25, 2011 at 11:05 PM, Kingsley Charles <
>>>>> [email protected]> wrote:
>>>>>
>>>>>> Thanks Mark.
>>>>>>
>>>>>>
>>>>>> On Thu, Aug 25, 2011 at 11:15 PM, Mark Senteza <
>>>>>> [email protected]> wrote:
>>>>>>
>>>>>>> Kings,
>>>>>>>
>>>>>>> I've been playing around with this quite a bit lately, and I import
>>>>>>> using a tftp server using the following syntax
>>>>>>>
>>>>>>> import webvpn url-list myurl tftp://10.1.1.100/myurl
>>>>>>>
>>>>>>> The import is successful that way.
>>>>>>>
>>>>>>> I previously tried the method you used with the "stdin 500" at the
>>>>>>> end, but it just hang there. I kept increasing that figure by 50 but 
>>>>>>> got the
>>>>>>> same result. Try running the import using TFTP or FTP
>>>>>>>
>>>>>>> Mark
>>>>>>>
>>>>>>> On Sun, Aug 14, 2011 at 5:19 AM, Kingsley Charles <
>>>>>>> [email protected]> wrote:
>>>>>>>
>>>>>>>> Hi all
>>>>>>>>
>>>>>>>> As you all know that, starting with asa 8.0, we can use url-list
>>>>>>>> import/export feature only to configuring url-lists. Now I am just 
>>>>>>>> trying to
>>>>>>>> import the default template that is already present in the ASA but it 
>>>>>>>> fails
>>>>>>>> for me as following:
>>>>>>>>
>>>>>>>> asa1# export webvpn url-list template stdout
>>>>>>>> <?xml version="1.0" encoding="UTF-8"?>
>>>>>>>> <url-list>
>>>>>>>>   <title l10n="yes">URL list template</title>
>>>>>>>>   <favorite>yes</favorite>
>>>>>>>>
>>>>>>>>   <bookmark>
>>>>>>>>     <title l10n="yes">XYZ GET</title>
>>>>>>>>     <method>get</method>
>>>>>>>>     <favorite>yes</favorite>
>>>>>>>>     <url>http://www.xyz.com</url>
>>>>>>>>     <subtitle l10n="yes"></subtitle>
>>>>>>>>     <thumbnail l10n="yes"></thumbnail>
>>>>>>>>     <smart-tunnel></smart-tunnel>
>>>>>>>>     <window>current|new</window>
>>>>>>>>   </bookmark>
>>>>>>>>
>>>>>>>>   <bookmark>
>>>>>>>>      <title l10n="yes">XYZ POST</title>
>>>>>>>>      <method>post</method>
>>>>>>>>      <favorite>yes</favorite>
>>>>>>>>      <url>http://www.google.com</url>
>>>>>>>>      <subtitle l10n="yes"></subtitle>
>>>>>>>>      <thumbnail l10n="yes"></thumbnail>
>>>>>>>>      <smart-tunnel></smart-tunnel>
>>>>>>>>      <post-param>
>>>>>>>>        <value></value>
>>>>>>>>        <name></name>
>>>>>>>>      </post-param>
>>>>>>>>    </bookmark>
>>>>>>>> <url-list>
>>>>>>>>
>>>>>>>>
>>>>>>>> asa1#import webvpn url-list webvpn stdin 500
>>>>>>>> %ERROR: error closing parser: no element found (line=19, column=27,
>>>>>>>> position=501
>>>>>>>> )
>>>>>>>>
>>>>>>>> asa1#
>>>>>>>> asa1#      <favorite>yes</favorite>
>>>>>>>>            ^
>>>>>>>> ERROR: % Invalid input detected at '^' marker.
>>>>>>>> asa1#      <url>http://www.google.com</url>
>>>>>>>>            ^
>>>>>>>> ERROR: % Invalid input detected at '^' marker.
>>>>>>>> asa1#      <subtitle l10n="yes"></subtitle>
>>>>>>>>            ^
>>>>>>>> ERROR: % Invalid input detected at '^' marker.
>>>>>>>> asa1#      <thumbnail l10n="yes"></thumbnail>
>>>>>>>>            ^
>>>>>>>> ERROR: % Invalid input detected at '^' marker.
>>>>>>>> asa1#      <smart-tunnel></smart-tunnel>
>>>>>>>>            ^
>>>>>>>> ERROR: % Invalid input detected at '^' marker.
>>>>>>>> asa1#      <post-param>
>>>>>>>>            ^
>>>>>>>> ERROR: % Invalid input detected at '^' marker.
>>>>>>>> asa1#        <value></value>
>>>>>>>>              ^
>>>>>>>> ERROR: % Invalid input detected at '^' marker.
>>>>>>>> asa1#        <name></name>
>>>>>>>>              ^
>>>>>>>> ERROR: % Invalid input detected at '^' marker.
>>>>>>>> asa1#      </post-param>
>>>>>>>>            ^
>>>>>>>> ERROR: % Invalid input detected at '^' marker.
>>>>>>>> asa1#    </bookmark>
>>>>>>>>          ^
>>>>>>>> ERROR: % Invalid input detected at '^' marker.
>>>>>>>> asa1# <url-list>
>>>>>>>>       ^
>>>>>>>> ERROR: % Invalid input detected at '^' marker.
>>>>>>>>
>>>>>>>>
>>>>>>>> The following link claims that Cisco supports only LISP format. Has
>>>>>>>> anyone tried it?
>>>>>>>>
>>>>>>>>
>>>>>>>> http://www.isrcomputing.com/knowledge-base/ccie-security-pursuit/172-ccie-security-how-to-create-cisco-ssl-vpn-url-links-from-command-line.html
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> With regards
>>>>>>>> Kings
>>>>>>>>
>>>>>>>> _______________________________________________
>>>>>>>> For more information regarding industry leading CCIE Lab training,
>>>>>>>> please visit www.ipexpert.com
>>>>>>>>
>>>>>>>> Are you a CCNP or CCIE and looking for a job? Check out
>>>>>>>> www.PlatinumPlacement.com
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>
>>>>
>>>
>>
>
_______________________________________________
For more information regarding industry leading CCIE Lab training, please visit 
www.ipexpert.com

Are you a CCNP or CCIE and looking for a job? Check out 
www.PlatinumPlacement.com

Reply via email to