• The Four Hundred
  • Subscribe
  • Media Kit
  • Contributors
  • About Us
  • Contact
Menu
  • The Four Hundred
  • Subscribe
  • Media Kit
  • Contributors
  • About Us
  • Contact
  • Admin Alert: How To Run NetServer from the Green Screen in 10 Minutes

    June 9, 2010 Joe Hertvik

    IBM i NetServer is a handy server. With very little configuration, it allows i/OS machines to provide file and print-sharing services for Windows-based PC clients. Unfortunately, NetServer has an image problem. Many people think they can only control NetServer through iSeries Navigator and that there isn’t a green-screen interface for NetServer. They are wrong. There are green-screen NetServer commands, and you may already have them installed on your machine.

    Here’s a quick overview of what i5/OS NetServer is, and how you can start, stop, configure, and control it through 5250 green-screen commands.

    What is IBM i NetServer?

    Originally called iSeries Support for Windows Network Neighborhood, the server has also been variously known as AS/400 NetServer, iSeries NetServer, Power i NetServer, or simply NetServer. NetServer was first introduced in OS/400 V4R2 as a TCP/IP-based Simple Message Block (SMB) server that provided the following file and print services to Windows PC clients:

    • Access to iSeries Integrated File System directories for file sharing
    • Allowing PC users to send printouts to OS/400 and i/OS output queues to print on iSeries, System i, and Power i-connected printers

    NetServer also supports the Common Internet Files System (CIFS) extensions to the SMB protocol. With NetServer, Windows PC clients can easily access i/OS files and printers using the same native support that they use to access files and printers on other systems in their Windows Domain.

    For more information on setting up and configuring i NetServer, see the IBM i NetServer Web site. Also check out the other NetServer articles listed in the Related Stories section at the bottom of this article.

    The Underpublicized Green Screen Fix

    When NetServer was originally released, users were asked to use iSeries Navigator’s (OpsNav) graphical interface to configure and run NetServer. It seemed natural enough, since NetServer was a Windows-based function. Why bother creating a set of green-screen commands to support NetServer when IBM already had a graphical interface for server configuration?

    The problem was that iSeries, System i, and Power i administrators wanted an easier (i.e., green-screen) way to work with the server so that they could perform the following functions through native commands.

    • Start and stop i NetServer
    • Work with file and print shares
    • Change and display NetServer attributes

    There are a number of advantages to having green-screen commands for controlling NetServer. The most obvious is that you can schedule jobs to automatically start, stop, and configure your NetServer server directly from common i/OS job scheduling software, such as Help Systems Robot/SCHEDULE package. Having commands also allows you to perform NetServer functions in CL programs that can be called by anyone at any time. Although it sounds illogical, green-screen i NetServer commands provide i/OS and OS/400 administrators with a lot more flexibility in managing a NetServer environment.

    Starting with i5/OS V5R2, IBM delivered green-screen capability, but there’s a catch. IBM didn’t automatically activate the new green-screen commands and menu in the OS/400 and i/OS operating systems. Instead, Big Blue delivered the control commands as user tools under option 7 of licensed program 5722SS1, Example Tools Library. This means that you can use the NetServer menu (GO NETS) and commands to control NetServer from the green screen, but you have to create the tools first. Fortunately, this is not difficult.

    Creating Your Green Screen NetServer Tools

    The NetServer installation package resides in the QUSRTOOL library, and you have to extract and create the tools from this package. I installed the tools recently on one of my i5/OS V5R4M5 partitions, and the entire process took about 10 minutes. IBM offers good instructions for extracting the NetServer tools at its i5/OS NetServer: QUSRTOOL: GO NETS Web site. The tools are installed in the NETSRVCMD library.

    Once installed, you can use the tools by first adding NETSRVCMD to your library list. Do this by running the following Add Library List Entry (ADDLIBLE) command.

    ADDLIBLE LIB(NETSRVCMD)
    

    You will then be able to bring up the NetServer menu (NETS) by running the following Go to Menu (GO) command.

    GO MENU(NETS)
    

    This displays the following menu.

    The trick here is that you can use each of these options off the menu or you can use them as commands from a command line, a CL program, or in a job scheduling package. Here are the relevant green screen commands for each option and what each command does.

    1. Start iSeries NetServer (STRNSV)–Starts your NetServer server. This command also contains an option to reset a running server.
    2. End iSeries NetServer (ENDNSV)–Ends your NetServer server.
    3. Add NetServer File Share (ADDNSVFSHR)–Adds a new file share for Windows users. This command allows you to configure the share with all the same options that are available in the OpsNav configuration.
    4. Change NetServer File Share (CHGNSVFSHR)–Allows you to change the parameters of an existing file share.
    5. Add NetServer Print Share (ADDNSVPSHR)–Adds a new printer share that PC users can use to send output to an i/OS connected printer output queue.
    6. Change NetServer Print Share (CHGNSVPSHR)–Modifies an existing NetServer printer share.
    7. Display NetServer Share (DSPNSVSHR)–Displays an existing share. However, you’re much better off using option 11, Work with Shares, instead of this option. Option 11 allows you to select any of the existing shares to view, change, or delete.
    8. Remove NetServer Share (RMVNSVSHR)–Allows you to remove NetServer file and print shares.
    9. Change NetServer Attributes (CHGNSVA)–Changes the startup attributes for the server. As with the OpsNav configuration, these new values will not be changed until the next time the server is started.
    10. Display Attributes–Shows the current and pending parameters of your system’s NetServer server. Display Attributes is only a menu option. It does not have a corresponding CL command that can be called independently from the menu.
    11. Work with Shares–Allows you to select any of the existing NetServer shares for modification, display, deletion, or to check their status. There is no CL command associated with this option.
    12. Work with NetServer users–Allows you to see which users, if any, are currently accessing NetServer file shares. This option has no CL command.
    13. Display NetServer Information (DSPNSVINF)–Allows you to display current usage information for your NetServer server.
    14. Send NetServer Message (SNDNSVMSG)–Allows you to send custom message to users on your Windows network. SNDNSVMSG works like the NET SEND command inside Windows.
    15. Work With NetServer Sessions (WRKNSVSSN)–This command displays all or a subset of the current NetServer sessions. From this command, you can retrieve information about a session or you can end a session.

    While the iSeries Navigator contains a nice graphical interface for controlling NetServer, many i/OS shops rely on the green screen to get things done. To that effect, the NetServer green screen commands can be a great addition to your toolbox.

    RELATED STORIES

    Troubleshooting NetServer File Copy Errors

    Three Steps to Mapping iSeries Data to a Windows Network Drive



                         Post this story to del.icio.us
                   Post this story to Digg
        Post this story to Slashdot

    Share this:

    • Reddit
    • Facebook
    • LinkedIn
    • Twitter
    • Email

    Tags:

    Sponsored by
    Maxava

    Migrate IBM i with Confidence

    Tired of costly and risky migrations? Maxava Migrate Live minimizes disruption with seamless transitions. Upgrading to Power10 or cloud hosted system, Maxava has you covered!

    Learn More

    Share this:

    • Reddit
    • Facebook
    • LinkedIn
    • Twitter
    • Email

    Sponsored Links

    Help/Systems:  Use Robot/SPACE for your IBM i disk storage management
    ManageEngine:  Who says iSeries systems monitoring software has to be expensive?
    COMMON:  Join us at the Fall 2010 Conference & Expo, Oct. 4 - 6, in San Antonio, Texas

    IT Jungle Store Top Book Picks

    Easy Steps to Internet Programming for AS/400, iSeries, and System i: List Price, $49.95
    The iSeries Express Web Implementer's Guide: List Price, $49.95
    The System i RPG & RPG IV Tutorial and Lab Exercises: List Price, $59.95
    The System i Pocket RPG & RPG IV Guide: List Price, $69.95
    The iSeries Pocket Database Guide: List Price, $59.00
    The iSeries Pocket SQL Guide: List Price, $59.00
    The iSeries Pocket Query Guide: List Price, $49.00
    The iSeries Pocket WebFacing Primer: List Price, $39.00
    Migrating to WebSphere Express for iSeries: List Price, $49.00
    Getting Started With WebSphere Development Studio Client for iSeries: List Price, $89.00
    Getting Started with WebSphere Express for iSeries: List Price, $49.00
    Can the AS/400 Survive IBM?: List Price, $49.00
    Chip Wars: List Price, $29.95

    Kronos Touts iSeries Central Customer Two Top i Concerns and a Bunch of Little Ones

    Leave a Reply Cancel reply

