Configures the
NETCONF interface.
Product
All (ASR 5500 and
VPC platforms only)
Privilege
Security
Administrator, Administrator
Mode
Exec > Global Configuration > Context Configuration > NETCONF Protocol Configuration
configure > context local > server confd
Entering the above
command sequence results in the following prompt:
[local]host_name(config-confd)#
Syntax
netconf { notifications { events level { critical | error | warning | unusual | info } | snmp } | port port_number }
no netconf { notifications { events | snmp } |port }
no
Restores all the
NETCONF parameters to their default values.
notifications events : Disables sending of StarOS events via NETCONF notifications.
notifications snmp: Disables sending of SNMP alerts/alarms via NETCONF notifications.
port : Resets the port number to 830.
notifications events level { critical | error | warning |
unusual | info }
When enabled, events logged in StarOS will be sent out as NETCONF notifications on the stream named "StarOS." Level specifies
the lowest event severity level that results in a notification. Default: disabled.
-
critical - Level 1:
Reports critical errors contained in log file.
-
error - Level 2:
Reports error notifications contained in log file.
-
warning - Level 3:
Reports warning messages contained in log file.
-
unusual - Level 4:
Reports unexpected errors contained in log file.
-
info - Level 5: Reports
informational messages contained in log file.
Important
|
Any event that is
of category "critical-info" (regardless of severity) will also be converted to
notifications.
|
notifications snmp
When enabled, SNMP alerts and alarms will be sent out as NETCONF notifications on the stream named "StarOS_SNMP". Default:
disabled.
This configuration setting does not affect the sending of SNMP alarms; if SNMP alarms are configured to be sent to an external
server, they will continue to be sent.
The notification will not contain SNMP OIDs but will contain the content used to generate the SNMP alert.
port
port_number
When
server confd is
enabled, the port is set to the NETCONF default port, 830. This keyword sets
the NETCONF interface port number to something other than 830.
port_number must be an integer from 1 through
65535.
Important
|
A change to the
NETCONF interface port value will result in a planned restart of ConfD and
temporary loss of connectivity over the NETCONF and REST (if enabled)
interfaces.
|
Usage Guidelines
Use this command to
configure the NETCONF interface parameters.
For additional
information, see the
NETCONF and
ConfD appendix of the
System
Administration Guide.
Example
The following command will generate NETCONF notifications for StarOS events of severity warning, error, or critical: netconf notifications events warning
The following command disables NETCONF notifications for all StarOS events: no netconf notifications events
The following
command sets the NETCONF interface port number to 500:
netconf port 500
The following
command resets the NETCONF interface port number to 830:
no netconf port