From: Bob Sinclair (bob@bobsinclair.net)
Date: Mon Feb 27 2006 - 14:09:40 GMT-3
Yev,
Correction to previous: The value returned is in HUNDRETHS of a second, per
rfc 1155
Bob Sinclair
CCIE #10427, CCSI 30427
www.netmasterclass.net
----- Original Message -----
From: Bob Sinclair
To: Evgeniy Voloshin ; Alex
Cc: ccielab@groupstudy.com
Sent: Monday, February 27, 2006 11:52 AM
Subject: Re: timestamps startup config
Yev,
Not sure if you want to go down this path, but 12.3T allows you to run SNMP
get commands within TCL. The output is in seconds of uptime.
R1(tcl)#snmp_getone private 1.3.6.1.4.1.9.9.43.1.1.1.0
{<obj oid='ccmHistory.1.0' val='5378794'/>}
R1(tcl)#
So this config was changed after 5378794 seconds of uptime. Which could be
subtracted from the current uptime, converted to seconds, to determine how
long ago it was changed :}
HTH,
Bob Sinclair
CCIE #10427, CCSI 30427
www.netmasterclass.net
----- Original Message -----
From: Evgeniy Voloshin
To: Alex
Cc: ccielab@groupstudy.com
Sent: Monday, February 27, 2006 10:08 AM
Subject: Re: timestamps startup config
Alex,
do you know some "show" commands to see this output via vty telnet
session on cisco router?
---
Yev.
Alex wrote:
> How about getting this info via SNMP? oid 1.3.6.1.4.1.9.9.43.1.1.1 ,
> "ccmHistoryRunningLastChanged",
> ftp://ftp.cisco.com/pub/mibs/oid/CISCO-CONFIG-MAN-MIB.oid .
> Just try it and see if it works for You.
> HTH
> Cheers
> Alex
>
> ----- Original Message -----
> From: <jnkmail4eva@yahoo.com>
> To: <ccielab@groupstudy.com>
> Sent: Monday, February 27, 2006 2:20 AM
> Subject: Re: RE: timestamps startup config
>
>
>> I tried that but I didn't get the same response as you suggested.
>> I have a 2610 with the following IOS and config
>> Cisco Internetwork Operating System Software
>> IOS (tm) C2600 Software (C2600-I-M), Version 12.3(17a)
>>
>> test# wri mem
>> Building configuration...
>> [OK]
>> test#sh run
>> Building configuration...
>>
>> Current configuration : 977 bytes
>> !
>> version 12.3
>> service timestamps debug datetime msec localtime show-timezone
>> service timestamps log datetime localtime show-timezone
>> no service password-encryption
>> !
>> hostname test
>> !
>> boot-start-marker
>> boot system flash c2600-i-mz.123-17a.bin
>> boot system flash c2600-i-mz.122-31.bin
>> boot-end-marker
>> !
>> !
>> no aaa new-model
>> ip subnet-zero
>> ip cef
>> !
>> !
>> !
>> !
>> !
>> !
>> !
>> interface Ethernet0/0
>> no ip address
>> half-duplex
>> !
>> interface Serial0/0
>> no ip address
>> clock rate 64000
>> !
>> interface Serial0/1
>> no ip address
>> shutdown
>> !
>> ip http server
>> ip classless
>> !
>> !
>> alias exec sir show ip route
>> alias exec sib show ip interface brief
>> alias exec sr show run
>> alias exec sion sh ip ospf nei
>> alias exec sien sh ip eigrp nei
>> alias exec srb sh run | begin router bgp
>> alias exec sre sh run | begin router eigrp
>> alias exec srr sh run | begin router rip
>> alias exec sro sh run | begin router ospf
>> alias exec sibgs sh ip bgp su
>> alias exec sibg sh ip bgp
>> !
>> line con 0
>> line aux 0
>> line vty 0 4
>> login local
>> !
>> !
>> end
>>
>>
This archive was generated by hypermail 2.1.4 : Wed Mar 01 2006 - 11:28:18 GMT-3