• The Four Hundred
  • Subscribe
  • Media Kit
  • Contributors
  • About Us
  • Contact
Menu
  • The Four Hundred
  • Subscribe
  • Media Kit
  • Contributors
  • About Us
  • Contact
  • Admin Alert: Running Green-Screen Commands from OpsNav, Part 1

    August 2, 2006 Joe Hertvik

    Because their operating systems are grounded in 5250 green-screen commands, i5, iSeries, and AS/400 machines have always had problems gaining acceptance in a graphical world. IBM responded to this issue years ago by creating the iSeries Navigator program (OpsNav), a graphical interface for the i5/OS operating system. However, Windows users still occasionally need to run text-based 5250 commands. To solve that problem, IBM added a Run Command facility to OpsNav.

    Run Command is a somewhat valuable OpsNav feature that allows you to graphically enter and send batch i5/OS commands to an i5 partition for execution. This article is the first of a two-part series where I will cover the ins and outs of Run Command by showing you how to send commands from OpsNav to an i5/OS V5R3 machine for execution. (Note: The testing environment for the examples shown here can be found at the bottom of the article.) Today, I’ll cover the basics of Run Command. In a future article, I’ll look at some of its advanced features.

    Getting Started with Run Command

    It’s important to understand that Run Command configures and sends 5250 commands to your i5 box, so that the commands can be run as batch jobs. Because all submitted commands are executed as batch processes, interactive commands, such as the Work with Object (WRKOBJ) command, cannot be executed using this feature.

    You access Run Command by opening OpsNav, highlighting and right-clicking on the i5 partition that you want to send commands to, and then selecting the Run Command option from the pop-up menu that appears. This sequence opens up OpsNav’s Run Command panel. Under the panel’s General tab, you can type in the name of the command that you want to execute in the box labeled Command to run:. Command parameters can also be typed into this box the same way you would type a completed command inside a CL program or on a green-screen command line.

    If you want to select and rerun an old command that you have previously submitted to Remote Command, click on the Previous Commands button in the Run Command panel. By default, Previous Commands shows you the 20 most recent commands that you submitted to this partition from OpsNav. Select the command that you want to rerun, click OK, and OpsNav will bring that command back to the Command to Run: box on the panel.

    If you want to prompt your command to select and enter other parameters, you can click on the Prompt button on the panel. This action displays a Command Prompt panel that displays all the possible parameters that you can select for the command. The parameters on this screen are no different than what you would select if you had run the command on a 5250 screen and pressed the F4 key (prompt). They are just presented graphically.

    From the Command Prompt panel, select OK and the fully formatted 5250 command will be returned to the Run Command panel. At this point, you have two choices: You can send the command to your i5 for immediate execution; or you can add it to Management Central’s Scheduled tasks to be executed at a later date or time. Here’s how each choice works.

    Running a Command Immediately

    After configuring your command and its parameters on the Run Command panel, you can tell OpsNav to submit the command to your target i5 partition for immediate execution by clicking on the panel’s OK button. OpsNav will then take the i5/OS command you created and send it to Management Central (MC) on your i5 central server for execution. This means that in order to use Run Command in a multi-partitioned environment, you must have Management Central configured on your target partitions and on a central partition.

    After submitting the command, Management Central sends the command to its target partition for execution. A Run Command Task Status window will appear that shows you the current status of your command. When the command status reads Completed, you can right-click on the command’s status line and select Task Output from the pop-up menu that appears. If your command completed successfully, a Run Command Printer Output window should appear, where you can open and view the spooled file output results of your submitted command.

    Be aware, however, that Run Command sometimes displays a few glitches that may cause you some frustration. I have found that Run Command may sometimes fail altogether or fail to display its printer file output in the Run Command Printer Output window. If the command fails to connect to the partition you are sending it to, chances are good that there is something wrong with the Management Central configuration on your partition or on your MC central system. There are several reasons Management Central may not be running correctly, and you can consult an earlier Admin Alert article I wrote called “When Management Central Won’t Start” for clues on getting Management Central up and running again.

    I have also found that the Run Command Printer Output window associated with a command sometimes may not display the command’s printed output, even if the command completed successfully. If that happens, you can generally find the resulting output file for a command by displaying all spooled files for the submitting user under the OpsNav Basic Operations –> Printer Output node.

    Scheduling a Command for Later Execution

    In addition to running a command immediately from the Run Command panel, you can also designate that a command should be run only once at a later date or you can set up a schedule for a command to run at a predetermined time every day, week, or month. You simply define the command the same way I described above but, instead of selecting the OK button to run it immediately from the Run Command panel, click instead on the Schedule button on that screen. This will bring you to the Management Central Scheduler screen, where you can define the date (or regular dates) when you want to run the command. Select the schedule that you want the command to run on, and then press OK on this screen. Pressing OK will cause you to exit the Run Command panel and Management Central will automatically create a scheduled task for running this command.

    You can view and make minor changes to the scheduled command by opening the Scheduled Tasks –> Commands node under OpsNav’s Management Central tree. By right-clicking on the command, you can use the pop-up menu to see the command’s schedule, run the command immediately, delete the scheduled command; or add a description for the command. The down side of using the Scheduled Tasks –> Commands feature is that Run Command does not provide any useful descriptive naming scheme for your command tasks; each task is only referred to as Run Command (xx) where xx is equal to a sequential command number that Management Central assigned to it.

    Useful, But a Little Kludgey

    As you can see, OpsNav’s Run Command facility is somewhat valuable for Windows users who need an outlet to run 5250 green-screen commands every once in a while. And if you get past some of its shortcoming, you can use it to your advantage. In my next article, I will discuss some of the more advanced Run Command features, and how you might use them to get more out of this function.

    About Our Testing Environment

    All configurations described in this article were tested by using the iSeries Navigator (OpsNav) program that comes with iSeries Access for Windows V5R3M0. The OpsNav desktop environment was a Windows 2000 Professional laptop. Commands sent from OpsNav were executed on an i5 550 box running i5/OS V5R3.

    The Run Command function is also included in many other OpsNav releases, including the Operations Navigator program (also nicknamed OpsNav) that comes with earlier versions of Client Access. Run Command can be used in those versions to send commands to pre-V5 i5, iSeries, and AS/400 machines. Be aware however, that these earlier versions may have reduced capabilities from the examples shown here, so depending on which OpsNav version you are using, these examples may not behave exactly the same way in your shop.

    RELATED STORIES

    iSeries Information Central, Management Central

    When Management Central Won’t Start

    Share this:

    • Reddit
    • Facebook
    • LinkedIn
    • Twitter
    • Email

    Tags:

    Sponsored by
    UCG Technologies

    CYBER-ATTACKS ON THE RISE. PROTECT WITH THE TRIPLE PLAY.

    COVID-19 has not only caused a global pandemic, but has sparked a “cyber pandemic” as well.

    “Cybersecurity experts predict that in 2021, there will be a cyber-attack incident every 11 seconds. This is nearly twice what it was in 2019 (every 19 seconds), and four times the rate five years ago (every 40 seconds in 2016). It is expected that cybercrime will cost the global economy $6.1 trillion annually, making it the third-largest economy in the world, right behind those of the United States and China.”1

    Protecting an organization’s data is not a single-faceted approach, and companies need to do everything they can to both proactively prevent an attempted attack and reactively respond to a successful attack.

    UCG Technologies’ VAULT400 subscription defends IBM i and Intel systems against cyber-attacks through comprehensive protection with the Triple Play Protection – Cloud Backup, DRaaS, & Enterprise Cybersecurity Training.

    Cyber-attacks become more sophisticated every day. The dramatic rise of the remote workforce has accelerated this trend as cyber criminals aggressively target company employees with online social engineering attacks. It is crucial that employees have proper training on what NOT to click on. Cyber threats and social engineering are constantly evolving and UCG’s Enterprise Cybersecurity Training (powered by KnowBe4) is designed to educate employees on the current cutting-edge cyber-attacks and how to reduce and eliminate them.

    A company is only as strong as its weakest link and prevention is just part of the story. Organizations need to have a quick response and actionable plan to implement should their data become compromised. This is the role of cloud backup and disaster-recovery-as-a-service (DRaaS).

    Data is a company’s most valuable asset. UCG’s VAULT400 Cloud Backup provides 256-bit encrypted backups to two (2) remote locations for safe retrieval should a cyber-attack occur. This is a necessary component of any protection strategy. Whether a single click on a malicious link brings down the Windows environment or an infected SQL server feeds the IBM i, once the data is compromised, there is no going back unless you have your data readily available.

    Recovery is not a trivial task, especially when you factor in the time sensitive nature of restoring from an active attack. This leads to the third play of the Triple Play Protection – DRaaS.  Companies have myriad concerns once an attack is realized and a managed service disaster recovery allows employees to keep focus on running the business in a crisis state.

    The combination of training employees with secure backup and disaster recovery offers companies the best chance at avoiding financial disruption in an age of stronger, more frequent cyber-attacks.

    Reach out to UCG Technologies to discuss your company’s security needs and develop a data protection plan that fits you best.

    ucgtechnologies.com/triple-play

     800.211.8798 | info@ucgtechnologies.com

     

    1. https://theconversation.com/cyberattacks-are-on-the-rise-amid-work-from-home-how-to-protect-your-business-151268

    Share this:

    • Reddit
    • Facebook
    • LinkedIn
    • Twitter
    • Email

    Sponsored Links

    T.L. Ashford:  BARCODE400 - the fastest way to create compliance labels directly from the iSeries
    Advanced Systems Concepts:  iSeries data access like nothing else with SEQUEL
    COMMON:  Join us at the Fall 2006 conference, September 17-21, in Miami Beach, Florida

    The Blogosphere Says the IRS Uses the iSeries to Manage Bill Gates’ Personal Taxes Bang for the Buck: Entry i5 Servers Versus the Competition

    Leave a Reply Cancel reply

Volume 6, Number 29 -- August 2, 2006
THIS ISSUE SPONSORED BY:

WorksRight Software
ProData Computer Services
COMMON

Table of Contents

  • Print PC Documents to iSeries Printers
  • Find Messages That Contain a Text String
  • Admin Alert: Running Green-Screen Commands from OpsNav, Part 1

Content archive

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

Recent Posts

  • Why Open Source Is Critical for Digital Transformation
  • mrc Refreshes IBM i Low-Code Dev Tool
  • Unit Testing Automation Hits Shift Left Instead of Ctrl-Alt-Delete Cash
  • Four Hundred Monitor, March 3
  • IBM i PTF Guide, Volume 23, Number 9
  • Doing The Texas Two Step From Power9 To Power10
  • PHP’s Legacy Problem
  • Guru: For IBM i Newcomers, An Access Client Solutions Primer
  • IBM i 7.1 Extended Out To 2024 And Up To The IBM Cloud
  • Some Practical Advice On That HMC-Power9 Impedance Mismatch

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 © 2021 IT Jungle

loading Cancel
Post was not sent - check your email addresses!
Email check failed, please try again
Sorry, your blog cannot share posts by email.