fhg
Volume 10, Number 18 -- June 9, 2010

Admin Alert: How To Run NetServer from the Green Screen in 10 Minutes

Published: June 9, 2010

by 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


Sponsored By
BOTZ & ASSOCIATES, INC.

~ ASK PAT ~
Free Security Advice from Patrick Botz

                                                 Need advice you can trust on security audits,
                                                 PCI, HIPAA or SOX requirements, 3rd party
                                                 software, rational password management,
                                                 public authority or Security Level 40?

                                                 Spend an hour with Patrick Botz - FREE -
                                                 and get actionable info and tips
to get you
                                                 started. Custom, 100% independent advice

                                                 from the guy who helped architect Power
                                                 Systems / IBM i security.

                                                 Click to set up your free session with Pat.
                                                 World-class security expertise is no longer just
                                                 for the big guys!


Senior Technical Editor: Ted Holt
Technical Editor: Joe Hertvik
Contributing Technical Editors: Erwin Earley, Brian Kelly, Michael Sansoterra
Publisher and Advertising Director: Jenny Thomas
Advertising Sales Representative: Kim Reed
Contact the Editors: To contact anyone on the IT Jungle Team
Go to our contacts page and send us a message.

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


 
The Four Hundred
Hardware Spending to Lead the IT Recovery

Glass i: Windows RPG for $50, 25 Users for $250

Consultant Says: I See i on Blade Servers

As I See It: On Leadership

Maximum Availability Sues Vision Solutions Over Advertising Claims

Four Hundred Stuff
iBoost Turbo-Charges Slow i/OS Batch Jobs

Vision Updates CDP Tool with Automated Recovery Feature

ARCAD Opens ALM Suite a Little More

Bug Busters Bolsters HA Offering

LANSA Refreshes Data Services Layer for i/OS and .NET

Four Hundred Monitor
Four Hundred Monitor's
Full iSeries Events Calendar

System i PTF Guide
May 29, 2010: Volume 12, Number 22

May 22, 2010: Volume 12, Number 21

May 15, 2010: Volume 12, Number 20

May 8, 2010: Volume 12, Number 19

May 1, 2010: Volume 12, Number 18

April 24, 2010: Volume 12, Number 17

TPM at The Register
Canonical rejigs Ubuntu support services

HP's Nehalem-EX iron set for June arrival

Oracle rolls more Sun heads

US census inflates latest employment numbers

Fujitsu, Oracle ironing out Sparc server deal

SGI ends Itanium era with UV supers

IBM freshens cut-rate blade server

ARM chippies conjure (another) Linux distro

Project Mojo – the server rack that packs petaflops

EMEA shops set x64 server share record

Force10 adds rack-topping Gigabit switch

Cray super lands at Swedish tech institute

THIS ISSUE SPONSORED BY:

SEQUEL Software
WorksRight Software
Botz & Associates, Inc.


Printer Friendly Version


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

Four Hundred Guru

BACK ISSUES




 
Subscription Information:
You can unsubscribe, change your email address, or sign up for any of IT Jungle's free e-newsletters through our Web site at http://www.itjungle.com/sub/subscribe.html.

Copyright © 1996-2010 Guild Companies, Inc. All Rights Reserved.
Guild Companies, Inc., 50 Park Terrace East, Suite 8F, New York, NY 10034

Privacy Statement