Volume 10, Number 18 -- June 9, 2010
THIS ISSUE SPONSORED BY:

SEQUEL Software
WorksRight Software
Botz & Associates, Inc.

Table of Contents

  • Re-Adopt Authority Utility
  • Date Field Odds and Ends
  • Admin Alert: How To Run NetServer from the Green Screen in 10 Minutes

Content archive

  • The Four Hundred
  • Four Hundred Stuff
  • Four Hundred Guru

Recent Posts

  • Meet The Next Gen Of IBMers Helping To Build IBM i
  • Looks Like IBM Is Building A Linux-Like PASE For IBM i After All
  • Will Independent IBM i Clouds Survive PowerVS?
  • Now, IBM Is Jacking Up Hardware Maintenance Prices
  • IBM i PTF Guide, Volume 27, Number 24
  • Big Blue Raises IBM i License Transfer Fees, Other Prices
  • Keep The IBM i Youth Movement Going With More Training, Better Tools
  • Remain Begins Migrating DevOps Tools To VS Code
  • IBM Readies LTO-10 Tape Drives And Libraries
  • IBM i PTF Guide, Volume 27, Number 23

Subscribe

To get news from IT Jungle sent to your inbox every week, subscribe to our newsletter.

Pages

  • About Us
  • Contact
  • Contributors
  • Four Hundred Monitor
  • IBM i PTF Guide
  • Media Kit
  • Subscribe

Search

Copyright © 2025 IT Jungle