SSH : Restarting too quickly, changing state to maintenance


 
Thread Tools Search this Thread
Operating Systems Solaris SSH : Restarting too quickly, changing state to maintenance
# 1  
Old 08-13-2013
SSH : Restarting too quickly, changing state to maintenance

Hi,

I'm new to Solaris. I have an issue with ssh service. When I restart the service it exits with an exit status of 0

Code:
[root@Server1 /var/adm]$svcadm restart svc:/network/ssh:default
[root@Server1 /var/adm]$echo $?
0
[root@Server1 /var/adm]$

However, the service goes into maintenance mode after restart. I'm able to connect even though the service is in maintenance mode.

Code:
[root@Server1 /var/adm]$svcadm restart svc:/network/ssh:default
[root@Server1 /var/adm]$echo $?
0
[root@Server1 /var/adm]$

and logs indicate the following

Code:
[ Aug 13 23:49:07 Leaving maintenance because disable requested. ]
[ Aug 13 23:49:07 Disabled. ]
[ Aug 13 23:49:25 Enabled. ]
[ Aug 13 23:49:25 Executing start method ("/lib/svc/method/sshd start") ]
[ Aug 13 23:49:25 Method "start" exited with status 0 ]
[ Aug 13 23:49:25 Stopping because all processes in service exited. ]
[ Aug 13 23:49:25 Executing stop method (:kill) ]
[ Aug 13 23:49:25 Executing start method ("/lib/svc/method/sshd start") ]
[ Aug 13 23:49:25 Method "start" exited with status 0 ]
[ Aug 13 23:49:25 Stopping because all processes in service exited. ]
[ Aug 13 23:49:25 Executing stop method (:kill) ]
[ Aug 13 23:49:25 Executing start method ("/lib/svc/method/sshd start") ]
[ Aug 13 23:49:25 Method "start" exited with status 0 ]
[ Aug 13 23:49:25 Stopping because all processes in service exited. ]
[ Aug 13 23:49:25 Executing stop method (:kill) ]
[ Aug 13 23:49:25 Executing start method ("/lib/svc/method/sshd start") ]
[ Aug 13 23:49:25 Method "start" exited with status 0 ]
[ Aug 13 23:49:25 Stopping because all processes in service exited. ]
[ Aug 13 23:49:25 Executing stop method (:kill) ]
[ Aug 13 23:49:25 Restarting too quickly, changing state to maintenance ]

I'm not sure why the service is in maintenance mode.

Thanks

Moderator's Comments:
Mod Comment please use CODE tags for code snipplets, not QUOTE tags!

Last edited by DukeNuke2; 08-13-2013 at 11:07 AM..
# 2  
Old 08-13-2013
Please post output of
Code:
svcs -xv ssh

and
Code:
ps -ef | grep sshd

# 3  
Old 08-14-2013
Quote:
Originally Posted by maverick_here
However, the service goes into maintenance mode after restart. I'm able to connect even though the service is in maintenance mode.
Which likely means you already have another sshd daemon running without smf supervision.
# 4  
Old 08-14-2013
Following is the output of svcs -xv


Code:
[root@Server1 /]$svcs -xv ssh
svc:/network/ssh:default (SSH server)
 State: maintenance since Tue Aug 13 23:49:25 2013
Reason: Restarting too quickly.
   See: http://sun.com/msg/SMF-8000-L5
   See: man -M /usr/share/man -s 1M sshd
   See: /var/svc/log/network-ssh:default.log
Impact: This service is not running.

and the output of ps -ef | grep sshd

