[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference azur::mcc

Title:DECmcc user notes file. Does not replace IPMT.
Notice:Use IPMT for problems. Newsletter location in note 6187
Moderator:TAEC::BEROUD
Created:Mon Aug 21 1989
Last Modified:Wed Jun 04 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:6497
Total number of notes:27359

4089.0. "SNMP Trace Logbits" by NBOFS1::HKLEIN () Mon Nov 16 1992 06:05

    
    I need some  SNMP requests to be traced, using MCC
    but don't known the logbits.
    I would be glad, you explain them here.
    
    Hermann
T.RTitleUserPersonal
Name
DateLines
4089.1YAHEY::BOSEMon Nov 16 1992 09:159
	To get an ASN dump of both the send and receive mesaages, define the
	logical MCC_TCPIP_AM_LOG to a value of 60.

	On VMS 		$ DEFINE MCC_TCPIP_AM_LOG 60

	On Ultrix 	# setenv MCC_TCPIP_AM_LOG 0x60

	Rahul.
4089.2Thank youNBOFS1::HKLEINMon Nov 16 1992 12:181
    
4089.3Is a log file created?SKULLY::COMPTONDorieMon Mar 15 1993 08:116
    If these bits are set where does the information go?  Is a log file
    created in the user's directory with a specific name?  Or is it put
    in one of DECmcc's directories?
     
     			Thanks,
    			Dorie
4089.4Can I create a log file?SKULLY::COMPTONDorieMon Mar 15 1993 10:577
    I have tried to set the log bits on a VMS system and the output goes
    to the screen.  Is there a way to make this go to a file????  I
    actually want to do the tracing on a Ultrix system, but right now I
    have a VMS system to test with.
     
     			Thanks,
    			Dorie
4089.5def/uHADRES::KRAUSEEuropean NewProductEngineer for MCCTue Mar 16 1993 06:033
Do a DEFINE/USER SYS$OUTPUT file.name immediately before starting MCC.

*Robert
4089.6Ultrix?SKULLY::COMPTONDorieTue Mar 16 1993 07:484
    Can someone tell me how I can do this on Ultrix?
     
           Thanks,
    		Dorie
4089.7Ultrix-> use 'script'MCDOUG::dougpre-retinal integrationTue Mar 16 1993 08:4550
>    Can someone tell me how I can do this on Ultrix?
>     
>           Thanks,
>    		Dorie
>

the "script" man page:

								    script(1)



   Name
     script - generate script of your terminal session

   Syntax
     script [-a] [file]

   Description
     The script	command	calls a	forked shell and then makes a typescript of
     everything	printed	on your	terminal.  The typescript is written to	file,
     or	appended to file if the	-a option is given.  If	no file	name is
     given, the	typescript is saved in the file	typescript . Later, it can be
     sent to the line printer with lpr.

     When script is run, it will execute your .cshrc file and will also	put
     you under control of a new	pty. The script	program	ends when the forked
     shell exits.

     This program is useful when using a crt and you want a hard-copy record
     of	the dialog. An example of how script can be used is a student handing
     in	a program that was developed on	a crt when hard-copy terminals are in
     short supply.

   Options

     -a	  Appends output to the	output file.

   Restrictions
     Because the script	command	uses a second pair of pseudo ttys, some	com-
     mands will	fail when run under script.  For example, the whoami command
     may not always return a username.

     Also, the vi editor can be	affected by script.  The vi commands j,	k, h,
     and l that	are used to move the cursor, do	not always function properly.
     If	the screen becomes garbled when	using these commands, use <ctrl> L to
     refresh the screen.

   See Also
     pty(4)
4089.8Not able to get a log on Ultrix?SKULLY::COMPTONDorieWed Mar 17 1993 06:1717
    Thanks, for the help.  I tried to set the log bits on the Ultrix
    system, but get no log.
    
  $export MCC_TCPIP_AM_LOG=0x60
   
    I check to see that it is set.
    I then start DECmcc
     
$mcc_iconic_map &
    
    I select an SNMP entity and then do a show characteristics, but there
    is no trace created.
     
    Any ideas?
     
    Thanks,
    Dorie
4089.9did you kill mcc_tcpip_am?MCDOUG::dougpre-retinal integrationWed Mar 17 1993 11:208
The snmp am process was probably still running *before* you set the log
bits.
You need to kill off any running mcc_tcpip_am processes, set the variable,
*then* run MCC.    Easiest way to make sure all's cool is to mcc_kill ALL
as root, then do your thing.


/doug
4089.10Killing mcc did the trickSKULLY::COMPTONDorieWed Mar 17 1993 17:345
    You were right.  I was able to do the mcc_kill ALL and then set
    the log bits and got my trace.
     
    			Thanks,
    			Dorie
4089.11SNMP Trap Messages?SKULLY::COMPTONDorieThu Mar 25 1993 11:253
    Can you also just log SNMP Trap messages?
     
    		Dorie
4089.12Not currently\MOLAR::PERRYMon Mar 29 1993 17:157
    No, but an event log does sounds like a good idea.
    
    You can, however, find out how many traps you've received along with
    the time and type of the last one.
    
    jim