QTECH
Software Configuration Manual
18-220
18.2.7
Syslog logging host outputting configuration
Use following command to configure host ip address, and enable host logging, and configure filter
regulation of Syslog server.
(1) Server address configuration command is as following :
logging
ip-address
no logging
ip-address
At most 15 logging hosts are allowed to configure.
For example :
! Configure server address to be 1.1.1.1 :
QTECH(config)#logging 1.1.1.1
(2) Logging buffered configuration command is as following :
logging host
{ all |
ip-address
}
no logging host
{ all |
ip-address
}
For example : :
! Enable logging host 1.1.1.1
QTECH(config)#logging host 1.1.1.1
(3) Filtration rules configuration command is as following :
logging host
{ all |
ip-address
} { level | none | level-list {
level [ to level
] } &<1-8> } [ module {
xxx
| …
} * ]
no logging host
{ all |
ip-address
} filter
xxx : means the name of the module. … means other modules are omitted.
For example :
! Configure filter regulations of logging host 1.1.1.1 to allow module vlan of level 7 to output information
QTECH(config)#logging host 1.1.1.1 none
QTECH(config)#logging host 1.1.1.1 level-list 7 module vlan
(4) Logging facility configuration command is as following :
logging facility
{
xxx | …
}
no logging facility
xxx : The name of logging facilities.… means other logging facilities are omitted.
For example :
! Configure logging facility to be localuse7
QTECH(config)#logging facility localuse7
(5) Fixed source address configuration command is as following :
logging source
ip-address
no logging source
ip-address must be an interface address of a device.
For example :
! Configure logging host outputting to use fixed source address 1.1.1.2 :
QTECH(config)#logging source 1.1.1.2
18.2.8
Syslog SNMP Agent outputting configuration
Use logging snmp-agent command to enable SNMP Agent logging and configure filter configuration. Use
no logging snmp-agent command to disable SNMP Agent logging and restore to default filter configuration.