333 lines
12 KiB
Plaintext
333 lines
12 KiB
Plaintext
-- *****************************************************************
|
||
-- MY-TIME-MIB.mib: My Time MIB file
|
||
--
|
||
-- $Copyright$
|
||
--
|
||
-- *****************************************************************
|
||
--
|
||
|
||
MY-TIME-MIB DEFINITIONS ::= BEGIN
|
||
|
||
IMPORTS
|
||
MODULE-IDENTITY,
|
||
OBJECT-TYPE,
|
||
NOTIFICATION-TYPE,
|
||
Integer32,
|
||
Counter32
|
||
FROM SNMPv2-SMI
|
||
TruthValue,
|
||
DisplayString,
|
||
RowStatus,
|
||
DateAndTime
|
||
FROM SNMPv2-TC
|
||
MODULE-COMPLIANCE,
|
||
OBJECT-GROUP,
|
||
NOTIFICATION-GROUP
|
||
FROM SNMPv2-CONF
|
||
myMgmt
|
||
FROM MY-SMI;
|
||
|
||
myTimeMIB MODULE-IDENTITY
|
||
LAST-UPDATED "200203200000Z"
|
||
ORGANIZATION "$Company$"
|
||
CONTACT-INFO
|
||
"
|
||
Tel: $Telephone$
|
||
|
||
E-mail: $E-mail$"
|
||
DESCRIPTION
|
||
"This module defines my time mibs."
|
||
REVISION "200203200000Z"
|
||
DESCRIPTION
|
||
"Initial version of this MIB module."
|
||
::= { myMgmt 15}
|
||
|
||
myTimeMIBObjects OBJECT IDENTIFIER ::= { myTimeMIB 1 }
|
||
|
||
myClockDateAndTime OBJECT-TYPE
|
||
SYNTAX DateAndTime
|
||
MAX-ACCESS read-write
|
||
STATUS current
|
||
DESCRIPTION
|
||
"The current local date and time for the system.
|
||
|
||
Setting this object is equivalent to setting an automated
|
||
clock and calendar. The value of the object will track the
|
||
date and time from the value set. Note that due to hardware
|
||
limitations some systems may not be able to preserve such
|
||
meaning across reboots of the system, as indicated by
|
||
csyClockLostOnReboot.
|
||
|
||
A constant value of all zeros and length 8 indicates the
|
||
system is not aware of the present date and time."
|
||
::= { myTimeMIBObjects 1 }
|
||
|
||
myClockWeek OBJECT-TYPE
|
||
SYNTAX INTEGER(1..7)
|
||
MAX-ACCESS read-only
|
||
STATUS current
|
||
DESCRIPTION
|
||
"This value indicate that which day currunt time of system indicate. e.g.
|
||
1 indicate Monday<61><79>7 indicate Sunday"
|
||
::= { myTimeMIBObjects 2 }
|
||
|
||
|
||
myTimeRangeMIBObjects OBJECT IDENTIFIER ::= { myTimeMIB 2}
|
||
|
||
--
|
||
-- Time/scheduling range filter table
|
||
--
|
||
|
||
myTimeRangeTable OBJECT-TYPE
|
||
SYNTAX SEQUENCE OF MyTimeRangeEntry
|
||
MAX-ACCESS not-accessible
|
||
STATUS current
|
||
DESCRIPTION
|
||
"Defines a table of filters which can be used to effectively
|
||
enable or disable policies based on a valid time range."
|
||
::= { myTimeRangeMIBObjects 1}
|
||
|
||
myTimeRangeEntry OBJECT-TYPE
|
||
SYNTAX MyTimeRangeEntry
|
||
MAX-ACCESS not-accessible
|
||
STATUS current
|
||
DESCRIPTION
|
||
"A row describing a given time range for which a policy may be
|
||
filtered on to place the rule active or inactive."
|
||
INDEX { myTimeRangeName }
|
||
::= { myTimeRangeTable 1 }
|
||
|
||
MyTimeRangeEntry ::= SEQUENCE {
|
||
myTimeRangeName DisplayString,
|
||
myTimeRangePeriodMy DateAndTime,
|
||
myTimeRangePeriodEnd DateAndTime,
|
||
myTimeRangeRowStatus RowStatus
|
||
}
|
||
|
||
myTimeRangeName OBJECT-TYPE
|
||
SYNTAX DisplayString(SIZE (1..32))
|
||
MAX-ACCESS not-accessible
|
||
STATUS current
|
||
DESCRIPTION
|
||
"An administratively assigned name for this time range.
|
||
This value is unique for every entry
|
||
When this string be used as an index,Value of a sub-identifier equal
|
||
ASCII value of corresponding character(first sub-identifier corresponds
|
||
first character of string). The number of sub-identifiers of this string
|
||
must be 32,If length of string is less than 32 the sub-identifier(0x0)
|
||
will be filled in tail."
|
||
::= { myTimeRangeEntry 1 }
|
||
|
||
|
||
myTimeRangePeriodMy OBJECT-TYPE
|
||
SYNTAX DateAndTime
|
||
MAX-ACCESS read-write
|
||
STATUS current
|
||
DESCRIPTION
|
||
"The mying time period for this filter. In addition to a
|
||
normal DateAndTime string, this object may be set to the
|
||
OCTET STRING value THISANDPRIOR which indicates that the
|
||
filter is valid from any time before now up until (at least)
|
||
now."
|
||
DEFVAL { '0000010100000000'H }
|
||
::= { myTimeRangeEntry 2 }
|
||
|
||
myTimeRangePeriodEnd OBJECT-TYPE
|
||
SYNTAX DateAndTime
|
||
MAX-ACCESS read-write
|
||
STATUS current
|
||
DESCRIPTION
|
||
"The ending time period for this filter. In addition to a
|
||
normal DateAndTime string, this object may be set to the
|
||
OCTET STRING value THISANDFUTURE which indicates that the
|
||
filter is valid without an ending date and/or time."
|
||
DEFVAL { '9999123123595909'H }
|
||
::= { myTimeRangeEntry 3 }
|
||
|
||
myTimeRangeRowStatus OBJECT-TYPE
|
||
SYNTAX RowStatus
|
||
MAX-ACCESS read-create
|
||
STATUS current
|
||
DESCRIPTION
|
||
"This object indicates the conceptual status of this row."
|
||
::= { myTimeRangeEntry 4 }
|
||
|
||
|
||
--
|
||
-- Time range periodic filter table
|
||
--
|
||
|
||
myTimeRangePeriodicTable OBJECT-TYPE
|
||
SYNTAX SEQUENCE OF MyTimeRangePeriodicEntry
|
||
MAX-ACCESS not-accessible
|
||
STATUS current
|
||
DESCRIPTION
|
||
"Defines a table of periodic time filters in the time-range."
|
||
::= { myTimeRangeMIBObjects 2 }
|
||
|
||
myTimeRangePeriodicEntry OBJECT-TYPE
|
||
SYNTAX MyTimeRangePeriodicEntry
|
||
MAX-ACCESS not-accessible
|
||
STATUS current
|
||
DESCRIPTION
|
||
"A row describing a given periodic time limit for the time-range."
|
||
INDEX { myTimeRangePeriodicTRName }
|
||
::= { myTimeRangePeriodicTable 1 }
|
||
|
||
MyTimeRangePeriodicEntry ::= SEQUENCE {
|
||
myTimeRangePeriodicTRName DisplayString,
|
||
myTimeRangePeriodicIndex Integer32,
|
||
myTimeRangePeriodicType INTEGER,
|
||
myTimeRangePeriodicMyWeekDay BITS,
|
||
myTimeRangePeriodicEndWeekDay INTEGER,
|
||
myTimeRangePeriodicTimeOfDayMy DateAndTime,
|
||
myTimeRangePeriodicTimeOfDayEnd DateAndTime,
|
||
myTimeRangePeriodicRowStatus RowStatus
|
||
}
|
||
|
||
myTimeRangePeriodicTRName OBJECT-TYPE
|
||
SYNTAX DisplayString (SIZE(1..32))
|
||
MAX-ACCESS not-accessible
|
||
STATUS current
|
||
DESCRIPTION
|
||
"Time-range name which this periodic time filter belong to.
|
||
This value is unique for every entry
|
||
When this string be used as an index,Value of a sub-identifier equal
|
||
ASCII value of corresponding character(first sub-identifier corresponds
|
||
first character of string). The number of sub-identifiers of this string
|
||
must be 32,If length of string is less than 32 the sub-identifier(0x0)
|
||
will be filled in tail."
|
||
::= { myTimeRangePeriodicEntry 1 }
|
||
|
||
myTimeRangePeriodicIndex OBJECT-TYPE
|
||
SYNTAX Integer32(1..65535)
|
||
MAX-ACCESS read-only
|
||
STATUS current
|
||
DESCRIPTION
|
||
"Object which specifies a unique entry in the myTimeRangePeriodicTable.
|
||
A management station wishing to initiate a entry operation should use a
|
||
pseudo-random value for this object when creating
|
||
or modifying an instance of a entry.
|
||
|
||
The RowStatus semantics of the entry object will prevent access conflicts."
|
||
::= { myTimeRangePeriodicEntry 2 }
|
||
|
||
myTimeRangePeriodicType OBJECT-TYPE
|
||
SYNTAX INTEGER{
|
||
fixed-segment(1), -- <20>̶<EFBFBD>ʱ<EFBFBD><CAB1><EFBFBD>Σ<EFBFBD><CEA3><EFBFBD><EFBFBD><EFBFBD><EEB6A8><EFBFBD><EFBFBD>ʱ<EFBFBD><CAB1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>һ<EFBFBD><D2BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ڵ<EFBFBD>һ
|
||
-- <20><><EFBFBD>̶<EFBFBD>ʱ<EFBFBD><CAB1><EFBFBD><EFBFBD>
|
||
unfixed-segment(2) -- <20>ǹ̶<C7B9>ʱ<EFBFBD><CAB1><EFBFBD>Σ<EFBFBD><CEA3><EFBFBD><EFBFBD><EFBFBD><EEB6A8><EFBFBD><EFBFBD>ʱ<EFBFBD><CAB1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>һ<EFBFBD><D2BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ڵ<EFBFBD>ijһ<C4B3><D2BB>ʱ<EFBFBD>䣬
|
||
-- <20><><EFBFBD>ܿ<EFBFBD>Խһ<D4BD><D2BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||
}
|
||
MAX-ACCESS read-write
|
||
STATUS current
|
||
DESCRIPTION
|
||
"<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʱ<EFBFBD><CAB1><EFBFBD>ζ<EFBFBD><CEB6><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
||
::= { myTimeRangePeriodicEntry 3 }
|
||
|
||
myTimeRangePeriodicMyWeekDay OBJECT-TYPE
|
||
SYNTAX OCTET STRING (SIZE(1))
|
||
MAX-ACCESS read-write
|
||
STATUS current
|
||
DESCRIPTION
|
||
"<22><><EFBFBD><EFBFBD><EFBFBD>ֶα<D6B6>ʾʱ<CABE><CAB1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ڵ<EFBFBD><DAB5><EFBFBD>ʼ<EFBFBD>գ<EFBFBD><D5A3><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ֽ<EFBFBD><D6BD>е<EFBFBD>ÿһλ
|
||
<20><>ʾ<EFBFBD><CABE><EFBFBD><EFBFBD><EFBFBD>е<EFBFBD>ijһ<C4B3>졣<EFBFBD><ECA1A3><EFBFBD><EFBFBD>λ(<28><><EFBFBD>ұߵ<D2B1>һλ)<29><><EFBFBD><EFBFBD>monday<61><79><EFBFBD><EFBFBD>
|
||
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ΪTuesday, wednesday,thursday, friday,saturday,
|
||
sunday<61><79><EFBFBD><EFBFBD><EFBFBD><EFBFBD>λ(<28><><EFBFBD><EFBFBD><EFBFBD>ߵ<EFBFBD>һλ)ʼ<><CABC>Ϊ0<CEAA><30>ÿλΪ1<CEAA><31>ʾ<EFBFBD><CABE><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>һ<EFBFBD><D2BB>"
|
||
DEFVAL {'fe'H}
|
||
::= { myTimeRangePeriodicEntry 4 }
|
||
|
||
myTimeRangePeriodicEndWeekDay OBJECT-TYPE
|
||
SYNTAX INTEGER{
|
||
monday(1), tuesday(2), wednesday(3),
|
||
thursday(4), friday(5), saturday(6),
|
||
sunday(7)
|
||
}
|
||
MAX-ACCESS read-write
|
||
STATUS current
|
||
DESCRIPTION
|
||
"ʱ<><CAB1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ڵĽ<DAB5><C4BD><EFBFBD><EFBFBD><EFBFBD>,<2C><>myTimeRangePeriodicType
|
||
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϊ'fixed-segment'ʱ<><CAB1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ֶ<EFBFBD>û<EFBFBD><C3BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
||
::= { myTimeRangePeriodicEntry 5 }
|
||
|
||
myTimeRangePeriodicTimeOfDayMy OBJECT-TYPE
|
||
SYNTAX DateAndTime
|
||
MAX-ACCESS read-write
|
||
STATUS current
|
||
DESCRIPTION
|
||
"ʱ<><CAB1><EFBFBD>εĿ<CEB5>ʼʱ<CABC><CAB1>(time)<29><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>'DateAndTime'<27><><EFBFBD><EFBFBD>
|
||
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͣ<EFBFBD>ʵ<EFBFBD><CAB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ֻ<EFBFBD><D6BB>ʱ<EFBFBD><CAB1>(time)<29><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>壬
|
||
<20><><EFBFBD><EFBFBD>(date)<29><><EFBFBD>ֺ<EFBFBD><D6BA><EFBFBD>."
|
||
::= { myTimeRangePeriodicEntry 6 }
|
||
|
||
myTimeRangePeriodicTimeOfDayEnd OBJECT-TYPE
|
||
SYNTAX DateAndTime
|
||
MAX-ACCESS read-write
|
||
STATUS current
|
||
DESCRIPTION
|
||
"ʱ<><CAB1><EFBFBD>εĽ<CEB5><C4BD><EFBFBD>ʱ<EFBFBD><CAB1>(time)<29><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>'DateAndTime'
|
||
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͣ<EFBFBD>ʵ<EFBFBD><CAB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ֻ<EFBFBD><D6BB>ʱ<EFBFBD><CAB1>(time)
|
||
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>壬<EFBFBD><E5A3AC><EFBFBD><EFBFBD>(date)<29><><EFBFBD>ֺ<EFBFBD><D6BA><EFBFBD>."
|
||
::= { myTimeRangePeriodicEntry 7 }
|
||
|
||
myTimeRangePeriodicRowStatus OBJECT-TYPE
|
||
SYNTAX RowStatus
|
||
MAX-ACCESS read-create
|
||
STATUS current
|
||
DESCRIPTION
|
||
"This object indicates the conceptual status of this row"
|
||
::= { myTimeRangePeriodicEntry 8 }
|
||
|
||
myTimeMIBConformance OBJECT IDENTIFIER ::= { myTimeMIB 3 }
|
||
myTimeMIBCompliances OBJECT IDENTIFIER ::= { myTimeMIBConformance 1 }
|
||
myTimeMIBGroups OBJECT IDENTIFIER ::= { myTimeMIBConformance 2 }
|
||
|
||
|
||
-- compliance statements
|
||
|
||
myTimeMIBCompliance MODULE-COMPLIANCE
|
||
STATUS current
|
||
DESCRIPTION
|
||
"The compliance statement for entities which implement
|
||
the My Time MIB"
|
||
MODULE -- this module
|
||
GROUP myTimeMIBGroup
|
||
DESCRIPTION
|
||
"This group is mandatory for device which support RTC."
|
||
GROUP myTimeRangeMIBGroup
|
||
DESCRIPTION
|
||
"This group is mandatory for device which support RTC or NTP/SNTP."
|
||
|
||
::= { myTimeMIBCompliances 1 }
|
||
|
||
-- units of conformance
|
||
|
||
myTimeMIBGroup OBJECT-GROUP
|
||
OBJECTS {
|
||
myClockDateAndTime,
|
||
myClockWeek
|
||
}
|
||
STATUS current
|
||
DESCRIPTION
|
||
"A collection of objects providing time information."
|
||
::= { myTimeMIBGroups 1 }
|
||
|
||
myTimeRangeMIBGroup OBJECT-GROUP
|
||
OBJECTS {
|
||
myTimeRangePeriodicTRName ,
|
||
myTimeRangePeriodicIndex ,
|
||
myTimeRangePeriodicType ,
|
||
myTimeRangePeriodicMyWeekDay ,
|
||
myTimeRangePeriodicEndWeekDay ,
|
||
myTimeRangePeriodicTimeOfDayMy ,
|
||
myTimeRangePeriodicTimeOfDayEnd ,
|
||
myTimeRangePeriodicRowStatus
|
||
}
|
||
STATUS current
|
||
DESCRIPTION
|
||
"A collection of objects providing time-range function."
|
||
::= { myTimeMIBGroups 2 }
|
||
|
||
END
|