下面的show time输出来自https://www.cisco.com/c/en/us/td/docs/wireless/controller/8-3/command-reference/b-cr83/show_命令_R_至_z.html#wp2143390613
因为我在WLC中找不到show clock,所以我想知道是否还有时间只从show time那里得到时间。管道,包括和grep不工作在WLC。
show time上提供的信息太多了。我只需要日期,时间和时区。
> show time
Time............................................. Wed Apr 13 09:29:15 2011
Timezone delta................................... 0:0
Timezone location........................ (GMT +5:30) Colombo, New Delhi, Chennai, Kolkata
NTP Servers
NTP Polling Interval......................... 3600
Index NTP Key Index NTP Server NTP Msg Auth Status
------- ---------------------------------------------------------------
1 0 9.2.60.60 AUTH DISABLED发布于 2019-07-30 06:04:24
尝试以下命令。WLC版本应在v7.5之后
grep include 'Time\.' "show time"
我没有那个装置。
我不知道可以使用什么样的regex选项。
检查以下筛选器示例。
grep include '20[0-9][0-9]' "show time"
grep include 'Time' "show time"
grep include 'Timezone delta' "show time"
grep exclude 'Timezone' "show time"
https://networkengineering.stackexchange.com/questions/60635
复制相似问题