MediaWiki API result

This is the HTML representation of the JSON format. HTML is good for debugging, but is unsuitable for application use.

Specify the format parameter to change the output format. To see the non-HTML representation of the JSON format, set format=json.

See the complete documentation, or the API help for more information.

{
    "batchcomplete": "",
    "continue": {
        "gapcontinue": "Reset_a_Cisco_Router_to_Factory_Default_Settings",
        "continue": "gapcontinue||"
    },
    "warnings": {
        "main": {
            "*": "Subscribe to the mediawiki-api-announce mailing list at <https://lists.wikimedia.org/postorius/lists/mediawiki-api-announce.lists.wikimedia.org/> for notice of API deprecations and breaking changes."
        },
        "revisions": {
            "*": "Because \"rvslots\" was not specified, a legacy format has been used for the output. This format is deprecated, and in the future the new format will always be used."
        }
    },
    "query": {
        "pages": {
            "930": {
                "pageid": 930,
                "ns": 0,
                "title": "Recover Cisco Catalyst 2960 Switch Password",
                "revisions": [
                    {
                        "contentformat": "text/x-wiki",
                        "contentmodel": "wikitext",
                        "*": "== Recover Cisco Catalyst 2960 Switch Password ==\n\n1.  Connect to the console port of the switch a PC with terminal emulating software like Hyperterminal or TeraTerm.  The terminal settings are as follows:\n\n \u25e6Bits per second (baud): 9600 \n \u25e6Data bits: 8 \n \u25e6Parity: None \n \u25e6Stop bits: 1 \n \u25e6Flow Control: Xon/Xoff \n\n2. Power down the switch by unplugging the power cord.\n\n3. Hold down the mode button on the front left side of the switch and plug in the power cord.  Do not release the mode button until you see the '''SYST''' LED blink amber and then turn solid green.  When you release the mode button the '''SYST''' LED should blink green.  The switch should now be in ''switch:'' mode.\n\n4. Enter the '''flash_init''' command at the ''switch:'' prompt.\n\n switch: flash_init\n Initializing Flash...\n\n5. Enter the '''load_helper''' command\n\n switch: load_helper\n switch:\n\n6. Enter the '''dir flash:''' command\n\n switch: dir flash:\n Directory of flash:/\n\nOutput omitted.\n\n 4    -rwx  1131      <date>               config.text\n\nThis is the configuration file.\n\n 5    -rwx  109       <date>               info\n 6    -rwx  389       <date>               env_vars\n 7    drwx  640       <date>               html\n 18   -rwx  109       <date>               info.ver\n 403968 bytes available (3208704 bytes used)\n switch:\n\n7. Rename the configuration file by entering '''rename flash:config.text flash:config.old'''.  The config.text file is the file that contains the password definition.\n\n switch: rename flash:config.text flash:config.old\n switch:\n\n8. Reboot the switch by entering the '''boot''' command.\n\n switch: boot\n Loading \"flash:...\n\n9. When the switch is done reloading the ''---System Configuration Dialog---''' will appear in the output.  Answer '''no''' or press '''ctrl-c''' to leave the system configuration dialog.\n\n --- System Configuration Dialog ---\n At any point you may enter a question mark '?' for help.\n Use ctrl-c to abort configuration dialog at any prompt.\n Default settings are in square brackets '[]'.\n Continue with configuration dialog? [yes/no]: n \n\n Press RETURN to get started.\n\n Switch>\n\n10. Enter '''enable''' to go into enable mode on the switch.\n\n Switch>enable\n Switch#\n\n11. Rename the configuration file back to its orginal name by entering '''rename flash:config.old flash:config.text''' and press enter when the message appears ''Destination filename [config.text]''.\n\n Switch#rename flash:config.old flash:config.text\n Destination filename [config.text] \n\n12. Copy the configuration file into memory by entering '''copy flash:config.text system:running-config'''.  Press enter to verify.\n\n Switch#copy flash:config.text system:running-config\n Destination filename [running-config]? \n\nNow the old configuration is loaded into RAM.\n\n13. At this point you can reassign all of the passwords you don't know by entering global configuration mode and entering the following commands:\n\n Sw1# conf t\n Sw1(config)#enable secret <new_secret_password>\n Sw1(config)#enable password <new_enable_password>\n Sw1(config)#line vty 0 15\n Sw1(config-line)#password <new_vty_password>\n Sw1(config-line)#login\n Sw1(config-line)#line con 0\n Sw1(config-line)#password <new_console_password>\n\n14. Save the running configuration to the startup configuration by entering either '''write memory''' or '''copy running-config startup-config'''.\n\n Sw1#write memory\n Building configuration...\n [OK]\n Sw1#\n\nYou have reset your passwords without losing your configuration.\n\n\n*[[Password Recovery and Device Reset Procedures]]"
                    }
                ]
            },
            "1646": {
                "pageid": 1646,
                "ns": 0,
                "title": "Recover Cisco Catalyst 3650 Switch Password",
                "revisions": [
                    {
                        "contentformat": "text/x-wiki",
                        "contentmodel": "wikitext",
                        "*": "== Recover Cisco Catalyst 3650 Switch Password ==\n\n1.  Connect to the console port of the switch a PC with terminal emulating software like TeraTerm or PuTTY.  The terminal settings are as follows:\n\n \u25e6Bits per second (baud): 9600 \n \u25e6Data bits: 8 \n \u25e6Parity: None \n \u25e6Stop bits: 1 \n \u25e6Flow Control: Xon/Xoff \n\n2. Power down the switch by unplugging the power cord.\n\n3. Hold down the mode button on the front left side of the switch and plug in the power cord.  Do not release the mode button until you see the '''SYST''' and '''ACTV''' LEDs turn amber. BEFORE that happens the '''SYST''' LED will go from a slow blink to a fast blink. It will take more than 15 seconds for this to happen. AFTER the '''SYST''' and '''ACTV''' LEDs turn amber release the mode button and '''SYST''' LED should start to blink again.  The switch should now be in ''switch:'' mode.\n\n4. Enter the '''flash_init''' command at the ''switch:'' prompt.\n\n switch: flash_init\n Initializing Flash...\n\n6. Tell the switch to ignore the startup configuration\n\n switch: SWITCH_IGNORE_STARTUP_CFG=1\n \n switch:\n\n7. Boot the switch from flash\n\n switch: boot\n \n switch:\n\n8. When the switch is done reloading the ''Would you like to enter the initial configuration dialog?[yes/no]:''' question will appear in the output.  Answer '''no''' or press '''ctrl-c''' to leave the system configuration dialog.\n\n --- System Configuration Dialog ---\n At any point you may enter a question mark '?' for help.\n Use ctrl-c to abort configuration dialog at any prompt.\n Default settings are in square brackets '[]'.\n Continue with configuration dialog? [yes/no]: n \n\n Press RETURN to get started.\n\n Switch>\n\n9. Enter '''enable''' to go into enable mode on the switch.\n\n Switch>enable\n Switch#\n\n10. Copy the startup configuration to running configuration by typing '''copy startup-config running-config''' and press enter when the message appears ''Destination filename [running-config]''.\n\n Switch#copy startup-config running-config\n Destination filename [running-config] \n\nNow the old configuration is loaded into RAM.\n\n11. At this point you can reassign all of the passwords you don't know by entering global configuration mode and entering the following commands:\n\n Sw1# conf t\n Sw1(config)#enable secret <new_secret_password>\n Sw1(config)#enable password <new_enable_password>\n Sw1(config)#line vty 0 15\n Sw1(config-line)#password <new_vty_password>\n Sw1(config-line)#login\n Sw1(config-line)#line con 0\n Sw1(config-line)#password <new_console_password>\n\n12. Disable manual boot on the device with the '''no boot manual''' command.\n Sw1(config)#no boot manual\n\n13. Disable ignoring the startup-configuration file with the '''no system ignore startupconfig switch all''' command.\n Sw1(config)#no system ignore startupconfig switch all\n\n14. Save the running configuration to the startup configuration by entering either '''write memory''' or '''copy running-config startup-config'''.\n\n Sw1#write memory\n Building configuration...\n [OK]\n Sw1#\n\nYou have reset your passwords without losing your configuration.\n\n\n*[[Password Recovery and Device Reset Procedures]]"
                    }
                ]
            }
        }
    }
}