nv-l
[Top] [All Lists]

Re: [NV-L] Node Status Report (Up/Down)

To: "Tivoli NetView Discussions" <nv-l@lists.ca.ibm.com>
Subject: Re: [NV-L] Node Status Report (Up/Down)
From: "Ahsan Ali" <ahsanali@gmail.com>
Date: Sat, 7 Apr 2007 17:32:57 +0500
Delivery-date: Sat, 07 Apr 2007 13:36:32 +0100
Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=Q3nnNg88j7rUuqJa+uOX19SwFWB8fdJWnkt2e2PlB9fo2PgRb3WrVTkE0vLVB9YYWnDJhFBSqAOLxN2mkoNFDFqFT6HPdwqSy3UkU44aoQnUI+sgZFcSC7bwNvK8EcXg85UaQkJOplqnkViBiz81WWSOPJAzJBJNfgVXBeDvvAo=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=NC57J2Y+9XJOPCywAPWOhDs6CUsThdq1a5KZ+BXZbGhv1WxVJilQ46GzN/9Hq8Lr8Gn6eVS9Y1oFNbZlk1yx8JJZYVvcyWQNFoc052Q+gR8vqlDHjBjFFHWL5JmbmDrd7rzX7pyWO3YDUg5WpsXfdSkGq+KXssS/1mP7ODamEBY=
Envelope-to: nv-l-archive@lists.skills-1st.co.uk
In-reply-to: <OF7173907A.3BBBD764-ON882572B4.00425443-882572B4.0043879D@ca.ibm.com>
List-help: <mailto:nv-l-request@lists.ca.ibm.com?subject=help>
List-id: Tivoli NetView Discussions <nv-l.lists.ca.ibm.com>
List-post: <mailto:nv-l@lists.ca.ibm.com>
List-subscribe: <http://lists.ca.ibm.com/mailman/listinfo/nv-l>, <mailto:nv-l-request@lists.ca.ibm.com?subject=subscribe>
List-unsubscribe: <http://lists.ca.ibm.com/mailman/listinfo/nv-l>, <mailto:nv-l-request@lists.ca.ibm.com?subject=unsubscribe>
References: <17daa8560704050414g1d97728cr4dcc2159231ee4fd@mail.gmail.com> <OF7173907A.3BBBD764-ON882572B4.00425443-882572B4.0043879D@ca.ibm.com>
Reply-to: Tivoli NetView Discussions <nv-l@lists.ca.ibm.com>
Sender: nv-l-bounces@lists.ca.ibm.com
Greg,

The interface names are different from the nodenames so looks like an external script will be needed.

Thank you for the help, much appreciated!

-Ahsan



On 4/5/07, Greg Keetch <gkeetch@ca.ibm.com> wrote:

Hi Ahsan,

NetView does not store a hostname with Interface entries. The best you can do is the hostname for the Node the interface is in. The short version of a .format file for that would look like this:

### example format file start ###
### File: interfacestatus.format
### Usage: /usr/OV/bin/nvdbformat -f interfacestatus.format
SELECTRULE:isInterface=TRUE

# Ignore Interfaces without an IP Address associated with them..
SELECTRULE:IP Address^Null
SELECTFIELD:1:TopM Node ID:IP Hostname

SELECTFIELD:2:IP Address
SELECTFIELD:3:IP Status

GROUPBY:1:TopM Node ID:IP Hostname
SORTBY:1:IP Address

OUTPUT: ${1}, ${2}, ${3}
### example format file end ###


If for some reason your site has different IP Hostnames for each interface defined in the DNS, then you would need to use something like this without the "TopM Node ID:IP Hostname" parts (so you just get the IP Address and Status of each interface), and then run the result through an outside script that does a DNS query for each IP address.

Hope this helps.

Regards,
Greg Keetch
IT Specialist (Advisor), Network Services
Network Management Tools Specialist
Information Technology Services Americas (ITSA), Global Services, IBM Canada

-- I didn't say it was your fault... I said I was going to blame you.

Inactive hide details for "Ahsan Ali" <ahsanali@gmail.com>"Ahsan Ali" < ahsanali@gmail.com>



To

"Tivoli NetView Discussions" <nv-l@lists.ca.ibm.com>

cc


Subject

Re: [NV-L] Node Status Report (Up/Down)


Hi Greg,

Is there a way to get a list of interface names (the hostname the reverse lookup of the IP resolves to) and their current status?

