Displaying configuration with admin commands

The admin show commands are available in the operational mode of the MD-CLI, or they can be executed with /admin from a command context. These commands show the same configuration as the info command but are not subject to command authorization and do not require configuration access.

See the 7450 ESS, 7750 SR, and 7950 XRS MD-CLI Command Reference Guide for information about the admin commands in the MD-CLI.

Example

The following examples show the admin show configuration output of the running configuration in the default configuration region (configure). Other configuration regions can also be specified, including bof, debug, and li.

[/]
A:admin@node-2# admin show configuration
# TiMOS-B-22.2.R1 both/x86_64 Nokia 7750 SR Copyright (c) 2000-2022 Nokia.
# All rights reserved. All use subject to applicable license agreements.
# Built on Sat Feb 26 15:31:00 PST 2022 by builder in /builds/c/222B/R1/panos/main/sros
# Configuration format version 22.2 revision 0

# Generated 2022-03-07T17:08:41.4+00:00 by admin from Console

configure {
    card 1 {
        card-type iom4-e
        mda 1 {
            mda-type me10-10gb-sfp+
        }
        mda 2 {
            mda-type me10-10gb-sfp+
        }
        fp 1 {
        }
    }
    log {
        filter 1001 {
            entry 10 {
                description "Collect only events of major severity or higher"
                action forward
                match {
                    severity {
                        gte major
                    }
                }
            }
        }
        log-id 99 {
            description "Default System Log"
            source {
                main true
            }
            destination {
                memory {
                    max-entries 500
                }
            }
        }
        log-id 100 {
            description "Default Serious Errors Log"
            filter 1001
            source {
                main true
            }
            destination {
                memory {
                    max-entries 500
                }
            }
        }
    }
    port 1/1/1 {
        admin-state enable

---snip---
[/]
A:admin@node-2# admin show configuration full-context
# TiMOS-B-22.2.R1 both/x86_64 Nokia 7750 SR Copyright (c) 2000-2022 Nokia.
# All rights reserved. All use subject to applicable license agreements.
# Built on Sat Feb 26 15:31:00 PST 2022 by builder in /builds/c/222B/R1/panos/main/sros
# Configuration format version 22.2 revision 0

# Generated 2022-03-07T17:08:41.4+00:00 by admin from Console

    /configure { }
    /configure { card 1 }
    /configure { card 1 card-type iom4-e }
    /configure { card 1 mda 1 }
    /configure { card 1 mda 1 mda-type me10-10gb-sfp+ }
    /configure { card 1 mda 2 }
    /configure { card 1 mda 2 mda-type me10-10gb-sfp+ }
    /configure { card 1 fp 1 }
    /configure { log }
    /configure { log filter 1001 }
    /configure { log filter 1001 entry 10 }
    /configure { log filter 1001 entry 10 description "Collect only events of major severity or higher" }
    /configure { log filter 1001 entry 10 action forward }
    /configure { log filter 1001 entry 10 match }
    /configure { log filter 1001 entry 10 match severity }
    /configure { log filter 1001 entry 10 match severity gte major }
    /configure { log log-id 99 }
    /configure { log log-id 99 description "Default System Log" }
    /configure { log log-id 99 source }
    /configure { log log-id 99 source main true }
    /configure { log log-id 99 destination }
    /configure { log log-id 99 destination memory }
    /configure { log log-id 99 destination memory max-entries 500 }
    /configure { log log-id 100 }
    /configure { log log-id 100 description "Default Serious Errors Log" }
    /configure { log log-id 100 filter 1001 }
    /configure { log log-id 100 source }
    /configure { log log-id 100 source main true }
    /configure { log log-id 100 destination }
    /configure { log log-id 100 destination memory }
    /configure { log log-id 100 destination memory max-entries 500 }
    /configure { port 1/1/1 }

---snip---
[/]
A:admin@node-2# admin show configuration json
{
    "nokia-conf:configure": {
        "card": [
            {
                "slot-number": 1,
                "card-type": "iom4-e",
                "mda": [
                    {
                        "mda-slot": 1,
                        "mda-type": "me10-10gb-sfp+"
                    },
                    {
                        "mda-slot": 2,
                        "mda-type": "me10-10gb-sfp+"
                    }
                ],
                "fp": [
                    {
                        "fp-number": 1
                    }
                ]
            }
        ],
        "log": {
            "filter": [
                {
                    "filter-id": 1001,
                    "entry": [
                        {
                            "entry-id": 10,
                            "description": "Collect only events of major severity or higher",
                            "action": "forward",
                            "match": {
                                "severity": {
                                    "gte": "major"
                                }
                            }
                        }
                    ]
                }
            ],
            "log-id": [
                {
                    "id": 99,
                    "description": "Default System Log",
                    "source": {
                        "main": true
                    },
                    "destination": {
                        "memory": {
                            "max-entries": 500
                        }
                    }
                },
                {
                    "id": 100,
                    "description": "Default Serious Errors Log",
                    "filter": 1001,
                    "source": {
                        "main": true
                    },
                    "destination": {
                        "memory": {
                            "max-entries": 500
                        }
                    }
                }
            ]
        },
        "port": [
            {
                "port-id": "1/1/1",
                "admin-state": "enable"
            },

---snip---
[/]
A:admin@node-2# admin show configuration xml
<?xml version="1.0" encoding="UTF-8"?>
<configure xmlns="urn:nokia.com:sros:ns:yang:sr:conf" xmlns:nokia-attr="urn:nokia.com:sros:ns:yang:sr:attributes">
    <card>
        <slot-number>1</slot-number>
        <card-type>imm48-sfp+2-qsfp28</card-type>
        <mda>
            <mda-slot>1</mda-slot>
        </mda>
    </card>
    <card>
        <slot-number>2</slot-number>
        <card-type>imm36-100g-qsfp28</card-type>
        <mda>
            <mda-slot>1</mda-slot>
        </mda>
    </card>
    <log>
        <filter>
            <filter-id>1001</filter-id>
            <entry>
                <entry-id>10</entry-id>
                <description>"Collect only events of major severity or higher"</description>

---snip---