
This is how you would restart the snmpd service on AIX.
oslevel is used to return the current OS level. stopsrc -s [service] to stop and startsrc -s [service] to start a service.
[root@kakuna]:/# oslevel
4.3.3.0
[root@kakuna]:/# stopsrc -s snmpd
0513-044 The snmpd Subsystem was requested to stop.
[root@kakuna]:/# stopsrc -s snmpd
0513-004 The Subsystem or Group, snmpd, is currently inoperative.
[root@kakuna]:/# startsrc -s snmpd
0513-059 The snmpd Subsystem has been started. Subsystem PID is 8004.
[root@kakuna]:/#
We had a DC shutdown last night, been in the office for almost 20 hours now. I’m sleepy,tired,sticky,red eyed and the damn 10 year old RS6000 box running AIX 4.3 decided to stay down.
The box was trying to connect to a NFS share on the network before the network services came up. This cause the RS6000 to stall at boot up.
The fix the below fixed the problem.
- Restart the machine.
- Wait the the AIX splash screen to come up. Devices begin to initialize here.
- When you see the [keyboard] word on screen hit the F5 button or the 5 key depending on your console.
- Choose “single user mode” when the maintenance screen comes up.
- Edit the /etc/filesystems file and remove the NFS entries.
- Reboot.
Hitting F1 or the 1 key will take you to the SMS (System Management Services) menu where you can access system configurations liek the network settings, boot sequence, firmware update and others….
Source: Sys Admin Pocket Survival Guide
I had to work with an AIX box today which was having some issues with the mailq getting filled up frequently. The issue was not with the AIX box but the out SMTP box. Damn those spammers!!
Anyway, I had to restart the sendmail daemon on the AIX box. Walk through below,
1. Verify if sendmail is running. “ps -ef | grep sendmail“.
This should show: root 5704 1 0 11:08:42 - 0:00 sendmail: accepting connections on port 25
2. Stop sendmail. “stopsrc -s sendmail” or “kill -1 `cat /etc/senamail.pid`.
3. Verify if sendmail is running. “ps -ef | grep sendmail“.
No process should be returned.
4. Start sendmail. “startsrc -s sendmail -a “-bd -q30m”“.
-bd will start the sendmail as a SMTP mail relay router.
-q will the the interval in which the sendmail daemon will process save messages. If none is provided the daemon will default to instant processing.
5. Verify if sendmail is running. “ps -ef | grep sendmail“.
This should show: root 5704 1 0 11:30:23 - 0:00 sendmail: accepting connections on port 25