I am facing power fluctuations for devices and catlayst 6500 switches are going to rommon after that. This may due to config-register values getting changed automatically. I want to capture the config-register values upon switch power off and startup. Is it possible to track the power off and boot up events using EEM. If not, is it possible with TCL script. Please help.
Unfortunately, this is not yet possible. I have a bug open on this, CSCef33393, but there is no workaround for the shutdown case.
The closest thing you could do is write an EEM timer cron policy that runs quickly (like every minute), and tracks the config-register value. This will have the best chance of capturing the last confreg value before shutdown.
For startup, you have a workaround. You can either write an EEM timer countdown policy which counts down from say, 30. Once the switch comes up, and registers this policy, it will wait the number of seconds, then execute once. The other option is to use tclsh, and load a Tcl script into the startup config. For example, your script could be called disk0:/confreg_startup.tcl. In the startup config, put:
do tclsh disk0:/confreg_startup.tcl
You will have to manually copy this config into the startup location (e.g. copy tftp start). The "do" command will be executed when the switch boots up.
Question We run asr9001 with XR 6.1.3, and we have a very long delay to
login w/ SSH 1 or 2 to the device compare to IOS device. After
investigation, the there is 1s delay between the client KEXDH_INIT and
the server (XR) KEXDH_REPLY. After debug ssh serv...
Introduction The purpose of this document is to demonstrate the Open
Shortest Path First (OSPF) behavior when the V-bit (Virtual-link bit) is
present in a non-backbone area. The V-bit is signaled in Type-1 LSA only
if the router is the endpoint of one or ...
Hi, I am seeing quite a few issues with patch install and wanted to
share my experience and workaround to this. Login to admin via CLI, then
access root with the “shell” command Issue “df –h” and you’ll probably
see the following directory full or nearly ...