Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

Mapping OpenConfig System Logging Model Commands to Junos Configuration

Note:

See OpenConfig Data Model Version topic to understand the data models supported version and its Junos OS release for Juniper Networks MX Series and PTX Series.

The following tables show the mapping of OpenConfig logging commands with the relevant configuration in Junos OS:

  • Table 1: Remote Logging Configuration
  • Table 2: Console Logging Configuration
Table 1: Remote Logging Configuration

Command Name

OpenConfig Configuration

Junos Configuration

Host

openconfig-system:system { 
    logging {
        remote-servers {
            remote-server <host> {
                  …
            }
        }
    }
} 
system { 
    syslog {
        host <> {
                ……..
        }
    }
} 

The OpenConfig remote-logging server host leaf maps to the Junos host parameter.

Source-address

openconfig-system:system { 
    logging {
        remote-servers {
            remote-server <> {
                config {
                    source-address <>;
                }
            }
        }
    }
} 
system { 
    syslog {
        host <> {
            source-address <>;
        }
    }
} 

The OpenConfig source-address leaf maps to the Junos source-address parameter.

Remote-port

openconfig-system:system { 
    logging {
        remote-servers {
            remote-server <> {
                config {
                    remote-port <>;
                }
            }
        }
    }
system { 
    syslog {
        host <> {
            port <>;
        }
    }
} 

The OpenConfig remote-port leaf maps to the Junos port parameter.

Selector

openconfig-system:system { 
    logging {
        remote-servers {
            remote-server <> {
                selectors {
                    selector <facility> <severity>;
                }
            }
        }
    }
} 
system { 
    syslog {
        host <> {
            <facility> <severity>;
        }
    }
} 

The OpenConfig facility and severity leaves map to the Junos facility and severity parameters.

Table 2: Console Logging Configuration

Command Name

OpenConfig Configuration

Junos Configuration

Console
openconfig-system:system { 
    logging {
        console {
           ………
        }
    }
} 
system { 
    syslog {
        console {
               …………..
        }
    }
} 
Selector
openconfig-system:system { 
    logging {
        console {
            selectors {
                selector <facility> <severity> ;
            }
        }
    }
system { 
    syslog {
        console {
            <facility> <severity>;
        }
    }
} 

The OpenConfig facility and severity leaves map to the Junos facility and severity parameters.