キャンセル
次の結果を表示 
次の代わりに検索 
もしかして: 
cancel
57
閲覧回数
0
いいね!
0
コメント
akkojima
Cisco Employee
Cisco Employee

 

 

はじめに

本ドキュメントは、EPNM Serverで出力されている特定のログのDEBUG有効化の設定方法について
説明しております。

  

EPNM CLIにログイン

まずEPNM Serverへsshログインし、shellコマンドを実行後パスワードを入力しshellモードへログインします。

 

EPNM/admin# shell
Enter shell access password :
Starting bash shell ...
ade #

  

DEBUGの有効化について

DEBUGを有効化したいLoggerNameを指定して、下記のコマンドからDEBUGを有効化となります。

例) 下記の例ではrestconf に対してDEBUGを有効化しております。  

ade # sudo /opt/CSCOlumos/bin/setLogLevel.sh restconf DEBUG
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.springframework.cglib.core.ReflectUtils$1 (file:/opt/CSCOlumos/lib/xmp-third-party/spring-core-4.3.29.RELEASE.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
WARNING: Please consider reporting this to the maintainers of org.springframework.cglib.core.ReflectUtils$1
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
Loglevel set to DEBUG for com.cisco.nms.nbi.service.test.restconf.resource.root.RestconfServiceTestExtRootResource 

  

元のLevelに戻す方法について

 DEBUGを有効化すると、大量にログが出力されるため、元のLevelに戻すには有効化したLogger Nameを指定し
INFOレベルへと変更することで元のLevelに変更することが可能です。

例)下記の例では、restconfをINFOレベルへと変更しております。

ade # sudo /opt/CSCOlumos/bin/setLogLevel.sh restconf INFO
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.springframework.cglib.core.ReflectUtils$1 (file:/opt/CSCOlumos/lib/xmp-third-party/spring-core-4.3.29.RELEASE.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
WARNING: Please consider reporting this to the maintainers of org.springframework.cglib.core.ReflectUtils$1
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
Loglevel set to INFO for com.cisco.nms.nbi.service.test.restconf.resource.root.RestconfServiceTestExtRootResource 

 

  

参考情報

無し

Getting Started

検索バーにキーワード、フレーズ、または質問を入力し、お探しのものを見つけましょう

シスコ コミュニティをいち早く使いこなしていただけるよう役立つリンクをまとめました。みなさんのジャーニーがより良いものとなるようお手伝いします