The iSeries Netserver lets PC users map a drive or printer to the iSeries. This useful feature can sometimes be problematic for system administrators, who must concern themselves with the spread of PC viruses via iSeries shares, connectivity hiccups, and performance issues. One problem that commonly pops up is users finding their access disabled because of changed passwords, wrong passwords, and so on. The system administrator must then intervene to reenable the disabled NetServer users.
IBM provides a few ways (some more convenient than others) to list disabled NetServer users. The least convenient way is searching for message CPIB682 — the message alert for a disabled NetServer user. You use the WRKSPLF (Work with Spooled Files) command:
You could also use the DSPLOG (Display Log) command:
When you spot a disabled NetServer user in the logs, you can issue the CHGUSRPRF (Change User Profile) command:
where profile-name is the name of the disabled user. You don’t have to actually change the profile because simply running the command reenables NetServer access.
Download the save file containing the source code.