取消
显示结果 
搜索替代 
您的意思是: 
cancel
2992
查看次数
0
有帮助
7
回复

Cisco_N9K_9332C-logging-server指向问题

yangwang38276
Level 1
Level 1

向大神请教个问题,最近公司搭建了两朵云服务器,用户要求后台观看logg,于是搭建了logg服务器,于是配置N9K-logging server 10.*.*.* , 发现服务器并未能正常收到logg日志,请问是N9K配置命令不完整导致吗?正确完整命令是什么?

2 个已接受解答

已接受的解答

是否有配置了logging source interface命令?

例如:

logging source-interface loopback

如果没有的话,可以指定一下源接口。

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Rps-Cheers | If it solves your problem, please mark as answer. Thanks !

在原帖中查看解决方案

no logging logfile :Disables logging to the log file

再开启看看?

switch# configure terminal

switch(config)# logging logfile my_log size xxx

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Rps-Cheers | If it solves your problem, please mark as answer. Thanks !

在原帖中查看解决方案

7 条回复7

huihuxu735715
Spotlight
Spotlight

可以把N9K关于LOG的配置贴出来,看看少了哪些

logging server 10.66.13.97
logging timestamp milliseconds

只添加了这两条命令

是否有配置了logging source interface命令?

例如:

logging source-interface loopback

如果没有的话,可以指定一下源接口。

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Rps-Cheers | If it solves your problem, please mark as answer. Thanks !

目前测试了两种方法,EventLog Analyzer 7尚未正常收到日志。

第一种:

logging server 10.66.13.97
logging source-interface Vlan1
logging timestamp milliseconds

第二种:

logging server 10.66.13.97
logging source-interface mgmt0
logging timestamp milliseconds

源接口选择使用vlan1和mgmt两种方式。

正常来说,这样应该没有问题,请检查nexus到logging server的连通性问题,如果可以的话,建议抓包看看是否有信息发出。

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Rps-Cheers | If it solves your problem, please mark as answer. Thanks !

我查看网上说要配置远程syslog,需要关闭本端logging(no logging logfile),测试之后发现并不行,但是现在本端logging都看不了了,请问知道哪条命令可以打开

no logging logfile :Disables logging to the log file

再开启看看?

switch# configure terminal

switch(config)# logging logfile my_log size xxx

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Rps-Cheers | If it solves your problem, please mark as answer. Thanks !
入门指南

使用上面的搜索栏输入关键字、短语或问题,搜索问题的答案。

我们希望您在这里的旅程尽可能顺利,因此这里有一些链接可以帮助您快速熟悉思科社区:









快捷链接