HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
Operating System - OpenVMS
cancel
Showing results for 
Search instead for 
Did you mean: 

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
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
EdgarZamora_1
Respected Contributor

Re: Enable and start SNMP via script.

That's why I said in my original response "if you've configured SNMP previously"...

You really only need to configure once. After that, you can enable and disable at will with the TCPIP ENABLE/DISABLE SNMP command. And if you need to reconfigure, you can still use one line to do it. Check out the help on TCPIP SET CONFIG SNMP command. All the switches you need to reconfigure are there.

Re: Enable and start SNMP via script.

That's true. i guess I just didn't read your post thorough enough.

Well as I said I've now got it working. I'm now able to install/configure/enable and start snmp.

Although a few parameters are still static but that's another issue. :)