(go to: table of contents, index, list of vms_sys, prev: SET_SECURITY, next: SNDJBCW)
At least on OpenVMS VAX V6.1 this argument must always be specified.
Omitting it or using 'None' results in the SS$_ACCVIO status being returned.
SHOW_INTRUSION - Show Intrusion Information
Format:
status, intruder, breakin_block, context = \
vms_sys.show_intrusion (user_criteria, [flags], [context])
Returns:
Arguments:
This is a tuple that consists of the following items:
See GENMAN 'Programming',
'special OpenVMS datatypes'
for details.
Examples:
$ show intrusion
Intrusion Type Count Expiration Source
NETWORK INTRUDER 6 14:58:26.80 HERE::SYSTEM
NETWORK SUSPECT 1 14:57:50.33 HERE::ZESSIN
$
>>> import vms_ciadef
>>> import vms_sys
>>>
>>> # decode type field in the breakin_block
>>> def decode_cia (bb_type):
... if (bb_type & vms_ciadef.CIA_M_INTRUDER):
... print 'CIA_M_INTRUDER'
... if (bb_type & vms_ciadef.CIA_M_SUSPECT):
... print 'CIA_M_SUSPECT'
... if (bb_type & vms_ciadef.CIA_M_NETWORK):
... print 'CIA_M_NETWORK'
... if (bb_type & vms_ciadef.CIA_M_TERM_USER):
... print 'CIA_M_TERM_USER'
... if (bb_type & vms_ciadef.CIA_M_TERMINAL):
... print 'CIA_M_TERMINAL'
... if (bb_type & vms_ciadef.CIA_M_USERNAME):
... print 'CIA_M_USERNAME'
... # decode_cia (bb_type)
...
>>>
>>> status, intruder, breakin_block, context = \
... vms_sys.show_intrusion ('*',None, 0)
>>> print vms_sys.getmsg (status) [0]
%SYSTEM-S-NORMAL, normal successful completion
>>>
>>> print intruder
HERE::SYSTEM
>>> bb_type, bb_flags, bb_count, bb_time = breakin_block
>>> print bb_type, bb_flags, bb_count, bb_time
5 0 6 44351387068000000L
>>> print vms_sys.asctim (bb_time)
3-JUN-1999 14:58:26.80
>>>
>>> decode_cia (bb_type)
CIA_M_INTRUDER
CIA_M_NETWORK
>>>
>>> status, intruder, breakin_block, context = \
... vms_sys.show_intrusion ('*', None, context)
>>> print vms_sys.getmsg (status) [0]
%SYSTEM-S-NORMAL, normal successful completion
>>>
>>> print intruder
HERE::ZESSIN
>>> bb_type, bb_flags, bb_count, bb_time = breakin_block
>>> print bb_type, bb_flags, bb_count, bb_time
6 0 1 44351386703300000L
>>> print vms_sys.asctim (bb_time)
3-JUN-1999 14:57:50.33
>>>
>>> decode_cia (bb_type)
CIA_M_SUSPECT
CIA_M_NETWORK
>>>
>>>
>>> status, intruder, breakin_block, context = \
... vms_sys.show_intrusion ('*', None, context)
>>> print vms_sys.getmsg (status) [0]
%SYSTEM-S-NOMOREITEMS, no more items to be returned
>>>
>>> bb_type, bb_flags, bb_count, bb_time = breakin_block
>>> print bb_type, bb_flags, bb_count, bb_time
0 0 0 0L
>>>
@@ more SYS$SHOW_INTRUSION examples
(go to: table of contents,
index,
list of vms_sys,
prev: SET_SECURITY,
next: SNDJBCW)