首页 > 其他 > 详细

reload ans current configure command

时间:2019-09-06 18:01:25      阅读:98      评论:0      收藏:0      [点我收藏+]

reload ans current configure command

 

enable_ans_license.conf

# enable anslicense WL SP LB CS CR SC CMP PQ SSL GSLB HDOSP PUSH CF IC ssl-v-p-n AAA OSPF RIP BGP REWRITE IPv6PT AppFw RESPONDER HTMLInjection AppFVision CloudETunnel ISIS CH AppQDE 

enable ans license WL
enable ans license SP
enable ans license LB
enable ans license CS
enable ans license CR
enable ans license SC
enable ans license CMP
enable ans license PQ
enable ans license SSL
enable ans license GSLB
enable ans license HDOSP
enable ans license PUSH
enable ans license CF
enable ans license IC
enable ans license ssl-v-p-n
enable ans license AAA
enable ans license OSPF
enable ans license RIP
enable ans license BGP
enable ans license REWRITE
enable ans license IPv6PT
enable ans license AppFw
enable ans license RESPONDER
enable ans license HTMLInjection
enable ans license AppFVision
enable ans license CloudETunnel
enable ans license ISIS
enable ans license CH
enable ans license AppQDE

 

enable_ans_feature.conf

# enable ansfeature WL SP LB CS CR SC CMP PQ SSL GSLB HDOSP PUSH CF IC ssl-v-p-n AAA OSPF RIP BGP REWRITE IPv6PT AppFw RESPONDER HTMLInjection AppFVision CloudETunnel ISIS CH AppQDE 

enable ans feature WL
enable ans feature SP
enable ans feature LB
enable ans feature CS
enable ans feature CR
enable ans feature SC
enable ans feature CMP
enable ans feature PQ
enable ans feature SSL
enable ans feature GSLB
enable ans feature HDOSP
enable ans feature PUSH
enable ans feature CF
enable ans feature IC
enable ans feature ssl-v-p-n
enable ans feature AAA
enable ans feature OSPF
enable ans feature RIP
enable ans feature BGP
enable ans feature REWRITE
enable ans feature IPv6PT
enable ans feature AppFw
enable ans feature RESPONDER
enable ans feature HTMLInjection
enable ans feature AppFVision
enable ans feature CloudETunnel
enable ans feature ISIS
enable ans feature CH
enable ans feature AppQDE

 

import appfw htmlerrorpage command:

# From URL import htmlerrorpage
> import appfw htmlerrorpage "http://172.16.201.131/errorpage.html" my-url-html-error-page -overwrite
 Done
>
> show appfw htmlerrorpage my-url-html-error-page
1)    Url: Http://172.16.201.131/errorpage.html    Name: "my-url-html-error-page"
    Import Date: Fri May 17 16:47:26 2019
    Comment: ""    Size: 91 bytes
 Done
> 

# From Text import htmlerrorpage
# import_dir: /var/tmp/
# mapping_dir: /var/download/
> import appfw htmlerrorpage "local://errorpage.txt" my-text-html-error-page -overwrite
Warning: Execute update command to push the object to packet engine so that the imported object is applied.
 Done
> show appfw htmlerrorpage my-text-html-error-page
1)    Url: errorpage.txt    Name: "my-text-html-error-page"
    Import Date: Fri May 17 16:59:33 2019
    Comment: ""    Size: 91 bytes
 Done
> 

# mapping-htmlerrorpage content
# Formate: <file_name>,<object_name>,<timestamp>
> shell cat /var/download/mapping-htmlerrorpage
Http://172.16.201.131/errorpage.html,my-url-html-error-page,1558082846,
errorpage.txt,my-text-html-error-page,1558083573,
 Done
> 
> shell ls -alh /var/download/htmlerrorurl/
total 16
drwxrwxr-x  2 root  wheel   512B May 17 16:59 .
drwxr-xr-x  3 root  wheel   512B May 17 16:47 ..
-rw-rw-rw-  1 root  wheel    91B May 17 16:59 my-text-html-error-page
-rw-rw-rw-  1 root  wheel    91B May 17 16:47 my-url-html-error-page
 Done
> 

 

reload ans current configure command: 

> shell cp "/flash/anscfg/ans.conf" "/flash/anscfg/ans.conf.ANS2.2-current"
 Done
> clear ansconfig -force full
 Done
> batch -fileName "/flash/anscfg/enable_ans_license.conf"
 Done
> batch -fileName "/flash/anscfg/enable_ans_feature.conf"
 Done
> batch -fileName "/flash/anscfg/ans.conf.ANS2.2-current"
 Done

 

================= End

 

reload ans current configure command

原文:https://www.cnblogs.com/lsgxeva/p/11476988.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!