cancel
Showing results for 
Search instead for 
Did you mean: 

How to start ipv6agt?

SOLVED
Go to solution
chenww
Frequent Advisor

How to start ipv6agt?

I want to start ipv6 subagent on HP-UX. I got "Start: not found." message and cound not snmpwalk ipv6 mib. Anyone knows what is this error and how to fix it? In addition, how to list of subagents got started? Which command?

Thanks



This is my box:
# uname -a
HP-UX it2tst10 B.11.31 U ia64 2962477973 unlimited-user license


When I run:
# /sbin/init.d/SnmpMaster start
/sbin/init.d/SnmpMaster[164]: Start: not found.
/sbin/init.d/SnmpMaster[164]: Start: not found.
SNMP Research SNMP Agent Resident Module Version 15.3.1.0
Copyright 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000
, 2001 SNMP Research, Inc.
8 REPLIES
Dennis Handly
Acclaimed Contributor

Re: How to start ipv6agt?

What's on line 164 of /sbin/init.d/SnmpMaster?

Do you have any "junk" files in /etc/rc.config.d/?
James R. Ferguson
Acclaimed Contributor

Re: How to start ipv6agt?

HI:

Look at your '/etc/rc.config.d/SnmpMaster' file. You appear to have lost the "#" comment mark on the line:

SNMP_MASTER_START=1 # Start the master SNMP agent.

Regards!

...JRF...
chenww
Frequent Advisor

Re: How to start ipv6agt?

Thanks for all your replies.

Line 164 is:

. /etc/rc.config # Get all of them just in case.

Here is the list of files under the etc:
# ls /etc/rc.config.d
HPSwNnm500 dce ipfconf samba
LANG diagnostic kwdbd sasd_conf
Rpcd ems list_mode savecrash
SnmpHpunix emsagtconf livedump sec_mgmt
SnmpMaster envd lp set_date
SnmpMib2 fc_fcd_conf mailservs spc
SnmpNaa gwlmCtl namesvrs sshd
SnmpTrpDst hpbtlanconf namesvrs_dns swconfig
acct hpbtlantunable nddconf syncer
auditing hpgelanconf netconf syslog-ng
cfservd hpietherconf netconf-ipv6 syslogd
cifsclient hpigelanconf netdaemons utmpd
cimserver hpintl100conf nettl veaservice
clean hpsmh nfsconf vlanconf
clean_tmps hpws_apacheconf pci_olar vt
clean_uucp hpws_tomcatconf pppoe xf86
cmcluster hpws_webminconf prngd xfs
cmsnmpagt hpws_webproxyconf ptydaemon ypldapd
crashconf hpws_xmltoolsconf pwgr
cron iexpress_conf ramd


===============
Here is line in /etc/rc.config.d/SnmpMaster


SNMP_MASTER_START=1# Start the master SNMP agent
export SNMP_MASTER_START
James R. Ferguson
Acclaimed Contributor
Solution

Re: How to start ipv6agt?

Hi:

It appears that your "#" is joined without intervening whitespace:

SNMP_MASTER_START=1# Start the master SNMP agent.

That would give the result you see if true.

Regards!

...JRF...
chenww
Frequent Advisor

Re: How to start ipv6agt?

You are so right. After put a space between them, now I just got one line of such error.
There must be another place for such issue.

# /sbin/init.d/SnmpMaster start
/sbin/init.d/SnmpMaster[164]: Start: not found.
SNMP Research SNMP Agent Resident Module Version 15.3.1.0
Copyright 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000
, 2001 SNMP Research, Inc.


Not sure if my subagent is started or not. Do you know how to list all subagents got started?
James R. Ferguson
Acclaimed Contributor

Re: How to start ipv6agt?

Hi (again):

> There must be another place for such issue.

You probably have another copy of the '/etc/rc.config.d/SnmpMaster' file in the '/etc/rc.config.d' directory with the same problem. You can keep backup copies of files here ONLY if you follow the rules documented in '/etc/rc.config' and I'll bet that you haven't!

One way to look for problems is this:

# sh -xc ". /etc/rc.config" 2>&1|more

Regards!

...JRF...
James R. Ferguson
Acclaimed Contributor

Re: How to start ipv6agt?

HI (again):

Actually this works better at finding the errant file(s):

# sh -vx /etc/rc.config 2>&1|more

The actual filename will appear as 'fname=' like:

+ fname=SnmpMaster
+ [ -f /etc/rc.config.d/SnmpMasterY -a SnmpMasterY != core -a SnmpMasterY = SnmpMasterY ]
+ . /etc/rc.config.d/SnmpMasterY
+ Start the master SNMP agent.
+ SNMP_MASTER_START=1#
/etc/rc.config[13]: Start: not found.

...

Regards!

...JRF...
chenww
Frequent Advisor

Re: How to start ipv6agt?

Yes, it works now after changing one more line.

Thank you so much.