nv-l
[Top] [All Lists]

RE: [nv-l] IP/TCP/SNMP Port 23 error

To: "'pstroud@bellsouth.net'" <pstroud@bellsouth.net>
Subject: RE: [nv-l] IP/TCP/SNMP Port 23 error
From: "Seminara, Sandro" <SSeminara@fnis.com>
Date: Fri, 13 Jun 2003 13:33:58 -0700
Cc: "'nv-l@lists.tivoli.com'" <nv-l@lists.tivoli.com>
Delivered-to: mailing list nv-l@lists.tivoli.com
Delivery-date: Fri, 13 Jun 2003 21:44:26 +0100
Envelope-to: nv-l-archive@lists.skills-1st.co.uk
List-help: <mailto:nv-l-help@lists.tivoli.com>
List-post: <mailto:nv-l@lists.tivoli.com>
List-subscribe: <mailto:nv-l-subscribe@lists.tivoli.com>
List-unsubscribe: <mailto:nv-l-unsubscribe@lists.tivoli.com>
Mailing-list: contact nv-l-help@lists.tivoli.com; run by ezmlm

Thanx it worked.  Tell your boss you need a raise. :)

Sandro Seminara
FNIS

-----Original Message-----
From: Paul Stroud [mailto:pstroud@bellsouth.net]
Sent: Friday, June 13, 2003 2:11 PM
To: Seminara, Sandro
Cc: nv-l@lists.tivoli.com
Subject: Re: [nv-l] IP/TCP/SNMP Port 23 error

Sandro,
Here you go, all menu items have registration files stored in
/usr/OV/registration/C. There is a good write-up about registration files in
the Programmers Guide, its worth a read. In there are the files that "build"
the menus. I searched for the TCP connect Test and found it in the following
file: /usr/OV/registration/C/ovip/NNM-IP.tbl.

In that file, if you search for TCP you will find:

      <100> "IP/TCP/SNMP Connectivity..." _I  f.action 'Test All Protocols';

This is essentially the menu entry. Then you see f.action 'Test All
Protocols'. This is going to be an action described later in the file.
Searching for "Test All Protocols" in the file takes me to this:

    Action 'Test All Protocols' {
        MinSelected 0 ;
        SelectionRule   ((isNode || isInterface) && isIP) ;
        CallbackArgs '-helpFile ovip/OVW/Functions/netProtocols \
                      -appendSelectList -appendSelectListToTitle \
                      -commandHeading \"Node                     ICMP Echo   
     TCP Connect          SNMP Get\" \
                      -dataLine 2 -commandTitle \"Test All Protocols\" \
                      -iconName \"Test Protocols\" \
                      -cmd /usr/OV/bin/netcheck -e'
    }

This looks fairly comlicated, but in the end, we just want to look at this
line:

                      -cmd /usr/OV/bin/netcheck -e'

This is the acutal command that will be run when the menu item is clicked.
So I took a look at the netcheck command:

zodiac:/usr/OV/registration/C# netcheck
Usage: netcheck [-elu] [-o optname=optval] [-t test] host ...
       -e      Print verbose error messages to stderr.
       -l      List available options and tests.
       -o      Specify an option value.
       -t      Run the named test (default is all tests).
       -u      Unbuffer stdout.
               At least one host must be specified.
zodiac:/usr/OV/registration/C# netcheck -l
TESTS:  ip      tcp     snmp
OPTION               DEFAULT            
icmpTimeout          1                  
icmpTries            5                  
tcpPort              telnet             
snmpTimeout          3                  
snmpTries            3                  
snmpVar              system.sysDescr.0  

From here I tested a bit and found that if you run:

netcheck -e -l tcpPort=22 <hostname>

You will get the results you desire. The hostname is not required in
the registration file, NetView will take care of that ifself. 

So the bottom line is this. In the file above, if you change the line:

                      -cmd /usr/OV/bin/netcheck -e'
to
                      -cmd /usr/OV/bin/netcheck -e -l tcpPort=22'

It should give you the desired results.

A few quick notes:
If all your devices do not have ssh running, it will fail on those. You might
want to consider creating an additional menu item to test those types of
devices, and leave this one unchanged.

Be careful when editing these files and make sure you make a backup.

Paul

On Friday 13 June 2003 16:39, you wrote:
> Our routers are running SSH and not telnet so when you run a IP/TCP/SNMP
> test I get an ERROR 79 for TCP Connect.  How can I change the default port
> from 23 to 22?
>
>
>
> Thank you,
>
> Sandro Seminara

<Prev in Thread] Current Thread [Next in Thread>

Archive operated by Skills 1st Ltd

See also: The NetView Web