Operating System - OpenVMS
1752498 Members
5490 Online
108788 Solutions
New Discussion юеВ

Re: Enable and start SNMP via script.

 

Enable and start SNMP via script.

Hi,

I'm wonder if there's a way to enable and start the snmp service without running tcpip$config.

I've tried adding and configuring the service through the tcpip but I just cannot get the service enabled.
11 REPLIES 11
Volker Halle
Honored Contributor

Re: Enable and start SNMP via script.

Andreas,

if TCPIP$CONFIG can't get SNMP enabled, then who else could be expected to do that ?

You might want to check OPERATOR.LOG and/or the SNMP service logfile SYS$SYSDEVICE:[TCPIP$SNMP]TCPIP$SNMP_RUN.LOG for errors when trying to enable the SNMP service.

Volker.

Re: Enable and start SNMP via script.

I might have expressed myself a bit unclear.

Everything works fine while using tcpip$config.

It's when Im using tcpip> set, enable etc. that can't enable it.
Volker Halle
Honored Contributor

Re: Enable and start SNMP via script.

Andreas,

you would have to read TCPIP$CONFIG.COM to find the commands issued during SNMP configuration.

Volker.

Re: Enable and start SNMP via script.

Ok..

I was kinda worried that I'd have to do that. :)

Got a bit reading to do then.
EdgarZamora_1
Respected Contributor

Re: Enable and start SNMP via script.

If you've configured SNMP previously, you should be able to enable/disable it using command line TCPIP.

$ tcpip disable service snmp
%%%%%%%%%%% OPCOM 30-OCT-2006 10:52:35.30 %%%%%%%%%%%
Message from user INTERnet on DRCLC1
INTERnet ACP Deactivate SNMP Server

$
$ tcpip enable service snmp
%%%%%%%%%%% OPCOM 30-OCT-2006 10:52:43.28 %%%%%%%%%%%
Message from user INTERnet on DRCLC1
INTERnet ACP Activate SNMP Server

%%%%%%%%%%% OPCOM 30-OCT-2006 10:52:43.29 %%%%%%%%%%%
Message from user INTERnet on DRCLC1
INTERnet ACP NOLISTEN Process creation success: Service - SNMP

%%%%%%%%%%% OPCOM 30-OCT-2006 10:52:43.29 %%%%%%%%%%%
Message from user AUDIT$SERVER on DRCLC1
Security alarm (SECURITY) on DRCLC1, system id: 2118
Auditable event: Process created ($CREPRC)
Event time: 30-OCT-2006 10:52:43.28
PID: 00000217
Process name: TCPIP$INETACP
Username: INTERnet
Process owner: [SYSTEM]
Image name: DRCLC1$DKB0:[SYS0.SYSCOMMON.][SYSEXE]TCPIP$INETACP.EXE
;1
New PID: 00000223
New process name: TCPIP$SNMP_2
New process owner: [TCPIP$AUX,TCPIP$SNMP]
New image name: SYS$SYSTEM:LOGINOUT.EXE

$

Re: Enable and start SNMP via script.

I managed enabling snmp via a script yesterday.

It involved copying quite a few rows from tcpip$config. Not as straightforward as one might think.
Joseph Huber_1
Honored Contributor

Re: Enable and start SNMP via script.

I'm wondering why You have to take out parts of tcpip$config, isn't there
TCPIP$SNMP_SHUTDOWN.COM, and TCPIP$SNMP_STARTUP.COM in sys$startup: ?
http://www.mpp.mpg.de/~huber

Re: Enable and start SNMP via script.

That's true.

But in order to enable and start snmp there are a few steps that has to be taken.

A user needs to be created, a number of files needs to be extracted. then you need to create the service and enable it.
Joseph Huber_1
Honored Contributor

Re: Enable and start SNMP via script.

>> But in order to enable and start snmp there are a few steps that has to be taken.

This is usually called configuration.
You asked for "enable and start".
http://www.mpp.mpg.de/~huber