I've only been able to get Null and not the interface's reverse lookup name.

### example format file start ###
### File: nodestatus.format
### Usage: /usr/OV/bin/nvdbformat -f nodestatus.format
SELECTRULE:isInterface=TRUE
SELECTFIELD:1:IP Hostname
SELECTFIELD:2:IP Status

OUTPUT: ${1}, ${2}
### example format file end ###

Thanks!

-Ahsan

On 4/3/07, Greg Keetch < gkeetch@ca.ibm.com> wrote:
    Hi Usman,

    There are a few simple ways this can be done. I'm using UNIX syntax, so you may need to slightly modify for Windows.

    You could use the smartset utility:
    /usr/OV/bin/nvUtil e '((isNode = true) && (("IP Status" = Normal) || ("IP Status" = Critical)))' '%Selection Name%,%IP Status%'

    Or create a smartset with the rules you want (such as above) and run:
    /usr/OV/bin/nvUtil l smartsetname

    Alternatively, you could use a format file and the nvdbformat utility:
    /usr/OV/bin/nvdbformat -f nodestatus.format

    Here is an example of a format file that will list all nodes with there status, sorted into groups by status:
    ### example format file start ###
    ### File: nodestatus.format
    ### Usage: /usr/OV/bin/nvdbformat -f nodestatus.format
    SELECTRULE:isNode=TRUE
    SELECTFIELD:1:IP Hostname
    SELECTFIELD:2:IP Status
    #
    GROUPBY:IP Status
    SORTBY:1:IP Hostname
    #
    HEADER:Nodes Report:
    HEADER:-------------
    HEADER:
    #
    GROUPHEADER:Status: ${GROUPNAME} - ${NUMMATCH}
    GROUPHEADER:IP Hostname, IP Status
    GROUPHEADER:_____________________________________________
    #
    OUTPUT: ${1}, ${2}
    #
    ### example format file end ###

    Hope this helps.

    Regards,

    Greg Keetch

    IT Specialist (Advisor), Network Services
    Network Management Tools Specialist
    Information Technology Services Americas (ITSA), Global Services, IBM Canada

    -- I didn't say it was your fault... I said I was going to blame you.


    Inactive hide details for "Usman Taokeer" <usman.taokeer@gmail.com>"Usman Taokeer" < usman.taokeer@gmail.com>

    Please respond to
    Tivoli NetView Discussions <nv-l@lists.ca.ibm.com>
    To

    "Tivoli NetView Discussions" <nv-l@lists.ca.ibm.com>
    cc
    Subject

    [NV-L] Node Status Report (Up/Down)

    Hi,
    NV v7.1.4 FP05
    Windows 2003 Std Edt SP1


    Is there any way to get the status(up/down only) of all/any node(s) currently in the NV database .


    Regards,

    Usman_______________________________________________
    NV-L mailing list

    NV-L@lists.ca.ibm.com
    Unsubscribe:NV-L-leave@lists.ca.ibm.com
    http://lists.ca.ibm.com/mailman/listinfo/nv-l  (Browser access limited to internal IBM'ers only)


    _______________________________________________
    NV-L mailing list

    NV-L@lists.ca.ibm.com
    Unsubscribe:NV-L-leave@lists.ca.ibm.com
    http://lists.ca.ibm.com/mailman/listinfo/nv-l (Browser access limited to internal IBM'ers only)

_______________________________________________
NV-L mailing list
NV-L@lists.ca.ibm.com
Unsubscribe:NV-L-leave@lists.ca.ibm.com
http://lists.ca.ibm.com/mailman/listinfo/nv-l (Browser access limited to internal IBM'ers only)


_______________________________________________
NV-L mailing list
NV-L@lists.ca.ibm.com
Unsubscribe:NV-L-leave@lists.ca.ibm.com
http://lists.ca.ibm.com/mailman/listinfo/nv-l (Browser access limited to internal IBM'ers only)





--
---
Due to a shortage of devoted followers, the production of great leaders has been discontinued.
_______________________________________________
NV-L mailing list
NV-L@lists.ca.ibm.com
Unsubscribe:NV-L-leave@lists.ca.ibm.com
http://lists.ca.ibm.com/mailman/listinfo/nv-l (Browser access limited to 
internal IBM'ers only)
<Prev in Thread] Current Thread [Next in Thread>

Archive operated by Skills 1st Ltd

See also: The NetView Web