Date: Fri, 29 Mar 2024 16:54:32 +0100 (CET) Message-ID: <2068833841.8328.1711727672566@ubuntu-16gb-nbg1-1> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_8327_985577830.1711727672565" ------=_Part_8327_985577830.1711727672565 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
Most devices use the syslog and SNMP = protocol to manage system logs, events and alerts. As an example, th= is section offers a brief guide for setting up Cisco devices logging to Net= Vizura server. For more detailed information, refer to the Cisco = website.
Router# configure terminal
- =
;Enters global configuration mode.
Router(config)# service timestamps =
type datetime [msec] [localtime=
] [show-timezone] -
Instructs the system to timestamp =
syslog messages.
Router(config)# logging host [transport] [udp] [po=
rt port-nu=
m]
 =
;
- Specifies the syslog server by IP address or host name;=
you can specify multiple servers. Router(config)# logging trap
level
- Specifies =
the kind of messages, by severity level, to be sent to the syslog server. T=
he default is informational and lower. Possible values are emergencies=
: 0, alerts: 1, criti=
cal: 2, error: 3, war=
nings: 4, notifications: 5, inf=
ormational: 6, debugging: 7.
Router(config)# logging facility facility-type
- Specifies the facility level u=
sed by the syslog messages; the default is local7.&nb=
sp;
Router(config)# end
- Returns to privileged EXEC mode.
Router# write memory
- =
Save the settings.Router# show logging
- Display the addresses and levels associated with the cu=
rrent logging setup, and any other logging statistics.Router-Netvizura# configure terminal Enter configuration commands, one per line. End with CTRL/Z. Router-Netvizura(config)# logging 192.168.1.50 Router-Netvizura(config)# service timestamps debug datetime localti= me show-timezone msec Router-Netvizura(config)# logging facility local7 Router-Netvizura(config)# logging trap notifications Router-Netvizura(config)# end
Router-Netvizura# write m= emory Router-Netvizura# show logging
Router# configure terminal -
=
Enters global configuration mode.
R=
outer(config)# snmp-server community =
snmp_community_string <ro or wr>=
;
- Specifies the read-only or write-read SNMP&nb=
sp;community string.
Router(config)# snmp-server host IP_Address versi=
on <1 or=
code>
2c> snmp_community_string
- Spe=
cifies the IP Address of the dev=
ice to which the traps have to be sent along with SNMP version and SNMP com=
munity string.
Router(config)# snmp-server enable traps [notifi=
cation-type] [notification-option] -
Router(config)# end
- Returns to privi=
leged EXEC mode.
Router# write memory
-
Router-Netvizura# configure terminal Enter configuration commands, one per line. End with CTRL/Z. Router-Netvizura(config)# snmp-server community public ro Router-Netvizura(config)# snmp-server host 192.168.1.50 version 2c = public
Router-Netvizura(config)# snmp-server enable tra= ps ospf
Router-Netvizura(config)# end
Router-N= etvizura# write memory