Code:
[root@Server1 /]$ps -ef|grep sshd
    root 13228 16789   0 19:31:47 ?           0:00 /usr/lib/ssh/sshd
    root 25315 16789   0 18:21:03 ?           0:00 /usr/lib/ssh/sshd
    root 20811 16789   0 18:08:58 ?           0:00 /usr/lib/ssh/sshd
  syd208 10372 10371   0 19:18:36 ?           0:01 /usr/lib/ssh/sshd
  syd211  7030  7029   0 19:01:44 ?           0:01 /usr/lib/ssh/sshd
    root 11090 16789   0 19:22:08 ?           0:00 /usr/lib/ssh/sshd
   syd22 29519 29518   0 18:32:45 ?           0:01 /usr/lib/ssh/sshd
    root 28969 16789   0 18:31:37 ?           0:00 /usr/lib/ssh/sshd
  syd265 26877 26854   0 18:25:49 ?           0:01 /usr/lib/ssh/sshd
    root 24826 16789   0 18:19:36 ?           0:00 /usr/lib/ssh/sshd
    root 27278     1   0   Aug 12 ?           0:19 /usr/lib/ssh/sshd
    root 29378 16789   0 18:32:23 ?           0:00 /usr/lib/ssh/sshd
  superv 14795 14794   0   Aug 13 ?           0:02 /usr/lib/ssh/sshd

Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Solaris

Metastat shows state needs maintenance

Hi, We have a Solaris 10 machine with update 11 and was configured with IBM storage. It was assigned 2 LUNs (each 70GB) which were striped to make it 140GB. we have taken full backup of entire machine and Our storage team replaced IBM storage with Nimble storage (they did storage-level... (6 Replies)
Discussion started by: prvnrk
6 Replies

2. UNIX for Beginners Questions & Answers

Help with password 'maintenance' or maybe I just need to generate ssh keys?

Hi gurus, I am NOT the SA of the servers so very limited on what I can do. Basically the scenario is like this: Every 6 months our password expires and we have to reset them to comply to some password rules. Thing is users, me included, tend to have plaintext copy of this difficult to... (2 Replies)
Discussion started by: newbie_01
2 Replies

3. Red Hat

Process with S state(Interruptable) in RHEL and gives Advertise error after restarting/Killing the p

Hello, In our Production system one process is in S state(interruptible)and after killing and restarting the process gives 'advertise error'. This error goes after rebooting the Server. I have RHEL 5.9 (tikanga) OS in our server. We tried debugging the issue with the help of 'strace' command... (9 Replies)
Discussion started by: Rohits
9 Replies

4. Solaris

Service is restarting too quickly

Hi guys, one of my services in solaris 10 is in maintenance mode. When I checked why, the reason is that the service is "restarting too quickly." # svcs -x svc:/application/management/snmpdx:default svc:/application/management/snmpdx:default (Sun Solstice Enterprise Master Agent) State:... (2 Replies)
Discussion started by: cjashu
2 Replies

5. Solaris

Helpme !! ssh service in maintenance mode

Hi Guys, Virtual Machine - Solaris 10 ssh service is in maintenance mode, when i tried to disable it it got disabled but when i enabling it ( svcadm enable ssh) it is coming in maintenance mode...... Pls help (10 Replies)
Discussion started by: saurabh84g
10 Replies

6. UNIX for Dummies Questions & Answers

changing directory quickly without cd ..

Hi, I am in /home/development/project/abc directory. Now I want to remove one file which is kept in /trial/dev/<file> directory. I would like to do it in one command. I tried changing directory in one command like: pwd /home/development/project/abc cd ~/trial/dev/ bash: no command... (2 Replies)
Discussion started by: palak08
2 Replies

7. Solaris

How to clear maintenance state for apache2 server?

Can any one of you suggest me the method to get apache server in online from maintenance mode. I tried in the following way, but couldn't get that service to online. bash-3.00# svcs -a | grep apache legacy_run 9:51:55 lrc:/etc/rc3_d/S50apache offline 9:51:22... (3 Replies)
Discussion started by: Sesha
3 Replies

8. Infrastructure Monitoring

net-snmp - restarting too quickly issue

on my sol10x86 10/08 box, i needed to remove the native snmp agent (sma) for net-snmp-5.4.2.1. once net-snmp was configured and installed, i reconfigured the appropriate files of smf and attempted to restart. service was put into maintenance mode: ... (1 Reply)
Discussion started by: pupp
1 Replies

9. Solaris

both mirrors in needs maintenance state.

Hi, Ii am facing the belwo problem: d50: Mirror Submirror 0: d30 State: Needs maintenance Submirror 1: d40 State: Needs maintenance Pass: 1 Read option: roundrobin (default) Write option: parallel (default) Size: 212176648 blocks (101 GB) d30:... (3 Replies)
Discussion started by: sag71155
3 Replies
Login or Register to Ask a Question